Week 7 - Basic Modelling Flashcards
Why bother with models?
They allow us to understand how variables are related, the strength of the relationship as well as the direction of the relationship.
Allows us to predict the outcome of interest.
Is correlation a good measure of two variables?
Can be, can also be spurious.
What are model families?
Model families describe the relationship between an outcome (Y) and an input (X). E.g. A class of polynomials.
What are the measures of distance? Explain how they work
OLS, least absolute deviations
How does grid search work?
Has a grid of values, beta0 and b1. Evaluate f(beta0, beta1) find beta0 and beta1 that makes f(beta0, beta1) smallest.
What does the optim function do?
Allows you to optimise user supplied functions.