"We start with an example where we control the dependency from 2 predictor variables ($x1$ and $x2$) to a response variable ($y$).\n",
"\n",
"For further reference on the models and , see the docs about [ordinary least square](https://www.statsmodels.org/dev/examples/notebooks/generated/ols.html) estimation, as well as [patsy](https://patsy.readthedocs.io/en/latest/).\n",
"\n",
"### Exercise\n",
"- Generate $y$ such that it has a linear dependency with each of the variable, test a linear model on it.\n",
"- Add a non-linear dependence to $y$ with the product "
We start with an example where we control the dependency from 2 predictor variables ($x1$ and $x2$) to a response variable ($y$).
For further reference on the models and , see the docs about [ordinary least square](https://www.statsmodels.org/dev/examples/notebooks/generated/ols.html) estimation, as well as [patsy](https://patsy.readthedocs.io/en/latest/).
### Exercise
- Generate $y$ such that it has a linear dependency with each of the variable, test a linear model on it.
- Add a non-linear dependence to $y$ with the product