This simple desktop application allows users to input pairs of coordinates (x, y) and calculate the Pearson Correlation Coefficient to determine the degree of correlation between two datasets.
- Add individual data points (x, y) to the dataset.
- Calculate the Pearson Correlation Coefficient along with other statistical measures.
- Load data from a file (CSV format) for analysis.
- Display results in a tabular output area.
- Bonus: Visualize the data with a scatter plot. 📈
To run the application, make sure you have Python installed on your system.
- Clone or download the repository.
- Install the required packages by running
pip install numpy matplotlib
in your terminal. - Run the application using
python correlation_app.py
.
- Enter x and y coordinates in the input fields.
- Click the "Add" button to add the data point to the dataset.
- Repeat steps 1-2 for additional data points.
- Click the "Calculate" button to perform the correlation analysis.
- Optionally, click the "Load Data" button to load data from a file (CSV format).
- View the results in the tabular output area.
- Bonus: Visualize the data with a scatter plot.
- The application provides error messages for invalid input and missing data.
- If an error occurs during the loading of data from a file, an error message will be displayed.
Feel free to contribute to the development of this project. You can open issues, submit pull requests, or provide suggestions for improvements.