Create pages/3 EDA.py
Browse files- pages/3 EDA.py +43 -0
pages/3 EDA.py
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
# Page Title
|
4 |
+
st.title("π Exploratory Data Analysis (EDA)")
|
5 |
+
|
6 |
+
# Data Exploration Section
|
7 |
+
st.markdown("""
|
8 |
+
### π Data Exploration:
|
9 |
+
The dataset was analyzed to uncover patterns and relationships between features and depression status.
|
10 |
+
|
11 |
+
Key areas of focus included:
|
12 |
+
- Distribution of depression across genders
|
13 |
+
- Impact of academic pressure on depression risk
|
14 |
+
- Correlation between sleep duration and mental well-being
|
15 |
+
- Relationship between financial stress and depression
|
16 |
+
- Influence of CGPA and dietary habits on student mental health
|
17 |
+
""")
|
18 |
+
|
19 |
+
# Key Observations Section
|
20 |
+
st.markdown("""
|
21 |
+
### π Key Observations:
|
22 |
+
- Students reporting **higher academic pressure** were more likely to show signs of depression
|
23 |
+
- **Inadequate sleep** and **unbalanced diet** were common among students predicted as depressed
|
24 |
+
- **Financial stress** and **low CGPA** had strong associations with depression
|
25 |
+
- Female students showed slightly higher reported cases of depression in the dataset
|
26 |
+
""")
|
27 |
+
|
28 |
+
# Visualization Techniques Section
|
29 |
+
st.markdown("""
|
30 |
+
### π Visualization Techniques:
|
31 |
+
- **Countplots** to examine category distributions like gender, class, and stress levels
|
32 |
+
- **Boxplots** to explore spread and variation in numerical features (e.g., CGPA, Age)
|
33 |
+
- **Heatmaps** to visualize feature correlations and identify multicollinearity
|
34 |
+
|
35 |
+
These insights helped refine feature selection and informed model-building decisions.
|
36 |
+
""")
|
37 |
+
|
38 |
+
|
39 |
+
if st.button("Next >>"):
|
40 |
+
st.switch_page(r"pages\4 Feature Engineering.py")
|
41 |
+
|
42 |
+
if st.button("<< Back"):
|
43 |
+
st.switch_page(r"pages\2 Data Understanding.py")
|