The data set used focuses on the alcohol consumption of student in secondary school. The data was collected through a survey of students in a math language course at two different schools. We are looking specifically at the correlation between study time and absences.
The data set has 32 independent variables and 1 dependent variable, the dependent variable being failure. The data will be focused on school Absences using simple linear regression.
A pair wise scatter plot is being preformed to show the correlation
between variables that do not already correlate with other independent
variables.
When running a parametric test we must check for normality, constant
variance. linearity, and influential points. The residual v fit plot
shows a pattern, has all points in each section in a straight line, and
shows that the data is not randomly distributed and do not have a
constant variance. The normal Q-Q plot has a very noticeable right skew
showing the data is not normally distributed. The scale-location plot
shows the data is not spread out on an even spread. We see a influential
point at 207.There is an outlier in all of the plots at 227 and 185.
Bootstrap linear regression method was run over and over to find the distribution and the 95% confidence interval of the different regression models.
When looking at the histogram we see the data is normally distributed.
We see that there is a correlation between study time and absences. By using the bootstrap method we were able to come to the conclusion of correlation using a non parametric way.
Based on the results of the simple linear regressions tests run we see the bootstrap method is much better as it repeats the test over and over and therefore gives us a more accurate answer. We see this shown in the histograms as they show the data is normally distributed.
Zubair, A(2023) “student-mat.csv” https://www.kaggle.com/uciml/student-alcohol-consumption