Back to marketplace

Simple linear regression

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

what is linear regression?

Back (Answer)

simple approach to supervised learning. it is used to model the relationship between several input variables (x) and a continuous response variable (y)

#2
Front (Question)

assumed model?

Back (Answer)

y=β0+β1 X+e

#3
Front (Question)

distance between observed and predicted values?

Back (Answer)

residual e= Yi-predicted Yi= Yi-(β0+β1Xi)

#4
Front (Question)

residual sum squares (RSS)?

Back (Answer)

total magnitude of deviations from all squared residuals of data points (sum) (residual may be positive or negative thus square)

#5
Front (Question)

to find β0 and β1, use estimation of least squares

Back (Answer)

first order derivatives of RSS w/ respect to β0 and β1 separately, set to 0

#6
Front (Question)

predicated β1?

Back (Answer)

cov(x,y)/var(x)

#7
Front (Question)

predicted β0?

Back (Answer)

mean(y) - β1*mean(x)

#8
Front (Question)

what is standard error(SE) an estimator for?

Back (Answer)

how the estimates vary under repeated sampling

#9
Front (Question)

hypothesis testing for relationship between x and y?

Back (Answer)

H0: β1=0 H1: β1!=0

#10
Front (Question)

t-statistics(to test null hypothesis)

Back (Answer)

t=(β1-0)/SE(β1). n-2 degrees of freedom

#11
Front (Question)

critical value and confidence interval when n is large?

Back (Answer)

1.96(as n increases, t-dist gets closer to normal dist) and 95%(as n increases, t-dist gets closer to normal dist)

#12
Front (Question)

p-value definition?

Back (Answer)

probability of observing any value >= |t|

#13
Front (Question)

calculate confidence interval

Back (Answer)

[β1+-1.96*SE(β1)]

#14
Front (Question)

when to reject null hypothesis?

Back (Answer)

when |t| both larger than 1.96, we can reject H0 with 95% confidence

#15
Front (Question)

Residual standard error means?

Back (Answer)

RSE measures lack of fit, if RSE=3.259, on avg, deviation of Y from regression line is 3.259 points

#16
Front (Question)

R squared for?

Back (Answer)

measures how well regression model describes data. e.g. if R squared is 0.6119, X explains only 61.19% of subject

#17
Front (Question)

how to measure RSE

Back (Answer)

sqrt(1/(n-2)RSS)

#18
Front (Question)

measure R square?

Back (Answer)

1-(RSS/TSS). TSS is the total variance in response variable y. (ranges from 0 to 1)

#19
Front (Question)

for 95% CI, use β1 or β0

Back (Answer)

β1. β0 has nothing to do with r/s between X and Y

#20
Front (Question)

how to install package MASS

Back (Answer)

intall.package(‘MASS’)

#21
Front (Question)

load MASS?

Back (Answer)

library(MASS)

#22
Front (Question)

load data Boston in MASS?

Back (Answer)

data(Boston)

#23
Front (Question)

documentation in data set?

Back (Answer)

?Boston

#24
Front (Question)

number of missing values?

Back (Answer)

sum(is.na(Boston))