Linear Regression Flashcards
(11 cards)
What are basis functions? What they possibilitate?
Are functions that transform the input
They are used to extend linear models to non-linear relationships
What is the Ordinary Least Square? When is it most suitable to use?
It is a method that calculates the optimal weight vector by multiplying the inverse of the multiplication of the transpose of the basis by the basis by the transpose of the basis and the target vector.
It derives the optimal weights analytically using normal equations.
It yields the exact global optimum when the error function is quadratic and convex .
It is most suitable to smaller datasets.
How can we solve a regression problem for large scale problems?
For large scale problems where the closed-form solutions is impractical, iterative methods such as stochastic gradient descent are discussed.
Why the closed-form solution is not suitable for large problems?
Because it requires the computation of the inverse of the multiplication of the transpose of the basis by the basis what is computationally expensive with larga datasets (roughly O(M^3)
Also it assumes that that same matrix is nonsingular (invertible), if this condition fails, the closed-form solution might not exist or require regularization.
What is the central goal when using maximum likelihood for solving linear regressions? What does the likelihood function measure?
What are the steps taken to maximize the likelihood that a given set of parameters generated the data we have?
What is the size of the penalties for Ridge and Lasso? Which one can be solved with a closed form solution? Which one produce sparse models?
Proportional to square of weights
Proportional to absolute value of weights
What is the basic assumption done in the Bayesian approach to linear regression? What does this possibilitates?
What does it means to consider the weights as random variables?
Give a general framework starting from the prior distribution of the weights up to the prediction moment.
How does the Bayesian method related to regularizatiin?