Question
Problem 2 You need to address the question: how is the length of a bluegill fish related to its age? You can describe the nature
Problem 2
You need to address the question: how is the length of a bluegill fish related to its age? You can describe the nature of the regression function based on the model you built. For the regression model, you need to compute the R-squared value for this model and plot the data along with the best fit curve.
For the plots, you should plot data points (x,y) as blue dots and your best fit curve (aka model) as a red solid line. You should also label the axes of this figure appropriately and have a title reporting information including degree of your regression model and R-square of your model evaluated on the given data points.
The data is a text file called bluegill.txt and this is the information.
age length 1 67 1 62 2 109 2 83 2 91 2 88 3 137 3 131 3 122 3 122 3 118 3 115 3 131 3 143 3 142 2 123 3 122 4 138 4 135 4 146 4 146 4 145 4 145 4 144 4 140 4 150 4 152 4 157 4 155 4 153 4 154 4 158 4 162 4 161 4 162 4 165 4 171 5 171 4 162 4 169 4 167 5 188 2 100 2 109 4 150 3 140 4 170 3 150 4 140 4 140 4 150 4 150 3 140 3 150 3 150 4 150 4 160 3 140 4 150 5 170 4 150 5 150 4 150 4 150 3 150 5 150 5 160 4 140 5 160 3 130 4 160 3 130 4 170 6 170 4 160 5 180 4 160 4 170
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started