【X】《医药数理统计方法 第7版 本科药学 配增值》【2022】9787117330909-45-164
Table of contents
- Chapter 2: Random Events and Probability
- Chapter 3: Random Variables and Their Distributions
- Chapter 4: Sampling Distributions
- Chapter 5: Parameter Estimation
- Chapter 6: Hypothesis Testing for Parameters
1. Chapter 2: Random Events and Probability
1.1 Random experiments and random events
Phenomena can be classified into two types: deterministic phenomena, which always occur or do not occur under specific conditions, and random phenomena, which may yield different outcomes under the same conditions. Probability theory and mathematical statistics study the statistical regularities of random phenomena 1.
- Random experiment (experiment): An experiment or observation with three key characteristics 1:
- It can be repeated under identical conditions.
- All possible outcomes are known and distinct.
- The exact outcome of any single trial cannot be predicted beforehand.
- Event: Any outcome that occurs in a random experiment.
- Random event: An event that may or may not occur under specific conditions, typically denoted by capital letters like A, B, C.
- Elemental event: Each indivisible possible outcome of an experiment.
- Sample space (Ω): The set of all possible outcomes of an experiment, comprising all elemental events. Elemental events are also called sample points.
- Certain event: The sample space Ω itself, which is guaranteed to occur in every experiment.
- Impossible event (∅): An empty set containing no elemental events, which is guaranteed not to occur in any experiment 2.
📝 Consider an experiment where 10 items are randomly drawn from a batch of 100 drugs, 5 of which are defective.
- Elemental events: The number of defective items drawn, ranging from {0} to {5}.
- Sample space: Ω={0,1,2,3,4,5}.
- Random event: "Fewer than 3 defective items" is A={0,1,2}.
- Certain event: "No more than 5 defective items" is Ω.
- Impossible event: "More than 5 defective items" is ∅ 2.
1.2 Relationships and operations between events
Events can have various relationships and operations, which are often visualized using Venn diagrams 2.
- Event inclusion and equality:
- Inclusion (A⊂B or B⊃A): If the occurrence of event A necessarily leads to the occurrence of event B, then B includes A.
- Equality (A=B): If A includes B and B includes A, meaning they contain the same elemental events.
- Sum (or union) of events (A+B or A∪B): The event where at least one of A or B occurs. It includes all elemental events in A or B. This can be extended to n events as A1+A2+⋯+An or ⋃i=1nAi 2.
- Product (or intersection) of events (AB or A∩B): The event where both A and B occur simultaneously. It includes all common elemental events in A and B. This can be extended to n events as A1A2…An or ⋂i=1nAi.
- Difference of events (A−B): The event where A occurs but B does not. It consists of all elemental events belonging to A but not to B.
- Mutually exclusive (or disjoint) events: Two events A and B are mutually exclusive if they cannot occur simultaneously, meaning their intersection is empty (AB=∅). For n events, they are pairwise mutually exclusive if AiAj=∅ for any i=j.
- Complementary event (Aˉ or Ac): The event that A does not occur. It consists of all elemental events in the sample space that are not in A. If A and B are complementary, then AB=∅ and A+B=Ω 3 4.
📝 If event A is "a target is hit" in a shooting experiment, then its complementary event Aˉ is "the target is not hit" 4.
- Laws of event operations: These laws govern how events combine and interact 4.
| Law | Description |
|---|---|
| Commutative Law | A+B=B+A; AB=BA |
| Associative Law | (A+B)+C=A+(B+C); (AB)C=A(BC) |
| Distributive Law | (A+B)C=AC+BC; A+(BC)=(A+B)(A+C) |
| Difference-Product Conversion Law | A−B=ABˉ=A−AB |
| De Morgan's Duality Laws | A+B=AˉBˉ; AB=Aˉ+Bˉ |
- Order of operations: When evaluating event expressions, the order is: complement, then product, then sum. Parentheses are evaluated first 4.
📝 For three patients, A, B, C, receiving a new drug, where A, B, C denote effective treatment for each person:
- "Only the first person is effective" is ABˉCˉ.
- "Only one person is effective" is ABˉCˉ+AˉBCˉ+AˉCˉC.
- "All three are effective" is ABC.
- "None of the three are effective" is AˉBˉCˉ=A+B+C.
- "At least one person is effective" is A+B+C 4.
1.3 Probability of events
The probability of an event A, denoted P(A), is a numerical measure of the likelihood of event A occurring in an experiment. Different definitions of probability exist based on their application and interpretation 4.
1.4 Frequency and statistical probability
- Frequency (m): The number of times an event A occurs in n independent repetitions of an experiment under identical conditions.
- Relative frequency (f(A)): The ratio of the frequency of event A to the total number of trials, f(A)=m/n.
- Stability of relative frequency: As the number of trials n becomes very large, the frequency of a random event A tends to stabilize around a fixed constant.
- Statistical probability: If the frequency of event A stabilizes around a constant p in a large number of repeated trials, then p is called the statistical probability of A, denoted P(A)=p. In practice, P(A)≈m/n for a sufficiently large n 5.
📝 If a new drug is effective in 278 out of 400 clinical trials, its effectiveness rate is f(A)=278/400≈0.695. Thus, the probability of the drug being effective is approximately 0.695 5.
1.5 Classical probability
Classical probability applies to random experiments with specific characteristics, known as a classical probability model or finite equiprobable model 6.
- Characteristics of classical probability models:
- The total number of possible outcomes (elemental events) is finite.
- Each elemental event has an equal likelihood of occurring.
- Classical probability definition: For a classical probability model with n total elemental events, if event A consists of m elemental events, its classical probability is given by: P(A)=nm=Total number of elemental eventsNumber of elemental events in A From this definition, 0≤P(A)≤1. For complementary events A and Aˉ, P(Aˉ)=1−P(A) 6.
📝 A bag contains 10 balls (6 white, 4 red). If 3 balls are randomly drawn:
- The total number of ways to draw 3 balls from 10 is C103=120.
- The probability of drawing 3 white balls (event A) is P(A)=C63/C103=20/120=1/6≈0.167.
- The probability of drawing at least one white ball (event B) can be found using the complementary event Bˉ (no white balls, i.e., 3 red balls): P(Bˉ)=C43/C103=4/120. So, P(B)=1−P(Bˉ)=1−4/120=116/120≈0.967 6.
1.6 Subjective probability
Subjective probability is used for phenomena that do not fit the criteria for statistical or classical probability, such as estimating the chance of rain tomorrow or a new drug's market success 7.
- Subjective probability definition: A probability determined by individuals based on their experience, available information, and personal beliefs about the likelihood of an event 7.
📝 A surgeon estimates the success rate of their next surgery to be 0.9, based on years of experience and the difficulty of the procedure. This is a subjective probability 7.
1.7 Axiomatic definition of probability
The axiomatic definition provides a general framework for probability, applicable to all random phenomena. It was first proposed by A.N. Kolmogorov in 1933 7.
- Axioms of probability:
- Non-negativity: For any event A, 0≤P(A)≤1.
- Normalization: The probability of the certain event Ω is 1, and the probability of the impossible event ∅ is 0. So, P(Ω)=1 and P(∅)=0.
- Countable additivity: For a sequence of pairwise mutually exclusive events A1,A2,…,An (AiAj=∅ for i=j), the probability of their sum is the sum of their individual probabilities: P(A1+A2+⋯+An)=P(A1)+P(A2)+⋯+P(An).
- Axiomatic definition of probability: Given a sample space Ω, if a real number P(A) is assigned to every event A in Ω such that it satisfies the three axioms above, then P(A) is called the probability of event A. Classical and statistical probabilities are special cases of this general definition 8.
1.8 Addition theorems of probability
- Addition theorem for mutually exclusive events: If events A and B are mutually exclusive, then P(A+B)=P(A)+P(B). This extends to n pairwise mutually exclusive events: P(A1+A2+⋯+An)=P(A1)+P(A2)+⋯+P(An).
- Complementary event formula: For any event A and its complement Aˉ, P(Aˉ)=1−P(A).
- Event difference formula: For any events A and B, P(A−B)=P(A)−P(AB). Specifically, if B⊂A, then P(A−B)=P(A)−P(B) 8.
- General addition theorem: For any two events A and B, P(A+B)=P(A)+P(B)−P(AB). If A and B are mutually exclusive, P(AB)=0, and the formula reduces to the addition theorem for mutually exclusive events. This can be extended to three events: P(A+B+C)=P(A)+P(B)+P(C)−P(AB)−P(AC)−P(BC)+P(ABC) 9.
📝 If P(A)=0.4 and P(A+B)=0.7:
- If A and B are mutually exclusive, P(B)=P(A+B)−P(A)=0.7−0.4=0.3.
- If A⊂B, then P(B)=P(A+B)=0.7.
- If P(AB)=0.2, then P(B)=P(A+B)−P(A)+P(AB)=0.7−0.4+0.2=0.5 9.
1.9 Conditional probability and multiplication theorem
- Conditional probability: The probability of event A occurring given that event B has already occurred, denoted P(A∣B).
- Definition: For any two events A and B, if P(B)>0, the conditional probability of A given B is: P(A∣B)=P(B)P(AB) This means that if B has occurred, the sample space effectively shrinks to B, and the probability of A occurring within this reduced space is the ratio of the probability of both A and B occurring to the probability of B occurring 10.
📝 A box contains 16 balls (6 glass, 10 wooden). Among glass balls, 2 are red, 4 are blue. Among wooden balls, 3 are red, 7 are blue.
-
The probability of drawing a glass ball (event A) is P(A)=6/16=0.375.
-
The probability of drawing a glass ball given it is blue (event B) is P(A∣B). There are 11 blue balls in total (4 glass, 7 wooden). So, P(A∣B)=4/11≈0.364 10.
-
Multiplication theorem: Derived from the definition of conditional probability, it calculates the probability of two events occurring simultaneously.
-
For any two events A and B, if P(B)>0, then P(AB)=P(B)P(A∣B).
-
Similarly, if P(A)>0, then P(AB)=P(A)P(B∣A).
-
This can be extended to n events A1,A2,…,An: P(A1A2…An)=P(A1)P(A2∣A1)P(A3∣A1A2)…P(An∣A1A2…An−1) provided P(A1A2…An−1)>0 11.
📝 A batch of 100 parts has 90 good parts and 10 defective parts. If parts are drawn without replacement, the probability of getting a good part on the third draw, given the first two were defective:
- Let A1 = {first part is defective}, A2 = {second part is defective}, A3 = {third part is good}.
- P(A1)=10/100.
- P(A2∣A1)=9/99 (since one defective part is removed).
- P(A3∣A1A2)=90/98 (since two defective parts are removed, leaving 90 good parts out of 98 total).
- P(A1A2A3)=P(A1)P(A2∣A1)P(A3∣A1A2)=(10/100)×(9/99)×(90/98)≈0.0084 11.
1.10 Independence of events
- Mutual independence: Two events A and B are mutually independent if the occurrence of one does not affect the probability of the other.
- Definition: Events A and B are mutually independent if P(AB)=P(A)P(B).
- Equivalent conditions: If P(A)>0 or P(B)>0, then A and B are independent if and only if P(B)=P(B∣A) or P(A)=P(A∣B) 11.
- Properties: If A and B are mutually independent, then Aˉ and B, A and Bˉ, and Aˉ and Bˉ are also mutually independent.
- Independence for multiple events: Events A1,A2,…,An are mutually independent if for any k events (2≤k≤n), the probability of their intersection equals the product of their individual probabilities.
- For three mutually independent events A, B, C, the following must hold:
- P(AB)=P(A)P(B)
- P(AC)=P(A)P(C)
- P(BC)=P(B)P(C)
- P(ABC)=P(A)P(B)P(C)
- If only the first three conditions hold, the events are pairwise independent.
- If A1,A2,…,An are mutually independent, then P(A1A2…An)=P(A1)P(A2)…P(An) 12.
📝 Two shooters, A and B, aim at a target with hit probabilities of 0.6 and 0.5, respectively. Since their shots are independent, the probability that the target is hit (event C = A+B) is:
- P(C)=P(A+B)=P(A)+P(B)−P(AB)=P(A)+P(B)−P(A)P(B)
- P(C)=0.6+0.5−(0.6×0.5)=1.1−0.3=0.8 12.
1.11 Total probability formula
The total probability formula is used to calculate the probability of a complex event by breaking it down into a sum of probabilities of simpler, mutually exclusive events 12.
- Complete group of events: A set of events A1,A2,…,An forms a complete group if they are pairwise mutually exclusive (AiAj=∅ for i=j) and their sum covers the entire sample space (A1+A2+⋯+An=Ω).
- Total probability formula: If A1,A2,…,An is a complete group of events with P(Ai)>0 for all i, then for any event B: P(B)=∑i=1nP(Ai)P(B∣Ai) Here, P(Ai) are called prior probabilities (probabilities of causes), and P(B) is the total probability 13.
📝 A drug factory has three production lines (A1, A2, A3) accounting for 30%, 45%, and 25% of total output, respectively. Their defect rates are 6%, 5%, and 3%. The probability of randomly selecting a defective drug (event B) is:
- P(A1)=0.3, P(A2)=0.45, P(A3)=0.25.
- P(B∣A1)=0.06, P(B∣A2)=0.05, P(B∣A3)=0.03.
- P(B)=P(A1)P(B∣A1)+P(A2)P(B∣A2)+P(A3)P(B∣A3)
- P(B)=(0.3×0.06)+(0.45×0.05)+(0.25×0.03)=0.018+0.0225+0.0075=0.048 13.
1.12 Inverse probability formula (Bayes' theorem)
Bayes' theorem addresses the inverse problem: given that event B has occurred, what is the probability that it was caused by a specific event Ai? 13.
- Inverse probability formula (Bayes' theorem): If A1,A2,…,An is a complete group of events with P(Ai)>0 for all i, and B is any event with P(B)>0, then the conditional probability of Ak given B is: P(Ak∣B)=∑i=1nP(Ai)P(B∣Ai)P(Ak)P(B∣Ak) Here, P(Ak∣B) is called the posterior probability, representing the probability of cause Ak given that event B has occurred 14.
📝 Continuing from the previous example, if a randomly selected drug is found to be defective, what is the probability it came from production line A1?
- We need to calculate P(A1∣B), P(A2∣B), and P(A3∣B).
- P(A1∣B)=P(B)P(A1)P(B∣A1)=0.0480.3×0.06=0.0480.018=0.375.
- P(A2∣B)=P(B)P(A2)P(B∣A2)=0.0480.45×0.05=0.0480.0225≈0.469.
- P(A3∣B)=P(B)P(A3)P(B∣A3)=0.0480.25×0.03=0.0480.0075≈0.156.
- Since P(A2∣B) is the largest, the defective drug is most likely from production line A2 14.
2. Chapter 3: Random Variables and Their Distributions
2.1 Random variables and their probability distributions
A random variable is a variable whose value is determined by the outcome of a random experiment, and the probability of it taking specific values is fixed. Random variables are typically denoted by uppercase letters like X or Y 19.
- Characteristics of random variables:
- They possess randomness because their values change with experimental outcomes.
- They exhibit statistical regularity because each outcome has a specific probability.
- These two characteristics differentiate random variables from ordinary variables.
- Representing random events: Random events can be expressed using random variables. For example, if X is the number of defective items in a drug inspection, the event "no more than 4 defective items" is {X≤4}.
- Probability distribution: This refers to all possible values a random variable X can take and the probabilities associated with those values. Understanding this fully describes the statistical regularity of X 19.
2.2 Discrete random variables
A discrete random variable X can only take a finite or countably infinite number of values, meaning its possible values can be listed individually 20.
- Examples:
- The number rolled on a die, X, can take values {1,2,3,4,5,6}.
- The number of defective items found in a random drug inspection.
- Distribution law (probability mass function): For a discrete random variable X with possible values xk and corresponding probabilities P{X=xk}=pk, its distribution law is P{X=xk}=pk, for k=1,2,….
- Properties of probability function pk:
- pk≥0 for all k=1,2,….
- ∑pk=1 20.
| X | x1 | x2 | xk |
|---|---|---|---|
| P | p1 | p2 | pk |
📝 Consider 8 drugs, 3 of which are defective. If 2 drugs are randomly selected, the number of defective drugs X can be 0, 1, or 2. The probability distribution is: P{X=0}=C30C52/C82=5/14≈0.357, P{X=1}=C31C51/C82=15/28≈0.536, P{X=2}=C32C50/C82=3/28≈0.107. The probability of getting at most 1 defective drug is P{X≤1}=P{X=0}+P{X=1}=0.357+0.536=0.893 21.
2.3 Distribution function of a random variable
The distribution function F(x) for any random variable X is defined as F(x)=P{X≤x} for −∞<x<+∞. It represents the cumulative probability that X takes a value less than or equal to x 21.
- Characteristics:
- F(x) is defined over the entire real number line and its values are in the interval [0,1].
- It provides a universal way to describe the probability distribution for both discrete and continuous random variables.
- Properties of F(x):
- 0≤F(x)≤1. Also, limx→−∞F(x)=0 and limx→+∞F(x)=1.
- F(x) is a monotonically non-decreasing function: if x1<x2, then F(x1)≤F(x2).
- F(x) is right-continuous: for any x0, F(x0)=limx→x0+F(x).
- Calculating probabilities using F(x):
- P{a<X≤b}=F(b)−F(a).
- P{X>a}=1−F(a).
- P{X=a}=F(a)−F(a−0), where F(a−0) is the left-hand limit of F(x) at x=a 21.
- For discrete random variables: The distribution function F(x) is obtained by summing the probabilities of all xk≤x: F(x)=∑xk≤xP{X=xk}=∑xk≤xpk 22.
| Condition | F(x) |
|---|---|
| x<−1 | 0 |
| −1≤x<1 | 0.3 |
| 1≤x<2 | 0.9 |
| x≥2 | 1 |
📝 Given a discrete random variable X with P{X=−1}=0.3, P{X=1}=0.6, and P{X=2}=0.1. The distribution function F(x) is a step function. For instance, P{X>1.5}=P{X=2}=0.1. Using F(x), this is 1−F(1.5)=1−0.9=0.1. Also, P{1<X≤2}=F(2)−F(1)=1−0.9=0.1 22.
2.4 Continuous random variables
A continuous random variable X can take any value within a given interval. It is impossible and meaningless to list individual values and their probabilities for such variables 23.
- Probability density function (PDF): For a continuous random variable X, there exists a non-negative integrable function f(x), called the probability density function, such that for any real numbers a<b, P{a<X≤b}=∫abf(x)dx.
- Geometric interpretation: The probability P{a<X≤b} is represented by the area under the curve of f(x) between a and b.
- Properties of f(x):
- f(x)≥0 for all real x.
- ∫−∞+∞f(x)dx=1, meaning the total area under the density curve is 1.
- Relationship with distribution function F(x):
- F(x)=P{X≤x}=∫−∞xf(t)dt.
- F(x) is a continuous function.
- If f(x) is continuous at x, then f(x)=F′(x), meaning the PDF is the derivative of the CDF 23.
- Probability of a single point: For a continuous random variable, the probability of taking any specific value a is P{X=a}=0.
- This implies that for continuous random variables, the interval endpoints do not affect the probability: P{a<X<b}=P{a≤X<b}=P{a<X≤b}=P{a≤X≤b}=∫abf(x)dx.
- An event with probability 0 is not necessarily an impossible event 24.
| x range | F(x) |
|---|---|
| x<a | 0 |
| a≤x<b | (x−a)/(b−a) |
| x≥b | 1 |
📝 If X follows a uniform distribution on [a,b], its PDF is f(x)=1/(b−a) for a≤x≤b and 0 otherwise. The CDF is F(x)=0 for x<a, F(x)=(x−a)/(b−a) for a≤x<b, and F(x)=1 for x≥b. The probability of X falling into any subinterval (x1,x1+Δx) within [a,b] is 1/(b−a)⋅Δx, which depends only on the length of the subinterval, not its position 24 25.
2.5 Numerical characteristics of random variables
Numerical characteristics quantify specific features of a random variable, such as its average value or degree of deviation 26.
- Importance: For many common random variables, knowing just a few numerical characteristics can fully determine their probability distribution.
- Common characteristics: Mathematical expectation (mean), variance, standard deviation, and moments 26.
2.6 Mathematical expectation
The mathematical expectation (or mean) of a random variable X, denoted E(X), represents its average value 26.
- For discrete random variables: If X has probability distribution P{X=xk}=pk, its mathematical expectation is E(X)=∑k=1∞xkpk, provided the sum converges absolutely.
- This is a weighted average of the values X can take, with probabilities as weights.
📝 For a lottery with 100,000 tickets at 1 dollar each, the average prize money per ticket is calculated by summing the product of each prize amount and its frequency (probability). If the total prize money is 50,000 dollars, the average prize per ticket is 50,000/100,000=0.5 dollars 26. 📝 For a Poisson distribution with parameter λ, where P{X=k}=k!λke−λ, the mathematical expectation E(X)=λ 27.
- For continuous random variables: If X has probability density function f(x), its mathematical expectation is E(X)=∫−∞+∞xf(x)dx, provided the integral converges absolutely.
📝 For a uniform distribution on [a,b] with PDF f(x)=1/(b−a), the mathematical expectation E(X)=∫abxb−a1dx=b−a1[2x2]ab=2(b−a)b2−a2=2a+b. This is the midpoint of the interval [a,b] 27 28.
- Mathematical expectation of a function of a random variable: If Y=g(X) is a function of a random variable X, and E[g(X)] exists:
- Discrete case: E(Y)=E[g(X)]=∑k=1∞g(xk)P{X=xk}=∑k=1∞g(xk)pk.
- Continuous case: E(Y)=E[g(X)]=∫−∞+∞g(x)f(x)dx.
📝 If X has a given discrete probability distribution, and Y=2X2−1, then E(Y) is calculated by summing g(xk)pk for each xk. For X={−1,0,1,2} with probabilities {0.15,0.1,0.3,0.45}, the corresponding Y values are {1,−1,1,7}. Thus, E(Y)=1(0.15)+(−1)(0.1)+1(0.3)+7(0.45)=3.5 28.
- Properties of mathematical expectation:
- E(C)=C for any constant C.
- E(CX)=C⋅E(X) for any random variable X and constant C.
- E(aX+b)=aE(X)+b for any random variable X and constants a,b.
- For any n random variables X1,…,Xn, E(X1+⋯+Xn)=E(X1)+⋯+E(Xn).
- If X and Y are independent, then E(XY)=E(X)⋅E(Y) 29.
2.7 Variance and standard deviation
While mathematical expectation describes the average value, variance and standard deviation measure the degree to which a random variable's values deviate from its mean 29.
- Variance: For a random variable X, if E[(X−E(X))2] exists, it is called the variance of X, denoted D(X) or Var(X). It is defined as D(X)=E[(X−E(X))2].
- For discrete random variables: D(X)=∑k(xk−E(X))2pk.
- For continuous random variables: D(X)=∫−∞+∞(x−E(X))2f(x)dx.
- Variance is a non-negative constant. A larger variance indicates greater dispersion of values from the mean, while a smaller variance indicates greater concentration.
- Standard deviation: The standard deviation of X, denoted σ(X), is the square root of the variance: σ(X)=D(X). It has the same units as X.
📝 For two automatic bottling machines, A and B, both with an average weight of 100g (E(X)=E(Y)=100). Machine A's weights X are {99,100,101} with probabilities {0.2,0.6,0.2}. Machine B's weights Y are {98,99,100,101,102} with probabilities {0.15,0.2,0.3,0.2,0.15}. D(X)=(−1)2(0.2)+02(0.6)+12(0.2)=0.4. D(Y)=(−2)2(0.15)+(−1)2(0.2)+02(0.3)+12(0.2)+22(0.15)=1.6. Since D(X)<D(Y), machine A's weights are more concentrated around the mean, indicating better performance 30.
- Important formula for variance: D(X)=E(X2)−[E(X)]2.
📝 For a Poisson distribution with parameter λ, E(X)=λ. Using the variance formula, D(X)=E(X2)−[E(X)]2=λ2+λ−λ2=λ. Thus, for a Poisson distribution, its variance equals its mean 30. 📝 For a uniform distribution on [a,b], E(X)=(a+b)/2. E(X2)=∫abx2b−a1dx=b−a1[3x3]ab=3(b−a)b3−a3=3b2+ab+a2. Therefore, D(X)=3b2+ab+a2−(2a+b)2=12(b−a)2 31.
- Properties of variance:
- D(C)=0 for any constant C.
- D(CX)=C2D(X) for any random variable X and constant C.
- D(aX+b)=a2D(X) for any random variable X and constants a,b.
- If X and Y are independent, then D(X±Y)=D(X)+D(Y).
- Generally, if X1,…,Xn are independent, then D(X1+⋯+Xn)=D(X1)+⋯+D(Xn).
- Standardized random variable: For a random variable X with mean E(X) and variance D(X), its standardized random variable is X∗=D(X)X−E(X) 31.
- E(X∗)=0.
- D(X∗)=1 32.
2.8 Moments
Moments are generalized numerical characteristics of random variables 32.
- k-th order origin moment: If E(Xk) exists for a non-negative integer k, it is called the k-th order origin moment (or simply k-th moment) of X.
- k-th order central moment: If E[(X−E(X))k] exists, it is called the k-th order central moment of X.
- Relationship to mean and variance:
- The mean E(X) is the first-order origin moment.
- The variance D(X) is the second-order central moment.
- Calculating second-order origin moment: If E(X) and D(X) are known, the second-order origin moment E(X2) can be found using E(X2)=D(X)+(E(X))2 32.
2.9 Binomial distribution
The binomial distribution describes the probability of a specific number of successes in a fixed number of independent Bernoulli trials. It is a discrete probability distribution 35.
- Bernoulli trial: An experiment with only two mutually exclusive outcomes, typically labeled "success" (A) or "failure" (Aˉ).
- Conditions: Trials are independent and repeated under identical conditions. The probability of success, P(A)=p, remains constant for each trial, where 0<p<1. The probability of failure is q=1−p.
- Examples: Observing if a coin lands heads up, if a patient's treatment is effective, or if a sampled product is defective.
- Probability mass function: For n Bernoulli trials, the probability of exactly k successes is given by: P{X=k}=Cnkpkqn−k,k=0,1,…,n;q=1−p where Cnk is the binomial coefficient 33.
- Notation: A random variable X following a binomial distribution with parameters n (number of trials) and p (probability of success) is denoted as X∼B(n,p).
- Properties:
- Expectation: E(X)=np.
- Variance: D(X)=npq.
- Standard deviation: σ(X)=npq 36.
- Most probable value (k0): The value of k that maximizes P{X=k} 35.
| Condition | Most Probable Value (k0) |
|---|---|
| (n+1)p is an integer | (n+1)p or (n+1)p−1 |
| (n+1)p is not an integer | [(n+1)p] (floor function) |
where [(n+1)p] denotes the integer part of (n+1)p.
- Two-point distribution: This is a special case of the binomial distribution where n=1. It describes the outcome of a single Bernoulli trial35.
- Distribution law: P{X=1}=p, P{X=0}=q.
- Notation: X∼B(1,p).
- Expectation: E(X)=p.
- Variance: D(X)=pq 34.
📝 A drug has an 80% cure rate for a certain disease. If 20 patients are treated, the number of uncured patients (X) follows a binomial distribution B(20,0.2), since the uncured rate is p=0.2. The probability of exactly 2 patients being uncured is P{X=2}=C202(0.2)2(0.8)18=0.1369 34.
2.10 Poisson distribution
The Poisson distribution is a discrete probability distribution that describes the number of events occurring in a fixed interval of time or space, given a constant average rate of occurrence 37 38.
- Probability mass function: For a random variable X following a Poisson distribution with parameter λ>0: P{X=k}=k!e−λλk,k=0,1,2,… where λ is the average rate of events.
- Notation: X∼P(λ).
- Poisson theorem: When n is large and p is small (typically n≥20,p≤0.1), the binomial distribution B(n,p) can be approximated by the Poisson distribution P(λ), where λ=np. Cnkpkqn−k≈k!λke−λ This approximation is useful for calculating probabilities of rare events in a large number of trials 37.
- Properties:
- Expectation: E(X)=λ.
- Variance: D(X)=λ 38.
- Most probable value (k0):
| Condition | Most Probable Value (k0) |
|---|---|
| λ is an integer | λ or λ−1 |
| λ is not an integer | [λ] (floor function) |
where [λ] denotes the integer part of λ.
- Applications: Used to model the number of rare events, such as triplets born in a region, cases of a common disease, bacteria counts in a unit area, or calls received by a telephone exchange in a unit time 38.
📝 In a unit with 30 people, the probability of infection with a certain disease is 20%. The number of infected people (X) follows B(30,0.2). The most probable number of infected people is k0=[(30+1)×0.2]=[6.2]=6. The corresponding probability is P{X=6}=C306(0.2)6(0.8)24=0.17946 36.
2.11 Hypergeometric distribution
The hypergeometric distribution describes the probability of drawing a specific number of successes in n draws, without replacement, from a finite population of size N that contains M successes 39.
- Probability mass function: For a random variable X following a hypergeometric distribution with parameters N,M,n: P{X=k}=CNnCMkCN−Mn−k,k=0,1,…,min(M,n) where N is the total population size, M is the number of successes in the population, and n is the number of draws.
- Notation: X∼H(N,M,n).
- Applications: Commonly used in quality control (e.g., sampling for defective products without replacement) and epidemiological studies.
- Relationship to binomial distribution: As the population size N→∞, the hypergeometric distribution approaches the binomial distribution B(n,p) where p=M/N. This means that for very large populations, sampling without replacement can be approximated by sampling with replacement 39.
2.12 Normal distribution
The normal distribution, also known as the Gaussian distribution, is the most important continuous probability distribution in theory and applications of probability and mathematical statistics 39.
- Probability density function (PDF): For a random variable X following a normal distribution with parameters μ and σ2: f(x)=2πσ1e−2σ2(x−μ)2,−∞<x<+∞ where μ is the mean and σ2 is the variance (σ>0 is the standard deviation).
- Notation: X∼N(μ,σ2).
- Cumulative distribution function (CDF): F(x)=∫−∞x2πσ1e−2σ2(t−μ)2dt,−∞<x<+∞ This function is continuous, monotonically increasing, and F(μ)=0.5 40.
- Properties of the normal curve:
- Shape: A "bell-shaped" smooth curve above the x-axis, symmetric about x=μ.
- Peak: Reaches its maximum value of 2πσ1 at x=μ. Values of X are concentrated around μ.
- Asymptotes: Approaches 0 as x→±∞, with the x-axis as its asymptote.
- Inflection points: Located at x=μ±σ.
- Parameters:
- μ: Determines the position of the curve along the x-axis.
- σ: Determines the steepness of the curve. A larger σ results in a flatter, more dispersed curve, while a smaller σ results in a steeper, more concentrated curve.
- Total area: The total area under the curve is 1, a fundamental property of all probability density functions.
- Expectation and variance: For X∼N(μ,σ2), E(X)=μ and D(X)=σ2.
- Linear transformations:
- If X∼N(μ,σ2), then for any constants a,b, aX+b∼N(aμ+b,a2σ2).
- If X∼N(μ1,σ12) and Y∼N(μ2,σ22) are independent, then X±Y∼N(μ1±μ2,σ12+σ22) 41.
- Any linear combination of a finite number of independent normal random variables also follows a normal distribution 42.
📝 Many natural phenomena, such as human height, weight, red blood cell count, and cholesterol levels, often follow or approximate a normal distribution. This is because they are influenced by numerous small, independent random factors 40.
2.13 Standard normal distribution
The standard normal distribution is a special case of the normal distribution where the mean μ=0 and the standard deviation σ=1 42.
- Notation: X∼N(0,1).
- PDF: Denoted by ϕ(x): ϕ(x)=2π1e−2x2,−∞<x<+∞.
- CDF: Denoted by Φ(x): Φ(x)=∫−∞x2π1e−2t2dt,−∞<x<+∞.
- Symmetry property: The density curve is symmetric about the y-axis. For negative values of x, Φ(−x)=1−Φ(x).
- Standardization: Any general normal random variable X∼N(μ,σ2) can be transformed into a standard normal random variable U∼N(0,1) using the formula: U=σX−μ.
- Probability calculations:
- P{a<X≤b}=Φ(b)−Φ(a) for X∼N(0,1).
- For X∼N(μ,σ2):
- F(x)=Φ(σx−μ).
- P{X>x}=1−Φ(σx−μ).
- P{a<X≤b}=Φ(σb−μ)−Φ(σa−μ) 42.
- "3σ-principle": For X∼N(μ,σ2), the probability of X falling within certain intervals around the mean is 43:
| Interval | Probability |
|---|---|
| [μ−σ,μ+σ] | 68.27% |
| [μ−2σ,μ+2σ] | 95.45% |
| [μ−3σ,μ+3σ] | 99.73% |
This principle states that almost all values of X fall within the interval [μ−3σ,μ+3σ], with less than 0.3% falling outside. It is crucial in statistical inference and quality control 43.
📝 If X∼N(0,1), then P{0.5<X<1.5}=Φ(1.5)−Φ(0.5)=0.9332−0.6915=0.2417 42.
2.14 Critical values of the standard normal distribution
The critical value uα for a standard normal distribution is the point such that the probability of a random variable X being greater than uα is α 44.
- Definition: For a standard normal random variable X and a given α (0<α<1), uα satisfies: P{X>uα}=∫uα+∞2π1e−x2/2dx=α.
- Calculation: This implies Φ(uα)=1−α. Critical values can be found using standard normal distribution tables.
- For general normal distribution: To find the critical value x0 for X∼N(μ,σ2) such that P{X>x0}=α, first find uα from Φ(uα)=1−α. Then, x0=μ+uασ 44.
📝 If α=0.05, then Φ(u0.05)=1−0.05=0.95. From a standard normal distribution table, u0.05=1.645 44.
2.15 Exponential distribution
The exponential distribution is a continuous probability distribution that describes the time until an event occurs in a Poisson process, i.e., a process in which events occur continuously and independently at a constant average rate 45.
- Probability density function (PDF): For a random variable X following an exponential distribution with parameter λ>0: f(x)={λe−λx,0,x≥0x<0.
- Notation: X∼E(λ). F(x)={1−e−λx,0,x≥0x<0.
- Properties:
- Expectation: E(X)=1/λ.
- Variance: D(X)=1/λ2.
- Applications: Commonly used to model "lifespans" (e.g., animal lifespan, electronic component lifespan) and "waiting times" (e.g., phone call duration, service times in queuing theory) 45.
📝 If a batch of medical electronic monitors has an average lifespan of 1000 hours, then E(X)=1/λ=1000, so λ=1/1000. The probability that a randomly selected monitor will operate normally for more than 1000 hours is P{X>1000}=∫1000+∞10001e−x/1000dx=e−1≈0.368 45.
2.16 Distribution of functions of random variables
When a random variable X is known, a function Y=g(X) also becomes a random variable, and it is often necessary to find its probability distribution 46.
- For discrete random variables: If X has a probability mass function P{X=xk}=pk, then Y=g(X) takes values g(xk) with corresponding probabilities.
- Distinct values: If all g(xk) values are distinct, then P{Y=g(xk)}=P{X=xk}=pk.
- Repeated values: If some g(xk) values are equal, their corresponding probabilities must be summed to find the probability for that specific value of Y 46.
| X values | Y values (g(xk)) | Probabilities (P{Y=yj}) |
|---|---|---|
| x1 | g(x1) | p1 |
| x2 | g(x2) | p2 |
| ... | ... | ... |
| xk | g(xk) | pk |
This table represents the distribution of Y after combining probabilities for identical g(xk) values 46.
2.17 Functions of random variables
The distribution of a function of a random variable can be determined using the distribution function method. This method is generally applicable for both discrete and continuous random variables 47.
- Discrete random variable functions: For a discrete random variable X and a function Y=g(X), the distribution of Y is found by mapping each value of X to a value of Y and summing the probabilities for identical Y values.
- Continuous random variable functions: For a continuous random variable X with a known probability density function f(x), the probability density function f(y) of Y=g(X) is found by first determining the cumulative distribution function F(y)=P{Y≤y} and then differentiating F(y) with respect to y to get f(y) 47.
📝 For a random variable X following an exponential distribution with parameter λ, f(x)=λe−λx for x>0 and 0 otherwise. To find the density f(y) for Y=X3, we first find F(y)=P{Y≤y}=P{X3≤y}=P{X≤y1/3}. For y>0, F(y)=∫0y1/3λe−λxdx=1−e−λy1/3. Differentiating with respect to y gives f(y)=λe−λy1/3⋅31y−2/3. Thus, f(y)=31λy−2/3e−λy1/3 for y>0 and 0 otherwise 47.
When y=g(x) is a strictly monotonic function, a simplified formula can be used to find the probability density function of Y. If x=h(y) is the inverse function of y=g(x), then f(y)=f[h(y)]⋅∣h′(y)∣ 47.
- Strictly monotonic function: If g′(x)>0 (strictly increasing) or g′(x)<0 (strictly decreasing) on the interval (a,b) where f(x) is non-zero, this formula applies 47.
- Non-monotonic functions: If y=g(x) is not strictly monotonic, the general distribution function method must be used 48.
2.18 Random vectors
In practical problems, many random phenomena are influenced by multiple random factors, requiring the simultaneous consideration of several random variables. An n-dimensional random vector X=(X1,X2,…,Xn) is formed by n random variables, allowing for the study of their individual statistical laws and their interrelationships 48.
- Two-dimensional random vector: A vector (X,Y) composed of random variables X and Y is called a two-dimensional random vector or two-dimensional random variable 48.
- Joint distribution function: For a two-dimensional random vector (X,Y), the joint distribution function is defined as F(x,y)=P{X≤x,Y≤y} for any real numbers x,y. Geometrically, it represents the probability that the random point (X,Y) falls within the infinite rectangular region to the lower-left of (x,y) 49.
The joint distribution function F(x,y) has several key properties:
- Bounds: 0≤F(x,y)≤1.
- Limits: F(−∞,−∞)=0, F(+∞,+∞)=1. Also, F(−∞,y)=0 and F(x,−∞)=0.
- Monotonicity: F(x,y) is non-decreasing with respect to both x and y.
- Right-continuity: F(x,y) is right-continuous with respect to both x and y 49.
2.19 Marginal distributions
The probability distribution of a component random variable (e.g., X or Y) within a two-dimensional random vector (X,Y) is called its marginal distribution 49.
- Marginal distribution function of X: FX(x)=P{X≤x}=F(x,+∞)=limy→+∞F(x,y).
- Marginal distribution function of Y: FY(y)=P{Y≤y}=F(+∞,y)=limx→+∞F(x,y) 49.
2.20 Two-dimensional discrete random vectors
A two-dimensional random vector (X,Y) is discrete if its possible values (xi,yj) are finite or countably infinite 49.
- Joint probability distribution: The probability P{X=xi,Y=yj}=pij is called the joint probability distribution or joint distribution law of (X,Y).
- Properties of pij:
- pij≥0 for all i,j.
- ∑i=1∞∑j=1∞pij=1.
- Marginal probability distribution:
- For X: P{X=xi}=∑j=1∞pij=pi.
- For Y: P{Y=yj}=∑i=1∞pij=p.j 49.
2.21 Two-dimensional continuous random vectors
A two-dimensional random vector (X,Y) is continuous if there exists a non-negative integrable function f(x,y) such that for any two-dimensional rectangle D={(x,y);a<x≤b,c<y≤d}, P{a<X≤b,c<Y≤d}=∬Df(x,y)dxdy 50 51.
- Joint probability density function: The function f(x,y) is called the joint probability density function or joint density of (X,Y).
- Properties of f(x,y):
- f(x,y)≥0.
- ∬−∞+∞f(x,y)dxdy=1.
- For any region G in the xoy plane, P{(X,Y)∈G}=∬Gf(x,y)dxdy. This probability is the volume of the cylinder with base G and height z=f(x,y).
- If f(x,y) is continuous at (x,y), then f(x,y)=∂x∂y∂2F(x,y).
- Joint distribution function: F(x,y)=∫−∞x∫−∞yf(u,v)dudv.
- Marginal probability density:
- For X: fX(x)=∫−∞+∞f(x,y)dy.
- For Y: fY(y)=∫−∞+∞f(x,y)dx 51.
📝 Given the joint density f(x,y)=Ce−(2x+3y) for x>0,y>0 and 0 otherwise. To find the constant C, we use ∬−∞+∞f(x,y)dxdy=1. This gives C∫0∞e−2xdx∫0∞e−3ydy=C⋅21⋅31=6C=1, so C=6. The marginal density for X is fX(x)=∫0∞6e−(2x+3y)dy=6e−2x∫0∞e−3ydy=6e−2x⋅31=2e−2x for x>0 and 0 otherwise. Similarly, fY(y)=3e−3y for y>0 and 0 otherwise 51 52.
2.22 Two-dimensional normal distribution
The two-dimensional normal distribution is a commonly used distribution for random vectors. A two-dimensional random vector (X,Y) follows a two-dimensional normal distribution, denoted (X,Y)∼N(μ1,μ2,σ1,σ2,ρ), if its joint density function is given by a specific formula involving parameters μ1,μ2,σ1,σ2>0, and ∣ρ∣<1 52.
- Parameters:
- μ1,μ2: Means of X and Y, respectively.
- σ1,σ2: Standard deviations of X and Y, respectively.
- ρ: Correlation coefficient between X and Y.
- Marginal distributions: If (X,Y)∼N(μ1,μ2,σ1,σ2,ρ), then the marginal distributions are also normal: X∼N(μ1,σ12) and Y∼N(μ2,σ22) 52.
2.23 Independence of random variables
The concept of independence for random variables is analogous to that for random events. Two random variables X and Y are mutually independent if, for any a<b and c<d, the events {a<X<b} and {c<Y<d} are independent 52.
- Discrete random variables: X and Y are independent if and only if P{X=xi,Y=yj}=P{X=xi}P{Y=yj} for all i,j. This means pij=pi.p.j.
- Continuous random variables: X and Y are independent if and only if f(x,y)=fX(x)fY(y) for all x,y, where f(x,y) is the joint density and fX(x), fY(y) are the marginal densities.
- Implication: When X and Y are independent, their marginal distributions completely determine their joint distribution, simplifying two-dimensional problems to one-dimensional ones 52.
📝 For the sampling problem in Example 3-24, with replacement sampling, X and Y are independent because P{X=x,Y=y}=P{X=x}P{Y=y} holds for all values. However, for sampling without replacement, X and Y are not independent, as shown by P{X=0,Y=0}=3/10×2/9=6/90=P{X=0}P{Y=0}=3/10×3/10=9/100 53.
2.24 Covariance and correlation coefficient
Covariance and the correlation coefficient are numerical characteristics used to describe the joint variation and linear relationship between two random variables 53.
2.25 Covariance
The covariance of two random variables X and Y, denoted Cov(X,Y) or σXY, measures how X and Y change together. It is defined as E[(X−E(X))(Y−E(Y))], provided this expectation exists 53.
- Calculation for discrete variables: Cov(X,Y)=∑i∑j(xi−E(X))(yj−E(Y))pij.
- Calculation for continuous variables: Cov(X,Y)=∫−∞+∞∫−∞+∞(x−E(X))(y−E(Y))f(x,y)dxdy.
- Simplified formula: Cov(X,Y)=E(XY)−E(X)E(Y).
- Properties of covariance:
- Cov(X,Y)=Cov(Y,X).
- For constants a,b, Cov(aX,bY)=abCov(X,Y).
- Cov(X1+X2,Y)=Cov(X1,Y)+Cov(X2,Y).
- D(X±Y)=D(X)+D(Y)±2Cov(X,Y).
- If X and Y are independent, then Cov(X,Y)=0. However, the converse is not necessarily true.
- Two-dimensional normal distribution: For (X,Y)∼N(μ1,μ2,σ1,σ2,ρ), the covariance is Cov(X,Y)=ρσ1σ2 54.
2.26 Correlation coefficient
The correlation coefficient ρXY (or ρ) quantifies the linear relationship between X and Y. It is defined as ρXY=D(X)D(Y)Cov(X,Y), provided D(X)>0, D(Y)>0, and Cov(X,Y) exist 54.
- Properties of correlation coefficient:
- ∣ρXY∣≤1.
- ∣ρXY∣=1 if and only if there exist constants a,b such that P{Y=aX+b}=1. This indicates a perfect linear relationship.
- Interpretation:
- A larger ∣ρXY∣ indicates a stronger linear relationship between X and Y.
- If ρXY=0, X and Y are said to be uncorrelated, meaning there is no linear relationship (though other non-linear relationships might exist) 54.
- Independence vs. uncorrelation: If X and Y are independent, they are uncorrelated (ρXY=0). However, if they are uncorrelated, they are not necessarily independent.
- Two-dimensional normal distribution: For a two-dimensional normal distribution, uncorrelation (ρ=0) is equivalent to independence 55.
2.27 Limit theorems
Limit theorems in probability theory, such as the Law of Large Numbers and the Central Limit Theorem, explain the statistical regularities of random phenomena observed in large numbers of trials or observations 56.
2.28 Law of large numbers
The Law of Large Numbers describes the stability of average results in a large number of random phenomena. It provides a theoretical basis for the "frequency stability" of random events 57.
- Chebyshev's inequality: For a random variable X with existing E(X) and D(X), for any positive ε, P{∣X−E(X)∣≥ε}≤ε2D(X). This inequality shows that as D(X) decreases, X values cluster more closely around E(X).
- Equivalent form: P{∣X−E(X)∣<ε}≥1−ε2D(X).
- Application: It allows for estimating probabilities when only the mean and variance of X are known 56.
📝 For adult males, the mean white blood cell count X is μ=7300 with variance σ2=7002. To estimate the probability that X is between 5900 and 8700, we use Chebyshev's inequality: P{5900<X<8700}=P{∣X−7300∣<1400}. Taking ε=1400, we get P{∣X−7300∣<1400}≥1−140027002=1−41=0.75. Thus, the probability is at least 0.75 56 57.
- Chebyshev's Law of Large Numbers: If X1,X2,… are independent and identically distributed random variables with E(Xk)=μ and D(Xk)=σ2 (both finite), then for any ε>0, limn→+∞P{n1∑k=1nXk−μ≥ε}=0. This means the sample mean n1∑k=1nXk converges in probability to μ.
- Bernoulli's Law of Large Numbers: In n independent Bernoulli trials, if A is an event with probability p of occurring in each trial, and X is the number of times A occurs, then for any ε>0, limn→+∞P{nX−p≥ε}=0. This rigorously describes "frequency stability," stating that the frequency of event A converges in probability to its probability p as n increases 57.
2.29 Central limit theorem
The Central Limit Theorem (CLT) provides a theoretical basis for why many random variables in practical problems approximately follow a normal distribution. This typically occurs when a random variable is influenced by many independent, small, and non-dominant random factors 57.
- Lévy-Lindelberg Central Limit Theorem: If X1,X2,… are independent and identically distributed random variables with E(Xk)=μ and D(Xk)=σ2 (both finite), then for any real number x, limn→+∞P{nσ∑k=1nXk−nμ≤x}=Φ(x), where Φ(x) is the cumulative distribution function of the standard normal distribution N(0,1) 57.
- Approximation: For sufficiently large n, the standardized sum Y=nσ∑Xk−nμ approximately follows a standard normal distribution N(0,1). Consequently, the sum ∑Xk approximately follows a normal distribution N(nμ,nσ2).
- Generalization: The CLT holds even if the Xk are not identically distributed, as long as they are independent and have finite means and variances 58.
2.30 SPSS software application summary
SPSS provides functions for calculating probabilities, cumulative probabilities, and critical values for various statistical distributions 59.
| Statistical Content | SPSS Menu Option |
|---|---|
| Probability, cumulative probability, or critical value calculation for statistical distributions | Transform → Compute Variable (SPSS function calculation) |
| Distribution | Calculation Type | SPSS Function |
|---|---|---|
| Binomial Distribution | Probability P{X=x} | PDF.BINOM(x,n,p) |
| Binomial Distribution | Cumulative Probability P{X≤x} | CDF.BINOM(x,n,p) |
| Poisson Distribution | Probability P{X=x} | PDF.POISSON(x,λ) |
| Poisson Distribution | Cumulative Probability P{X≤x} | CDF.POISSON(x,λ) |
| Normal Distribution | Cumulative Probability P{X≤x} | CDF.NORMAL(x,μ,σ) |
| Normal Distribution | Critical Value (Quantile) x | IDF.NORMAL(1-α,μ,σ) |
| Exponential Distribution | Cumulative Probability P{X≤x} | CDF.EXP(x,λ) |
| Exponential Distribution | Critical Value (Quantile) x | IDF.EXP(1-α,λ) |
3. Chapter 4: Sampling Distributions
Statistical research aims to understand the quantitative characteristics and statistical regularities of a population. When a complete survey of the entire population is available, its characteristic indicators (like mean or variance) can be directly calculated.
However, in many real-world scenarios, it is impractical or impossible to measure every individual in a population, necessitating the use of sampling to infer population characteristics, a process known as statistical inference 65.
3.1 Basic concepts of mathematical statistics
Mathematical statistics defines the entire group of study objects as the population, with each basic unit being an individual. Populations can be finite or infinite, depending on the number of individuals they contain.
Often, a very large finite population is treated as an infinite one. In practice, research often focuses on one or more quantitative indicators of a population, which can be viewed as random variables 65.
- Population (X): The entire set of individuals or quantitative indicator values under study. It can be represented by a random variable X with a distribution F(x).
- Individual: A single basic unit that makes up the population 65.
- Parameter: A characteristic indicator of the population, such as the population mean (μ) or variance (σ2) 66.
In probability theory, the distribution and parameters of a population are typically known, and the focus is on the likelihood of various experimental outcomes. In contrast, statistical inference deals with situations where population characteristics are unknown, requiring estimation and inference based on samples 66.
3.2 Population and sample
Sampling involves drawing n individuals (X1,X2,…,Xn) from a population X. The collection of these individuals forms a sample of size n.
The number n is the sample size. A sample is considered large if n≥30 and small otherwise 66.
- Sample (X1,X2,…,Xn): A subset of n individuals drawn from the population X. These are considered n random variables.
- Sample observation values (x1,x2,…,xn): The specific numerical values obtained from a single sampling event, representing the realizations of the random variables X1,X2,…,Xn.
- Simple random sampling: A method where each individual has an equal chance of being selected, and each selection is independent and identically distributed (i.i.d.) with the same distribution as the population X.
- Independence: Each draw does not affect subsequent draws.
- Identically distributed: Each sampled individual Xi has the same distribution as the population X.
- Sampling with replacement: For finite populations, this method satisfies the independence requirement.
- Sampling without replacement: For finite populations, this method does not strictly satisfy independence. However, for infinite populations or very large finite populations (where n is less than 5% of the population size), it is often considered to approximately satisfy independence and representativeness 66.
3.3 Statistics
A statistic is a function of the sample X1,X2,…,Xn that does not contain any unknown parameters of the population. Statistics are used to process sample information for estimating and inferring population characteristics 66.
| Statistic | Formula | Purpose |
|---|---|---|
| Sample mean | Xˉ=n1∑i=1nXi | Estimates population mean μ |
| Sample variance | S2=n−11∑i=1n(Xi−Xˉ)2 | Estimates population variance σ2 |
| Sample standard deviation | S=S2 | Estimates population standard deviation σ |
| Sample coefficient of variation | CV=∣Xˉ∣S×100% | Compares variation across samples with different means |
| Sample standard error | Sxˉ=nS | Measures average error when estimating population mean with sample mean |
When referring to a general sampling outcome, statistics like Xˉ and S2 are random variables. When referring to a specific sampling outcome, their values xˉ and s2 are concrete numerical values 67.
📝 If a population X∼N(μ,σ2) where μ is known and σ2 is unknown, then min{X1,X2,…,Xn} and ∑i=1n(Xi−μ)2 are statistics. However, ∑i=1n(Xi−σ2)2 is not a statistic because it contains the unknown parameter σ2 66.
3.4 Sampling distributions
A sampling distribution is the probability distribution of a statistic, which is itself a random variable. Sampling distributions are fundamental to statistical inference.
The most common sampling distributions are the normal distribution, chi-square (χ2) distribution, t-distribution, and F-distribution 68.
3.5 Distribution of the sample mean
If X1,X2,…,Xn is a random sample from a population X, these are n independent and identically distributed random variables. The normal distribution is a common distribution, so its properties are often considered first 68.
-
Theorem 4-1: If the population X∼N(μ,σ2), then the sample mean Xˉ=n1∑i=1nXi also follows a normal distribution: Xˉ∼N(μ,nσ2).
-
Expected value: E(Xˉ)=μ.
-
Variance: D(Xˉ)=nσ2.
-
Standardized sample mean: U=σ/nXˉ−μ∼N(0,1) 68.
-
Standard error (σXˉ): The standard deviation of the sample mean, σXˉ=nσ 69.
-
Theorem 4-2 (Central Limit Theorem application): If the population X has a finite mean μ and variance σ2, then for a sufficiently large sample size n, the sample mean Xˉ is approximately normally distributed, regardless of the population's original distribution: Xˉ∼N(μ,nσ2).
-
This theorem implies that using Xˉ to estimate μ is unbiased on average, and accuracy increases with larger n.
-
For practical calculations, this theorem is applied when n≥30 if the population distribution is unknown 69.
📝 A sample of size 64 is drawn from a population with mean μ=18 and variance σ2=36. To find the probability that the sample mean Xˉ falls between 16 and 19: Since n=64>30, Xˉ approximately follows N(18,6436), which is N(18,169). P{16≤Xˉ≤19}=Φ(3/419−18)−Φ(3/416−18)=Φ(1.333)−Φ(−2.667)=0.9082−(1−0.9962)=0.9044 69.
3.6 Chi-square (χ2) distribution
The chi-square distribution is defined based on independent standard normal random variables 69.
-
Definition 4-4: If X1,X2,…,Xn are independent random variables, each following a standard normal distribution N(0,1), then the sum of their squares, χ2=X12+X22+⋯+Xn2, follows a chi-square distribution with n degrees of freedom (df), denoted χ2∼χ2(n).
-
Degrees of freedom (df): Represents the number of independent variables in a statistic, calculated as n−r, where n is the number of variables and r is the number of constraints among them.
-
Probability density function: f(x)={2n/2Γ(2n)1x2n−1e−2x,0,x≥0x<0 69.
-
Properties of χ2(n) distribution:
-
It is an asymmetric, skewed distribution, taking only non-negative values.
-
As n increases, it becomes more symmetrical and approaches a normal distribution.
-
Additivity: If χ12∼χ2(n1) and χ22∼χ2(n2) are independent, then χ12+χ22∼χ2(n1+n2).
-
Mean: E(χ2)=n.
-
Variance: D(χ2)=2n 70.
-
Theorem 4-3: If X1,X2,…,Xn is a sample from a normal population X∼N(μ,σ2), then σ2(n−1)S2∼χ2(n−1), and Xˉ and S2 are independent 70.
-
Critical values: The upper α critical value χα2(n) satisfies P{χ2>χα2(n)}=α.
-
For large n (e.g., n>45), 2χ2≈N(2n−1,1) 70.
-
An approximation for χα2(n) when n>45 is 21(uα+2n−1)2, where uα is the upper α critical value of the standard normal distribution 71.
📝 For χ2(10), the upper 0.05 critical value is χ0.052(10)=18.307, meaning P{χ2(10)>18.307}=0.05 70.
3.7 t-distribution
The t-distribution is used when the population variance is unknown and estimated from the sample 71.
-
Definition 4-5: If X∼N(0,1) and Y∼χ2(n) are independent random variables, then T=Y/nX follows a t-distribution with n degrees of freedom, denoted T∼t(n).
-
Probability density function: f(x)=nπΓ(n/2)Γ((n+1)/2)(1+nx2)−(n+1)/2, for −∞<x<+∞.
-
Properties of t-distribution:
-
It is symmetrical around the y-axis.
-
As n→∞, it approaches the standard normal distribution N(0,1).
-
For large samples (n≥30), the t-distribution can be approximated by the standard normal distribution 71.
-
Theorem 4-4: If X1,X2,…,Xn is a sample from a normal population X∼N(μ,σ2), with sample mean Xˉ and sample variance S2, then T=S/nXˉ−μ∼t(n−1).
-
S/n is the sample standard error, denoted Sxˉ 72.
-
Theorem 4-5 (Difference of two means): If X1,…,Xn1 and Y1,…,Yn2 are independent samples from two normal populations X∼N(μ1,σ2) and Y∼N(μ2,σ2) with equal variances, then T=S1/n1+1/n2(Xˉ−Yˉ)−(μ1−μ2)∼t(n1+n2−2), where S2=n1+n2−2(n1−1)Sx2+(n2−1)Sy2 72.
-
Critical values: The upper α critical value tα(n) satisfies P{T>tα(n)}=α.
-
Due to symmetry, for a two-sided critical value tα/2(n), P{∣T∣>tα/2(n)}=α.
-
For n>45, tα(n) can be approximated by the standard normal critical value uα 72.
📝 For t(10), the upper 0.025 critical value is t0.025(10)=2.228 72.
3.8 F-distribution
The F-distribution is used to compare variances of two normal populations 73.
-
Definition 4-6: If X1∼χ2(n1) and X2∼χ2(n2) are independent random variables, then F=X2/n2X1/n1 follows an F-distribution with n1 (numerator) and n2 (denominator) degrees of freedom, denoted F∼F(n1,n2).
-
Probability density function: f(x)=Γ(n1/2)Γ(n2/2)Γ((n1+n2)/2)(n2n1)n1/2xn1/2−1(1+n2n1x)−(n1+n2)/2, for x>0.
-
Properties of F-distribution:
-
It is a non-symmetrical, skewed distribution, taking only non-negative values.
-
Its shape varies with n1 and n2 73.
-
Theorem 4-6: If X1,…,Xn1 and Y1,…,Yn2 are independent samples from normal populations X∼N(μ1,σ12) and Y∼N(μ2,σ22), with sample variances Sx2 and Sy2, then F=Sy2/σ22Sx2/σ12∼F(n1−1,n2−1) 74.
-
Theorem 4-7 (Reciprocal property): If X∼F(n1,n2), then X1∼F(n2,n1).
-
This property is used to find left-sided critical values: F1−α(n1,n2)=Fα(n2,n1)1 74.
-
Critical values: The upper α critical value Fα(n1,n2) satisfies P{F>Fα(n1,n2)}=α 74.
📝 For F(10,5), the upper 0.05 critical value is F0.05(10,5)=4.74. Using the reciprocal property, the lower 0.05 critical value is F0.95(10,5)=F0.05(5,10)1=3.331≈0.30 74.
3.9 SPSS software application
SPSS provides functions to calculate cumulative probabilities and critical values for χ2, t, and F distributions 75.
| Distribution | Probability Value (P{X ≤ x}) | Critical Value (X_α(n)) |
|---|---|---|
| χ2 distribution | CDF.CHISQ(x, n) | IDF.CHISQ(1-α, n) |
| t-distribution | CDF.T(x, n) | IDF.T(1-α, n) |
| F-distribution | CDF.F(x, n₁, n₂) | IDF.F(1-α, n₁, n₂) |
- CDF functions: Calculate the cumulative probability P{X≤x}.
- IDF functions: Calculate the quantile (critical value) Xα(n) corresponding to a given cumulative probability 1−α 75.
4. Chapter 5: Parameter Estimation
Parameter estimation is a fundamental statistical inference method used to estimate unknown parameters of a population distribution based on a set of sample observations. It typically involves two types: point estimation and interval estimation 77.
4.1 Point estimation
Point estimation uses the observed value of a suitable statistic as a single estimate for an unknown parameter. The statistic used to estimate a population parameter is called an estimator.
An estimator is a random variable, and its estimated value varies with different samples 77.
4.2 Moment estimation method
The moment estimation method, proposed by K. Pearson in 1894, is one of the oldest and most widely used parameter estimation techniques. It relies on the principle that sample moments converge in probability to their corresponding population moments 77 78.
- Principle: Sample moments are used as estimators for corresponding population moments, and continuous functions of sample moments are used for continuous functions of population moments.
- Application: For a population X with unknown parameters θ1,θ2,…,θr, if the first r raw moments E(Xk) exist, the method equates sample moments to population moments to solve for the parameters.
- Common estimators:
- The sample mean Xˉ is the moment estimator for the population mean μ.
- The sample variance S2 is the moment estimator for the population variance σ2.
- The sample standard deviation S is the moment estimator for the population standard deviation σ 78.
- Advantages: It is intuitive, simple, and broadly applicable, especially for estimating population means and variances without needing to know the exact population distribution.
- Disadvantages:
- May not be as effective as specialized estimators for certain distributions.
- Moment estimators may not be unique.
- Generally less precise than maximum likelihood estimation for large sample sizes.
- Not suitable for populations where raw moments do not exist 79.
📝 For 10 mice with weights (g): 20, 21, 20, 20, 22, 19, 18, 20, 21, 22, the sample mean xˉ=20.3 g and sample variance S2=1.57 are the moment estimates for the population mean μ and variance σ2, respectively 78.
4.3 Maximum likelihood estimation method
The maximum likelihood estimation (MLE) method fully utilizes known information about the population distribution type to obtain more accurate estimators. Its basic idea is to select population parameters that maximize the probability of observing the given sample values 79.
- Likelihood function L(θ): For a random variable X with known probability function P(x,θ) or density function f(x,θ) and sample observations x1,x2,…,xn, the likelihood function is defined as:
- For discrete distributions: L(θ)=∏i=1nP(xi,θ)
- For continuous distributions: L(θ)=∏i=1nf(xi,θ) 79.
- Maximum likelihood estimate θ^: The value of θ that maximizes L(θ) is the maximum likelihood estimate.
- Likelihood equation: If L(θ) is differentiable, θ^ can be found by solving dθdL(θ)=0 or, more commonly, dθdlnL(θ)=0.
- Advantages: Widely applicable due to its full utilization of population distribution type and sample information.
- Disadvantages:
- Sometimes, the MLE cannot be derived from the likelihood equation.
- Likelihood equations can be difficult to solve.
- The solution to the likelihood equation may not always correspond to a maximum 80.
📝 For an exponential distribution with density function f(x;λ)=λe−λx for x≥0, the maximum likelihood estimator for λ is λ^=∑xin=Xˉ1 80.
4.4 Criteria for evaluating estimators
Different estimation methods can yield different estimators for the same population parameter, necessitating criteria to evaluate their quality. A good estimator should possess unbiasedness, efficiency, and consistency 80.
| Criterion | Description |
|---|---|
| Unbiasedness | The expected value of the estimator equals the true value of the unknown parameter: E(θ^)=θ. |
| Efficiency | Among unbiased estimators, the one with the smallest variance D(θ^) is considered more efficient, indicating its values are more concentrated around the true parameter 81. |
| Consistency | As the sample size n approaches infinity, the estimator θ^ converges in probability to the true parameter θ, meaning P{∣θ^−θ∣<ϵ}→1 for any ϵ>0 82. |
📝 The sample mean Xˉ is an unbiased estimator for the population mean μ because E(Xˉ)=μ. The sample variance S2=n−11∑(Xi−Xˉ)2 is an unbiased estimator for the population variance σ2 because E(S2)=σ2 81.
4.5 Interval estimation
Interval estimation provides a range, or interval, within which the unknown parameter is likely to lie, along with a measure of confidence in that range. This addresses the limitations of point estimates, which do not account for sampling error 82.
- Confidence interval: For an unknown parameter θ, a (1−α)% confidence interval is defined by two statistics θ^1 and θ^2 such that P{θ^1<θ<θ^2}=1−α.
- Components:
- θ^1: Confidence lower limit.
- θ^2: Confidence upper limit.
- (1−α) or 100(1−α)%: Confidence level.
- Interpretation: A 95% confidence interval means that if the estimation process were repeated 100 times, approximately 95 of the resulting intervals would contain the true parameter θ.
- Trade-off: A smaller α (higher confidence level) leads to a wider interval, which may reduce its practical significance. Conversely, a smaller interval length (higher precision) reduces the confidence level 82 83.
4.6 Interval estimation for the mean of a normal population
When dealing with a normal population N(μ,σ2), the interval estimate for the population mean μ depends on whether the population variance σ2 is known 83.
| Condition | Formula for (1−α) Confidence Interval for μ |
|---|---|
| σ2 known | (Xˉ−uα/2nσ,Xˉ+uα/2nσ) or Xˉ±uα/2nσ 83. |
| σ2 unknown | (Xˉ−tα/2(n−1)nS,Xˉ+tα/2(n−1)nS) or Xˉ±tα/2(n−1)nS 84. |
| Large sample (non-normal or σ2 unknown) | Xˉ±uα/2nS (approximate) 86. |
- Critical values:
- For σ2 known, uα/2 is obtained from the standard normal distribution. Common values are u0.05/2=1.96 for 95% confidence and u0.01/2=2.58 for 99% confidence 83.
- For σ2 unknown, tα/2(n−1) is obtained from the t-distribution with n−1 degrees of freedom 84.
📝 For a normal population N(μ,0.12) with a sample mean of 5.58 from a sample of size n=4, the 99% confidence interval for μ is 5.58±2.58×40.1=5.58±0.129, resulting in (5.451,5.709) 84.
4.7 Interval estimation for the variance of a normal population
For a normal population N(μ,σ2) where both μ and σ2 are unknown, the confidence interval for the population variance σ2 is based on the chi-squared distribution 86.
- Formula: The (1−α) confidence interval for σ2 is given by: (χα/22(n−1)(n−1)S2,χ1−α/22(n−1)(n−1)S2) where S2 is the sample variance, n is the sample size, and χα/22(n−1) and χ1−α/22(n−1) are critical values from the chi-squared distribution with n−1 degrees of freedom87.
- Chi-squared distribution: The statistic σ2(n−1)S2 follows a chi-squared distribution with n−1 degrees of freedom. Due to the asymmetry of the chi-squared distribution, two critical values are needed 86.
📝 For 10 aspirin tablets with a sample variance S2=0.956, the 90% confidence interval for the population variance σ2 is calculated using n=10, α=0.1, and df=9. The critical values are χ0.052(9)=16.919 and χ0.952(9)=3.325. The interval is (16.9199×0.956,3.3259×0.956)=(0.509,2.588) 87.
4.8 Interval estimation for binomial and Poisson distribution parameters
For binomial and Poisson distributions, interval estimation often relies on large sample normal approximations or exact methods for small samples 87 90.
4.9 Interval estimation for binomial population proportion P
The population proportion P represents the proportion of individuals with a certain characteristic in a population. The sample proportion p=m/n is used to estimate P, where m is the number of individuals with the characteristic in a sample of size n 87.
- Large sample normal approximation: When n is sufficiently large and p and 1−p are not close to 0 or 1, the sample proportion p approximately follows a normal distribution N(P,nP(1−P)).
- Confidence interval formula: The (1−α) confidence interval for P is: (p−uα/2np(1−p),p+uα/2np(1−p)) or p±uα/2np(1−p).
- Sample size determination: To ensure the confidence interval width does not exceed a given δ, the required sample size n can be estimated by n≥(δ/2)2uα/22p(1−p). If p is unknown, p=0.5 can be used for a conservative estimate 88 89.
📝 For 100 mice, 80 died after receiving an organophosphorus pesticide. The sample mortality rate p=0.80. For a 95% confidence interval, uα/2=1.96. The interval is 0.80±1.96×1000.8(1−0.8)=0.80±0.078, which is (0.722,0.878) or (72.2%,87.8%) 88.
4.10 Interval estimation for Poisson distribution parameter λ
For a random variable X following a Poisson distribution with parameter λ, both the population mean and variance are equal to λ 89.
- Large sample normal approximation: For a large sample size n, the sample mean Xˉ approximately follows a normal distribution N(λ,λ/n).
- Confidence interval for λ: The (1−α) confidence interval for λ is: (nXˉ−uα/2nXˉ,nXˉ+uα/2nXˉ) where Xˉ is the sum of sample observations ∑Xi.
- Confidence interval for nλ (total count): The (1−α) confidence interval for the total count nλ is: (Xˉ−uα/2Xˉ,Xˉ+uα/2Xˉ) 89.
📝 A radioactive sample recorded 11,286 pulses in 20 minutes. For a 95% confidence interval, uα/2=1.96. The total pulse count interval is 11286±1.96×11286=11286±208, resulting in (11078,11494). The average pulse count per minute interval is (553.9,574.7) 90.
4.11 Small sample exact estimation method
When sample sizes are not large enough for normal approximations, exact methods are used, often involving pre-calculated tables 90.
- Binomial distribution: For small n, the confidence interval for population proportion P can be found by consulting specific tables for binomial distribution parameters.
- Poisson distribution: Similarly, for small samples, the confidence interval for Poisson parameter λ can be obtained from tables based on the total sample count X and the confidence level 90.
📝 If 4 out of 10 animals died after drug injection, for a 99% confidence interval for the overall mortality rate, one would consult a table (e.g., Appendix Table 8) for n=10,m=4,α=0.01. This yields a confidence interval of (0.077,0.809) or (7.7%,80.9%) 90.
5. Chapter 6: Hypothesis Testing for Parameters
5.1 Introduction to hypothesis testing
Hypothesis testing, also known as significance testing, involves making an assumption about a population parameter or distribution, then using statistical methods to calculate statistics from a sample to infer whether the assumption should be accepted or rejected. It is a crucial aspect of statistical inference 94.
- Types of hypothesis tests:
- Parameter test: Used when the population distribution type is known, and the test concerns unknown population parameters like mean, variance, or population proportion. This chapter focuses on parameter tests.
- Non-parameter test: Used when the population distribution type is unknown, covering tests for population distribution forms or the independence of random variables 94.
5.2 Hypothesis testing problems
Hypothesis testing addresses questions about whether a population parameter equals a specific value or meets a certain condition 94 95.
- Null hypothesis (H0): The assumption being tested, often stating no effect or no difference.
- Alternative hypothesis (H1): The hypothesis that contradicts the null hypothesis 95.
📝 For a packaging machine designed to fill 500g per bag, if a sample average is 504.5g, the question is whether the machine's average weight is still 500g. This translates to H0:μ=500 and H1:μ=500 94 95.
5.3 Basic principles of hypothesis testing
The fundamental idea of hypothesis testing is based on the small probability principle, which states that a small probability event is highly unlikely to occur in a single trial 95.
- Methodology:
- Assume the null hypothesis (H0) is true.
- Use sampling theory and sample information to make an inference.
- If a contradiction arises (a small probability event occurs), reject H0.
- Otherwise, do not reject H0.
- Test statistic: A value calculated from sample data to evaluate the null hypothesis. For a normal population mean μ with known variance σ2, the test statistic is U=σ/nXˉ−μ0∼N(0,1).
- Significance level (α): A pre-determined probability (e.g., 0.05) that defines the threshold for rejecting H0. It represents the probability of committing a Type I error96.
- Rejection region: The range of values for the test statistic that leads to rejecting the null hypothesis. If the calculated test statistic falls within this region, H0 is rejected 95.
5.4 General steps of hypothesis testing
Hypothesis testing follows a structured approach to make statistical inferences 96.
- Steps:
- Formulate hypotheses: Establish the null hypothesis (H0) and the alternative hypothesis (H1).
- Determine test statistic: Identify the appropriate test statistic and its distribution. Calculate its value from the sample data, and optionally, compute the corresponding P-value.
- Find critical value and rejection region: Based on the significance level α, find the critical value from statistical tables and define the rejection region.
- Make a decision: If the test statistic falls within the rejection region, or if the P-value is less than α, reject H0 and accept H1. Otherwise, accept H0 96.
5.5 Two types of errors in hypothesis testing
Due to the randomness of sampling, hypothesis testing can lead to two types of errors 96.
| Actual Situation | Accept H0 | Reject H0 |
|---|---|---|
| H0 is True | Correct | Type I Error (False Positive) |
| H0 is False | Type II Error (False Negative) | Correct |
- Type I error: Rejecting the null hypothesis when it is actually true. The probability of this error is denoted by α, the significance level (P{reject H0∣H0 is true}=α).
- Type II error: Failing to reject the null hypothesis when it is actually false. The probability of this error is denoted by β (P{accept H0∣H0 is false}=β).
- Relationship between errors: α and β are inversely related; decreasing one typically increases the other. The ideal scenario is to reduce both, which usually requires increasing the sample size.
- Controlling errors: The choice of which error to control more strictly depends on the consequences. For example, in drug quality control, α might be kept very small for appearance indicators, while β is minimized for quality indicators to prevent harm 96.
5.6 Parameter tests for single normal population mean with known variance
When testing the mean of a single normal population with a known variance, the u-test (or z-test) is used 97.
- Two-sided test (H1:μ=μ0):
- Hypotheses: H0:μ=μ0; H1:μ=μ0.
- Test statistic: U=σ/nXˉ−μ0∼N(0,1).
- Critical value: For a given α, find uα/2 such that P{∣U∣>uα/2}=α.
- Decision: Reject H0 if ∣u∣>uα/2 (or P-value < α), indicating a significant difference. Otherwise, accept H0 97.
📝 A drug ointment normally contains 4.45% glycyrrhizic acid with σ=0.108. A sample of 5 ointments has an average of 4.33%. To test if the mean content has significantly changed (α=0.05), the calculated u=−2.485. Since ∣−2.485∣>u0.025=1.96, H0 is rejected, indicating a significant change 97 98.
-
P-value method: An alternative to the critical value method.
-
P-value: The probability of observing a sample as extreme as, or more extreme than, the current sample, assuming H0 is true.
-
Decision: Reject H0 if P-value < α. Otherwise, accept H0.
-
Application: For the example above, the P-value is approximately 0.013. Since 0.013<0.05, H0 is rejected 98.
-
One-sided test (H1:μ>μ0 or H1:μ<μ0): Used when inferring if the population mean is greater than or less than a known number.
- Hypotheses: H0:μ=μ0; H1:μ>μ0 (or H1:μ<μ0).
- Critical value: For a given α, find uα such that P{U>uα}=α (or P{U<−uα}=α).
- Decision: Reject H0 if u>uα (or u<−uα), or if P-value < α 98 99.
| Test Type | Hypotheses | Test Statistic | Critical Value | Rejection Region |
|---|---|---|---|---|
| Two-sided | H0:μ=μ0; H1:μ=μ0 | U=σ/nXˉ−μ0 | uα/2 | ∣u∣>uα/2 |
| One-sided | H0:μ=μ0; H1:μ>μ0 (or H1:μ<μ0) | U=σ/nXˉ−μ0 | uα | u>uα (or u<−uα) |
- Common critical values:
- For α=0.05: uα/2=1.96, uα=1.64.
- For α=0.01: uα/2=2.58, uα=2.33 99.
5.7 Single sample normal population mean test with unknown variance
When the population variance σ2 is unknown, the t-test is used to test the population mean 99.
- Test statistic: Since σ is unknown, the sample standard deviation S is used as an unbiased estimator. The test statistic is T=S/nXˉ−μ0∼t(n−1), where t(n−1) is the t-distribution with n−1 degrees of freedom 99.
- Test statistic: T=S/nXˉ−μ0∼t(n−1).
- Critical value: For a given α, find tα/2(n−1) from the t-distribution table such that P{∣T∣>tα/2(n−1)}=α.
- Decision: Reject H0 if ∣t∣>tα/2(n−1) (or P-value < α), indicating a significant difference. Otherwise, accept H0 100.
📝 Reconsidering the glycyrrhizic acid example, if the variance is unknown, and n=5, μ0=4.45, xˉ=4.33, and S=0.103. The calculated t=−2.605. For α=0.05 and n−1=4 degrees of freedom, t0.025(4)=2.776. Since ∣−2.605∣<2.776, H0 is accepted, meaning there is no significant difference in the mean glycyrrhizic acid content from 4.45% 100.
5.8 Single-sample t-test for normal population mean with unknown variance
The t-test is used for small samples when the population variance is unknown but the population is normally distributed. As the sample size n increases, the t-distribution approaches the standard normal distribution N(0,1), allowing for an approximate u-test for large samples (n>30) 101.
| Hypothesis | Statistic | Critical Value | Rejection Region |
|---|---|---|---|
| Two-sided: H0:μ=μ0, H1:μ=μ0 | T=S/nXˉ−μ0 | tα/2 | ∣t∣>tα/2 |
| One-sided: H1:μ>μ0 (or H1:μ<μ0) | T=S/nXˉ−μ0 | tα (or −tα) | t>tα (or t<−tα) |
📝 To test if the average pulse rate of patients with chronic tetraethyl lead poisoning is lower than the normal average of 72 beats/min (α=0.05), with a sample of 20 patients having a mean of 63.50 and standard deviation of 5.60. The null hypothesis is H0:μ=72, and the alternative is H1:μ<72. The test statistic is t=5.60/2063.50−72=−6.788. For α=0.05 and df=19, the critical value is t0.05(19)=1.729. Since t=−6.788<−1.729, H0 is rejected, concluding that the pulse rate is significantly lower 101.
5.9 Single-sample normal population variance test
This test, also known as the chi-square test (χ2 test), is used to determine if the population variance σ2 is equal to a known value σ02. The test statistic follows a chi-square distribution with n−1 degrees of freedom.
- Hypothesis setup: The null hypothesis is H0:σ2=σ02.
- Test statistic: When H0 is true, the statistic is χ2=σ02(n−1)S2∼χ2(n−1).
- Critical values: For a given significance level α, critical values χ1−α/22(n−1) and χα/22(n−1) are found from the χ2 distribution table.
- Statistical judgment: Reject H0 if χ2<χ1−α/22 or χ2>χα/22 for a two-sided test 102.
| Hypothesis | Statistic | Critical Value | Rejection Region |
|---|---|---|---|
| Two-sided: H0:σ2=σ02, H1:σ2=σ02 | χ2=σ02(n−1)S2 | χα/22, χ1−α/22 | χ2<χ1−α/22 or χ2>χα/22 |
| One-sided: H1:σ2>σ02 (or H1:σ2<σ02) | χ2=σ02(n−1)S2 | χα2 (or χ1−α2) | χ2>χα2 (or χ2<χ1−α2) |
📝 To test if the weight variation of Ribavirin tablets produced on a certain day differs significantly from the usual variance of 0.25 (α=0.01). A sample of 20 tablets has a variance of 0.43. The null hypothesis is H0:σ2=0.25, and the alternative is H1:σ2=0.25. The test statistic is χ2=0.25(20−1)×0.43=32.68. For α=0.01 and df=19, the critical values are χ0.9952(19)=6.844 and χ0.0052(19)=38.582. Since 6.844<32.68<38.582, H0 is accepted, indicating no significant difference in weight variation 103.
5.10 Two independent samples mean comparison test
This section focuses on comparing the means of two independent samples, typically from normal populations. This is common in medical research for comparing treatments or processes.
- Two-group design: Involves randomly dividing subjects into two independent groups (e.g., control and experimental) to observe changes in an indicator, assuming both populations are normally distributed 103.
5.11 Homogeneity test for variance
The homogeneity test for variance (F-test) determines if two or more population variances are equal. For two normal populations, X∼N(μ1,σ12) and Y∼N(μ2,σ22), the null hypothesis is H0:σ12=σ22.
- Test statistic: When H0 is true, the statistic is F=S22S12∼F(n1−1,n2−1), where S12 and S22 are sample variances. For practical calculation, the larger sample variance is always placed in the numerator to ensure F>1.
- Critical values: For a given α, critical values F1−α/2(n1−1,n2−1) and Fα/2(n1−1,n2−1) are obtained from the F-distribution table.
- Statistical judgment: Reject H0 if F>Fα/2 (when the larger variance is in the numerator), indicating a significant difference in variances 104.
| Hypothesis | Statistic | Critical Value | Rejection Region |
|---|---|---|---|
| Two-sided: H0:σ12=σ22, H1:σ12=σ22 | F=S22S12 | Fα/2 | F>Fα/2 |
| One-sided: H1:σ12>σ22 | F=S22S12 | Fα | F>Fα |
📝 To test if the variance of perfusion rates in a control group differs significantly from a drug group (α=0.05). Both groups have n=12. The control group has S12=96.33, and the drug group has S22=48.33. The test statistic is F=48.3396.33=1.993. For α=0.05 and df1=11,df2=11, the critical value F0.025(11,11)≈3.45. Since F=1.993<3.45, H0 is accepted, indicating no significant difference in variances 105.
5.12 Levene's test for multiple populations
For testing the homogeneity of variances across multiple populations, especially when data may not be normally distributed, Levene's test is commonly used with statistical software.
- Hypothesis: H0:σ12=σ22=⋯=σK2 (all population variances are equal); H1: not all population variances are equal.
- Test statistic: F=(K−1)∑∑(Zij−Zˉi)2(N−K)∑ni(Zˉi−Zˉ)2∼F(K−1,N−K), where Zij=∣Xij−X∗∣ and X∗ can be the sample mean, median, or trimmed mean 105.
- Decision: If the P-value from the software is less than α, reject H0, concluding that the variances are not homogeneous 106.
5.13 Two independent samples mean comparison with known variances
When comparing the means of two independent normal populations, H0:μ1=μ2 (or H0:μ1−μ2=0), and the population variances σ12 and σ22 are known, a u-test is used.
- Test statistic: U=n1σ12+n2σ22Xˉ−Yˉ−(μ1−μ2)∼N(0,1).
- Under H0: The statistic simplifies to U=n1σ12+n2σ22Xˉ−Yˉ∼N(0,1).
📝 To test if two machines produce drugs with significantly different weights (α=0.01). Machine A: n1=35, Xˉ=137g, σ12=70. Machine B: n2=45, Yˉ=130g, σ22=90. The null hypothesis is H0:μ1=μ2. The test statistic is u=3570+4590137−130=2+27=3.5. For α=0.01, uα/2=u0.005=2.58. Since ∣u∣=3.5>2.58, H0 is rejected, indicating a significant difference in drug weights 106.
5.14 Two independent samples mean comparison with unknown variances
When population variances are unknown, the approach depends on sample size 106.
5.15 Large sample case
For large samples (n1,n2>30), sample variances S12 and S22 can approximate population variances σ12 and σ22. An approximate u-test is then used.
- Test statistic: U=n1S12+n2S22Xˉ−Yˉ∼N(0,1) 106.
📝 To test if the number of hyphae and brown structures in Liuwei Dihuang Wan differ significantly (α=0.01). Hyphae: n1=75, xˉ=56.5, S12=9.4. Brown structures: n2=65, yˉ=65, S22=5.5. The null hypothesis is H0:μ1=μ2. The test statistic is u=759.4+655.556.5−65=−18.55. For α=0.01, uα/2=u0.005=2.58. Since ∣u∣=18.55>2.58, H0 is rejected, indicating a highly significant difference 107.
5.16 Small sample case with unknown but equal variances
If population variances are unknown but assumed equal (σ12=σ22=σ2), a pooled sample variance Sp2 is used to estimate σ2. This leads to a t-test.
- Pooled sample variance: Sp2=n1+n2−2(n1−1)S12+(n2−1)S22. If n1=n2, then Sp2=2S12+S22.
- Test statistic: Under H0:μ1=μ2, the statistic is T=Spn11+n21Xˉ−Yˉ∼t(n1+n2−2) 107.
5.17 Comparing means of two normal populations when variances are unknown and unequal
When comparing the means of two normal populations where the population variances (σ12 and σ22) are unknown and unequal, neither the standard t-test nor the u-test is directly applicable for small samples. An approximate t-test method can be used, which involves specific steps for hypothesis formulation, statistic construction, and critical value determination 109.
- Hypotheses:
- Null hypothesis (H0): μ1=μ2 (the population means are equal).
- Alternative hypothesis (H1): μ1=μ2 (the population means are not equal).
- Test statistic: Under H0, the test statistic T′ is approximately normally distributed: T′=n1S12+n2S22Xˉ−Yˉ where Xˉ and Yˉ are sample means, S12 and S22 are sample variances, and n1 and n2 are sample sizes.
- Degrees of freedom (df): The degrees of freedom for this approximate t-test are calculated using a specific formula: df=n1−1(S12/n1)2+n2−1(S22/n2)2(n1S12+n2S22)2 This value is typically rounded to the nearest integer for table lookup.
- Critical value: For a given significance level α, the critical value tα/2 is found from the t-distribution table with the calculated degrees of freedom.
- Decision rule:
- Reject H0 if ∣T′∣>tα/2.
- Accept H0 if ∣T′∣<tα/2 109.
📝 To compare a specific indicator between 10 male lung cancer patients and 50 healthy males, with α=0.05. The lung cancer patients had a mean of 6.21 and variance of 3.204, while healthy males had a mean of 4.34 and variance of 0.314. An F-test for variance homogeneity showed F=10.20>F0.05(9,49)≈2.45, indicating unequal variances. The approximate t-test statistic was T′=3.272. With df≈35, the critical value t0.025(35)=2.030. Since ∣3.272∣>2.030, H0 is rejected, concluding a significant difference in the indicator between the two groups 109 110.
5.18 Paired samples mean comparison test
Paired design experiments involve two sets of data that are related, such as measurements taken before and after a treatment on the same subject, or on two subjects matched by specific characteristics. In such cases, the samples are not independent 110.
- Paired design: This involves matching research subjects based on certain characteristics or conditions, applying two different treatments to each pair, and then comparing the results.
- Difference calculation: For paired comparisons, the difference (d) between the paired data points is calculated. These differences are treated as a sample from a new population.
- Assumptions: The differences d are assumed to follow a normal distribution N(μd,σd2), where μd is the population mean of the differences and σd2 is the population variance of the differences.
- Hypotheses: The test for a significant difference between the two results is equivalent to testing if the population mean of the differences (μd) is zero:
- Null hypothesis (H0): μd=0.
- Alternative hypothesis (H1): μd=0 (for a two-sided test).
- Test statistic: The test statistic T is calculated as: T=Sd/ndˉ−μd=Sd/ndˉ where dˉ is the sample mean of the differences, Sd is the sample standard deviation of the differences, and n is the number of paired observations 110.
- Degrees of freedom: The degrees of freedom for this t-test are n−1 111.
📝 To compare two methods for determining fat content in lactic acid beverages, 10 samples were tested. The differences (d) between Method A and Method B were calculated. The sample mean difference dˉ=0.2724 and sample standard deviation Sd=0.1087. The test statistic t=7.925. For α=0.05 and n−1=9 degrees of freedom, the critical value t0.025(9)=2.262. Since ∣7.925∣>2.262, H0 is rejected, indicating a significant difference between the two methods 111.
5.19 Hypothesis testing for non-normal population parameters
When the population distribution is not normal, or unknown, hypothesis tests for population parameters can still be performed using large sample approximations based on the Central Limit Theorem. This typically requires a sufficiently large sample size, often n>30 in medical contexts 112.
5.20 Hypothesis testing for a single population mean
For a single non-normal population with an unknown mean, if the sample size n is large enough (n>30), the sample mean Xˉ is approximately normally distributed 113.
- Known population variance (σ2):
- Test statistic: U=σ/nXˉ−μ0∼N(0,1) where μ0 is the hypothesized population mean.
- Unknown population variance (σ2):
- Test statistic: If σ2 is unknown, it can be replaced by the sample variance S2: U=S/nXˉ−μ0∼N(0,1) This allows for a u-test even with unknown variance, provided a large sample 113.
📝 To test if the mean serum ferritin content of viral hepatitis patients is lower than the normal mean of 273.18 mg/dl, with α=0.01. A sample of 100 patients had a mean of 230.08 and a variance of 12.502. The test statistic U=(230.08−273.18)/(12.50/100)=−34.48. The critical value u0.01=2.326. Since U=−34.48<−u0.01, H0 is rejected, concluding that the mean serum ferritin content in viral hepatitis patients is significantly lower 113.
5.21 Hypothesis testing for comparing two population means
For two non-normal populations, if both sample sizes (n1,n2) are sufficiently large (>30), the difference between sample means (Xˉ−Yˉ) is approximately normally distributed 113.
- Known population variances (σ12,σ22):
- Test statistic: U=n1σ12+n2σ22Xˉ−Yˉ∼N(0,1)
- Unknown population variances (σ12,σ22):
- Test statistic: If σ12 and σ22 are unknown, they can be approximated by their respective sample variances S12 and S22: U=n1S12+n2S22Xˉ−Yˉ∼N(0,1) This allows for a u-test for comparing two means with large samples 113.
📝 To compare red blood cell counts between 150 normal adult males and 150 normal adult females, with α=0.05. Males had a mean of 4.71 and variance of 0.502; females had a mean of 4.22 and variance of 0.552. The test statistic U=(4.71−4.22)/(0.502/150)+(0.552/150)=8.074. The critical value u0.025=1.96. Since ∣8.074∣>1.96, H0 is rejected, indicating a significant difference in red blood cell counts between males and females 113 114.
5.22 Hypothesis testing for population proportions
Hypothesis testing for population proportions examines whether a population proportion (P) differs significantly from a hypothesized value (P0) or whether two population proportions (P1,P2) differ from each other 114.
5.23 Large sample case (u-test)115
For large samples, the sample proportion p=m/n (where m is the number of successes and n is the sample size) is approximately normally distributed 114.
- Single population proportion:
- Hypotheses:
- H0:P=P0
- H1:P=P0 (two-sided), P>P0 (one-sided), or P<P0 (one-sided).
- Test statistic: Under H0, the test statistic U is approximately: U=P0(1−P0)/np−P0∼N(0,1) This is valid when n≥50 114.
| Test Type | Hypotheses | Statistic | Critical Value | Rejection Region |
|---|---|---|---|---|
| Two-sided | H0:P=P0, H1:P=P0 | U≈P0(1−P0)/np−P0 | uα/2 | ∣U∣>uα/2 |
| One-sided | H0:P=P0, H1:P>P0 | U≈P0(1−P0)/np−P0 | uα | U>uα |
| One-sided | H0:P=P0, H1:P<P0 | U≈P0(1−P0)/np−P0 | −uα | U<−uα |
📝 To test if the defect rate of a batch of medicine exceeds 0.006, with α=0.05. From 150 samples, 2 were defective, so p=2/150=0.0133. The test statistic U=(0.0133−0.006)/0.006(1−0.006)/150=1.158. For a one-sided test (H1:P>0.006), the critical value u0.05=1.645. Since U=1.158<1.645, H0 is accepted, meaning the defect rate did not exceed the standard 114.
- Comparing two population proportions:
- Hypotheses:
- H0:P1=P2
- H1:P1=P2 (two-sided), P1>P2 (one-sided), or P1<P2 (one-sided).
- Test statistic: For large samples (n1≥30,n2≥30), under H0, the test statistic U is approximately: U=p(1−p)(1/n1+1/n2)p1−p2∼N(0,1) where p1=m1/n1 and p2=m2/n2 are sample proportions, and p is the pooled sample proportion: p=n1+n2n1p1+n2p2=n1+n2m1+m2 This pooled proportion estimates the common population proportion under H0 115.
| Test Type | Hypotheses | Statistic | Critical Value | Rejection Region |
|---|---|---|---|---|
| Two-sided | H0:P1=P2, H1:P1=P2 | U≈p(1−p)(1/n1+1/n2)p1−p2 | uα/2 | ∣U∣>uα/2 |
| One-sided | H0:P1=P2, H1:P1>P2 | U≈p(1−p)(1/n1+1/n2)p1−p2 | uα | U>uα |
| One-sided | H0:P1=P2, H1:P1<P2 | U≈p(1−p)(1/n1+1/n2)p1−p2 | −uα | U<−uα |
📝 To compare the efficacy of two anthelmintic drugs, walnut cream and mepacrine, with α=0.05. Walnut cream treated 54 patients with an 81.48% efficacy (p1), and mepacrine treated 36 patients with a 66.67% efficacy (p2). The pooled proportion p=(54×0.8148+36×0.6667)/(54+36)=0.7556. The test statistic U=(0.8148−0.6667)/0.7556(1−0.7556)(1/54+1/36)=1.6017. For a two-sided test, the critical value u0.025=1.96. Since ∣1.6017∣<1.96, H0 is accepted, indicating no significant difference in efficacy between the two drugs 115.
5.24 Small sample case (arcsin transformation method)
For small samples, the arcsin transformation can be used to approximate the normal distribution for proportions, allowing for a u-test 115.
- Transformation: The sample proportion p is transformed into ϕ=2arcsinp. This transformed variable ϕ approximately follows a normal distribution N(Φ,1/n), where Φ=2arcsinP.
- Single population proportion:
- Hypotheses: H0:P=P0; H1:P=P0 (two-sided). U=1/nϕ−ϕ0=(ϕ−ϕ0)n∼N(0,1) where ϕ=2arcsinp and ϕ0=2arcsinP0.
- Hypotheses: H0:P1=P2; H1:P1=P2 (two-sided).
- Test statistic: For small samples (at least one ni<30), after transforming p1 and p2 to ϕ1 and ϕ2: U=1/n1+1/n2ϕ1−ϕ2=(ϕ1−ϕ2)n1+n2n1n2∼N(0,1) where ϕ1=2arcsinp1 and ϕ2=2arcsinp2 116.
📝 To compare the efficacy of two methods (A and B) for treating arteriosclerosis patients, with α=0.01. Method A treated 26 cases with 19 effective (p1=73.1%), and Method B treated 20 cases with 6 effective (p2=30.0%). Transformed proportions are ϕ1=2.051 and ϕ2=1.159. The test statistic U=(2.051−1.159)(26×20)/(26+20)=3.00. For a one-sided test (H1:P1>P2), the critical value u0.01=2.326. Since U=3.00>2.326, H0 is rejected, concluding that Method A's efficacy is significantly higher than Method B's 116 117.
5.25 SPSS software application summary
SPSS provides specific menu options for various hypothesis tests, streamlining the analysis process 117.
| Statistical Content | SPSS Menu Option |
|---|---|
| Single sample normal population mean test | Analyze → Compare Means → One-Sample T Test |
| Single sample normal population variance test | Transform → Compute Variable (multiple function calculations) |
| Paired samples mean comparison test | Analyze → Compare Means → Paired-Samples T Test |
| Two independent samples mean comparison test | Analyze → Compare Means → Independent-Samples T Test |
© 2026 Maeve. All rights reserved. This content is protected by copyright.