1/26
Looks like no tags are added yet.
Bernoulli Random Variable (List Mean, SD, Variance)
An individual trial has only two possible outcomes: success or failure
E(X)=μ
S(D)=p(1−p)
Var(X)=p(1−p)

Geometric Random Variable (Probability, Mean, SD, Variance)
How many independent Bernoulli trials it takes to observe a success; X=number of trials until first success
P(X)=(1−p)k−1p
E(X)=μ=p1
SD(X)=p21−p
Var(X)=p21−p
Binomial Random Variable
P(X=k)=(kn)pk(1−p)n−k
(kn)=(n−k)!⋅k!n!
E(X)=μ=np
SD(X)=np(1−p)
Var(X)=np(1−p)

Negative Binomial Random Variable
Definition: Number of independent Bernoulli trials until the 𝑘𝑡ℎ success,
P(X=k)=(kn)pk(1−p)n−k
(kn)=(n−k)!⋅k!n!
E(X)=μ=pk
SD(X)=p2k(1−p)
Poisson Random Variable
Used to count the number of times an event occurs in an interval of time or space.
P(X=k)=k!e−λλkl
λ =rate at which events occur
E(X)=μ=pk
SD(X)=p2k(1−p)
Normal Distribution
-Symmetrical
-Unimodal
N(μ,σ)
N(0,1)
Z Score
Z=σx−μ
pnorm
Gives area under curve for certain Z score
CLT
When observations are independent and the sample size 𝑛 is sufficiently large, phat tends to follow a normal distribution
μp=phat
SEphat=np(1−p)
Practice Problem: A part of a quality control process for computer chips, an engineer at
a factory randomly samples 212 chips during a week of production to test the current rate of chips with severe defects. She finds out that 27 of the chips are defective. The historical rate of defects is 10%. Should the engineer be surprised by the observed rate of defects during the current week
Confidence Interval for One Proportion
Conditions: nphat>10 and n(1-phat)>10
(p^−MOE,p^+MOE)
MOE=z⋅⋅SEphat
Hypothesis Test for One Proportion
Conditions: np0>10 and n(1-p0)>10
Null: H0: p=population proportion
Alternate: HA: p does not equal population proportion
Confidence Interval for Difference of Two Proportions
Check CLT: n1phat1>10 n1(1-phat)>10 n2phat2>10 n2(1-phat2)>10
(p^−MOE,p^+MOE)
MOE=z⋅⋅SEphat
SE=n1p1(1−p1)+n2p2(1−p2)
Use phat1 and phat 2 when p1 and p2 are unknown

Hypothesis Test for Difference of Two Proportions
Check CLT using p pooled
Z=SE(p1−p2)−0
SE=n1ppooled(1−ppooled)+n2ppooled(1−ppooled)

Critical Value Approach
Compare Z score to known critical value
CV: -qnorm(alpha/2)
P value Approach
Compute p value and compare to significance level
2pnorm(abs(Z))
Practice Problem 2: In New York City on October 23rd, 2014, a doctor who had recently been treating Ebola patients in Guinea, went to the hospital with a slight fever and was subsequently diagnosed with Ebola. Soon thereafter, a poll found that 82% of New Yorkers favored a “mandatory 21-day quarantine for anyone who has come in contact with an Ebola patient.” This poll included response of 1,042 New York adults. Compute a 90% confidence interval for the proportion of all New Yorkers who favored a quarantine period
Practice Problem 3: A survey of 1016 American youths age 8-18 in 2004fo und that 690 had television in their bedroom. Construct a 99% CI
Practice Problem 4: A genetic model suggests that a particular experimental cross of lupine should have blue flowers with probability 0.75 and white flowers with probability 0.25. In an experiment with 200 seeds, 142 are blue flowering. Is this consistent with the model?
Type 1 Error
Reject H0 when it is actually true
Type 2 Error
Fail to reject H0
Calculating Desired MOE

Practice Problem 6: A 2006 article in the Washington Post claimed that 15% of high school students used cursive writing on the essay portion of the SAT exam in 2005-06. Suppose we want to estimate this proportion for the following year. How many essays would we need to sample to estimate this proportion to within 0.04 with 95% confidence
Practice Problem 7: Extra practice: Suppose 84% of a random sample of 125 nurses working 7am to 3 pm shifts in city hospitals express positive job satisfaction, while only 72% of a random sample of size 150 nurses on the 11pm to 7am shifts express similar fulfillment. Compute a 99% confidence interval for the difference in proportions of job satisfaction
Chi Squared GOF
Used for binned data
∑E(O−E)2
DF=#categories-1
Chi Squared GOF Requirements
Observations independent of one another, expected counts greater than 5
pchisq and qchisq
pschisq gives the area below the curve for given Chi squared value
qchisquare gives the chi square value for given area