Practice Exam Statistics 1 A xid-2180042 1
📚 Practice Exam Statistics 1_A__xid-2180042_1.pdf
Brief overview
This document provides a focused review of fundamental statistical concepts essential for understanding data analysis and study design. It then progresses to practical applications of hypothesis testing, preparing the reader for common statistical problem-solving scenarios.
Key points
-
Overview of variable types and study designs.
-
Introduction to hypothesis testing and probability calculations.
-
Exploration of normal distributions, means, standard deviations, and percentiles.
-
Application of the central limit theorem and variance calculations.
-
Practical hypothesis testing scenarios with P-value interpretation.
1. Introduction to statistical concepts and study design
1.1 Variables and study types
-
Qualitative variables describe categories or qualities.
-
Nominal variables have no inherent order (e.g., weather types: sunny, cloudy, rainy).
-
Ordinal variables have a natural order but the difference between categories is not standardized (e.g., satisfaction levels: low, medium, high).
-
-
Quantitative variables represent numerical values.
-
Discrete variables can only take specific, separate values, often counts (e.g., number of visitors).
-
Continuous variables can take any value within a range (e.g., height, weight).
-
Variable types: Qualitative (nominal, ordinal) vs. Quantitative (discrete, continuous).
-
Experimental studies involve manipulating variables to observe effects.
-
Observational studies record data without intervention.
-
In observational studies, the units are the subjects or items being measured (e.g., days, individuals).
-
The population is the entire group of interest, while a sample is a subset of that population.
-
Study unit: The item being measured (e.g., a day, a person).
1.2 Hypothesis testing and probability
-
A null hypothesis (H_0) is a statement of no effect or no difference.
-
An alternative hypothesis (H_a) is what the researcher wants to find evidence for.
-
A statistical test uses sample data to decide whether to reject H_0.
-
The significance level (alpha) is the probability of rejecting H_0 when it is actually true (Type I error).
Hypothesis testing: H_0 (no effect) vs. H_a (effect exists).
-
Probability of events:
-
Let A be reading newspapers and B be watching TV news.
-
P(A)=0.45, P(B)=0.80.
-
P(AcapB)=0.30 (probability of both).
-
-
The probability of neither A nor B is P(textnotAtextandnotB)=1−P(AcupB).
-
Using the inclusion-exclusion principle: P(AcupB)=P(A)+P(B)−P(AcapB).
-
P(AcupB)=0.45+0.80−0.30=0.95.
-
P(textneitherAnorB)=1−0.95=0.05.
-
Probability of neither: 1−P(AcupB)=1−(P(A)+P(B)−P(AcapB)).
-
Mutually exclusive events cannot occur at the same time (P(AcapB)=0).
-
Independent events mean the occurrence of one does not affect the probability of the other (P(AcapB)=P(A)P(B)).
-
Events A and B are not mutually exclusive (P(AcapB)=0.30neq0).
-
They are not independent because P(A)P(B)=0.45times0.80=0.36neqP(AcapB)=0.30.
Independence check: P(AcapB) vs. P(A)timesP(B).
1.3 Probability distributions
-
Binomial distribution is used for the number of successes in a fixed number of independent trials, each with two outcomes.
- If n is the number of trials and pi is the probability of success, the distribution is Bin(n,pi).
-
Normal distribution is a continuous distribution, bell-shaped and symmetric.
-
It is characterized by its mean (mu) and standard deviation (sigma).
-
The probability density function is f(x)=frac1sigmasqrt2pie−frac12(fracx−musigma)2.
-
Normal distribution: Symmetric, defined by mu and sigma.
-
For a normal distribution, probabilities can be found using Z-scores: Z=fracx−musigma.
-
The variance of a random variable is the average of the squared differences from the mean, denoted as sigma2.
-
If a variable y has variance sigma_y2, and a new variable w=y+c (where c is a constant), the variance of w is sigma_w2=sigma_y2. Adding or subtracting a constant does not change the variance.
-
If w=cy, then sigma_w2=c2sigma_y2.
-
If w=x−y and x and y are independent, then sigma_w2=sigma_x2+sigma_y2. The standard deviation is sigma_w=sqrtsigma_x2+sigma_y2.
Variance of independent variables: textVar(x−y)=textVar(x)+textVar(y).
-
The mean of a normally distributed variable with expectation mu and standard deviation sigma is mu.
-
The variance of the mean of n independent observations is fracsigma2n.
Variance of sample mean: textVar(barx)=fracsigma2n.
-
Percentiles of a normal distribution: The p-th percentile is the value below which p of the data falls.
-
The 90th percentile is the value x such that P(Xlex)=0.90. This corresponds to a Z-score.
90th percentile: Value with 90% of data below it.
1.4 Central Limit Theorem
-
The Central Limit Theorem (CLT) states that for a sufficiently large sample size, the distribution of the sample means will be approximately normal, regardless of the population's original distribution.
-
Assumptions for applying the CLT:
-
The sample size must be large (often nge30).
-
The samples must be randomly drawn.
-
The population should ideally have a finite variance (sigma2).
-
Central Limit Theorem: Sample means approximate a normal distribution if the sample size is large.
-
The CLT allows us to use normal distribution approximations for the sample mean even if the original population is not normally distributed.
-
This is crucial for hypothesis testing and confidence intervals for means.
1.5 Study design and data analysis examples
Variable Type | Description | Example |
|---|---|---|
Qualitative Nominal | Categories with no order | Type of weather (rainy) |
Qualitative Ordinal | Categories with a natural order | Satisfaction (low, medium) |
Quantitative Discrete | Countable numerical values | Number of visitors |
Quantitative Continuous | Any numerical value within a range | Length of fish (mm) |
-
Study units are the entities being studied. In a study of daily visitors, the units are the days.
-
Hypothesis testing involves comparing sample data to a stated null hypothesis.
-
A small P-value (typically <alpha) leads to rejecting the null hypothesis.
-
If the P-value is greater than or equal to alpha, we fail to reject the null hypothesis.
-
P-value: Probability of observing results as extreme as, or more extreme than, the sample data, assuming H_0 is true.
-
Mean and standard deviation calculations:
-
Replacing an outlier with a correct, higher value typically increases the mean.
-
It also usually increases the standard deviation as the spread of data increases.
-
The median may change if the outlier was influencing the middle value.
-
The interquartile range (IQR) may increase or decrease depending on how the change affects the first and third quartiles.
-
Effect of Change (Replacing 91.5 with 99.5) | Typical Result |
|---|---|
Mean | Increases |
Median | May change |
Standard Deviation | Increases |
Interquartile Range | May change |
-
Variance of transformed data: If wages are increased by a percentage, both the mean and variance are scaled by the square of that percentage.
- If y has variance sigma_y2, and w=(1+p)y (a ptimes100 increase), then sigma_w2=(1+p)2sigma_y2.
-
Testing proportions:
-
The test statistic for a proportion is often the sample proportion itself.
-
Under the null hypothesis, this statistic might follow a normal distribution (if n is large enough, e.g., npige5 and n(1−pi)ge5) or a binomial distribution.
-
Variance of percentage increase: If w=cy, then textVar(w)=c2textVar(y).
- P-value for a two-sided test: For H_0:mu=mu_0 vs. H_a:munemu_0, the P-value is twice the probability of observing a test statistic as extreme or more extreme in one tail. If bary is the sample mean and N(mu_0,sigma/sqrtn) is the distribution under H_0, P-value = 2timesP(barYge∣bary−mu_0∣/(sigma/sqrtn)) or 2timesP(barYle−∣bary−mu_0∣/(sigma/sqrtn)).
Two-sided P-value: 2timesP(textextremetailprobability).
🔑 Important: Understanding variable types, hypothesis testing, and probability calculations is foundational for designing and interpreting statistical studies.
2. Hypothesis testing in practice
2.1 Applying hypothesis tests to real-world data
Hypothesis testing helps us make decisions based on sample data. We test a claim about a population parameter.
This often involves calculating a P-value. The P-value is the probability of observing data as extreme as, or more extreme than, the sample data.
This is assuming the null hypothesis is true.
A common scenario is testing the mean of a population. This is often done when the population standard deviation is known.
📝 Example: Researchers want to know if the mean dissolved oxygen level in a river is less than 5 parts per million (ppm). This level is crucial for aquatic life survival. They took 25 samples, assumed to be a simple random sample and normally distributed with a standard deviation (sigma) of 0.5 ppm. They will test this at a significance level (alpha) of 0.05.
If the sample mean (bary) is 4.95 ppm, the P-value is calculated. This helps determine if the observed mean is significantly different from 5 ppm.
📝 Example: For a null hypothesis H_0:mu=8 and an alternative H_a:muneq8, if the sample mean bary is 8.27, the P-value is 2timesP(baryge8.27). This accounts for the two-tailed nature of the test.
2.2 Interpreting P-values and making conclusions
The P-value guides our decision about the null hypothesis. We compare the P-value to the chosen significance level (alpha).
-
If P-value lealpha: We reject the null hypothesis (H_0). This suggests there is enough evidence for the alternative hypothesis (H_a).
-
If P-value >alpha: We fail to reject the null hypothesis (H_0). This means there is not enough evidence to support the alternative hypothesis.
🔑 Important: A significance level (alpha) represents the probability of erroneously rejecting a true null hypothesis. For a test with alpha=0.05, the probability of incorrectly rejecting H_0 is no more than 0.05.
📝 Example: If a P-value is 0.08 and the significance level (alpha) is 0.05, we fail to reject the null hypothesis. Therefore, it has not been shown that the population mean dissolved oxygen level is less than 5 ppm.
2.3 Hypothesis testing for proportions
Hypothesis tests can also be applied to proportions. This is useful when analyzing categorical data, such as unemployment rates.
📝 Example: Researchers test if the unemployment rate (pi) in a city is different from the regional rate of 10%. They sample 16 individuals and find 3 are unemployed. The test is conducted at alpha=0.05 for H_0:pi=0.10 versus H_a:pineq0.10 5.
Test Component | Description |
|---|---|
Null Hypothesis ($H_0$) | $\pi = 0.10$ |
Alternative Hypothesis ($H_a$) | $\pi \neq 0.10$ |
Sample Size (n) | 16 |
Number Unemployed | 3 |
Sample Proportion ($\hat{\pi}$) | $3/16 = 0.1875$ |
Significance Level ($\alpha$) | 0.05 |
🔑 Important: The P-value for a test of H_0:pi=0.10 versus H_a:pineq0.10 can decrease if the sample size increases while the estimated proportion (hatpi) stays the same.
2.4 Determining sample requirements
In some cases, we need to find the minimum sample size or number of successes needed to show a particular effect. This depends on the hypothesis, significance level, and sample size.
📝 Example: A researcher suspects the unemployment rate is greater than 10%. They sample 20 individuals and want to know the minimum number of unemployed people to confirm this suspicion at alpha=0.05. They are testing H_a:pi>0.10 6.
To determine the minimum number of unemployed individuals, one would calculate the P-value for different counts and see when it falls below alpha=0.05.
2.5 Properties of sample proportions
When dealing with proportions, we can calculate the expected value and standard deviation of the sample proportion.
📝 Example: If 80% of seeds germinate, a sample of 20 seeds is collected. The expectation of the proportion of germinated seeds is 0.8. The standard deviation of this proportion is calculated using the formula sqrtfracpi(1−pi)n.
Parameter | Value |
|---|---|
Population Proportion ($\pi$) | 0.8 |
Sample Size (n) | 20 |
Expectation ($E(\hat{\pi})$) | $\pi = 0.8$ |
Standard Deviation ($\sigma_{\hat{\pi}}$) | $\sqrt{\frac{0.8(1-0.8)}{20}} \approx 0.0894$ |
The probability of a specific outcome, like exactly 3 seeds not germinating, can be calculated using binomial probability formulas.
🔑 Important: Hypothesis testing involves assessing evidence against a null hypothesis. The P-value quantifies this evidence, and decisions are made by comparing it to a pre-set significance level (alpha).
© 2026 Maeve. All rights reserved. This content is protected by copyright.