Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -914,7 +914,8 @@ class DataAnalysisChatbot:
|
|
914 |
stat, p_value = stats.shapiro(data) if len(data) < 5000 else stats.normaltest(data)
|
915 |
|
916 |
result += f"Normality Test for '{col}':\n"
|
917 |
-
|
|
|
918 |
result += f" Statistic: {stat:.4f}\n"
|
919 |
result += f" p-value: {p_value:.4f}\n"
|
920 |
result += f" Interpretation: The data is {'not ' if p_value < 0.05 else ''}normally distributed (95% confidence).\n\n"
|
|
|
914 |
stat, p_value = stats.shapiro(data) if len(data) < 5000 else stats.normaltest(data)
|
915 |
|
916 |
result += f"Normality Test for '{col}':\n"
|
917 |
+
test_name = "Shapiro-Wilk" if len(data) < 5000 else "D'Agostino's K²"
|
918 |
+
result += f" Test used: {test_name}\n"
|
919 |
result += f" Statistic: {stat:.4f}\n"
|
920 |
result += f" p-value: {p_value:.4f}\n"
|
921 |
result += f" Interpretation: The data is {'not ' if p_value < 0.05 else ''}normally distributed (95% confidence).\n\n"
|