Question

2. Using a computer program, a data set with 20 observations on and was generated (GENERATEDATA.csv). Again, use the same ins

here is the data

Y X
34.38 22.06
30.38 19.88
26.13 18.83
31.85 22.09
26.77 17.19
29.00 20.72
28.92 18.10
26.30 18.01
29.49 18.69
31.36 18.05
27.07 17.75
31.17 19.96
27.74 17.87
30.01 20.20
29.61 20.65
31.78 20.32
32.93 21.37
30.29 17.31
28.57 23.50
29.80 22.02



1. The World Bank collects data on many variables related to world development for countries throughout the world. Two of the

this is q1
0 0
Add a comment Improve this question Transcribed image text
Answer #1

reg<-read.csv (D:\\Dipalil\reg.csv) head (reg) # Yx # 1 34.38 22.06 # # 2 30.38 19.88 ## 3 26.13 18.83 ## 4 31.85 22.09 ##reg$Y 28 30 32 34 17 ο ο 18 Η Ο ο 19 Ο 20 ο reg$X Ο Ο 21 22 23library (dplyr) ## Attaching package: dplyr ## The following objects are masked from package:stats: # filter, lag ## Thecor (reg$x, reg$Y) ## [1] 0.5226194 4 & 5 fit_ln<-lm (Y-X, data=reg) summary (fit_im) IEE EI Call: Im (formula = Y - X, data## Signif. codes: 01*** 0.001 ** 0.01 * 0.05 . 0.1 1 ## Residual standard error: 1.94 on 18 degrees of freedom ## MuScatter Plot abline 32.5 30.0- 27.5- 20 *27% of variability in Y is explained by X Multiple R-squared: 0.2731 res<-resid(fit_lm) res FIE I TE 1 2 4 3.25309246 0.60919Residual Plot with abline 3 2 o 1 o 0 Residuals 0 O -1 0 -2 0 -3 E R 18 19 20 21 22 23 A good residual plot will look as ifThe uses of the Residual Plot 1. To check to see if a linear relationship exists between the explanatory and response variablHistogram of res 5 4 3 Frequency 2 1 0 SEO res The overall pattern of the residuals should be similar to the bell-shaped patt

Add a comment
Know the answer?
Add Answer to:
here is the data Y X 34.38 22.06 30.38 19.88 26.13 18.83 31.85 22.09 26.77 17.19...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Data on the fuel consumption ?y of a car at various speeds ?x is given. Fuel...

    Data on the fuel consumption ?y of a car at various speeds ?x is given. Fuel consumption is measured in mpg, and speed is measured in miles per hour. Software tells us that the equation of the least‑squares regression line is ?̂ =55.3286−0.02286?y^=55.3286−0.02286x Using this equation, we can add the residuals to the original data. Speed 1010 2020 3030 4040 5050 6060 7070 8080 Fuel 38.138.1 54.054.0 68.468.4 63.663.6 60.560.5 55.455.4 50.650.6 43.843.8 Residual −17.00−17.00 −0.87−0.87 13.7613.76 9.199.19 6.316.31 1.441.44...

  • Consider the following data for two variables, x and y.

     Consider the following data for two variables, x and y. a. Choose the correct scatter diagram with x and y. The correct scatter diagram is - _______ . Does there appear to be a linear relationship between x and y? Explain. The scatter diagram- Select your answer - some evidence of a possible linear relationship. b. Develop the estimated regression equation relating x and y. Save "predicted" and "residuals" (to 4 decimals).  c. Choose the correct scatter diagram or the residuals versus y tor the estimated...

  • 2 pts. when regression line has no slope, we can still predict Y from X because...

    2 pts. when regression line has no slope, we can still predict Y from X because the line still has a y intercept. A. True B. False 34. 2 pts. Can we infer causality between two variables solely on the basis of their correlation? A. Yes, we can infer causality. B. No, we cannot infer causality. 35. 2 pts. Which of the following is the fundamental task of regression? A. Correctly plotting all of the points on a scatter plot....

  • Use the data sct below to answer the following questions a) Compute r(x, y). b) Compute...

    Use the data sct below to answer the following questions a) Compute r(x, y). b) Compute the slope of the regression line c) Compute the intercept of the regression line d) Plot the residuals. Is a linear model appropriate for the data?

  • For MATLAB 3. write a program to plot a scatter plot of data (x, y) pairs...

    For MATLAB 3. write a program to plot a scatter plot of data (x, y) pairs and compute the correlation coefficient. Data and details are provided below. In Lecture 9 it was noted that the numerator used in the sample variance could be obtained using the sum(x) and sum(x. 'x) functions: iz1 The average is sum(x)/n. If an array y of the same length is computed in the same way call that term Syy. The term Sxy can be computed...

  • for the following data set answer the following: x=17,13,12,15,16,14,16,16,18,19 y=94,73,59,80,93,85,66,79,77,91 a)prepare a scatter plot b)calculate an...

    for the following data set answer the following: x=17,13,12,15,16,14,16,16,18,19 y=94,73,59,80,93,85,66,79,77,91 a)prepare a scatter plot b)calculate an expression for the regression line c)calculate the correlation coefficient r d)calculate the coefficient of determination r^2 e)test the hypothesis (H0=P=0; Ha P does not equal 0) for sigma=0.05 using your determine value of r and online t tables. Please show work!!!

  • USE R STUDIO The stackloss data frame available in R contains 21 observations on four variables...

    USE R STUDIO The stackloss data frame available in R contains 21 observations on four variables taken at a factory where ammonia is converted to nitric acid. The first three variables are Air.Flow, Water.Temp, and Acid.Conc. The fourth variable is stack.loss, which measures the amount of ammonia that escapes before being absorbed. Read the help file for more information about this data frame. - Give a numerical summarization of each column of the dataset, then use boxplots to help illustrating...

  • 1. Describe the trend of the data, if any. 2. Calculate the linear correlation coefficient and is the linear correlatio...

    1. Describe the trend of the data, if any. 2. Calculate the linear correlation coefficient and is the linear correlation coefficient significant? Why/why not? 3. Find the least-squares line of regression. 4. Graph the regression line on the scatter plot 5. Plot the residuals (give it your own title and labels for the axes!) with lines for 2 standard deviations of the residuals. 6. Predict the gas mileage of a 2000, 3000 and 4000 lb car. Make a scatter plot...

  • Complete parts​ (a) through​ (h) for the data below. x- 40, 50, 60, 70, 80 y-62,...

    Complete parts​ (a) through​ (h) for the data below. x- 40, 50, 60, 70, 80 y-62, 58, 55, 47, 33 B) Find the equation of the line containing the points (50, 58) and (80, 33) y=__x+(__) D) By hand, determine the least-squares regression line The equation of the​ least-squares regression line is given by ModifyingAbove y with caret equals b 1 x plus b 0y=b1x+b0 where b1 equals r times StartFraction s Subscript y Over s Subscript x EndFractionb1=r•sysx is...

  • Group Assignment #8-Linear regression review You have the following sample data for y (dependent ...

    Needs to be done in Matlab Group Assignment #8-Linear regression review You have the following sample data for y (dependent variable) versus x (independent variable) x [1.1 2.0 3.1 3.9 5.1 6.0 7.3 7.8 9.1 10.4] y [0.8 2.1 2.9 4.3 4.9 5.9 7.0 8.3 8.7 9.9] a. Solve for the regression line and report a and b. b. Plot the regression line overlaid with the sample data points c. Solve for the error term (residuals) and plot residuals vs....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT