[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
- Please use OLS formula (in the gradient Descent LinearRgression.pptx file slides 5) to calculate b1 and b0
- Use the OLS model to predict the Sales. Calculate MAE andRMSE.
- Please use Gradient Descent to calculate b1 and b0 againmanually
- You just need do two iterations
- Let the initial start points as b1 = 1 and b0 = 1
- Set the learning rate as 0.01
- 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

