Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def check_distribution(target_column, show_histogram):
|
|
| 99 |
result_text += f"Top {i + 1}: {name} with a p-value of {p_value_text}\n"
|
| 100 |
|
| 101 |
# Add disclaimer about p-value significance
|
| 102 |
-
result_text += "\
|
| 103 |
|
| 104 |
# Normal distribution comparison
|
| 105 |
mean, std = norm.fit(data)
|
|
@@ -114,7 +114,7 @@ def check_distribution(target_column, show_histogram):
|
|
| 114 |
sns.histplot(data, kde=False, stat="density", bins=50, color=actual_data_color, label='Actual Data Distribution')
|
| 115 |
sns.kdeplot(data, color=actual_data_color, lw=2, label='Actual Data Distribution Line')
|
| 116 |
plt.plot(normal_best_fit_data, normal_pdf, color=normal_color, lw=2, label=f'Normal Fit (p-value={p_value_text})')
|
| 117 |
-
plt.title("Comparison with Normal Distribution")
|
| 118 |
plt.legend()
|
| 119 |
|
| 120 |
# Save plot to temporary file
|
|
|
|
| 99 |
result_text += f"Top {i + 1}: {name} with a p-value of {p_value_text}\n"
|
| 100 |
|
| 101 |
# Add disclaimer about p-value significance
|
| 102 |
+
result_text += "\nKolmogorov-Smirnov Test - A significant p-value (below 0.05) indicates that the distribution does not conform well to the actual data distribution."
|
| 103 |
|
| 104 |
# Normal distribution comparison
|
| 105 |
mean, std = norm.fit(data)
|
|
|
|
| 114 |
sns.histplot(data, kde=False, stat="density", bins=50, color=actual_data_color, label='Actual Data Distribution')
|
| 115 |
sns.kdeplot(data, color=actual_data_color, lw=2, label='Actual Data Distribution Line')
|
| 116 |
plt.plot(normal_best_fit_data, normal_pdf, color=normal_color, lw=2, label=f'Normal Fit (p-value={p_value_text})')
|
| 117 |
+
plt.title("Comparison with Normal Distribution (Kolmogorov-Smirnov)")
|
| 118 |
plt.legend()
|
| 119 |
|
| 120 |
# Save plot to temporary file
|