Question

In: Statistics and Probability

The amount of beef produced on private farms in a particular country has changed over time....

The amount of beef produced on private farms in a particular country has changed over time. This table gives approximate values for the amount of beef produced for particular years in that country.

Years since 1989 Amount of beef produced (million pounds; nearest hundredth)

0

108.35
5 101.95
9 96.85
12 90.15
15 83.05
19 79.75
22 76.25
27 73.45  

1.With linear regression, what is the value of the coefficient of determination (give the entire decimal)?

2. With quadratic regression, what is the value of the coefficient of determination (give the entire decimal)?

3. When making predictions that are within the original domain and range values of data from the table, which predictions would be 'best': when using linear regression OR when using quadratic regression?

Solutions

Expert Solution

I ran this regression with R

data
years.since.1989 Amount.of.beef.produced
1 0 108.35
2 5 101.95
3 9 96.85
4 12 90.15
5 15 83.05
6 19 79.95
7 22 76.25
8 27 73.45
>
1).

#fitting linear
model_lm = lm(data$Amount.of.beef.produced~data$years.since.1989,data=data)
summary(model_lm)

Call:
lm(formula = data$Amount.of.beef.produced ~ data$years.since.1989,
data = data)

Residuals:
Min 1Q Median 3Q Max
-3.7855 -0.9760 -0.1049 1.3085 3.3224

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 107.72049 1.58349 68.03 6.79e-10 ***
data$years.since.1989 -1.39233 0.09894 -14.07 8.04e-06 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 2.35 on 6 degrees of freedom
Multiple R-squared: 0.9706,   Adjusted R-squared: 0.9657
F-statistic: 198 on 1 and 6 DF, p-value: 8.038e-06

Here, in linear model, Multiple R-squared: 0.9706,   Adjusted R-squared: 0.9657

2).

#fitting quadratic model
model_quad = lm(data$Amount.of.beef.produced~poly(data$years.since.1989,2,raw=TRUE))
summary(model_quad)

Call:
lm(formula = data$Amount.of.beef.produced ~ poly(data$years.since.1989,
2, raw = TRUE))

Residuals:
1 2 3 4 5 6 7 8
-1.4918 1.1566 2.6126 0.4314 -2.4911 -0.5521 -0.8711 1.2054

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 109.84182 1.73475 63.319 1.86e-08
poly(data$years.since.1989, 2, raw = TRUE)1 -1.90450 0.28298 -6.730 0.0011
poly(data$years.since.1989, 2, raw = TRUE)2 0.01896 0.01002 1.893 0.1170

(Intercept) ***
poly(data$years.since.1989, 2, raw = TRUE)1 **
poly(data$years.since.1989, 2, raw = TRUE)2
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 1.965 on 5 degrees of freedom
Multiple R-squared: 0.9829,   Adjusted R-squared: 0.976
F-statistic: 143.4 on 2 and 5 DF, p-value: 3.843e-05

For quadratic regression, Multiple R-squared: 0.9829,   Adjusted R-squared: 0.976

3).

Since, Adjusted R-squared for quadractic is greater than that of linear regression. Quadratic regression will give better fitted values. (0.976 > 0.9657)

  • Predicted values under linear regression

model_lm$fitted.values

1 2 3 4 5 6 7 8
107.72049 100.75885 95.18953 91.01254 86.83555 81.26623 77.08924 70.12759

  • Predicted values under quadratic regression

model_quad$fitted.values
1 2 3 4 5 6 7 8
109.84182 100.79341 94.23736 89.71855 85.54108 80.50210 77.12109 72.24460

As, it can been predictions of quadratic are closer to original data

plot(data$years.since.1989,data$Amount.of.beef.produced)


Related Solutions

How has Target's corporate strategy changed over time?
How has Target's corporate strategy changed over time?
2.​Welcome Farms Ltd. uses IFRS and has an April 30year-end. Welcome Farms raises beef calves for...
2.​Welcome Farms Ltd. uses IFRS and has an April 30year-end. Welcome Farms raises beef calves for market. Prepare journal entries for the following: ​On November 30, 2017, the farm purchased 20 calves at a total cost of $2,800. The farm capitalizes feed and labour costs incurred to look after the calves. These costs amount to $175per month. Account name Dr Cr On April 30, 2018, the calves had a fair value of $4,900. The farm estimated that the calves would...
How has the need for space changed over time? Incorporate such features as the categories of...
How has the need for space changed over time? Incorporate such features as the categories of personal space, as well as issues tied to territoriality. How have these changes impacted how individuals communicate with one another?
Exhibit 3 The amount of time the car has to wait at a particular stoplight is...
Exhibit 3 The amount of time the car has to wait at a particular stoplight is normally distributed with the mean and the standard deviation of 61 seconds and 9 seconds, respectively. A random sample of 25 cars passing through this stoplight was taken. Question 14 Refer to Exhibit 3. What is the probability that the next car has to wait more than 36 seconds but less than 52 seconds at the stoplight? (Round to the nearest four decimal place....
How has the orientation of Deutsche Bank changed over time in terms of business segments and...
How has the orientation of Deutsche Bank changed over time in terms of business segments and global nature? Why? In what data/statistics do you observe it? Do you agree with its strategy? Is Deutsche Bank the only bank that has increased its international exposure?
To try to determine whether the composition of the earth’s atmosphere has changed over time, scientists...
To try to determine whether the composition of the earth’s atmosphere has changed over time, scientists can examine the gas in bubbles trapped inside ancient amber.  (That’s the plot of Jurassic Park.) Assume that the following 9 measures are a random sample from the late Cretaceous era (75 to 95 million years ago). The data represent the percent of nitrogen in each sample. 63.4     65.0     64.4     63.3     54.8     64.5     60.8     49.1     51.0 You asked to conduct a hypothesis test to determine whether the mean is less than 61. 1....
Discuss how the study of child and adolescent development has changed over time? And describe the...
Discuss how the study of child and adolescent development has changed over time? And describe the five theoretical perspectives, including the major theorists associated with each???
Choose a skill that you do in your everyday practice that has changed over time due...
Choose a skill that you do in your everyday practice that has changed over time due to evidence-based practice. Give an example of the skill and data that was used to change the way the skill to its present-day usage. What were the areas that needed to be improved with this skill and how Evidence-Based Practice has improved the skill? Grading rubric Discussion Three Grading Rubric Example of the skill 15% Identified data that was used to change the skill...
The emphasis on public health nursing has changed over time. After careful review of the reading,...
The emphasis on public health nursing has changed over time. After careful review of the reading, answer the following questions: What priorities would you set for the work of the public health nurse in today’s society? How should a nurse balance the relationship between advocacy and case management?
sociology: Briefly describe how the meaning of old age has changed over time in the United...
sociology: Briefly describe how the meaning of old age has changed over time in the United States.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT