We are given data:
X | Y | |||
1 | 5 | 1 | 25 | 5 |
2 | 7 | 4 | 49 | 14 |
3 | 9 | 9 | 81 | 27 |
4 | 15 | 16 | 225 | 60 |
Average of X =
Average of Y =
Now,
:
X | ||
1 | -1.5 | 2.25 |
2 | 0.5 | 0.25 |
3 | 0.5 | 0.25 |
4 | 1.5 | 2.25 |
So,
For, :
Y | ||
5 | -4 | 16 |
7 | -2 | 4 |
9 | 0 | 0 |
15 | 6 | 36 |
We know that are the coefficients of the linear equations:
is the slope of the regression line which is nothing but the ratio of and
So,
and is the intercept for managing the differences:
Thus, the table obtained as:
2.5 | 9 | 5 | 56 | 1 | 3.2 |
==============================================================================================
Probability and Statistics 1. Linear Regression Given 4 data points: X Y 5 15 Use simple...
1. Linear Regression Given 4 data points: 5 2 7 wl 9 15 Use simple linear regression to estimate ßo and ß, for the best-fit line Û=B. + B1x Calculate these values: L ñ | Sxx Sxy ß I I Sketch the regression line and the data points below
1. Linear Regression Given 4 data points: 5 2 7 wl 9 15 Use simple linear regression to estimate ßo and ß, for the best-fit line Û=B. + B1x Calculate these values: L ñ | Sxx Sxy ß I I Sketch the regression line and the data points below
Suppose we fit the simple linear regression model (with the usual assumptions) Y = Bo+B1X+ € and get the estimated regression model ♡ = bo+bix What aspect or characteristic of the distribution of Y does o estimate? the value of Y for a given value of X the total variability in Y that is explained by X the population mean number of Y values above the mean of Y when X = 0 the increase in the mean of Y...
Question 5. Given sample data (x, y), and sample size n. We fit the simple regression model: and estimate the least square estimators (a) Suppose A,-1, ß,-2, and x-1. Compute у. b) Suppose S and sry 0.5, compute the R2. Question 5. Given sample data (x, y), and sample size n. We fit the simple regression model: and estimate the least square estimators (a) Suppose A,-1, ß,-2, and x-1. Compute у. b) Suppose S and sry 0.5, compute the R2.
(13 points) Suppose you have a simple linear regression model such that Y; = Bo + B18: +€4 with and N(0,0%) Call: 1m (formula - y - x) Formula: F=MSR/MSE, R2 = SSR/SSTO ANOVA decomposition: SSTOSSE + SSR Residuals: Min 1Q Modian -2.16313 -0.64507 -0.06586 Max 30 0.62479 3.00517 Coefficients: Estimate Std. Error t value Pr(> It) (Intercept) 8.00967 0.36529 21.93 -0.62009 0.04245 -14.61 <2e-16 ... <2e-16 .. Signif. codes: ****' 0.001 '** 0.01 '* 0.05 0.1'' 1 Residual standard...
Consider the following data: x : -7, -5, -1, 0, 2, 5, 6, .y: 15, 12 ,5, 2, 0, -5, -9. Using linear regression find the equation in the form y=mx+b. b) Check your results for the coefficients in the trial function using a built-in function in Matlab, Python, or Mathematica. c) Plot the data points as dots and the best-fit line as a solid line on the same figure.
QUESTION 20 In a simple linear regression model the data is given as X: 1, 2, 3, 4; Y: 7, 10, 9, 12. The estimated intercept is 6. The estimated slope is 1.4. The sum of residuals is 0 3.2 5 38
4. A simple linear regression was fit for a dataset with 35 data points. The sample variance of the response was found to be 2.4 and 62 was found to be 1.3. What was the value of R2 for this data?
6. This problem considers the simple linear regression model, that is, a model with a single covariate r that has a linear relationship with a response y. This simple linear regression model is y = Bo + Bix +, where Bo and Bi are unknown constants, and a random error has normal distribution with mean 0 and unknown variance o' The covariate a is often controlled by data analyst and measured with negligible error, while y is a random variable....
11. (5 points) Answer the following questions on regression. X versus Y 45 3 15 . 0 0 1.5 4.5 (1) (1 points) For the given data (shown above), draw two possible linear regression lines. (2) (1 point) Between the two regression lines you draw, which one is better? Why? (3) (1 point) Which of the following offsets do we use in linear regression's least square line fit? Circle the one (either vertical offsets or perpendicular offsets). 2.--- m. vertical...