程序代写代做代考 Tutorial_03_Tasks

Tutorial_03_Tasks

August 10, 2018

1 QBUS6850 – Machine Learning for Business

Semester 2, 2018

2 Tutorial 3 – Linear Regression 1

2.1 Question

• Generate synthetic data from a 2nd order polynomial (quadratic)

$ f = 4 + 1.5 x +3.2 xˆ2.$

• Add noise to the linear model

y = f + ϵ

• Produce a scatter plot y against x , add the true values f to the plot.

• Fit a linear model to the data, using the normal equation: β = (XTX)−1XTY to estimate β0
and β1.

• Fit a quadratic regression model to the data, using normal equation to estimate parameters.

1

QBUS6850 – Machine Learning for Business
Tutorial 3 – Linear Regression 1
Question