Data Analysis by Correlation and Regression
Data Analysis by Correlation and Regression
and Regression
YASHVA
Data Analysis
Compariso
n
Relationship between average temperature and ice cream sales
Data Source:
Newcastle University is a UK public research university
based in Newcastle upon Tyne, North East England. It
has overseas campuses in Singapore and Malaysia. The
university is a red brick university and member of the
Russell Group, an association of research-intensive UK
universities.
https://www.kaggle.com/vinicius150987/ice-cream-
revenue
It appears that, as the average temperature increases, sales
also increase. We say such a relationship is a positive
relationship.
Regression
Regression Statistics
Multiple R 0.989802
R Square 0.979707
Adjusted R Square 0.979666
Standard Error 1.15451
Observations 500
• To check the distribution of dependent variables
and independent variables and see whether they
are normally distributed.
• The variable that is supposed to be normally
distributed is just the prediction error. What is a
prediction error? It is the deviation of the model
prediction results from the real results.
• Y = Coefficient * X + Intercept + Prediction Error
• Prediction error should follow a normal
distribution with a mean of 0.