complete solutions
In linear regression, y can be __________, but in logistic regression, it can only be __________. - correct
answer ✔✔Any variable, 0 or 1
What is the response variable? - correct answer ✔✔y
In regression, you have a ________ that you want to model or predict as a function of a
__________________. - correct answer ✔✔response variable, vector of input features/covariates (x)
What does p(y|x) mean? - correct answer ✔✔The conditional probability for y given x
What is a marginal distribution? - correct answer ✔✔A distribution that corresponds to the
unconditional distribution for a single margin/column of a data matrix
What is the mean for a random variable? - correct answer ✔✔The average of random draws from its
probability distribution
The marginal mean is __________. - correct answer ✔✔a simple number
The conditional mean is ___________. - correct answer ✔✔a function
What does it mean to build models in terms of averages and lines? - correct answer ✔✔Model the
conditional mean for our output variable as a linear function of inputs
For the bulk of applications, you will find that __________ is a good approach. - correct answer
✔✔Mean regression
, What does GLM notation show? - correct answer ✔✔The relationship between 2 variables
How do we model the conditional mean for y given x in linear regression? - correct answer ✔✔E[y|x] =
f(x'B)
What is x? - correct answer ✔✔input variable
What does f(x'B) equal in linear regression? - correct answer ✔✔x'B
What does f(x'B) equal in logistic regression? - correct answer ✔✔(e^x'B)/(1+e^x'B)
What does E[?] denote? - correct answer ✔✔The taking of the expectation or average of whatever
random variable is inside the brackets
What does | (the vertical bar) mean? - correct answer ✔✔"given" or "donditional upon"
How is E[y|x] read? - correct answer ✔✔the average for y given inputs x
What is f(?)? - correct answer ✔✔A "link" function that transforms from the linear model to your
response
What is the vector notation? - correct answer ✔✔x'B
What is the vector notation shorthand for? - correct answer ✔✔The sum of elementwise products
(B0+x1B1+x2B2+...)
What does the link function do? - correct answer ✔✔Defines the relationship between your linear
function x'B and the response
What is a benefit of the link function? - correct answer ✔✔Gives you a huge amount of modeling
flexibility