Menu

[Solved]Ad X Sales Y 1 8 2 23 3 30 4 42 Data Show Impact Advertisement Spending Towards Product S Q37224351

Ad (x)

Sales (y)

1

8

2

23

3

30

4

42

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

  1. Please use OLS formula (in the gradient Descent LinearRgression.pptx file slides 5) to calculate b1 and b0
  2. Use the OLS model to predict the Sales. Calculate MAE andRMSE.
  3. Please use Gradient Descent to calculate b1 and b0 againmanually
    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

Expert Answer


Answer to 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 sale… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *