Math Visualization Assignment
This project is a Python-based mathematical visualization assignment using NumPy and Matplotlib.
The purpose of this project is to visualize mathematical functions and student score data using different graph types such as:
- line plots
- scatter plots
- histograms
- bar charts
- prediction graphs
The project also demonstrates the use of a best-fit line for simple prediction analysis.
The following Python libraries were used in this project:
- NumPy
- Matplotlib
Install the required libraries using:
pip install numpy matplotlibRun the Python file using:
python math_visualization.pyOr run the notebook file:
math_visualization.ipynbVisualization helps people understand mathematical patterns, trends, and relationships more clearly.
Instead of only reading equations or numerical values, graphs allow us to visually analyze how functions behave and how data changes.
Visualization also makes complex information easier to interpret.
The most useful plot in this assignment was the best-fit prediction graph.
This graph clearly showed the relationship between midterm and final scores and helped visualize prediction using a linear regression line.
It was useful because it combined both data analysis and visualization together.
NumPy was used for:
- mathematical calculations
- creating arrays
- generating function values
- performing numerical operations
Matplotlib was used for:
- plotting graphs
- visualizing data
- creating charts
- customizing figures with titles, labels, legends, and grids
The following files are generated after running the code:
function_plot.png
own_equation.png
score_scatter.png
score_histogram.png
score_bar_chart.png
score_prediction.png
math-visualization-assignment/
│
├── math_visualization.py
├── function_plot.png
├── own_equation.png
├── score_scatter.png
├── score_histogram.png
├── score_bar_chart.png
├── score_prediction.png
└── README.md
Through this assignment, I learned:
- mathematical visualization
- graph plotting in Python
- data analysis techniques
- the use of NumPy and Matplotlib
- organizing an open-source style GitHub project
This project improved my understanding of how visualization can make mathematical concepts and data easier to understand.

