In: Statistics and Probability
The data for heights are as follows
151, 174, 138, 186, 128, 136, 179, 163, 152, 131
The data for weight are as follows
63, 81, 56, 91, 47, 57, 76, 72, 62, 48
Using the data above
Create a relationship model
Find the coefficients from the model created and create the
mathematical equation.
Get a summary of the relationship model to know the average error
in prediction.
Predict the weight of new persons.
Plot the regression equation for the above data. In addition to
that include “Your full name”
as title and set the scatterplot Green .Label the y-axis and x
–axis. Use abline function to
include a line.
Relationship between the height and weight would be defined as followed:
Coefficient of the model would be as followed:
Mathematical linear equation would be:
Weight= -38.46+0.67(Height)
Summary of the relationship model to know the average error in prediction would be as followed:
Average of the residuals is
7.10543E-15 |
Predictions of weight of new persons would be:
Plot would be as followed: