Analysing Proportions Flashcards

(11 cards)

1
Q

What is binomial test and its conditions

A

A binomial test compares the observed number of “successes” in a fixed number of trials to what we’d expect under a given probability.

Conditions:
Fixed number of trials 𝑛
Two outcomes per trial: Success/Failure
Constant probability of success 𝑝
Independent trials

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the binomial probability formula

A

𝑃 (𝑋 = 𝑥) = (𝑛 / 𝑥) 𝑝ˣ (1-𝑝)ⁿ⁻ˣ

May need to calculate cumulative probability for “more extreme” results (e.g. 𝑃 (𝑋 ≥ 𝑥))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the steps in performing a binomial test

A
  1. Define 𝐻0 and 𝐻𝐴
  2. Find 𝑥
  3. Use binomial formula
  4. Calculate p-value
  5. Compare to α.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you calculate a sample proportion

A

Divide the number of successes 𝑥 by the total sample size 𝑛

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you calculate the 95% CI for proportion using the Agresti-Coull method

A
  1. Add 2 successes and 4 to the total:
    𝑥~ = 𝑥 + 2, 𝑛~ = 𝑛 + 4
  2. Compute adjusted proportion:
    𝑝~ = (𝑥~)/(𝑛~)
  3. Calculate the standard error:
    SE = (√𝑝~(1 - 𝑝~))/𝑛~
  4. Find margin of error:
    𝑀𝐸 = z∗ x SE
    95% CI z∗ =1.96
  5. Final confidence interval:
    𝑝~ ± 𝑀𝐸
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you calculate the Chi-Squared test statistic

A

χ² = ∑ (𝑂𝑖 - 𝐸𝑖)² / 𝐸𝑖

Where
𝑂𝑖 : observed count
𝐸𝑖 : expected count

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do calculate degrees of freedom for a goodness of fit test (chi-squared)

A

df = 𝑘−1
Where
𝑘 = number of categories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do calculate degrees of freedom for a contingency table (chi-squared)

A

df = (𝑟 -1)(𝑐−1)
Where
𝑟 = rows,
𝑐 = columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Poisson’s distribution

A

For counting number of events in fixed time/space, with known average rate 𝜆.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the formula for Poisson’s distribution

A

P(X = k) = (e^⁻λ x λᵏ )/k!
Where:
k = number of events
λ = expected number
e = eulers constant approx = 2.718

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you use a chi-squared to test for poisson fit

A
  1. Estimate λ = sample mean
  2. Use Poisson formula to find expected proportions
  3. Multiply by total n (expected counts)
  4. Group rare values (<5) together if needed
  5. Use χ² formula to compare observed vs expected
  6. Degrees of freedom = categories – 2 (1 for count loss, 1 for estimating λ)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly