UCLA STATS 101A Final

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/50

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:08 AM on 6/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

51 Terms

1
New cards

Conditions to interpret Confidence Interval for difference between means

  1. Independence of groups, observations: samples from groups, observations should be independent of each other

    • eg. Groups are dependent if you surveyed females and males in the SAME household

  2. Random sampling

  3. Normality: sampling distribution of difference between two means should be normal

    • If population dist is normal, this will be normal. Otherwise, need the Central Limit Theorem

  4. Equal variances: CI can be more precise if this is true, will be approximated if not


2
New cards

Confidence Levels, Intervals

  • Lower confidence level → narrower confidence interval

  • Width is determined by CL, pop variability, variability of estimated statistic

  • If you were to generate many CI’s, CL% of the intervals will contain the population parameter

    • CI’s say NOTHING about sample statistics

    • CL% of ALL possible intervals based on same sample size will contain the population parameter

  • BEFORE taking a random sample, the probability that your CI contains the parameter is CL%

  • Valid with:

    • random sample

    • large sample size (CLT)

    • independent observations

  • smallest at the mean (xbar)


3
New cards

Standard Error

  • Typical “distance” of statistic from parameter, how it varies sample to sample

  • Standard deviation of a sampling distribution

  • Becomes smaller with larger samples or small standard deviation

  • Included as a margin of error in confidence intervals, with tuning parameters based on CL


<ul><li><p>Typical “distance” of statistic from parameter, how it varies sample to sample</p></li><li><p>Standard deviation of a sampling distribution</p></li><li><p>Becomes smaller with larger samples or small standard deviation</p></li><li><p>Included as a margin of error in confidence intervals, with tuning parameters based on CL</p></li></ul><p></p>
4
New cards

Sampling distribution

  • Distribution of statistics, or theoretical samples

  • Its standard deviation is the Standard Error


5
New cards

Central Limit Theorem

  • Shape of the sampling distribution becomes normal with larger samples, NOT the population OR the sample itself


6
New cards

null hypothesis

assumed to be true when calculating the p-value

7
New cards

significance level

probability of rejecting the null hypothesis when it is true

probability of making a Type I error

alpha = 1 - confidence level

8
New cards

p-value

  • probability, when null hypothesis is true, that a random sample will generate a test statistic as extreme or more than observed value

    • not the probability that the null hypothesis is T/F (it’s assumed true)

    • not the probability that results might be due to chance

  • if H_0 is true, follows a uniform distribution on [0,1]

  • computed based on sampling distribution of test statistic where H_0 is true


9
New cards

alternative hypothesis

  • what is left after rejecting the null, but not “accepted”


10
New cards

hypothesis tests are statements about

parameters

11
New cards

t-distribution

  • used when population standard deviation (and therefore SE) is unknown (which is most of the time)

  • thicker tails than normal dist, more variability to account for extra distortion

  • part of the tuning parameter for margin of error in a mean confidence interval


12
New cards

t-statistic

  • test statistic used for the mean, slope of a regression line

  • how many SEs away the tested statistic is from the null statistic

  • when H_0 is correct:

    • this will be close to 0

    • its sampling distribution will be the t-distribution


13
New cards

bias in estimators

  • check center of estimator sampling distribution; how far off is it from the parameter?


14
New cards

precision in estimators

  • check standard deviation of sampling distribution (SE); how wide is it?


15
New cards

interpreting linear model parameters

  • linear models make predictions about averages

ex. Test scores in Des Moines are, on average, 8 points below those in Cedar Rapids.


16
New cards

z-score

how many SDs an observation is from the mean

17
New cards

trend component of model validity

does the model fit the trend?

residual plot should have no trend, flat

slope and intercept will be biased

18
New cards

constant variance component of model validity

is variance constant across all x?

residual plot should be flat, no megaphone/fan shape

scale-location plot should NOT have an increasing/decreasing trend

all inference tools invalid

19
New cards

normal component of model validity

are errors normally distributed?

QQ plot points should fall in a straight line, slight variation at ends is acceptable

inaccurate prediction intervals; symmetric interval won’t work

unbiased intercept, slope

for large sample size, good p-values, confidence intervals

20
New cards

independence component of model validity

are errors independent?

shouldn’t see patterns across timestamp/order observed (plot residuals by order taken)

all inference tools invalid

21
New cards

SXX

variation in x WRT xbar

22
New cards

SYY

variation in Y

SSreg + RSS

total SS

<p>variation in Y</p><p>SSreg + RSS</p><p>total SS</p>
23
New cards

SXY

co-variation

24
New cards

RSS

variation in y about the line

small when regression is useful

<p>variation in y about the line</p><p>small when regression is useful</p>
25
New cards

SSreg

measures improvement in adding slope to the model

SYY - RSS

large when regression is useful

<p>measures improvement in adding slope to the model</p><p>SYY - RSS</p><p>large when regression is useful</p>
26
New cards

slope/beta1 in terms of S**

SYY/SXX

both terms affect precision in its confidence interval

27
New cards

are confidence intervals and prediction intervals the same?

no; confidence interval is for a mean expected value

prediction interval is for a single point (will be wider, more variable for one point than average)

28
New cards

nested model

a model is nested inside another if you can get the other by adding more variables

29
New cards

r2

proportion of variation explained by regression

SSreg/SYY

30
New cards

ANOVA approach

between null and full, which model has smallest RSS

<p>between null and full, which model has smallest RSS</p>
31
New cards

F-statistic

compares SSReg to RSS

large when regression is helpful

follows f-distribution when null is true

= t²

<p>compares SSReg to RSS</p><p>large when regression is helpful</p><p>follows f-distribution when null is true</p><p>= t²</p>
32
New cards

leverage

at a point, measured by how much regression estimate would change if the point’s y value changed

points on further ends of the plot have higher leverage

large leverage is 2*(p+1)/n

high leverage points are not necessarily influential (like if they have small residual)

<p>at a point, measured by how much regression estimate would change if the point’s y value changed</p><p>points on further ends of the plot have higher leverage</p><p>large leverage is 2*(p+1)/n</p><p>high leverage points are not necessarily influential (like if they have small residual)</p>
33
New cards

bad leverage point

has high leverage and deviates from the trend (high residual)

2*(p+1)/n leverage and |standard residual| greater than 2 (or 4 in large datasets)

all bad leverage points are influential

34
New cards

influence

effect of removing a point, measured by cook’s distance (approx residual*leverage)

potentially at extreme x values

not all high-influence points are bad leverage points (outlier, good high lev)

35
New cards

high influence points

large cooks distance, cutoff can be greater than 1, 0.5, or look at CD distribution to find high value

36
New cards

quadratic formulas in R

use identity function: lm(y~x+I(x²))

otherwise, linear function will be fit

37
New cards

square root transform

helpful for non-constant variance, transform y

usually when y is counts of something

38
New cards

log transform

range of a variable covers more than one change in order of magnitude (1 to 100, 100 to 10000)

39
New cards

F-test to fit

do ANY of the predictor variables explain variability in y?

compares completely null with alt

F-statistic and p-value at end of summary()

<p>do ANY of the predictor variables explain variability in y?</p><p>compares completely null with alt</p><p>F-statistic and p-value at end of summary()</p>
40
New cards

partial tests for multivariable models

if all the other variables in the model explain some variability in y, does adding THIS variable explain any more?

measure change in SSreg after adding new variable

NOT sequential: summary() t-test represents effect of adding variable when ALL the others are accounted for (before, after); they do not change with order

adding certain variables can affect significance, since you control/account for more or when predictors interact

<p>if all the other variables in the model explain some variability in y, does adding THIS variable explain any more?</p><p>measure change in SSreg after adding new variable</p><p>NOT sequential: summary() t-test represents effect of adding variable when ALL the others are accounted for (before, after); they do not change with order</p><p>adding certain variables can affect significance, since you control/account for more or when predictors interact</p>
41
New cards

ANOVA table for partial test

sequential: individual contribution will be different based on what was explained by reduced model; assumes ONLY previous rows are included (not ones after!)

regardless of order, total SSreg will be the same

summary() and anova() often do not agree since summary() t.test output is not order based

they always agree when it’s the last variable added

<p>sequential: individual contribution will be different based on what was explained by reduced model; assumes ONLY previous rows are included (not ones after!)</p><p>regardless of order, total SSreg will be the same</p><p>summary() and anova() often do not agree since summary() t.test output is not order based</p><p>they always agree when it’s the last variable added</p>
42
New cards

adjusted r²

r² increases for any added variable, but adjr² accounts for additional predictors and whether or not they truly help

goes up when a new variable is useful, variable is otherwise insignificant

43
New cards

Variance Inflation Factor

measures collinearity, when predictors are linear combos of each other or measure similar info (height, weight)

having collinear predictors inflates their p-values

44
New cards

AIC

good model has small AIC

=reward for good fit + penalty for complexity

45
New cards

BIC

good model has small BIC

favors simpler models than AIC (though too low complexity induces bias)

=reward for good fit + penalty for complexity

46
New cards

Best subsets

set full model, decrease predictors by one; determine best by r²

use adjr², AIC, BIC, etc to judge which out of all sizes is best

47
New cards

Forwards/backwards stepwise regression

fwd: Fit size 1 model, keep best r²; fit all new models with two predictors, etc

backward: Fit full model; fit all new models with k-1 predictors and keep best, etc

48
New cards

Inverse response plot

transform of Ylambda where lambda=0 is log transform

transforms WILL change interpretation, but ideally improve validity

49
New cards

BoxCox

transform of Ylambda and/or predictors where lambda=0 is log transform, maximum likelihood estimation

gives a confidence interval

likelihood ratio tests, null is lambda=0 or lambda=1; if p is small, reject (do NOT do these transforms)

50
New cards

multivariate normal distribution

looks normal in 2d when you have nice ellipses

<p>looks normal in 2d when you have nice ellipses</p>
51
New cards

fitting different intercept and slope (categorical variables)

different slope: connect terms with :

different intercept: add terms with +