Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/friendotjava/student-final-grade-prediction
A machine learning project predicting students' final grade using Linear Regression.
https://github.com/friendotjava/student-final-grade-prediction
jupyter-notebook linear-regression machine-learning python students-prediction
Last synced: about 1 month ago
JSON representation
A machine learning project predicting students' final grade using Linear Regression.
- Host: GitHub
- URL: https://github.com/friendotjava/student-final-grade-prediction
- Owner: FrienDotJava
- Created: 2025-01-15T15:03:28.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-01-15T15:38:33.000Z (about 1 month ago)
- Last Synced: 2025-01-15T17:50:39.670Z (about 1 month ago)
- Topics: jupyter-notebook, linear-regression, machine-learning, python, students-prediction
- Language: Jupyter Notebook
- Homepage:
- Size: 780 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Predicting Student Final Grades Using Linear Regression
This project demonstrates how to predict students' final grades using Linear regression, Ridge Regression, and Lasso Regression. The dataset contains academic and demographic data about students, and the model aims to provide insights into factors influencing academic performance.
## Overview
Student performance prediction can help educators identify at-risk students and implement interventions to improve academic outcomes. This project uses linear regression to:
- Analyze relationships between features (e.g., study time, attendance) and final grades.
- Predict student grades based on input data.## Dataset
The dataset used in this project is sourced from [UCI Machine Learning Repository - Student Performance Dataset](https://archive.ics.uci.edu/ml/datasets/Student+Performance). It includes attributes like:
- Demographic data (age, gender, etc.)
- Academic performance (grades, study time, failures, etc.)
- Social factors (family support, extracurricular activities, etc.)## Features
Key features used in the prediction model include:
- `studytime`: Weekly study time.
- `failures`: Number of past class failures.
- `absences`: Number of school absences.
- `G1`, `G2`: Grades from the first and second terms.## Model
The project employs three different models:
- Linear Regression
- Ridge Regression
- Lasso Regression### Workflow
1. Data preprocessing: Cleaning and encoding categorical variables.
2. Exploratory Data Analysis (EDA): Visualizing relationships between features.
3. Model training: Fitting the models.
4. Evaluation: Measuring performance using metrics like MAE, MSE, and R² score.## Results
The models achieved the following results:
1. Linear Regression
- **R² Score**: 0.73
- **Mean Absolute Error (MAE)**: 1.62
- **Mean Squared Error (MAE)**: 5.59
2. Ridge Regression
- **R² Score**: 0.72
- **Mean Absolute Error (MAE)**: 1.65
- **Mean Squared Error (MAE)**: 5.65
3. Lasso Regression
- **R² Score**: 0.76
- **Mean Absolute Error (MAE)**: 1.42
- **Mean Squared Error (MAE)**: 4.69These results indicate the models perform well for predicting student final grades based on the given features.