Generalized Linear Regression
Learn to implement closed form solutions, vectorization, and visualization for generalized linear regression.
Single target
Consider a regression dataset , where and . A function is a generalized linear model for regression for any given mapping of the input features .
Try this quiz to review what you’ve learned so far.
In the context of the function , if , and , then what is ?
The optimal parameters can be determined by minimizing a regularised squared loss as follows:
Here, is the loss function denoted by .
Suppose we want to predict the price of a house based on its size, number of bedrooms, and age. We can use a generalized linear regression to model the relationship between these input features and the target variable (the house price). The model can be defined as:
...