For the following problems, do not use statistical software such as SPSS, SAS, R and so on.
Please nish your work only using basic calculator and describe how you get your answer.
X | 3 | 6 | 8 | 2 | 5 | 1 | 5 |
Y | 4 | 5 | 6 | 2 | 5 | 0 | 3 |
(a) Compute the sample covariance of X and Y and explain how X and
Y are related.
(b) Compute the sample correlation coecient and explain its meaning.
(c) Consider the simple linear regression model Yi = β0 + β1Xi +
εi
and t the model to the data.
(d) Compute R^2 and (hat)σ2.
(e) Find a 95% CI on the slope.
a) Sample covariance is given by
On substitution we have
Since covariance is positive the variables are directly related ie as one increases the other one will also increase.
Standard deviation of X,Sx is
and
b) Sample correlation coefficient is given by the formula ,
Correlation coefficient measure the strength of linear relation between the variable. Here the variables are highly correlated. ie a high positive correlation exist between X and Y
c)The formula for linear regression of y on x is
where
Hence the regression line is
d) R_squared value =r2 =0.892=0.791
For the following problems, do not use statistical software such as SPSS, SAS, R and so...
Use R statistical software to answer the following: 2. Let x1 , ..., xn be a random sample from the normal distribution with mean 0 and variance θ. (a) Find the mle of θ (b) Find the Fisher information I(θ)
(Do this problem without using R) Consider the simple linear regression model y =β0 + β1x + ε, where the errors are independent and normally distributed, with mean zero and constant variance σ2. Suppose we observe 4 observations x = (1, 1, −1, −1) and y = (5, 3, 4, 0). (a) Fit the simple linear regression model to this data and report the fitted regression line. (b) Carry out a test of hypotheses using α = 0.05 to determine...
Question 2 You will need statistical software to complete this question. From UTS:Online Assessment-Assignment B, download the data set icecream2019.csv. The data set contains 12 months of data. The key variables are described as follows: Sales Per-capita ice-cream sales during the month Rain-average rainfall during the month (in mm) Maxtemp average daily maximum temperature (in degrees Celsius) during the month (a) (lpt) Generate the logarithm of each of the three variables. Use software to construct the following three scatter plots...
This question asks you to compute the sample correlation coefficient (?xy ) and estimate the regression coefficients with ordinary least squares (OLS) “by hand” for the model (Yi = ?1 + ?2Xi +ui) using the data below, but without using R (except to get critical values or p‐values, and to check your work) y x 1 2 5 6 4 4 4 6 1 2 A. Compute and report the sample correlation coefficient B. Can you reject the null hypothesis...
Section 12.3 Multiple Linear Regression: Number ONE: Statistical software was used to fit the model E(y)Pox1 2x2 to n 20 data points. Complete parts a through h EEB Click the icon to see the software output. Data Table The regression equation is Y-1738.93 - 384.54x1 517.39x2 Predictor Constant X1 X2 Coef 1738.93 - 384.54 -517.39 SE Coef 369.06 101.65 - 3.78 0.002 353.04 - 1.47 0.162 4.71 0.000 s-172.003 R-sq-55.0% R-sq(adj):49.0% Analysis of Variance MS Source Regression Residual Error 17...
Calculation Practice Compute the answers to Questions 4 - 6 without the use of statistical software. Be sure to supply all the intermediate information asked for by the question. To aid you, SS has been supplied. All three calculation practice questions will make use of the following dataset: Participant Factor A Lvll Factor A Lvl 2 Factor A Lvl 3 Factor B Lvl 1 Factor B Lvl 2 14 5. For this problem continue to ignore the levels of Factor....
How do I set the problems below in R? Use the rnorm function in R to generate 100 samples of X ~N(-1.0,2.5) (for help use ?rnorm ) and for each draw, simulate Yǐ from the simple linear regression model = 2.5+2.0x,+티, where e, N N(0,3 ). (ii) Split the sample into 2 subsets of size 25 and 75. For each subset, run the regression of Y on X. Add each fitted regression line (use color) to your plot from (i)....
(x -R)2 0 4 (a) Complete the entries in the table. Put the sums in the last row. What are the sample means x and y? (b) Calculate bi and b2 using (2.7) and (2.8) and state their interpretation. (c) Compute )vi. Using these numerical values, show that (d) Use the least squares estimates from part (b) to compute the fitted values of y, and plete the remainder of the table below. Put the sums in the last row. yi...
please help! Following is a simple linear regression model: y = a + A + & The following results were obtained from some statistical software. R2 = 0.523 Syx (regression standard error) = 3.028 n (total observations) = 41 Significance level = 0.05 = 5% Variable Interecpt Slope of X Parameter Estimate 0.519 -0.707 Std. Err. of Parameter Est 0.132 0.239 Note: For all the calculated numbers, keep three decimals. Write the fitted model (5 points) 2. Make a prediction...