<jupyter_start><jupyter_text><jupyter_code>pip install statsmodels
import numpy as np
import statsmodels.api as sm
import statsmodels.formula.api as smf
import pandas as pd
import matplotlib.pyplot as plt
from statsmodels.graphics.mosaicplot import mosaic

#code to print the probability plots with options to fit distribution and various reference lines using statsmodels
x = np.random.normal(loc=1.12, scale=0.25, size=37)
y = np.random.normal(loc=0.75, scale=0.45, size=37)
ppx = sm.ProbPlot(x)
ppy =  sm.ProbPlot(y)
fig1 = ppx.qqplot()
fig2 = ppx.qqplot(other=ppy)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09698996655518395, 'fraction_numerical': 0.030100334448160536, 'mean_word_length': 5.965116279069767, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '348098', 'license': 'MIT', 'n_tokens_mistral': 226, 'n_tokens_neox': 206, 'n_words': 60, 'path': 'Data Visualisation and Analysis/EDA day 4/DAY4C2.ipynb', 'repo_name': 'pooja-gera/TheWireUsChallenge', 'size': '598'}