Question

Ad (x) Sales (y) 1 8 2 23 3 30 4 42 The data above show...

Ad (x)

Sales (y)

1

8

2

23

3

30

4

42

The data above show the impact of advertisement spending towards a product’s sales. If we model the relationship as linear: y = b1* x + b0 +e

  1. Please use OLS formula (in the gradient Descent Linear Rgression.pptx file slides 5) to calculate b1 and b0
  2. Use the OLS model to predict the Sales. Calculate MAE and RMSE.
  3. Please use Gradient Descent to calculate b1 and b0 again manually
    1. You just need do two iterations
    2. Let the initial start points as b1 = 1 and b0 = 1
    3. Set the learning rate as 0.01
    4. Show you work step by step

Homework Answers

Know the answer?
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
Similar Questions
Given are five observations for two variables, x and y. xi 1 2 3 4 5...
Given are five observations for two variables, x and y. xi 1 2 3 4 5 yi 2 8 6 11 13 a) Develop the estimated regression equation by computing the values of b0 and b1 using b1 = Σ(xi − x)(yi − y) Σ(xi − x)2 and b0 = y − b1x. ŷ =? b) Use the estimated regression equation to predict the value of y when x = 2.
Data Set: x y 0 4 2 2 2 0 5 -2 6 1 1. Find...
Data Set: x y 0 4 2 2 2 0 5 -2 6 1 1. Find intercept b0 2. Find slope B1 3. Find the best fitted linear regression equation 4.Graph observations 5.Graph the linear equation on the same plot 6. Find the coefficient of Determination r² 7. Find the linear correlation coefficient r 8.Interpret r (the correlation between x & y)
Given are five observations for two variables, x and y. X: 1 2 3 4 5...
Given are five observations for two variables, x and y. X: 1 2 3 4 5 Y: 4 5 5 11 13 a. Try to approximate the relationship between x and y by drawing a straight line through the data. b. Develop the estimated regression equation by computing the values of b0 and b1 (to 1 decimals). y= _____ + ______x c. Use the estimated regression equation to predict the value of y when x=4 (to 1 decimals). y=_____
Salesperson Years of Experience Annual Sales ($1000s) 1 1 85 2 4 100 3 4 91...
Salesperson Years of Experience Annual Sales ($1000s) 1 1 85 2 4 100 3 4 91 4 4 97 5 6 107 6 9 109 7 10 118 8 11 126 9 10 113 10 14 132 Compute b1 and b0 (to 1 decimal). b1 = b0 = Complete the estimated regression equation (to 1 decimal). y = ... + x According to this model, what is the change in annual sales ($1000s) for every year of experience (to 1...
age of dog, x     1,    2,   4,    6,   7,   8 human years, y 15, 24, 32,...
age of dog, x     1,    2,   4,    6,   7,   8 human years, y 15, 24, 32, 40, 44, 48 1. Find a polynomial model for the first 8 years of a dog's life. 2. Use the model to estimate the age (in human years) of a dog that is 3 years old. please show work.
Consider the data set: x y 1 -2.8948 2 5.806411 3 11.0518 4 5.486057 5 8.625354...
Consider the data set: x y 1 -2.8948 2 5.806411 3 11.0518 4 5.486057 5 8.625354 6 12.95243 7 18.10561 8 21.45488 9 33.39081 10 36.66942 11 38.03181 12 43.02581 13 44.28387 14 50.17743 1.Using Excel or another tool calculate linear regression analysis of the set. What is the slope> 2.Using the result from previous question, report R2 . Use two decimals. 3.Predict the value of y when x = 28. Use one decimal.
Given are five observations for two variables, x and y . xi 1 2 3 4...
Given are five observations for two variables, x and y . xi 1 2 3 4 5 yi 53 58 47 21 11 Use the estimated regression equation is y-hat = 78.01 - 3.08x A.) Compute the mean square error using equation. s^2 = MSE = SSE / n -2 [     ]   (to 2 decimals) B.) Compute the standard error of the estimate using equation s = sqrtMSE = sqrt SSE / n - 2 [      ] (to 2 decimals)...
Please show all the work. 1. Consider the following curve f(x)=3x^4-16x^3+24x^2-9. Find the coordinates of the...
Please show all the work. 1. Consider the following curve f(x)=3x^4-16x^3+24x^2-9. Find the coordinates of the minimum. 2. The curve y=x^3+kx^2 +2x-1 has a point of inflection at x=-3 Find the value of k. 3. Find the equation of the perpendicular line of the curve x^3+y^3=4y^2 at the point (2,2) 4. Alina invested $20,000 in a mutual find, and after 8 years, her original  has tripled. Find use the P(t)=P0e^rt a. Find the yearly percentage growth rate b.The rate of the...
1. For a pair of sample x- and y-values, what is the difference between the observed...
1. For a pair of sample x- and y-values, what is the difference between the observed value of y and the predicted value of y? a) An outlier b) The explanatory variable c) A residual d) The response variable 2. Which of the following statements is false: a) The correlation coefficient is unitless. b) A correlation coefficient of 0.62 suggests a stronger correlation than a correlation coefficient of -0.82. c) The correlation coefficient, r, is always between -1 and 1....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT