A simple Flutter application for performing linear regression on CSV data. The app allows users to upload a CSV file, calculate the linear regression model, and visualize the regression line on a chart.
- Upload a CSV file with X and Y columns.
- Calculate and display the linear regression line in
y = mx + c
format. - Visualize the data and regression line on a chart.
- User-friendly interface for easy interaction.
Follow these steps to set up and run the Linear Regression Flutter App on your local machine.
- Flutter SDK installed on your machine. You can install Flutter here.
Clone the repository:
git clone https://github.com/your-username/linear-regression-flutter-app.git
Navigate to the project directory:
cd linear-regression-flutter-app
Get the dependencies:
flutter pub get
Run the app:
flutter run
-
Open the app on an emulator or physical device.
-
Click the "Upload CSV File" button and select a CSV file with X and Y columns.
-
The app will calculate the linear regression model and display the regression line on the chart.
-
View the linear regression equation below the chart in y = mx + c format.
The app uses the csv package to parse the uploaded CSV file. It calculates the linear regression model based on the X and Y values in the file. The regression line is visualized on a chart using the fl_chart package.