Machine Learning Pycaret : Improve Math Score in Institutes
This article was published as a part of the Data Science Blogathon.
Academia is the integral coaching zone for humanity’s future talent and the development of new approaches toward our survival as human species in terms of task execution and thinking. The academic score is an indicator used for performance assessment and management by schools and institutions, where rank and scale student talent and ability.
We first see all the variables in the dataset and which variables we need for targets and their related attributions towards generating a prediction correctly. We have to use relatable and dependent variables toward a predictive outcome.
We can see that our dataset has multiple dependent and independent variables which showcase academic workflow and social and motivational influencing factors towards.
Our goal with the dataset is to predict the future math scores and related variables to see its interactive expedition.
We will choose ‘math score’ as our target variable against all remaining variables to get the correct prediction with a 30% Split. We will use 70% training and 30% testing(unseen) data for predictive accuracy.
We can see above that math score is linearly influenced by reading and writing scores showing students who are good at reading and writing can also learn maths at a good pace.
We first transform all categorical variables using a label encoder to make it easier for Machine Learning modeling to detect inputs and give outputs. As shown below:
As shown above, our inputs have transformed into a readable format for ML algorithms.
We feed our transformed data into Pycaret algorithms and get model recommendations below.
Our model choices from the list above are:
- One class SVM(svm)
- Isolation forest(forest).
- Principal Component Analysis(PCA).
They are the best choices for accounting outliers into our data fitting and forecasting datasets with accuracy even if the linear data becomes non-linear at any point of the journey and help us identify and reduce those irrelevant data points to achieve accuracy in predictions as math scores involve grading beyond percentile levels and can create anomalies.
We can see Linear relationships in all three model visualizations. We choose PCA as our best predictive approach amongst all three as data shows best fitted in it with anomalies accounted.
After conducting our Exploratory analysis of our PCA model predictions generated, we can create insights for education strategy development to improve math scores earnt by students.
We can see that males are getting better-predicted grades for maths than females, which might demotivate females from improved scores. Thus, extra classes for maths need to be provided to females at their discretion to allow them to improve without demotivation.
We have to identify Group D as they are showing the best predictive math scores so they can help other groups in math teaching assistance.
We are noticing that female parents are showing higher predicted levels of education. However, in terms of math scores, males still receive more grades at the top quartile, thus showing that cultural factors or promoting male education at Home and School may be the outer influencing variable behind it.
Modeling Machine Learning life cycle Programming
We were able to get an analysis of the Female grading and model predictions of it and insight into cultural trends in our education settings.
With the implementation and analysis of our machine learning workflow above, we can:
- Create Improvement plans for female academic performance in classrooms.
- Do awareness sessions on education and the importance of meritocracy in bridging the gap between success likelihood between males and females.
- Invest in a gender-neutral curriculum and encourage females in STEM-based subject selection as we can see higher rates of male performance within it.
Project Implementation process
To implement machine learning workflow at any institute, we need to follow a particular sequence of steps, including pilot testing and feasibility study, which include:
- Conduct data analysis on the ratio of school genders.
- Check academic success records of female and male students and other recognized genders in school settings.
- Check which gender lacks Academic success.
- Sign an agreement between the Institute and the implementor regarding data migration and usage.
- Ensure all ethical guidelines are met on the dataset used.
- Feature engineer the variables “gender”, “race/ethnicity”, “parental level of education”, “lunch”,”test preparation course”, “math score”, “reading score”, “writing score”.
- Run the model on the data and see if it needs cross-validation for more improvement.
- Deploy it on the Institute’s cloud server or local machines once the test run is successful with the stakeholder’s agreement.
The media shown in this article is not owned by Analytics Vidhya and is used at the Author’s discretion.
Leave a Reply Your email address will not be published. Required fields are marked *