Project for the course Statistical Data Analysis (TKO_7093), University of Turku, autumn 2026.
This project looks at daily activity patterns in a Finnish time-use survey dataset from Statistics Finland: 780 individuals from 494 households. It focuses on time spent working, sleeping and reading, and on whether people dine at restaurants or visit libraries. It compares these patterns across day types (working day vs weekend) and living environments (city, municipality, rural area).
| File | Description |
|---|---|
stat_project.ipynb |
Full analysis notebook (data preparation, EDA, descriptive statistics, PCA, statistical testing) |
habits.data |
Raw semicolon-separated survey data used by the notebook |
presentation/Statistical_Data_Analysis.pdf |
Presentation slides summarising methods and results |
requirements.txt |
Python packages needed to run the notebook |
- Data preparation: Finnish column names translated to English, codes mapped to readable labels, checks for duplicates and missing values
- Exploratory and descriptive statistics: mean, median, standard deviation, skewness, distributions, household-level averages
- Principal Component Analysis (PCA): standardised working, sleeping and reading times; PC1 explains about 46% of the variance and PC1 + PC2 about 80%
- Statistical testing: Shapiro–Wilk for normality, then non-parametric tests (Mann–Whitney U, Kruskal–Wallis) and Chi-squared tests
| Activity | Comparison | Test | p-value | Significant |
|---|---|---|---|---|
| Working | Day type | Mann–Whitney U | 0.657 | No |
| Sleeping | Day type | Mann–Whitney U | 0.499 | No |
| Reading | Day type | Mann–Whitney U | 0.052 | No |
| Dining at restaurant | Day type | Chi-squared | 0.241 | No |
| Visiting library | Day type | Chi-squared | 0.823 | No |
| Working | Living environment | Kruskal–Wallis | 0.912 | No |
| Sleeping | Living environment | Kruskal–Wallis | 0.0046 | Yes |
| Reading | Living environment | Kruskal–Wallis | 0.724 | No |
| Dining at restaurant | Living environment | Chi-squared | 7.36e-05 | Yes |
| Visiting library | Living environment | Chi-squared | 0.096 | No |
In short: day type showed no significant differences. Living environment was significantly associated with sleeping time and restaurant dining.
git clone https://github.com/rislam21/statistical-data-analysis.git
cd statistical-data-analysis
pip install -r requirements.txt
jupyter notebook stat_project.ipynbKeep habits.data in the same folder as the notebook, because the notebook loads it by that file name.
Python · pandas · NumPy · Matplotlib · Seaborn · scikit-learn · SciPy · Jupyter
Time-use survey data from Statistics Finland, provided for the course. Copyright in the data belongs to its original owner.