Skip to content

About

Statistical analysis of a Finnish time-use survey (EDA, PCA, hypothesis testing) – University of Turku course project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Statistical Data Analysis – Finnish Time-Use Survey

Project for the course Statistical Data Analysis (TKO_7093), University of Turku, autumn 2026.

Overview

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).

Repository contents

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

Methods

  1. Data preparation: Finnish column names translated to English, codes mapped to readable labels, checks for duplicates and missing values
  2. Exploratory and descriptive statistics: mean, median, standard deviation, skewness, distributions, household-level averages
  3. Principal Component Analysis (PCA): standardised working, sleeping and reading times; PC1 explains about 46% of the variance and PC1 + PC2 about 80%
  4. Statistical testing: Shapiro–Wilk for normality, then non-parametric tests (Mann–Whitney U, Kruskal–Wallis) and Chi-squared tests

Key results

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.

How to run

git clone https://github.com/rislam21/statistical-data-analysis.git
cd statistical-data-analysis
pip install -r requirements.txt
jupyter notebook stat_project.ipynb

Keep habits.data in the same folder as the notebook, because the notebook loads it by that file name.

Tools

Python · pandas · NumPy · Matplotlib · Seaborn · scikit-learn · SciPy · Jupyter

Data source

Time-use survey data from Statistics Finland, provided for the course. Copyright in the data belongs to its original owner.

About

Statistical analysis of a Finnish time-use survey (EDA, PCA, hypothesis testing) – University of Turku course project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages