Stats. Adv. 2 Assignment
Stats. Adv. 2 Assignment
THEORY:
1. What is hypothesis testing in statistics?
2. What is the null hypothesis, and how does it differ from the
alternative hypothesis?
○ Common values are 0.05 (5%) or 0.01 (1%), which indicate the
level of confidence in the test.
○ A hypothesis test used when sample size is large (n≥30n \geq 30)
and population variance is known.
9. How do you calculate the Z-score, and what does it represent in
hypothesis testing?
○ Formula: Z=X−μσ/nZ = \frac{X - \mu}{\sigma / \sqrt{n}}
○ Z-test: Used for large samples (n≥30n \geq 30) and known
variance.
○ T-test: Used for small samples (n<30n < 30) and unknown
variance.
○ Types:
○ A 95% CI means "we are 95% confident that the true parameter
lies within this range."
15.What is the margin of error, and how does it affect the confidence
interval?
○ The margin of error (MOE) is the range within which the true
population value is expected to fall.
○ Formula:
P(A∣B)=P(B∣A)P(A)P(B)P(A|B) = \frac{P(B|A) P(A)}{P(B)}
○ Important in medical testing, machine learning, and spam
filtering.
○ Assumptions: