Docsity

Introduction to the Statistics - Study Guide | STAT 101, Study notes of Statistics

Toggle sidebar
bg1
Lia Liu 1
Stat 101 Lia Liu
webpage: www.uic.edu/˜yliu
Ch1-3: Categorical data
List of topics:
1. Statistics
2. Data: categorical, numerical
3. Survey (Year(Freshman,...), gender, party affiliation, num-
ber of siblings, height in inches, shoe size, sleep pattern,
average sleeping time in hours per day, average exercise
time in minutes per day)
4. Terms: variables, frequency table, relative frequency, dis-
tribution,
5. How to display categorical variable?
6. One variable: Bar chart and Pie chart
7. Two variable:
two-way table (contingency table)
marginal distribution
conditional distribution
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Introduction to the Statistics - Study Guide | STAT 101 and more Study notes Statistics in PDF only on Docsity!

Stat 101 Lia Liu

webpage: www.uic.edu/˜yliu Ch1-3: Categorical data

List of topics:

  1. Statistics
  2. Data: categorical, numerical
  3. Survey (Year(Freshman,...), gender, party affiliation, num- ber of siblings, height in inches, shoe size, sleep pattern, average sleeping time in hours per day, average exercise time in minutes per day)
  4. Terms: variables, frequency table, relative frequency, dis- tribution,
  5. How to display categorical variable?
  6. One variable: Bar chart and Pie chart
  7. Two variable: two-way table (contingency table) marginal distribution conditional distribution
  1. Simpson’d Paradox:

Example: Moe and Jill are two pilots. Here’s their on- time record broken down by the time (day or night) they flew: Day Night Overall Moe 90/100=90% 10/20 =50% 100/120=83% Jill 19/20=95% 75/100=75% 94/120=78%

Chapter 6 Normal Model

List of topics:

  1. Normal N (μ, σ), Standard Normal N (0, 1)
  2. Empirical rule (68-95-99.7 rule)
  3. How to use table and calculator to find probability? Left tail, right tail, between two numbers
  4. Z score (standardized score): z = Xσ− μ, μ =mean, σ =standard deviation
  5. 4 types of calculations:
    • For Standard normal N(0,1): given a,b, find P (a < Z < b) (TI-83/84: Distr → 2. Normalcdf(a,b)). EX: P (− 1 < Z < 2), P (Z > 2 .1), P (Z < −2)
    • For Standard normal N(0,1): given left tail, find the z score. (TI-83/84: Distr → 3.invnorm(left tail). Example: Find the z score for top 5%. invnorm(.95)=1.645. Find the z score for 25 percentile. invnorm(0.25)= − 0. 6745
    • For general normal model, N (μ, σ): Given a,b, find P (a < X < b). Standardize. Ex. If X has a normal model N (μ = 100, σ = 15), Find P (70 < X < 85) Standardize X by subtract μ, then divide by σ: P (70 < X < 105) = P (^70 − 15100 < X−σ μ< 10515 −^100 ) = P (− 2 < Z < 0 .3333) = 0. 6078
    • For general normal model, N (μ, σ): Inverse normal (give probability, find z-score, then find x) Ex: If IQ test score satisfies a normal model N (μ = 100 , σ = 15), find the cut-off score for top 10%. Step 1: Find the z score for top 10%: z=invnorm(.90)=1.28. Step 2: Use z = x−σ μ to solve for x: 1 .28 = x− 15100 , x = 100 + 1. 28 ∗ 15 = 119.
  1. When we are not sure the population is Normal, check“nearly normal” conditions: check symmetric, unimodal, free of outliers.
  1. What can go wrong?
    • Don’t fit a straight line to a nonlinear relationship; al- ways check with scatter plot of the data, and then the residual plot.
    • Be aware of the effect of outliers, leverage, and influ- ence;
    • Don’t invert regression;
    • Be careful with extrapolation;
    • Don’t infer that x causes y; beware of lurking variables.

Chapter 12 Sample Survey

List of topics:

  1. Population: parameters: mean μ, standard deviation σ, correlation coefficient ρ, etc.
  2. Sample: statistics: sample mean x, sample standard devi- ation sx, correlation coefficient r, etc.
  3. Census
  4. SRS (Simple random sample): Each element is equally likely to be selected.
  5. How to generate a random sample by Calculator? Math → Prob →5:randInt(lower, upper, how many)
  6. Sample frame: a list of individuals from which a sample is drawn (can be reached).
  7. Strata: The population is divided into homogeneous groups, called strata.
  8. Stratified random sampling: EX: If men and women are likely to have different views on an issue, a university has 75% females and 25% males. It may not be a good idea to choose a simple random sample of 100. Instead, first divide the population to 2 stratas: Male and female. Then choose a SRS of 75 from the females, and another SRS from the males.

Chapter 13 Experimental Design List of topics:

  1. Observational study (no treatment)
  2. Experiment (must have at least one treatment).
  3. Factors- explanatory variables
  4. Response variable(s)
  5. Experimental units-objects
  6. Treatments(including control group), levels,
  7. 4 Principles: Control, randomize, replicate, block.
  8. Single blind, double blind
  9. Placebo effect
  10. Confounding

Chapter 14-15 Probability List of topics:

  1. The Probability of an event is the number of outcomes in the event divided by the total number of possible out- comes. P (A) = n(A) n(total)
  2. Def: Probability for a discrete sample space S: P1: P (A) ≥ 0 , for any event A in S; P2: P (S) = 1; P3: If A 1 , A 2 , ... is a sequence of mutually exclusive events of S, then P (A 1 ⋃ A 2 ⋃ ...) = P (A 1 ) + P (A 2 ) + ....
  3. Equally likely model
  4. Complement: P (A) = 1 − P (AC^ )
  5. Inclusion-exclusion principle: P (A ⋃^ B) = P (A) + P (B) − P (A ⋂^ B)
  6. DeMorgan’s rule: AC^ ⋂ BC^ = (A ⋃ B)C AC^ ⋃ BC^ = (A ⋂ B)C
  7. Venn Diagram
  8. Conditional Probability: P (A|B) =

P (A ⋂^ B)

P (B)

  1. Product rule: P (A ⋂^ B) = P (A|B)P (B) = P (B|A)P (A)
  2. Independent: Two events are independent if

P (A ⋂^ B) = P (A)P (B) which means P (A|B) = P (A) and P (B|A) = P (B)

  1. Tree Diagram

Chapter 16 Random Variables

List of topics:

  1. Random variable(r.v.): a random variable is a function from sample space to real numbers.
  2. Probability distribution function for discrete r.v.(pdf )
    1. P (X = k) ≥ 0 ;
    2. ΣkP (X = k) = 1.
  3. How to denote pdf (probability model)? By table; By formula; Histogram; Relative frequency table.
  4. Expectation (mean, expected value) of a discrete random variable: μ = E(X) = Σall kk · P (X = k)
  5. Expectation of a function of a discrete random variable: Eu(X) = Σall ku(k) · P (X = (k)
  6. Expectation is linear: E(aX + bY ) = aE(X) + bE(Y ) for any constants a, b, and any random variables X, Y.
  7. Variance of X: σ^2 = V (X) = E(X − μ)^2 (Good for understanding) σ^2 = V (X) = E(X^2 ) − μ^2 = (Σall kk^2 · P (X = k)) − μ^2 (Good for computation)
  8. Variance is not linear. i.e. V (aX + bY ) 6 = aV (X) + bV (Y ) Actually V (aX + bY ) = a^2 V (X) + b^2 V (Y ) + 2abCov(X, Y ) Ex: Find the mean and variance of a constant, X − Y, X + Y, X^1 +X 32 +X^3 given independence.
  9. Standard deviation of X: σ =

√ V (X)

Chapter 17 Special Probability Models

List of topics: Binomial Distribution

  • Geometric model
    1. Toss a coin until 1st head, P (H) = p, P (T ) = q, q = 1 − p. Let X= number of tosses until the 1st head. pdf P (X = k) = pqk−^1 , k = 1, 2 , 3 , ...
    2. Mean E(X) = μ = 1/p
    3. Variance V (X) = σ^2 = q/p^2
    4. Standard deviation: σ =

√ q/p^2

  • Binomial Model
    1. Binomial expansion: (x + y)n^ = Σnk=0C(n, k)xn−kyk^ = C(n, 0)xn^ + C(n, 1)xn−^1 y + C(n, 2)xn−^2 y^2 + ... + C(n, r)xryn−r^ + ... + C(n, n − 1)xyn−^1 + C(n, n)yn
    2. Binomial coefficients: C(n, k)
      1. By Yang’s triangle
      2. By combination: C(n, k) = n! k!(n − k)!
    3. Bernoulli trials:
    4. Binomial distribution: Toss a coin n times. P (H) = p, P (T ) = q, q = 1 − p. X= number of heads.
    5. p.d.f. P (X = k) = C(n, k)pkqn−k, k = 0, 1 , 2 , ..., n
    6. Expected value E(X) = np; or μ = np Variance V (X) = npq; or σ^2 = npq Standard deviation σ = √npq
  • Poisson Model
    1. Model: Counting number of occurences
    2. pdf: P (X = k) =

e−λλk k!

, k = 0, 1 , 2 , ...

  1. The mean and variance are both λ

Chapter 18 Sampling distributions

List of topics:

  1. a random sample X 1 , X 2 , ..., Xn of size n from a population with mean μ and standard deviation σ. (independent r.v with the same distribution)
  2. The sample mean is X = X^1 +X^2 + n ...+Xn. What is the expec- tation, E(X), and the standard deviation of X?
  3. The sample sum is Sn = X 1 + X 2 + ... + Xn. What is the expectation and the standard deviation of Sn?
  4. CLT (Central Limit Theorem) (some call it the Fundamen- tal Theorem of Statistics):

Part 1)

X − μ σ/

n → N (0, 1) as n → ∞

Part 2) Sn − nμ σ

n

→ N (0, 1) as n → ∞

  1. Conditions for CLT: (1)“independence” (when it is too hard to check, use“Randomization” and “10% condition” instead) (2) Sample size must be large enough. Say n ≥ 30. When population distribution is roughly symmetric, less n is OK. Binomial can be really skewed when p or q is close to 0. Check np ≥ 10 and nq ≥ 10 to make sure n is large enough.
  2. Application to Binomial B(n,p). X = the number of heads out of n tosses. E(X) = np, SD(X) =

npq

  1. Application to proportion pˆ = X/n, E(ˆp) = p, SD(ˆp) =

√ pq/n

Chapter 19 Confidence Intervals

List of topics:

  1. Confidence interval: estimate ± Margin of Error
  2. Confidence Interval for the population proportion p is : p ˆ ± z ∗ SE(ˆp), where z depends on the confidence level, SE(ˆp) =

√ pˆˆq n.

  1. If you want to reduce the margin of error by a half, how large should the sample size be?
  2. Explain the meaning of CI, check conditions of indepen- dence(randomization and 10% condition if not indepen- dent), sample size.

Not enough evidence to reject H 0. Not enough evidence to claim the new system fails the goal.

  1. P-Values are the conditional probability of the tail(s) if the null hypothesis were true: (i) If HA : p < p 0 , the P-value is P (ˆp < xn |H 0 is true); or standardize

P = P (Z <

x n √ − p^0 p 0 q 0 n

(ii) If HA : p > p 0 , the P-value is P (ˆp > xn |H 0 is true); or standardize

P = P (Z >

x n √ − p^0 p 0 q 0 n

(iii) If HA : p 6 = p 0 , the P-value is

2 P (Z > |

x n √ − p^0 p 0 q 0 n

||H 0 is true).

  1. The smaller the P-value is, the stronger the evidence is against the null hypothesis.
  2. If given a significance level α, then when P-value ≤ α, reject the H 0.

Chapter 21 More on Hypothesis Testing

List of topics:

  1. Rule of Thumb: If the significance level is not given, reject the null hypothesis if the P-value is less than 5%.
  2. If the P-value is larger than the preset significance level α, say “Not enough evidence to reject the null hypothesis”, instead of “Accept the null hypothesis”. (compare to “Not enough evidence to prove the defendant is guilty”, instead of “the defendant is proven innocent”.
  3. If the significance level, α, is given, instead of finding the P-value, you have the alternative way to make a decision, by finding the critical value, z∗, according to α.
  4. Two types of errors: (Type I: The defendant is innocent, but the jury find him guilty. Type II: The defendant is guilty, but the jury find him innocent.) Type I: The null hypothesis is true, but we made a wrong decision to reject it. Type II: The null hypothesis is false, but we failed to reject it.
  5. The probability of making a type I error is α.
  6. The probability of making a type II error is β, which is not easy to calculate.
  7. A test’s ability to detect a false null hypothesis is called the power of the test. The power of a test is the probability that it correctly rejects a false null hypothesis, i.e. P(Reject H 0 |H 0 is false)=P(Reject H 0 |HA is true)= 1 − β
  8. Is it possible to reduce both Type I and Type II errors at the same time? Yes, by increasing the sample size.
  9. Graph