Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen time analysis using linear regression #1047

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Date,Usage,Notifications,Times opened,App
08/26/2022,38,70,49,Instagram
08/27/2022,39,43,48,Instagram
08/28/2022,64,231,55,Instagram
08/29/2022,14,35,23,Instagram
08/30/2022,3,19,5,Instagram
08/31/2022,19,25,20,Instagram
09/01/2022,44,23,57,Instagram
09/02/2022,16,28,22,Instagram
09/03/2022,27,15,25,Instagram
09/04/2022,72,29,30,Instagram
09/05/2022,42,24,51,Instagram
09/06/2022,19,34,25,Instagram
09/07/2022,38,23,19,Instagram
09/08/2022,71,48,43,Instagram
09/09/2022,43,68,70,Instagram
09/10/2022,45,71,70,Instagram
09/11/2022,94,180,95,Instagram
09/12/2022,114,99,102,Instagram
09/13/2022,17,45,39,Instagram
09/14/2022,1,10,2,Instagram
09/15/2022,2,15,4,Instagram
09/16/2022,3,13,5,Instagram
09/17/2022,2,9,3,Instagram
09/18/2022,3,8,5,Instagram
09/19/2022,4,8,3,Instagram
09/20/2022,5,11,5,Instagram
09/21/2022,2,12,8,Instagram
08/26/2022,82,209,105,Whatsapp
08/27/2022,69,111,68,Whatsapp
08/28/2022,130,183,86,Whatsapp
08/29/2022,59,157,74,Whatsapp
08/30/2022,128,246,87,Whatsapp
08/31/2022,108,169,77,Whatsapp
09/01/2022,23,99,47,Whatsapp
09/02/2022,76,144,103,Whatsapp
09/03/2022,1,80,16,Whatsapp
09/04/2022,6,38,33,Whatsapp
09/05/2022,126,218,121,Whatsapp
09/06/2022,91,205,110,Whatsapp
09/07/2022,160,212,83,Whatsapp
09/08/2022,69,217,82,Whatsapp
09/09/2022,119,405,192,Whatsapp
09/10/2022,103,166,79,Whatsapp
09/11/2022,203,173,92,Whatsapp
09/12/2022,182,290,172,Whatsapp
09/13/2022,71,153,91,Whatsapp
09/14/2022,64,192,67,Whatsapp
09/15/2022,50,181,58,Whatsapp
09/16/2022,71,176,91,Whatsapp
09/17/2022,212,212,120,Whatsapp
09/18/2022,244,303,132,Whatsapp
09/19/2022,77,169,105,Whatsapp
09/20/2022,58,190,78,Whatsapp
09/21/2022,89,262,68,Whatsapp
41 changes: 41 additions & 0 deletions Machine Learning and Data Science/Basic/screen-time/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Smartphone App Usage Analysis

This folder contains data(.csv file) and code for analyzing smartphone app usage statistics. The analysis explores various metrics such as usage duration, notifications received, and times opened for different apps.

## Dataset

The dataset (`Screentime-App-Details.csv`) consists of the following columns:

- **Date:** Date of the data entry.
- **Usage:** Duration of app usage in minutes.
- **Notifications:** Number of notifications received from the app.
- **Times Opened:** Count of times the app was opened.
- **App:** Name of the app.

## Analysis

### Data Exploration

The Jupyter Notebook (`screen-time-LR.ipynb`) explores the dataset through descriptive statistics, data visualization, and insights into user behavior. The analysis includes:

- Distribution and trends of app usage over time.
- Relationships between different variables such as usage, notifications, and times opened.
- Correlation analysis to understand the associations between variables.

### Model Building

The notebook also includes machine learning model development for predicting app usage based on features like notifications and times opened. Key steps include:

- Data preprocessing, including handling categorical variables and splitting the dataset into training and testing sets.
- Training a linear regression model and evaluating its performance using Root Mean Squared Error (RMSE).

### Conclusion

The analysis provides insights into smartphone app usage patterns and demonstrates the performance of the predictive model. It discusses the model's strengths and limitations, suggests potential areas for further exploration, and highlights opportunities for improving predictive accuracy.

## Requirements

- Python 3.7 onwards
- Jupyter Notebook
- Libraries: pandas, numpy, matplotlib, seaborn, plotly, scikit-learn

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Machine Learning and Data Science/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
| 13. | [Linear Regression from scratch](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Linear%20Regression%20from%20scratch) | 14. | [Medical Data Visualizer](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Medical%20Data%20Visualizer) | 15. | [Medical Insurance Prediction](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Medical%20Insurance%20Prediction) |
| 16. | [Movie Recommendation System](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Movie%20Recommendation%20System) | 17. | [Page View Time Series Visualizer](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Page%20View%20Time%20Series%20Visualizer) | 18. | [Sea Level Predictor](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Sea%20Level%20Predictor) |
| 19. | [Single Neural Network](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Single%20Neural%20Network) | 20. | [Titanic Survival Prediction](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Titanic_Survival_Prediction) | 21. | [Uber Analysis](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Uber%20Analysis) |
| 22. | [Walmart Analysis](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Walmart%20Analysis) | 23. | [Wine Quality Prediction](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Wine%20Quality%20Prediction) |
| 22. | [Walmart Analysis](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Walmart%20Analysis) | 23. | [Wine Quality Prediction](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/Wine%20Quality%20Prediction) | 24. | [Screen time analysis](https://github.com/Kushal997-das/Project-Guidance/tree/main/Machine%20Learning%20and%20Data%20Science/Basic/screen-time) |

<br>

Expand Down
Loading