lrasm.normality_tst
Module Contents
Functions
|
This function recieves a linear regression model and p-value threshold |
- lrasm.normality_tst.normality_test(X, y, p_value_thresh=0.05)[source]
- This function recieves a linear regression model and p-value threshold
and outputs the p-value from a shapiro wilks test along with a statement indicating the results of the normality test
- Parameters
X (pd.Dataframe) – Dataframe containing exploratory variable data
y (pd.Series) – Dataframe containing response variable data
p_value_thresh (float) – The threshold user defines for the p-value, default set to 0.05
- Returns
p-value of the shapiro wilk test
- Return type
float
Examples
>>> normality_test(X_train, y_train, p_value_thresh = 0.05).