Lecture 2 Flashcards
What is x?
feature or independent variable
What is y?
target or dependent variable
What do we use x for?
to predict y
How is the ith observation denoted?
(x_i, y_i)
What is H?
the hypothesis function
What does the hypothesis function do?
takes in an x as input and returns a predicted y
What are parameters?
define the relationship between the input and output of a hypothesis function
What is the constant model?
H(x) = h
How many parameters does the constant model have?
one: h
How do we calculate the mean?
adding all the numbers in our set up and divide by n numbers
How do we calculate the median?
sort our numbers in ascending order and take the middle number
What are both the mean and the median?
they are summary statistics
What are summary statistics?
they summarize a collection of numbers with a single number
What is a loss function?
quantifies how bad a prediction is for a single data point
What can we say about our loss if our prediction is close to the actual value?
that we should have low loss
What can we say about our loss if our prediction is far from the actual value?
that we should have high loss
What is error?
the difference between actual and predicted values
What does y_i - H(x_i) mean?
actual - predicted