A modern Streamlit web application that predicts student scores based on study hours using simple linear regression. This educational tool helps students, teachers, and researchers visualize the relationship between study time and academic performance.
- Interactive Data Analysis: Upload your own dataset or use the sample data
- Real-time Predictions: Slider to predict scores for any number of study hours
- Comprehensive Visualizations: Professional charts showing regression analysis
- Model Evaluation Metrics: MSE, R-squared, and confidence intervals
- Detailed Residual Analysis: View prediction errors for each data point
- Downloadable Results: Export predictions as CSV for further analysis
- Responsive Design: Works seamlessly on desktop and mobile devices
- Clone the repository:
git clone https://github.com/your-username/modern.git
cd modern- Install the required dependencies:
pip install -r requirements.txt- Run the Streamlit application:
streamlit run app.py- Python 3.7+
- Streamlit 1.20+
- Pandas 1.5+
- NumPy 1.24+
- scikit-learn 1.2+
- Matplotlib 3.7+
- Launch the application by running
streamlit run app.py - Upload your data (CSV format with "Hours" and "Scores" columns) or use sample data
- Explore the analysis:
- View data statistics and visualizations
- Adjust the slider to predict scores for different study hours
- Examine detailed prediction results in the expandable section
- Download results using the CSV download button
modern/
├── app.py # Main Streamlit application
├── requirements.txt # Python dependencies
├── README.md # Project documentation
└── sample_data/ # Sample dataset
└── scores.csv
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Streamlit - For the amazing framework
- scikit-learn - For the machine learning implementation
- Matplotlib - For beautiful visualizations
Note: This application is designed for educational purposes to demonstrate simple linear regression concepts. Actual student performance depends on many factors beyond study hours.
Made with ❤️ for students | Project: modern