【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 in nature and society are categorized into two types: deterministic and random. Deterministic phenomena always occur or do not occur under specific conditions and can be predicted in advance, such as water freezing at 0°C.
Random phenomena are uncertain, potentially yielding different outcomes under the same conditions, like flipping a coin 1.
- Statistical law: This refers to the regularity observed in random phenomena over many repeated trials or observations. Probability theory and mathematical statistics study these statistical regularities.
- Random experiment: This is an experiment or observation in probability statistics characterized by three features:
- It can be repeated under identical conditions.
- All possible outcomes are known, but not all outcomes are certain 1.
- Exactly one outcome occurs in each trial, but which one cannot be predicted beforehand.
- Event: This is any outcome that occurs in a random experiment.
- Random event: This is an event that may or may not occur in a random experiment, typically denoted by capital letters like A, B, C.
- Elemental event: This is each indivisible possible outcome.
- Sample space (Ω): This is the set of all possible outcomes of an experiment, comprising all elemental events. Elemental events are also called sample points.
- Certain event: This is an event that always occurs in every trial, equivalent to the sample space Ω.
- Impossible event (∅): This is an event that never occurs in any trial, represented by an empty set 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 (⊂ or ⊃): If the occurrence of event A necessarily leads to the occurrence of event B, then B includes A, or A is included in B.
- Event equality (=): Events A and B are equal if B includes A and A includes B, meaning they contain the same elemental events.
- Sum (or union) of events (+ or ∪): This event occurs if at least one of two or more events happens. For events A1,A2,…,An, their sum is A1+A2+⋯+An or ⋃Ai 2.
- Product (or intersection) of events (⋅ or ∩): This event occurs if two or more events happen simultaneously. For events A1,A2,…,An, their product is A1A2…An or ⋂Ai.
- Difference of events (-): This event occurs if event A happens and event 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 an empty set (AB=∅).
- Complementary event (or inverse event) (Aˉ): This event occurs if event A does not happen. It consists of all elemental events in the sample space that are not in A. A and Aˉ are complementary if AAˉ=∅ and A+Aˉ=Ω 3 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. Operations within parentheses are performed first 4.
📝 If A, B, C represent the first, second, and third patients responding to a new drug, respectively:
- "Only the first person is effective" is ABˉ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 (f(A)): In n independent repeated trials under identical conditions, if event A occurs m times, m is the frequency of A, and the ratio m/n is the frequency of A.
- 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 defined as the statistical probability of A, denoted P(A)=p. In practice, P(A)≈m/n for 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. The probability of the new drug being effective can be considered 0.695 5.
1.5 Classical probability
Classical probability models (or finite equiprobable models) apply to random experiments with two characteristics: a finite total number of elemental events, and each elemental event having an equal possibility of occurring 6.
- 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 P(A)=m/n.
- Properties:
- 0≤P(A)≤1.
- For complementary events A and Aˉ, P(Aˉ)=1−P(A) 6.
📝 From a bag with 6 white balls and 4 red balls (10 total), if 3 balls are randomly selected:
- The probability of all 3 being white is P(A)=C63/C103=20/120=1/6≈0.167.
- The probability of at least one white ball is P(B)=1−P(Bˉ), where Bˉ is no white balls. P(Bˉ)=C43/C103=4/120=1/30. So, P(B)=1−1/30=29/30≈0.967 6.
1.6 Subjective probability
Subjective probability is an estimate of an event's likelihood based on personal experience, available information, and individual belief, used for phenomena that do not fit statistical or classical probability definitions 7.
📝 A surgeon estimating a 0.9 probability of success for an upcoming surgery, based on years of experience and the surgery's difficulty, is an example of subjective probability 7.
1.7 Axiomatic definition of probability
The axiomatic definition of probability, proposed by A.N. Kolmogorov in 1933, provides a general framework for probability theory based on three axioms, applicable to all random phenomena 7.
- Axiom 1 (Non-negativity): For any event A, 0≤P(A)≤1.
- Axiom 2 (Normalization): The probability of the certain event Ω is 1, and the probability of the impossible event ∅ is 0. So, P(Ω)=1 and P(∅)=0.
- Axiom 3 (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).
- General definition: If for any event A in a sample space Ω, there is a real number P(A) that satisfies these three axioms, then P(A) is called the probability of event A 8.
1.8 Addition theorem of probability
The addition theorem provides rules for calculating the probability of the sum of events 8.
- Theorem 2-1 (Addition theorem for mutually exclusive events): If events A and B are mutually exclusive, then P(A+B)=P(A)+P(B).
- Corollary 2-1: For n pairwise mutually exclusive events A1,A2,…,An, P(A1+A2+⋯+An)=P(A1)+P(A2)+⋯+P(An).
- Corollary 2-2 (Complementary event formula): For any event A and its complementary event Aˉ, P(Aˉ)=1−P(A).
- Corollary 2-3 (Event difference formula): For any events A and B, P(A−B)=P(A)−P(AB). If B⊂A, then P(A−B)=P(A)−P(B) 8.
- Theorem 2-2 (General addition theorem): For any two events A and B, P(A+B)=P(A)+P(B)−P(AB).
- This generalizes to three events: P(A+B+C)=P(A)+P(B)+P(C)−P(AB)−P(AC)−P(BC)+P(ABC).
- For n events: P(∑i=1nAi)=∑P(Ai)−∑P(AiAj)+∑P(AiAjAk)−⋯+(−1)n−1P(A1A2…An) 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 considers the likelihood of an event occurring given that another event has already happened 9.
- Definition 2-7 (Conditional probability): For any two events A and B, if P(B)>0, the conditional probability of A given B is P(A∣B)=P(AB)/P(B).
- This means that if event B has occurred, the sample space is reduced to B, and the probability of A is the ratio of the probability of both A and B occurring to the probability of B occurring 10.
📝 In a box with 16 balls (6 glass, 10 wooden; 5 red, 11 blue):
- Theorem 2-3 (Multiplication theorem): For any two events A and B:
- If P(B)>0, then P(AB)=P(B)P(A∣B).
- If P(A)>0, then P(AB)=P(A)P(B∣A).
- For n events A1,A2,…,An, if P(A1A2…An−1)>0, then P(A1A2…An)=P(A1)P(A2∣A1)P(A3∣A1A2)…P(An∣A1A2…An−1) 11.
1.10 Independence of events
Independent events are those where the occurrence of one does not affect the probability of the other 11.
- Definition 2-8 (Mutual independence): Two events A and B are mutually independent if P(AB)=P(A)P(B).
- Theorem 2-4:
- If P(A)>0 or P(B)>0, then A and B are mutually independent if and only if P(B)=P(B∣A) or P(A)=P(A∣B) 11.
- If A and B are mutually independent, then Aˉ and B, A and Bˉ, and Aˉ and Bˉ are also mutually independent.
- Definition 2-9 (Mutual independence for multiple events): Events A1,A2,…,An are mutually independent if for any k events (2≤k≤n), the probability of their product equals the product of their individual probabilities.
- For three events A, B, C to be mutually independent, they must satisfy P(AB)=P(A)P(B), P(AC)=P(A)P(C), P(BC)=P(B)P(C), and P(ABC)=P(A)P(B)P(C).
- If only the first three conditions are met, the events are pairwise independent.
- If A1,A2,…,An are mutually independent, then P(A1A2…An)=P(A1)P(A2)…P(An) 12.
📝 If two shooters, A and B, aim at a target with hit rates P(A)=0.6 and P(B)=0.5, and their shots are independent:
- The probability the target is hit is P(A+B)=P(A)+P(B)−P(A)P(B)=0.6+0.5−(0.6×0.5)=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.
- Definition 2-10 (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=Ω) 12.
- Theorem 2-5 (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).
- P(Ai) are called prior probabilities, representing the probability of each "cause" event.
- P(B) is the total probability of event B 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(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.048 13.
1.12 Inverse probability formula (Bayes' theorem)
The inverse probability formula, also known as Bayes' theorem, calculates the conditional probability of a "cause" event Ai given that an effect event B has already occurred 13 14.
- Theorem 2-6 (Inverse probability formula): If A1,A2,…,An is a complete group of events with P(Ai)>0 and P(B)>0, then P(Ai∣B)=∑j=1nP(Aj)P(B∣Aj)P(Ai)P(B∣Ai).
- P(Ai∣B) is called the posterior probability, representing the probability of event Ai occurring given that B has already occurred 14.
2. Chapter 3: Random Variables and Their Distributions
2.1 Random variables and probability distributions
A random variable is a variable whose value is a numerical outcome of a random phenomenon, with a definite probability for each value it takes. Random variables are typically denoted by uppercase letters like X or Y.
They possess both randomness, as their values depend on experimental outcomes, and statistical regularity, as these outcomes have specific probabilities 19.
- Probability distribution: This describes all possible values a random variable X can take and their corresponding probabilities. Understanding a random variable's possible values and their probabilities reveals its statistical regularity 19.
2.2 Discrete random variables
A discrete random variable is a random variable whose possible values are either finite or countably infinite, meaning they can be listed individually 20.
- Examples:
- The number rolled on a die (values: 1, 2, 3, 4, 5, 6).
- The number of defective items found during a random inspection of pharmaceuticals (finite possible values).
- 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 |
📝 If 8 drugs contain 3 defective items, and 2 are randomly selected, the number of defective items X can be 0, 1, or 2. The probabilities are P{X=0}=C30C52/C82=5/14≈0.357, P{X=1}=C31C51/C82=15/28≈0.536, and P{X=2}=C32C50/C82=3/28≈0.107. The probability of drawing at most 1 defective item 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) of a random variable X is defined for any real number x as F(x)=P{X≤x}, for −∞<x<+∞. It represents the cumulative probability that the random variable X takes a value less than or equal to x 21.
- Properties of F(x):
- 0≤F(x)≤1.
- limx→−∞F(x)=F(−∞)=0 and limx→+∞F(x)=F(+∞)=1.
- F(x) is a monotonically non-decreasing function of x; if x1<x2, then F(x1)≤F(x2).
- F(x) is right-continuous, meaning F(x0)=limx→x0+F(x)=F(x0+0) for any x0.
- Probabilities expressed 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 P{X=xk} for all xk≤x: F(x)=P{X≤x}=∑xk≤xP{X=xk}=∑xk≤xpk.
- The graph of F(x) for a discrete random variable is a step function, with jumps at each possible value xk, where the jump height equals pk 22.
2.4 Continuous random variables
A continuous random variable is a random variable that can take any value within a given interval. For such variables, it is impossible and meaningless to list individual values and their probabilities.
Instead, probabilities are considered for intervals 23.
- Probability density function (PDF): For a continuous random variable X taking values in (−∞,+∞), if there exists a non-negative integrable function f(x) such that for any real numbers a,b (a<b), P{a<X≤b}=∫abf(x)dx, then f(x) is called the probability density function of X.
- 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 any real number x.
- ∫−∞+∞f(x)dx=1. This means the total area under the density curve is 1.
- Distribution function for continuous random variables: F(x)=P{X≤x}=∫−∞xf(t)dt, for −∞<x<+∞.
- Additional properties of continuous random variables:
- F(x) is a continuous function.
- P{a<X≤b}=F(b)−F(a)=∫abf(x)dx.
- If f(x) is continuous at point x, then f(x)=F′(x), meaning the PDF is the derivative of the distribution function 23.
- The probability of a continuous random variable taking any single specific value a is 0: P{X=a}=0. This implies that P{a<X<b}=P{a≤X<b}=P{a<X≤b}=P{a≤X≤b}=∫abf(x)dx.
📝 For a random variable X uniformly distributed on [a,b], its PDF is f(x)=b−a1 for a≤x≤b, and 0 otherwise. Its distribution function F(x) is 0 for x<a, b−ax−a for a≤x<b, and 1 for x≥b. The probability of X falling into any sub-interval (x1,x1+Δx) within [a,b] is b−aΔx, which depends only on the length of the sub-interval, not its position 24 25.
2.5 Numerical characteristics of random variables
Numerical characteristics quantify specific features of random variables, such as their average value or degree of deviation. These are crucial for understanding probability distributions in theory and practice 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 random variable's values, with probabilities as weights 26.
📝 For two drugs, A and B, with effective case counts X and Y respectively, their probability distributions are given. E(X)=5.50 and E(Y)=4.00. Since E(X)>E(Y), drug A has a higher average number of effective cases, indicating better treatment efficacy.
- 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 random variable X uniformly distributed on [a,b] with PDF f(x)=b−a1 for a≤x≤b, its mathematical expectation is 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.
2.7 Mathematical expectation of a function of a random variable
If Y=g(X) is a function of a random variable X, then Y is also a random variable. Its mathematical expectation E[g(X)] can be found using X's distribution 28.
- For discrete random variables: If X has distribution P{X=xk}=pk, then E[g(X)]=∑g(xk)P{X=xk}=∑g(xk)pk.
- For continuous random variables: If X has PDF f(x), then E[g(X)]=∫−∞+∞g(x)f(x)dx.
📝 Given a discrete random variable X with specific probabilities, and Y=2X2−1. To find E(Y), calculate g(xk) for each xk: g(−1)=1, g(0)=−1, g(1)=1, g(2)=7. Then E(Y)=1×0.15+(−1)×0.1+1×0.3+7×0.45=3.5 28.
2.8 Properties of mathematical expectation
Mathematical expectation has several important properties that simplify calculations 28.
| Property | Description |
|---|---|
| E(C) = C | The expectation of a constant C is C. |
| E(CX) = C·E(X) | The expectation of a constant C times a random variable X is C times E(X). |
| E(aX + b) = aE(X) + b | For constants a, b, the expectation of a linear transformation of X is aE(X) + b. |
| E(X1 +... + Xn) = E(X1) +... + E(Xn) | The expectation of a sum of random variables is the sum of their expectations. |
| E(XY) = E(X)·E(Y) | If X and Y are independent, the expectation of their product is the product of their expectations 29. |
2.9 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).
- D(X)=E[(X−E(X))2].
- For discrete random variables: D(X)=∑k=1∞(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 more dispersed values, while a smaller variance indicates values more concentrated around the mean.
- 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.
- 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, the variance and mathematical expectation are both equal to its parameter λ 30.
2.10 Properties of variance
Variance also has several important properties 31.
| Property | Description |
|---|---|
| D(C) = 0 | The variance of a constant C is 0. |
| D(CX) = C²D(X) | The variance of a constant C times a random variable X is C² times D(X). |
| D(aX + b) = a²D(X) | For constants a, b, the variance of a linear transformation of X is a²D(X). |
| D(X ± Y) = D(X) + D(Y) | If X and Y are independent, the variance of their sum or difference is the sum of their variances. |
| D(X1 +... + Xn) = D(X1) +... + D(Xn) | If X1,..., Xn are independent, the variance of their sum is the sum of their variances 31. |
- 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.11 Moments
Moments are generalized numerical characteristics of random variables 32.
- k-th order origin moment (k-th moment): For a random variable X and a non-negative integer k, if E(Xk) exists, it is called the k-th order origin moment.
- The mean E(X) is the first-order moment.
- k-th order central moment: If E[(X−E(X))k] exists, it is called the k-th order central moment.
- The variance D(X) is the second-order central moment.
- Relationship between moments: E(X2)=D(X)+(E(X))2 32.
2.12 Common discrete random variable distributions
Many phenomena in medical applications can be described by discrete random variable probability distributions 32.
2.13 Bernoulli trials
A Bernoulli trial is a type of independent repeated experiment where each trial has only two opposing outcomes (e.g., success or failure) 33.
- Characteristics:
- Independent repetition: Trials are conducted under identical conditions, and each trial's outcome does not affect others.
- Dichotomy: Each trial results in one of two mutually exclusive outcomes, A or Aˉ. The probability of event A occurring is p (0<p<1), and the probability of Aˉ is q=1−p.
- Probability of k successes in n trials: In n Bernoulli trials, the probability that event A occurs exactly k times is P{X=k}=Cnkpkqn−k, for k=0,1,…,n 33.
📝 A drug has an 80% cure rate. If 20 patients are treated, the probability of someone not being cured is P{X≥1}=1−P{X=0}=1−(0.8)20≈0.9885. The probability of exactly 2 patients not being cured is P{X=2}=C202(0.2)2(0.8)18≈0.1369. The probability of no more than 2 patients not being cured is P{X≤2}=P{X=0}+P{X=1}+P{X=2}≈0.0115+0.0576+0.1369=0.2060 34.
2.14 Two-point distribution
A two-point distribution (or 0-1 distribution) describes a random variable X with the following probability law: P{X=1}=p and P{X=0}=q, where 0<p<1 and q=1−p. It is denoted X∼B(1,p) 34.
| X | 0 | 1 |
|---|---|---|
| P | q | p |
- Application: This distribution corresponds to the number of occurrences of an event in a single Bernoulli trial.
- Mathematical expectation and variance: For a two-point distribution, E(X)=p and D(X)=pq 34.
2.15 Binomial distribution
A random variable X follows a binomial distribution (or Bernoulli distribution) if its probability law is P{X=k}=Cnkpkqn−k, for k=0,1,…,n, where n and p are parameters, and q=1−p. It is denoted X∼B(n,p) 35.
| X | 0 | 1 | k | n |
|---|---|---|---|---|
| P | q^n | C_n^1 p q^{n-1} | C_n^k p^k q^{n-k} | p^n |
- Origin: The term "binomial" comes from the fact that Cnkpkqn−k is the general term in the binomial expansion of (p+q)n.
- Relationship to Bernoulli trials: The binomial distribution describes the number of times an event A occurs in n Bernoulli trials, where p is the probability of A occurring in each trial.
- Special case: When n=1, the binomial distribution reduces to the two-point distribution.
- Most probable value (k0): The value of k that maximizes P(k) is given by:
- If (n+1)p is an integer, k0=(n+1)p−1 or (n+1)p.
- If (n+1)p is not an integer, k0=⌊(n+1)p⌋.
- Mathematical expectation and variance: For X∼B(n,p):
- E(X)=np 35.
- D(X)=npq.
- σ(X)=npq.
- SPSS application:
- P{X=x}=PDF.BINOM(x,n,p).
- P{X≤x}=CDF.BINOM(x,n,p) 36.
2.16 Poisson distribution
A random variable X follows a Poisson distribution if its probability law is P{X=k}=k!λke−λ, for k=0,1,2,…, where λ>0 is a constant parameter. It is denoted X∼P(λ) 37.
- Poisson theorem: If np→λ (a constant >0) as n→+∞, then for any fixed integer k, limn→+∞Cnkpk(1−p)n−k=k!λke−λ.
- Poisson approximation: 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(λ) with λ=np 37.
- Applications: The Poisson distribution is used to model the number of occurrences of rare events in a large number of trials, or events occurring within a specific time or space interval.
- Most probable value (k0):
- If λ is an integer, k0=λ or λ−1.
- If λ is not an integer, k0=⌊λ⌋ 38.
- Mathematical expectation and variance: For X∼P(λ), $E(X)
2.17 Random vectors
In many practical problems, multiple random factors influence a phenomenon, requiring the simultaneous consideration of several random variables. For instance, determining a projectile's landing position involves its horizontal (X) and vertical (Y) coordinates, while assessing children's physical fitness might involve height (X1), weight (X2), and chest circumference (X3) 48.
- n-dimensional random vector: A vector X=(X1,X2,…,Xn) formed by n random variables X1,X2,…,Xn. This concept allows for studying the statistical relationships between multiple random variables associated with the same phenomenon.
- Two-dimensional random vector: A vector (X,Y) formed by random variables X and Y. Its properties depend on both the individual properties of X and Y and their interrelationship 48.
2.18 Joint distribution function of a two-dimensional random vector
The joint distribution function F(x,y) for a two-dimensional random vector (X,Y) is defined as F(x,y)=P{X≤x,Y≤y} for any real numbers x,y 49.
- Geometric interpretation: If (X,Y) represents a random point in a plane, F(x,y) is the probability that the random point (X,Y) falls within the infinite rectangular region to the lower-left of the point (x,y) 49.
| Property | Description |
|---|---|
| Range | 0≤F(x,y)≤1 |
| Limits | F(−∞,−∞)=0, F(+∞,+∞)=1 |
| Marginal limits | F(−∞,y)=0, F(x,−∞)=0 |
| Monotonicity | Non-decreasing with respect to x and y |
| Continuity | Right-continuous with respect to x and y |
2.19 Marginal distribution functions
The probability distribution of a component X (or Y) in a two-dimensional random vector (X,Y) is called its marginal distribution 49.
- Marginal distribution function for X: FX(x)=P{X≤x}=F(x,+∞)=limy→+∞F(x,y).
- Marginal distribution function for 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 a two-dimensional discrete random vector if its possible values (x,y) are finite or countably infinite 49.
- Joint probability distribution: P{X=xi,Y=yj}=pij, for i,j=1,2,….
- Properties of joint probabilities:
- pij≥0 for all i,j.
- ∑i=1∞∑j=1∞pij=1.
- Marginal probability distribution for X: P{X=xi}=∑j=1∞pij=pi..
- Marginal probability distribution 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 a two-dimensional continuous random vector 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 51.
- Joint probability density function (joint density): The function f(x,y) is called the joint probability density function of (X,Y).
- Properties of joint density:
- 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 means the probability of (X,Y) falling into region G 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 ∂x∂y∂2F(x,y)=f(x,y).
- Joint distribution function: F(x,y)=P{X≤x,Y≤y}=∫−∞x∫−∞yf(u,v)dvdu.
- Marginal probability density for X: fX(x)=∫−∞∞f(x,y)dy.
- Marginal probability density for Y: fY(y)=∫−∞∞f(x,y)dx 51.
2.22 Two-dimensional normal distribution
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: f(x,y)=2πσ1σ21−ρ21exp{−2(1−ρ2)1[σ12(x−μ1)2+σ22(y−μ2)2−σ1σ22ρ(x−μ1)(y−μ2)]} where μ1,μ2,σ1>0,σ2>0,∣ρ∣<1 are constants 52.
- Marginal distributions: If (X,Y)∼N(μ1,μ2,σ1,σ2,ρ), then X∼N(μ1,σ12) and Y∼N(μ2,σ22). The marginal distributions of a two-dimensional normal distribution are also normal distributions.
- Parameters: μ1 and σ1 are the mean and standard deviation of X, respectively, while μ2 and σ2 are the mean and standard deviation of Y 52.
2.23 Independence of random variables
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.
| Type of Random Vector | Condition for Independence |
|---|---|
| Discrete | P{X=xi,Y=yj}=P{X=xi}P{Y=yj} for all i,j |
| Continuous | f(x,y)=fX(x)fY(y) for all x,y |
- Implication: When X and Y are independent, their marginal distributions completely determine their joint distribution, simplifying two-dimensional random vector problems to one-dimensional random variable problems.
- Practical judgment: Independence can sometimes be inferred from the practical meaning of the problem before applying formulas 52.
📝 In sampling with replacement, the outcome of the first draw does not affect the second, so the random variables representing the outcomes are independent. In sampling without replacement, the outcomes are dependent 53.
2.24 Covariance
The covariance of two random variables X and Y, denoted Cov(X,Y) or σXY, 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. The converse is not necessarily true.
- Two-dimensional normal distribution: For (X,Y)∼N(μ1,μ2,σ1,σ2,ρ), Cov(X,Y)=ρσ1σ2 54.
2.25 Correlation coefficient
The correlation coefficient of two random variables X and Y, denoted ρXY or ρ, 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: ρXY quantifies the degree of linear relationship between X and Y. A larger ∣ρXY∣ indicates a stronger linear relationship. If ρXY=0, X and Y are uncorrelated, meaning no linear relationship exists, though other non-linear relationships might still be present 54.
| Condition | Description |
|---|---|
| ρXY=0 | X and Y are uncorrelated |
| Cov(X,Y)=0 | X and Y are uncorrelated |
| E(XY)=E(X)E(Y) | X and Y are uncorrelated |
| D(X±Y)=D(X)+D(Y) | X and Y are uncorrelated |
- Independence vs. Uncorrelation: If X and Y are independent, they are uncorrelated (Cov(X,Y)=0). However, the converse is not always true; uncorrelated variables are not necessarily independent.
- Two-dimensional normal distribution: For a two-dimensional normal distribution N(μ1,μ2,σ12,σ22,ρ), the correlation coefficient is ρXY=ρ. In this specific case, uncorrelation (ρ=0) is equivalent to independence 55.
2.26 Law of large numbers
The law of large numbers refers to theorems in probability theory that describe the stability of average results of numerous random phenomena 57.
2.27 Chebyshev's inequality
Chebyshev's inequality states that for a random variable X with existing mean E(X) and variance D(X), for any positive number ϵ, P{∣X−E(X)∣≥ϵ}≤ϵ2D(X) 56.
- Equivalent form: P{∣X−E(X)∣<ϵ}≥1−ϵ2D(X).
- Interpretation: This inequality shows that as the variance D(X) decreases, the probability of X deviating significantly from its mean E(X) also decreases. It provides a way to estimate probabilities when only the mean and variance are known.
📝 For a random variable X with mean μ and standard deviation σ, the probability that X falls within 2σ of the mean is P{μ−2σ<X<μ+2σ}≥0.75. For 3σ, it is P{μ−3σ<X<μ+3σ}≥0.8889 56.
2.28 Chebyshev's law of large numbers
If X1,X2,…,Xn are independent and identically distributed random variables with E(Xk)=μ and D(Xk)=σ2 (both finite), then for any positive ϵ>0, limn→+∞P{n1∑k=1nXk−μ≥ϵ}=0 57.
- Convergence in probability: This means that the sample mean n1∑k=1nXk converges in probability to μ 57.
2.29 Bernoulli's law of large numbers
If X is the number of occurrences of event A in n independent Bernoulli trials, and p is the probability of event A occurring in each trial (0<p<1), then for any positive ϵ>0, limn→+∞P{nX−p≥ϵ}=0 57.
- Frequency stability: This theorem mathematically describes the "frequency stability" of random events, stating that the frequency of event A converges in probability to its true probability p as n increases. This provides the theoretical basis for using observed frequencies as approximations for probabilities when n is large 57.
2.30 Central limit theorem
The central limit theorem provides a rigorous theoretical basis for why many random variables, influenced by numerous independent and individually minor random factors, tend to approximate a normal distribution 57.
2.31 Levy-Lindelberg central limit theorem
If X1,X2,…,Xn 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}=2π1∫−∞xe−t2/2dt=Φ(x) 57.
- Standardized random variable: The term nσ∑k=1nXk−nμ is the standardized random variable of ∑k=1nXk.
- Approximation: For sufficiently large n, the standardized random variable approximately follows a standard normal distribution N(0,1). Consequently, ∑k=1nXk approximately follows a normal distribution N(nμ,nσ2).
- Generalization: The theorem holds even if Xk are not identically distributed, as long as they are independent and have finite means and variances.
📝 If the net weight of a bottle of medicine is a random variable with an expected value of 100g and a standard deviation of 10g, and a box contains 200 bottles, the probability that the total net weight of a box exceeds 20,500g can be approximated using the central limit theorem. Here, n=200, μ=100, σ=10. The sum X=∑k=1200Xk is approximately N(nμ,nσ2)=N(200×100,200×102)=N(20000,20000). The probability P{X>20500} is approximately 1−Φ(2000020500−20000)≈1−Φ(3.54)≈1−0.9998=0.0002 58.
2.32 De Moivre-Laplace central limit theorem
If X is the number of occurrences of event A in n independent Bernoulli trials, and p is the probability of event A occurring in each trial (0<p<1), then for any real number x, limn→+∞P{npqX−np≤x}=Φ(x), where q=1−p 58.
- Binomial approximation: If X follows a binomial distribution B(n,p), for sufficiently large n (typically n>30), the standardized random variable npqX−np approximately follows a standard normal distribution N(0,1).
- Probability calculation: This approximation simplifies the calculation of probabilities for binomial distributions when n is large, as direct summation of binomial probabilities can be computationally intensive 58.
- P{x1≤X≤x2}≈Φ(npqx2−np)−Φ(npqx1−np).
- P{X=k}≈Φ(npqk+0.5−np)−Φ(npqk−0.5−np) (continuity correction).
📝 In a workshop with 200 independent machines, each having a 0.02 probability of failure, the number of faulty machines X follows B(200,0.02). Since n=200 is large, the De Moivre-Laplace theorem can be used. Here, np=4 and npq=3.92. The probability of 2 to 10 machines failing is P{2≤X≤10}≈Φ(3.9210−4)−Φ(3.922−4)=Φ(3.03)−Φ(−1.01)≈0.9989−(1−0.8437)=0.8426 59.
2.33 SPSS software application summary
SPSS provides functions for calculating probabilities, cumulative probabilities, and critical values for various statistical distributions 59.
| Statistical Content | SPSS Function |
|---|---|
| Binomial distribution P{X = x} | PDF.BINOM(x, n, p) |
| Binomial distribution P{X <= x} | CDF.BINOM(x, n, p) |
| Poisson distribution P{X = x} | PDF.POISSON(x, λ) |
| Poisson distribution P{X <= x} | CDF.POISSON(x, λ) |
| Normal distribution P{X <= x} | CDF.NORMAL(x, μ, σ) |
| Normal distribution critical value xα | IDF.NORMAL(1-α, μ, σ) |
| Exponential distribution P{X <= x} | CDF.EXP(x, λ) |
| Exponential distribution critical value 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 census of the population is not feasible or necessary, a sample is drawn to make inferences about the population, a process known as statistical inference 65.
3.1 Basic concepts of mathematical statistics
In mathematical statistics, the entire group of study objects is called the population, and each basic unit within it is an individual. Populations can be finite or infinite, depending on the number of individuals they contain 65.
- Population representation: A population can be represented by a random variable X, where the population is the set of all possible values X can take. If X follows a distribution F(x), the population is said to have distribution F(x).
- Population parameters: These are the characteristic indicators of the population, such as the population mean (μ) and variance (σ2) 66.
A sample is a subset of n individuals (X1,X2,…,Xn) drawn from a population X. The number n is the sample size.
Samples are used to estimate and infer population characteristics when the population's full situation is unknown 66.
- Large vs. small samples: A sample is considered large if n≥30 and small otherwise.
- Simple random sampling: This method ensures each individual has an equal chance of being selected, and each selected individual Xi has the same distribution as the population X. Additionally, selections are independent, meaning Xi values do not influence each other.
- Independent and identically distributed (i.i.d.): A simple random sample consists of individuals that are independent and identically distributed 66.
📝 To test the lifespan of a batch of batteries, it is impractical to test every battery due to the destructive nature of the test. Instead, a sample of batteries is tested, and their average lifespan is used to infer the average lifespan of the entire batch 65.
A statistic is a function of the sample p(X1,X2,…,Xn) that does not contain any unknown parameters. Statistics are used to process sample information for estimation and inference about the population 66.
- Random variables: When referring generally to a sample, X1,X2,…,Xn are random variables, and thus statistics like the sample mean Xˉ and sample variance S2 are also random variables.
- Specific values: For a specific sampling outcome, x1,x2,…,xn are concrete values, making xˉ and s2 concrete numerical values 67.
Common sample statistics include:
| 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 different mean samples |
| Sample standard error | Sxˉ=nS | Measures variation of sample mean in estimating population mean |
The relationship between population, parameters, simple random samples, and statistics is fundamental to statistical inference 67.
3.2 Sampling distributions
A sampling distribution is the probability distribution of a statistic, considered as a random variable. It forms the basis of statistical inference 68.
3.3 Distribution of the sample mean
If a population X follows a normal distribution N(μ,σ2), and X1,X2,…,Xn is a sample from X, then the sample mean Xˉ also follows a normal distribution 68.
- Theorem 4-1: For X∼N(μ,σ2), the sample mean Xˉ=n1∑i=1nXi follows N(μ,nσ2).
- Expected value: E(Xˉ)=μ.
- Variance: D(Xˉ)=nσ2.
- Standardized form: U=σ/nXˉ−μ∼N(0,1) 68.
- Theorem 4-2 (Central Limit Theorem): If the population mean μ and variance σ2 exist and are finite, then for a sufficiently large sample size n, the sample mean Xˉ approximately follows a normal distribution N(μ,nσ2), regardless of the population's original distribution.
- Accuracy: A larger n leads to a more accurate estimation of μ by Xˉ.
- Practical application: For large samples (n≥30) with an unknown population distribution, this theorem can be applied 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, we use Theorem 4-2. Since n=64>30, Xˉ approximately follows N(18,6436), which is N(18,169). The probability P{16≤Xˉ≤19} is calculated by standardizing Xˉ and using the standard normal distribution table: P{16≤Xˉ≤19}=Φ(3/419−18)−Φ(3/416−18)=Φ(1.333)−Φ(−2.667)=0.9082−(1−0.9962)=0.9044 69.
3.4 Chi-square distribution
The chi-square (χ2) distribution is defined for a sum of squares of independent standard normal random variables 69.
- Definition 4-4: If X1,X2,…,Xn are independent and follow N(0,1), then χ2=X12+X22+⋯+Xn2 follows a χ2 distribution with n degrees of freedom, denoted χ2∼χ2(n) 69.
- Degrees of freedom (df): This represents the number of independent variables in a statistic, calculated as df=n−r, where n is the number of variables and r is the number of constraints.
- Example: For χ2=∑Xi2, df=n as there are no constraints. For sample variance S2=n−11∑(Xi−Xˉ)2, df=n−1 because ∑(Xi−Xˉ)=0 is one constraint.
- Properties:
- It is an asymmetric, right-skewed distribution, taking only non-negative values.
- As n→∞, it 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.
- Theorem 4-3: If X1,X2,…,Xn are from a normal population X∼N(μ,σ2), then σ2(n−1)S2∼χ2(n−1), and Xˉ and S2 are independent.
- Critical values: The upper α critical value χα2(n) satisfies P{χ2>χα2(n)}=α 70.
- For n>45, χα2(n)≈21(uα+2n−1)2, where uα is the upper α critical value of N(0,1) 71.
3.5 t-distribution
The t-distribution (Student's t-distribution) is used when the population standard deviation is unknown and estimated from the sample 71.
- Definition 4-5: If X∼N(0,1) and Y∼χ2(n) are independent, then T=Y/nX follows a t-distribution with n degrees of freedom, denoted T∼t(n).
- Properties:
- It is symmetric around zero, similar to the standard normal distribution.
- 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 are from a normal population X∼N(μ,σ2), then T=S/nXˉ−μ∼t(n−1), where S/n is the sample standard error Sxˉ.
- Theorem 4-5: For two independent samples from normal populations X∼N(μ1,σ2) and Y∼N(μ2,σ2) with equal variances, the statistic T=S1/n1+1/n2(Xˉ−Yˉ)−(μ1−μ2)∼t(n1+n2−2), where S2=n1+n2−2(n1−1)Sx2+(n2−1)Sy2.
- Critical values: The upper α critical value tα(n) satisfies P{T>tα(n)}=α.
- Due to symmetry, for a two-sided test, P{∣T∣>tα/2(n)}=α, where tα/2(n) is the upper α/2 critical value.
- For n>45, tα(n) can be approximated by uα, the upper α critical value of N(0,1) 72.
3.6 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, then F=X2/n2X1/n1 follows an F-distribution with n1 (numerator) and n2 (denominator) degrees of freedom, denoted F∼F(n1,n2).
- Properties:
- It is an asymmetric, right-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), then F=S22/σ22S12/σ12∼F(n1−1,n2−1), where S12 and S22 are the sample variances.
- Theorem 4-7: If X∼F(n1,n2), then X1∼F(n2,n1).
- This property allows calculation of left-sided critical values: F1−α(n1,n2)=Fα(n2,n1)1.
- Critical values: The upper α critical value Fα(n1,n2) satisfies P{F>Fα(n1,n2)}=α 74.
3.7 SPSS software application
SPSS provides functions to calculate cumulative probabilities and critical values for χ2, t, and F distributions 75.
| Distribution | Probability Function | Critical Value Function |
|---|---|---|
| χ2 distribution | P{χ2(n)≤x}=CDF.CHISQ(x,n) | χα2(n)=IDF.CHISQ(1−α,n) |
| t-distribution | P{T(n)≤x}=CDF.T(x,n) | tα(n)=IDF.T(1−α,n) |
| F-distribution | P{F(n1,n2)≤x}=CDF.F(x,n1,n2) | Fα(n1,n2)=IDF.F(1−α,n1,n2) |
- CDF functions: Calculate the cumulative probability P{X≤x}.
- IDF functions: Calculate the quantile (critical value) xα such that P{X≤xα}=1−α 75.
📝 To find P{χ2(10)>25} using SPSS, calculate P{χ2(10)≤25} using
CDF.CHISQ(25, 10), which yields 0.9946. Then, P{χ2(10)>25}=1−0.9946=0.0054. To find χ0.052(50), useIDF.CHISQ(0.95, 50), which gives 67.50 71.
4. Chapter 5: Parameter Estimation
Parameter estimation is a fundamental statistical inference method used to estimate unknown population parameters from a set of sample observations. A parameter estimator is a sample statistic used to estimate a population parameter 77.
Parameter estimation is typically divided into two main types:
- Point estimation: This method uses the observed value of a suitable statistic as a single estimate for an unknown parameter. For example, using the mean serum cholesterol of 101 healthy men from a survey to estimate the population mean for healthy adult men.
- Interval estimation: This method provides a range, defined by the observed values of two statistics, to estimate the approximate range of an unknown parameter at a given probability (1-α) 77.
4.1 Point estimation of parameters
Point estimation involves constructing an appropriate statistic θ^(X1,X2,…,Xn) from a sample X1,X2,…,Xn to estimate an unknown parameter θ. The observed value of this statistic, θ^(x1,x2,…,xn), is the estimate.
The estimator itself is a random variable, and its estimated value will vary with different samples 77.
4.2 Method of moments
The method of moments, proposed by K. Pearson in 1894, is one of the oldest and most widely used parameter estimation methods. It relies on the principle that sample moments converge in probability to their corresponding population moments 77 78.
The method involves equating the first r sample moments to the first r population moments, where r is the number of unknown parameters θ1,θ2,…,θr. This creates a system of r equations that can be solved for the unknown parameters.
The solutions are the moment estimators for θ1,θ2,…,θr 78.
| Population Parameter | Moment Estimator |
|---|---|
| Population mean μ | Sample mean Xˉ |
| Population variance σ2 | Sample variance S2 |
| Population standard deviation σ | Sample standard deviation S |
- Advantages: The method is intuitive, simple, and broadly applicable. It does not require knowledge of the population distribution when estimating population mean and variance.
- Disadvantages: It may not be as effective as specialized estimators for certain distributions. Moment estimators might not be unique, and their precision for large sample sizes is generally lower than maximum likelihood estimators. It is also unsuitable for populations where origin moments do not exist 79.
📝 For a sample of 10 mice with weights (in g): 20, 21, 20, 20, 22, 19, 18, 20, 21, 22, the sample mean Xˉ=20.3 and sample variance S2=1.57. These are the moment estimates for the population mean μ and variance σ2 of mouse weights 78.
4.3 Maximum likelihood estimation method
The maximum likelihood estimation (MLE) method fully utilizes known information about the population distribution type, leading to estimators that are often closer to the true population parameters than those from the method of moments 79.
The core idea is to select the population parameters that maximize the probability of observing the given sample values. If X1,X2,…,Xn are sample observations from a population with probability function P(x,θ) or density function f(x,θ), the likelihood function L(θ) is defined as: L(θ)=∏i=1nP(xi,θ)orL(θ)=∏i=1nf(xi,θ) The value θ^ that maximizes L(θ) is the maximum likelihood estimate, and θ^(X1,X2,…,Xn) is the maximum likelihood estimator.
If L(θ) is differentiable, θ^ can be found by solving the likelihood equation: dθdL(θ)=0ordθdlnL(θ)=0 79 80.
- Advantages: MLE makes full use of the population distribution type and sample information, making it widely applicable.
- Disadvantages: Sometimes, the maximum likelihood estimator cannot be derived from the likelihood equation, or the equation is difficult to solve. Also, the solution to the likelihood equation does not always guarantee a maximum for the likelihood function. Despite these limitations, MLE remains one of the most important and effective parameter estimation methods 80.
📝 For a population X following an exponential distribution with density function f(x;λ)=λe−λx for x≥0, the maximum likelihood estimator for λ is λ^=Xˉ1, where Xˉ is the sample mean 80.
4.4 Criteria for evaluating estimators
Different estimation methods can yield different estimators for the same population parameter. Therefore, criteria are needed to evaluate the quality of an estimator.
A good estimator should possess unbiasedness, efficiency, and consistency 80.
4.5 Unbiasedness
An estimator θ^ is unbiased if its mathematical expectation equals the true value of the unknown parameter θ, i.e., E(θ^)=θ. Otherwise, it is a biased estimator.
An unbiased estimator's values fluctuate around the true parameter value, meaning its average value over many independent estimations would approximate θ 80 81.
📝 The sample mean Xˉ=n1∑Xi is an unbiased estimator for the population mean μ, as E(Xˉ)=μ. The sample variance S2=n−11∑(Xi−Xˉ)2 is an unbiased estimator for the population variance σ2, as E(S2)=σ2 81.
4.6 Efficiency
Efficiency refers to how small the deviation between an estimator θ^ and the true parameter θ is. This deviation is typically measured by the mean square error E[(θ^−θ)2].
For an unbiased estimator, E(θ^)=θ, so the mean square error simplifies to the variance D(θ^). A smaller variance indicates that the estimator's possible values are more concentrated around the true parameter, making the estimation more effective 81.
- Definition: If θ^1 and θ^2 are two unbiased estimators for θ, and D(θ^1)<D(θ^2), then θ^1 is considered more efficient than θ^2 81.
📝 The sample mean Xˉ is a more efficient estimator for the population mean μ than X1 (the first sample observation), because D(Xˉ)=nσ2 and D(X1)=σ2. For n>1, D(Xˉ)<D(X1), indicating that Xˉ's values are more concentrated around μ 81 82.
4.7 Consistency
Consistency describes the property that as the sample size n increases indefinitely, the estimator θ^(X1,X2,…,Xn) approaches the true parameter value θ with greater probability, leading to more precise estimates 82.
-
Definition: An estimator θ^(X1,X2,…,Xn) is a consistent estimator for parameter θ if, for any given ϵ>0, limn→+∞P{∣θ^−θ∣<ϵ}=1. This means θ^ converges in probability to θ 82.
-
Key consistent estimators:
-
The sample mean Xˉ is a consistent estimator for the population mean μ.
-
The sample k-th order origin moment is a consistent estimator for the population k-th order origin moment E(Xk).
-
For a general population X, the sample mean Xˉ and sample variance S2 are unbiased and consistent estimators for μ and σ2, respectively. For a normal population X, Xˉ and S2 are the optimal unbiased and consistent estimators for μ and σ2 82.
4.8 Interval estimation of normal population parameters
Point estimates provide a single value for a parameter but do not account for sampling error or the reliability of the estimate. Interval estimation addresses this by providing a range within which the parameter is likely to lie, along with a measure of confidence 82.
-
Definition: For an unknown population parameter θ, if two statistics θ^1 and θ^2 (where θ^1<θ^2) satisfy P{θ^1<θ<θ^2}=1−α for a given α (where 0<α<1), then the random interval (θ^1,θ^2) is called the (1−α)% confidence interval for θ.
-
θ^1 is the confidence lower limit.
-
θ^2 is the confidence upper limit.
-
(1−α) or 100(1−α)% is the confidence level 82.
-
Confidence level and interval length: A smaller α leads to a larger confidence level (1−α), increasing the probability that the interval contains θ. However, a smaller α also results in a wider interval, which may reduce its practical significance. Conversely, a very narrow interval might have a low confidence probability. The best interval estimate for a given confidence probability (1−α) is the one with the smallest average length 82.
-
Common α values: α is typically set to 0.05, 0.01, or sometimes 0.1. For α=0.05, approximately 95 out of 100 confidence intervals constructed from independent samples would contain the true parameter θ 83.
4.9 Interval estimation of population mean when σ2 is known
When the population variance σ2 is known, and the sample X1,X2,…,Xn is drawn from a normal population N(μ,σ2), the sample mean Xˉ follows N(μ,nσ2). The random variable U=σ/nXˉ−μ follows a standard normal distribution N(0,1) 83.
The (1−α) confidence interval for the population mean μ is given by: (Xˉ−uα/2nσ,Xˉ+uα/2nσ)orXˉ±uα/2nσ where uα/2 is the critical value from the standard normal distribution such that P{∣U∣<uα/2}=1−α. Commonly used critical values are u0.05/2=1.96 and u0.01/2=2.58 83.
📝 For a normal population N(μ,0.12) with a sample mean Xˉ=5.58 from a sample of size n=4, the 99% confidence interval for μ is calculated using u0.01/2=2.58. The interval is 5.58±2.58×40.1=5.58±0.129, resulting in (5.451,5.709) 84.
4.10 Interval estimation of population mean when σ2 is unknown
When the population variance σ2 is unknown, it is replaced by the unbiased sample variance S2. In this case, the random variable T=S/nXˉ−μ follows a t-distribution with n−1 degrees of freedom, denoted as t(n−1) 84.
The (1−α) confidence interval for the population mean μ is given by: (Xˉ−tα/2(n−1)nS,Xˉ+tα/2(n−1)nS)orXˉ±tα/2(n−1)nS where tα/2(n−1) is the critical value from the t-distribution with n−1 degrees of freedom such that P{∣T∣<tα/2(n−1)}=1−α 84.
- Large sample approximation: For large sample sizes, the t-distribution approximates the normal distribution. If the population standard deviation is unknown for a non-normal population, but n is sufficiently large, the confidence interval for μ can be approximated using uα/2 instead of tα/2(n−1): Xˉ±uα/2nS 85 86.
📝 For 12 children's blood calcium measurements, with Xˉ=59.14 and S=8.61, the 90% confidence interval for the average blood calcium content is calculated. With n−1=11 degrees of freedom and α=0.1, t0.05(11)=1.796. The interval is 59.14±1.796×128.61=59.14±4.46, resulting in (54.68,63.60) 84 85.
4.11 Interval estimation of normal population variance
When estimating the population variance σ2 for a normal population N(μ,σ2) with unknown μ and σ2, the sample variance S2 is an unbiased estimator. The statistic σ2(n−1)S2 follows a chi-squared distribution with n−1 degrees of freedom, denoted as χ2(n−1) 86.
Due to the asymmetry of the χ2 distribution, two critical values are needed: χ1−α/22(n−1) and χα/22(n−1). The (1−α) confidence interval for σ2 is given by: (χα/22(n−1)(n−1)S2,χ1−α/22(n−1)(n−1)S2) 86 87.
📝 For 10 aspirin tablets with a sample variance S2=0.956, the 90% confidence interval for the population variance is calculated. With n=10 and α=0.1, the degrees of freedom are n−1=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.12 Interval estimation of binomial population proportion P
The population proportion P is the ratio of individuals with a certain characteristic to the total population size. The sample proportion p=m/n is the ratio of individuals with the characteristic in a sample of size n 87.
For a sufficiently large sample size n, the sample proportion p approximately follows a normal distribution N(P,nP(1−P)). Since P is unknown, it can be estimated by the sample proportion p.
When n is large and p and 1−p are not close to 0 or 1, the statistic U=p(1−p)/np−P approximately follows N(0,1) 88.
The (1−α) confidence interval for the population proportion P is: (p−uα/2np(1−p),p+uα/2np(1−p))orp±uα/2np(1−p) 88.
📝 For 100 mice, 80 died after receiving an organophosphorus pesticide. The sample mortality rate p=80/100=0.80. For a 95% confidence interval (α=0.05), uα/2=1.96. The interval is 0.80±1.96×1000.8(1−0.8)=0.80±0.078, resulting in (0.722,0.878) or (72.2%,87.8%) 88.
4.13 Sample size for interval estimation of binomial population proportion P
To control the precision of the estimate, the sample size n can be determined by requiring the width of the confidence interval to not exceed a given positive value δ. The formula for the required sample size is: n≥(δ/2)2uα/22p(1−p) If p is unknown, it can be estimated from a pilot study, prior experience, or by setting p=0.5 to obtain the largest possible n 88 89.
📝 A pharmaceutical factory wants to estimate the 95% confidence interval for the percentage of qualified tablets (199-205mg) with an accuracy of ±5%. Previous experience suggests p=0.8. For α=0.05, uα/2=1.96 and δ/2=0.05. The required sample size is n≥0.0521.962×0.8×0.2=245.9. Thus, 246 tablets should be weighed 89.
4.14 Interval estimation of Poisson distribution parameter λ
For a random variable X following a Poisson distribution with parameter λ, both the population mean and variance are equal to λ. For a large sample size n, the sample mean Xˉ approximately follows N(λ,λ/n).
The statistic U=λ/nXˉ−λ approximately follows N(0,1) 89.
Since the sample mean Xˉ is an unbiased estimator for λ, we can substitute Xˉ for λ in the standard deviation, leading to Xˉ/nXˉ−λ approximately following N(0,1). If X=∑Xi is the total count, then Xˉ=X/n.
The (1−α) confidence interval for the population mean λ is: (nX−uα/2n2X,nX+uα/2n2X) 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 (α=0.05), uα/2=1.96. The total pulse count X=11,286. The 95% confidence interval for the total pulse count is 11,286±1.96×11,286=11,286±208, resulting in (11,078,11,494). The 95% confidence interval for the average pulse count per minute is (553.9,574.7) 90.
4.15 Interval estimation of binomial population proportion P
When the sample size n is not large enough for the normal approximation, exact methods, often involving tables, are used. For a binomial distribution, the number of individuals with a characteristic m in a sample of size n follows a binomial distribution.
Exact confidence intervals for P can be calculated using the binomial distribution function, but this is complex. Pre-calculated tables (e.g., Appendix Table 8) provide these intervals based on the confidence level (1−α) 90.
📝 If 4 out of 10 animals died after drug injection, for a 99% confidence interval (α=0.01), consulting Appendix Table 8 yields a lower limit of 0.077 and an upper limit of 0.809. Thus, the 99% confidence interval for the overall mortality rate is (7.7%,80.9%) 90.
4.16 Interval estimation of Poisson distribution parameter λ
Similar to the binomial distribution, for small samples from a Poisson distribution, exact confidence intervals for λ can be calculated using its distribution function. For convenience, pre-calculated tables (e.g., Appendix Table 9) provide these intervals based on the confidence level (1−α) and the total sample count X.
The interval for the total count nλ is found directly, and then divided by n to get the interval for λ 90.
📝 If a bacterial culture yielded 12 colonies, for a 99% confidence interval, consulting Appendix Table 9 for X=12 yields (4.94,24.14). This is the 99% confidence interval for the number of colonies under similar conditions 90.
5. Chapter 6: Hypothesis Testing for Parameters
Hypothesis testing, also known as significance testing, involves making an assumption about a population's parameters or distribution, then using statistical methods to calculate statistics. Based on these statistics, the initial assumption is either accepted or rejected, forming a crucial part of statistical inference 94.
5.1 Overview of hypothesis testing
Hypothesis testing problems typically involve determining if a population parameter equals a specific value. This process uses two main hypotheses: the null hypothesis (H0), which is the assumption being tested, and the alternative hypothesis (H1), which is the opposing assumption 94 95.
- Null hypothesis (H0): The statement being tested, often representing no effect or no difference.
- Alternative hypothesis (H1): The statement that contradicts the null hypothesis, representing an effect or difference.
The fundamental principle of hypothesis testing is the reductio ad absurdum based on probability, also known as the small probability principle. This principle states that a small probability event is highly unlikely to occur in a single trial.
If such an event does occur, it suggests that the initial assumption (the null hypothesis) is incorrect, leading to its rejection 95.
- Small probability principle: If an event with a very low probability (e.g., less than α) occurs in a single experiment, it is considered contradictory to the assumption that H0 is true.
- Significance level (α): A pre-determined probability (e.g., 0.05) that defines the threshold for rejecting the null hypothesis. It represents the probability of committing a Type I error.
- Rejection region: The range of values for the test statistic that leads to the rejection of the null hypothesis 95.
📝 For a packaging machine designed to fill bags with 500g of wine, with a known population variance σ2=6.52. If a sample of 6 bags has an average weight of xˉ=504.5g, we test H0:μ=500 against H1:μ=500. Assuming H0 is true, the test statistic U=σ/nXˉ−μ0∼N(0,1). The observed value is u=6.5/6504.5−500=1.696. For α=0.05, the critical value uα/2=u0.025=1.96. Since ∣u∣=1.696<1.96, we accept H0, concluding that the average weight is still 500g 95.
The general steps for conducting a hypothesis test are as follows:
- Establish hypotheses: Define the null hypothesis (H0) and the alternative hypothesis (H1).
- Determine test statistic: Identify the appropriate test statistic and its distribution, then calculate its value from the sample data. Statistical software can also provide the corresponding P-value.
- Find critical value and rejection region: Using the given significance level (α), consult statistical tables to find the critical value(s) and define the rejection region.
- Make a statistical 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.
Hypothesis testing can lead to two types of errors due to the randomness of sampling:
| Actual Situation | Accept H₀ | Reject H₀ |
|---|---|---|
| H₀ is true | Correct | Type I Error (False Positive) |
| H₀ is false | Type II Error (False Negative) | Correct |
- Type I error: Occurs when the null hypothesis (H0) is true but is incorrectly rejected. The probability of this error is the significance level α, denoted as P{reject H0∣H0 is true}=α.
- Type II error: Occurs when the null hypothesis (H0) is false but is incorrectly accepted. The probability of this error is denoted by β, i.e., P{accept H0∣H0 is false}=β 96.
There is an inverse relationship between α and β: decreasing one typically increases the other. The ideal scenario is to reduce both error probabilities simultaneously, which usually requires increasing the sample size.
In practice, the choice of which error to control more strictly depends on the specific research context and the consequences of each error 96.
5.2 Parameter tests for single normal populations
This section focuses on hypothesis testing for the mean and variance of a single normal population, which is frequently used in medical research to verify if a drug's indicator meets specified requirements 97.
5.3 Mean test for a single normal population when variance is known
When a sample X1,X2,…,Xn is drawn from a normal population N(μ,σ2) with a known variance σ2, a u-test (or z-test) is used to test hypotheses about the population mean μ 97.
- Test statistic: Under H0:μ=μ0, the test statistic is U=σ/nXˉ−μ0∼N(0,1).
- Critical value method: Compare the calculated u value to the critical value uα/2 (for two-sided tests) or uα (for one-sided tests) from the standard normal distribution table 97.
- P-value method: Calculate the P-value, which is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming H0 is true. If P<α, reject H0 98.
| 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 (right) | H0:μ=μ0;H1:μ>μ0 | U=σ/nXˉ−μ0 | uα | u>uα |
| One-sided (left) | H0:μ=μ0;H1:μ<μ0 | U=σ/nXˉ−μ0 | −uα | u<−uα |
📝 A drug ointment's glycyrrhizic acid content X∼N(4.45,0.1082). A sample of 5 ointments has an average content of xˉ=4.33. With σ2 unchanged, we test H0:μ=4.45 against H1:μ=4.45 at α=0.05. The observed u=0.108/54.33−4.45=−2.485. The critical value u0.025=1.96. Since ∣−2.485∣>1.96, we reject H0, concluding that the average glycyrrhizic acid content has significantly changed 97 98.
5.4 Mean test for a single normal population when variance is unknown
When the population variance σ2 is unknown, a t-test is used for testing the population mean μ. This is a common scenario in practical applications 99.
- Test statistic: Under H0:μ=μ0, the test statistic is T=S/nXˉ−μ0∼t(n−1), where S is the sample standard deviation and n−1 is the degrees of freedom 99.
- Critical value method: Compare the calculated t value to the critical value tα/2(n−1) (for two-sided tests) or tα(n−1) (for one-sided tests) from the t-distribution table 100.
| Test Type | Hypotheses | Test Statistic | Critical Value | Rejection Region |
|---|---|---|---|---|
| Two-sided | H0:μ=μ0;H1:μ=μ0 | T=S/nXˉ−μ0 | tα/2 | ∣t∣>tα/2 |
| One-sided (right) | H0:μ=μ0;H1:μ>μ0 | T=S/nXˉ−μ0 | tα | t>tα |
| One-sided (left) | H0:μ=μ0;H1:μ<μ0 | T=S/nXˉ−μ0 | −tα | t<−tα |
📝 Continuing the previous example, if the variance of glycyrrhizic acid content is unknown, we use a t-test. Given n=5, μ0=4.45, xˉ=4.33, and S=0.103. The observed t=0.103/54.33−4.45=−2.605. For α=0.05 and df=4, the critical value t0.025(4)=2.776. Since ∣−2.605∣<2.776, we accept H0, concluding that the average glycyrrhizic acid content is not significantly different from 4.45 100.
For large samples (n>30), even if the population variance is unknown, the t-distribution approximates the standard normal distribution. Therefore, an approximate u-test can be used 101.
- Large sample approximation: For n>30, U=S/nXˉ−μ0∼N(0,1) approximately 101.
5.5 Variance test for a single normal population
To test hypotheses about the population variance σ2 of a normal population N(μ,σ2), a chi-square test (χ2-test) is used. This test is applicable whether the mean μ is known or unknown 102.
- Test statistic: Under H0:σ2=σ02, the test statistic is χ2=σ02(n−1)S2∼χ2(n−1), where S2 is the sample variance and n−1 is the degrees of freedom.
- Critical value method: Compare the calculated χ2 value to the critical values χ1−α/22(n−1) and χα/22(n−1) (for two-sided tests) or χα2(n−1) (for one-sided tests) from the chi-square distribution table 102.
| Test Type | Hypotheses | Test Statistic | Critical Values | Rejection Region |
|---|---|---|---|---|
| Two-sided | H0:σ2=σ02;H1:σ2=σ02 | χ2=σ02(n−1)S2 | χ1−α/22,χα/22 | χ2<χ1−α/22 or χ2>χα/22 |
| One-sided (right) | H0:σ2=σ02;H1:σ2>σ02 | χ2=σ02(n−1)S2 | χα2 | χ2>χα2 |
| One-sided (left) | H0:σ2=σ02;H1:σ2<σ02 | χ2=σ02(n−1)S2 | χ1−α2 | χ2<χ1−α2 |
5.6 Mean comparison test for two independent samples
In medical research, comparing two treatments often involves two independent samples. This is known as a two-group design, where subjects are randomly assigned to a control or experimental group, and both populations are assumed to be normally distributed 103.
5.7 Homogeneity test for variances
Before comparing means of two independent samples, it is often necessary to test if their population variances are equal, known as a homogeneity test for variance. This is typically done using an F-test 104.
- Test statistic: Under H0:σ12=σ22, the test statistic is F=S22S12∼F(n1−1,n2−1), where S12 and S22 are the sample variances, and n1−1 and n2−1 are the degrees of freedom.
- Procedure: To simplify calculations, the larger sample variance is typically placed in the numerator, ensuring F>1. Only the upper critical value Fα/2(n1−1,n2−1) needs to be checked 104.
| Test Type | Hypotheses | Test Statistic | Critical Value | Rejection Region |
|---|---|---|---|---|
| Two-sided | H0:σ12=σ22;H1:σ12=σ22 | F=S22S12 | Fα/2 | F>Fα/2 |
| One-sided (right) | H0:σ12=σ22;H1:σ12>σ22 | F=S22S12 | Fα | F>Fα |
📝 Two groups of guinea pigs (control and treatment, n1=n2=12) have perfusion rates with sample variances S12=96.33 and S22=48.33. We test H0:σ12=σ22 against H1:σ12=σ22 at α=0.05. The observed F=48.3396.33=1.993. The critical value F0.025(11,11)≈3.45. Since 1.993<3.45, we accept H0, concluding no significant difference in variances 105.
For multiple populations, Levene's test is commonly used, which does not require the data to be normally distributed 105.
5.8 Mean comparison test for two independent samples when variance is known
When comparing the means of two independent normal populations with known variances σ12 and σ22, a u-test is used to test H0:μ1=μ2 (or H0:μ1−μ2=0) 106.
- Test statistic: Under H0:μ1=μ2, the test statistic is U=n1σ12+n2σ22Xˉ−Yˉ∼N(0,1) 106.
📝 Machine A produces drugs with weights X∼N(μ1,70), and Machine B produces drugs with weights Y∼N(μ2,90). Samples are n1=35,Xˉ=137 and n2=45,Yˉ=130. We test H0:μ1=μ2 against H1:μ1=μ2 at α=0.01. The observed u=3570+4590137−130=2+27=3.5. The critical value u0.005=2.58. Since ∣3.5∣>2.58, we reject H0, concluding a significant difference in drug weights 106.
5.9 Mean comparison test for two independent samples when variance is unknown
When population variances σ12 and σ22 are unknown, the approach depends on sample size and whether variances are assumed equal 106.
- Large samples (n1,n2>30): Sample variances S12,S22 can approximate population variances. An approximate u-test is used: U=n1S12+n2S22Xˉ−Yˉ∼N(0,1) 106.
- Small samples with unknown but equal variances (σ12=σ22): A pooled sample variance Sp2=n1+n2−2(n1−1)S12+(n2−1)S22 is used. The test statistic is T=Spn11+n21Xˉ−Yˉ∼t(n1+n2−2) 107.
| Test Type | Hypotheses | Test Statistic | Critical Value | Rejection Region |
|---|---|---|---|---|
| Two-sided | H0:μ1=μ2;H1:μ1=μ2 | T=Spn11+n21Xˉ−Yˉ | tα/2 | ∣t∣>tα/2 |
| One-sided (right) | H0:μ1=μ2;H1:μ1>μ2 | T=Spn11+n21Xˉ−Yˉ | tα | t>tα |
| One-sided (left) | H0:μ1=μ2;H1:μ1<μ2 | T=Spn11+n21Xˉ−Yˉ | −tα | t<−tα |
📝 For the guinea pig perfusion experiment (Example 6-6), with n1=n2=12, xˉ=44.83, S12=96.33, yˉ=52.83, S22=48.33. Assuming equal variances, the pooled variance Sp2=296.33+48.33=72.33, so Sp=8.505. We test H0:μ1=μ2 against H1:μ1=μ2 at α=0.05. The observed t=8.505121+12144.83−52.83=−2.304. For α=0.05 and df=22, the critical value t0.025(22)=2.074. Since ∣−2.304∣>2.074, we reject H0, concluding a significant difference in mean perfusion rates 108.
- Small samples with unknown and unequal variances (σ12=σ22): An approximate t-test is used with a modified degrees of freedom calculation. The test statistic is T′=n1S12+n2S22Xˉ−Yˉ, and the degrees of freedom df=(n1+n2−2)(n1S12)2+(n2S22)2(n1S12+n2S22)2 (#page=109 109.
© 2026 Maeve. All rights reserved. This content is protected by copyright.