1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kap26 [50]
3 years ago
4

The data file wages contains monthly values of the average hourly wages (in dollars) for workers in the U.S. apparel and textile

products industry for July 1981 through June 1987.
a. Display and interpret the time series plot for these data.

b. Use least squares to fit a linear time trend to this time series. Interpret the regression output. Save the standardized residuals from the fit for further analysis.

c. Construct and interpret the time series plot of the standardized residuals from part (b).

d. Use least squares to fit a quadratic time trend to the wages time series. (i.e y(t)=βo+β1t+β2t^2+et). Interpret the regression output. Save the standardized residuals from the fit for further analysis.

e. Construct and interpret the time series plot of the standardized residuals from part (d).

Mathematics
1 answer:
Nataliya [291]3 years ago
5 0

Answer:

a. data(wages)

plot(wages, type='o', ylab='wages per hour')

Step-by-step explanation:

a.  Display and interpret the time series plot for these data.

#take data samples from wages

data(wages)

plot(wages, type='o', ylab='wages per hour')

see others below

b. Use least squares to fit a linear time trend to this time series. Interpret the regression output. Save the standardized residuals from the fit for further analysis.

#linear model

wages.lm = lm(wages~time(wages))

summary(wages.lm) #r square is correct

##  

## Call:

## lm(formula = wages ~ time(wages))

##  

## Residuals:

##      Min       1Q   Median       3Q      Max  

## -0.23828 -0.04981  0.01942  0.05845  0.13136  

##  

## Coefficients:

##               Estimate Std. Error t value Pr(>|t|)    

## (Intercept) -5.490e+02  1.115e+01  -49.24   <2e-16 ***

## time(wages)  2.811e-01  5.618e-03   50.03   <2e-16 ***

## ---

## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

##  

## Residual standard error: 0.08257 on 70 degrees of freedom

## Multiple R-squared:  0.9728, Adjusted R-squared:  0.9724  

## F-statistic:  2503 on 1 and 70 DF,  p-value: < 2.2e-16

c. plot(y=rstandard(wages.lm), x=as.vector(time(wages)), type = 'o')

d. #we find Quadratic model trend

wages.qm = lm(wages ~ time(wages) + I(time(wages)^2))

summary(wages.qm)

##  

## Call:

## lm(formula = wages ~ time(wages) + I(time(wages)^2))

##  

## Residuals:

##       Min        1Q    Median        3Q       Max  

## -0.148318 -0.041440  0.001563  0.050089  0.139839  

##  

## Coefficients:

##                    Estimate Std. Error t value Pr(>|t|)    

## (Intercept)      -8.495e+04  1.019e+04  -8.336 4.87e-12 ***

## time(wages)       8.534e+01  1.027e+01   8.309 5.44e-12 ***

## I(time(wages)^2) -2.143e-02  2.588e-03  -8.282 6.10e-12 ***

## ---

## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

##  

## Residual standard error: 0.05889 on 69 degrees of freedom

## Multiple R-squared:  0.9864, Adjusted R-squared:  0.986  

## F-statistic:  2494 on 2 and 69 DF,  p-value: < 2.2e-16

#time series plot of the standardized residuals

plot(y=rstandard(wages.qm), x=as.vector(time(wages)), type = 'o')

wages.qm = lm(wages ~ time(wages) + I(time(wages)^2))

summary(wages.qm)

##  

## Call:

## lm(formula = wages ~ time(wages) + I(time(wages)^2))

##  

## Residuals:

##       Min        1Q    Median        3Q       Max  

## -0.148318 -0.041440  0.001563  0.050089  0.139839  

##  

## Coefficients:

##                    Estimate Std. Error t value Pr(>|t|)    

## (Intercept)      -8.495e+04  1.019e+04  -8.336 4.87e-12 ***

## time(wages)       8.534e+01  1.027e+01   8.309 5.44e-12 ***

## I(time(wages)^2) -2.143e-02  2.588e-03  -8.282 6.10e-12 ***

## ---

## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

##  

## Residual standard error: 0.05889 on 69 degrees of freedom

## Multiple R-squared:  0.9864, Adjusted R-squared:  0.986  

## F-statistic:  2494 on 2 and 69 DF,  p-value: < 2.2e-16

e. #time series plot of the standardized residuals

plot(y=rstandard(wages.qm), x=as.vector(time(wages)), type = 'o')

You might be interested in
Find the area and the circumference of a circle with radius 6cm.
OLga [1]

Answer:

Step-by-step explanation:

The formula for determining the circumference of a circle is expressed as

Circumference = 2πr

Where

r represents the radius of the circle

π is a constant whose value is 3.14

From the information given,

Radius = 6 cm

Therefore,

Circumference = 2 × 3.14 × 6

Circumference = 37.68 cm

The formula for determining the area of a circle is expressed as

Area = πr²

Area = 3.14 × 6² = 113.04 cm²

4 0
4 years ago
The Ross family had 100 relatives at their big Thanksgiving dinner of all the guest nine he had French heritage 80 had English h
il63 [147K]
Hi, Deedee. I am quite confused with the numbers that you've given because they don't add up to 100. Nevertheless, if by 'this', you mean the Thanksgiving culture, then you would just count the English and the Native American heritage. This is because the first Thanksgiving dinner was shared between the English colonists and the Native American tribes.

I hope I was able to help you in a way. Have a good day.
8 0
3 years ago
Which of the following is equivalent to
Firlakuza [10]

Answer: it will be D

Step-by-step explanation: if You graph them you will get the same coordinate plates

7 0
3 years ago
UNLI Quiz Active 1 2 3 5 11 TIME What should be done to solve the equation? X+ 14 = 21 Add 14 to both sides of the equation. Sub
sladkih [1.3K]
I need help to and no one gives me help sjsjsj
7 0
3 years ago
Read 2 more answers
2. Why does the sin Ɵ = cos (90 – Ɵ)?<br><br><br> Show steps
Troyanec [42]

Answer:

R.H.S:

= cos ( 90 - theta )

= cos (90) cos(theta) + sin(90) sin(theta)

= 0 + sin(theta)                                                       =>[ cos(90) = 0   ,  sin(90) = 1]

= sin(theta)

8 0
3 years ago
Other questions:
  • Are these ratios equivalent?
    9·1 answer
  • On a coordinate plane, a straight line and a parallelogram are shown. The straight line has a negative slope and has a formula o
    7·1 answer
  • Find the quotien of 26,234 divide 42
    11·1 answer
  • Please Help!
    12·1 answer
  • Solve the equation for 2.<br> X<br> B <br><br> Somebody please help me
    9·2 answers
  • Can U guys please help with this. :)
    12·1 answer
  • Explain how a number line can be used to find the difference for 34-28
    8·2 answers
  • (ASAPPP) The position of an object at time t is given by s(t) = -2 - 6t. Find the instantaneous velocity at t = 2 by finding the
    13·1 answer
  • This table contains information about the suites available at a nearby hotel. Staying in a Standard suite costs $54.50 less than
    15·2 answers
  • A boat traveled north for 28 miles, then turned x° southwest and traveled for 25 miles before stopping. When it stopped, the boa
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!