【X】《医药数理统计方法 第7版 本科药学 配增值》【2022】9787117330909-45-164

Table of contents

  1. Chapter 2: Random Events and Probability
  2. Chapter 3: Random Variables and Their Distributions
  3. Chapter 4: Sampling Distributions
  4. Chapter 5: Parameter Estimation
  5. 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 (Ω\Omega): 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 Ω\Omega.
  • Impossible event (∅\emptyset): 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 (⊂\subset or ⊃\supset): 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 ∪\cup): This event occurs if at least one of two or more events happens. For events A1,A2,…,AnA_1, A_2, \dots, A_n, their sum is A1+A2+⋯+AnA_1+A_2+\dots+A_n or ⋃Ai\bigcup A_i 2.
  • Product (or intersection) of events (⋅\cdot or ∩\cap): This event occurs if two or more events happen simultaneously. For events A1,A2,…,AnA_1, A_2, \dots, A_n, their product is A1A2…AnA_1A_2\dots A_n or ⋂Ai\bigcap A_i.
  • 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=∅AB = \emptyset).
  • Complementary event (or inverse event) (Aˉ\bar{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ˉ\bar{A} are complementary if AAˉ=∅A\bar{A} = \emptyset and A+Aˉ=ΩA+\bar{A} = \Omega 3 4.
LawDescription
Commutative LawA+B=B+AA + B = B + A; AB=BAAB = BA
Associative Law(A+B)+C=A+(B+C)(A + B) + C = A + (B + C); (AB)C=A(BC)(AB)C = A(BC)
Distributive Law(A+B)C=AC+BC(A + B)C = AC + BC; A+(BC)=(A+B)(A+C)A + (BC) = (A + B)(A + C)
Difference-Product Conversion LawA−B=ABˉ=A−ABA - B = A\bar{B} = A - AB
De Morgan's Duality LawsA+B‾=AˉBˉ\overline{A + B} = \bar{A}\bar{B}; AB‾=Aˉ+Bˉ\overline{AB} = \bar{A} + \bar{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ˉA\bar{B}\bar{C}.
  • "At least one person is effective" is A+B+CA+B+C 4.

1.3 Probability of events

The probability of an event A, denoted P(A)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)f(A)): In nn independent repeated trials under identical conditions, if event A occurs mm times, mm is the frequency of A, and the ratio m/nm/n is the frequency of A.
  • Stability of relative frequency: As the number of trials nn 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 pp in a large number of repeated trials, then pp is defined as the statistical probability of A, denoted P(A)=pP(A) = p. In practice, P(A)≈m/nP(A) \approx m/n for sufficiently large nn 5.

📝 If a new drug is effective in 278 out of 400 clinical trials, its effectiveness rate is f(A)=278/400≈0.695f(A) = 278/400 \approx 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 nn total elemental events, if event A consists of mm elemental events, its classical probability is P(A)=m/nP(A) = m/n.
  • Properties:
  • 0≤P(A)≤10 \le P(A) \le 1.
  • For complementary events A and Aˉ\bar{A}, P(Aˉ)=1−P(A)P(\bar{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.167P(A) = C_6^3 / C_{10}^3 = 20/120 = 1/6 \approx 0.167.
  • The probability of at least one white ball is P(B)=1−P(Bˉ)P(B) = 1 - P(\bar{B}), where Bˉ\bar{B} is no white balls. P(Bˉ)=C43/C103=4/120=1/30P(\bar{B}) = C_4^3 / C_{10}^3 = 4/120 = 1/30. So, P(B)=1−1/30=29/30≈0.967P(B) = 1 - 1/30 = 29/30 \approx 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)≤10 \le P(A) \le 1.
  • Axiom 2 (Normalization): The probability of the certain event Ω\Omega is 1, and the probability of the impossible event ∅\emptyset is 0. So, P(Ω)=1P(\Omega) = 1 and P(∅)=0P(\emptyset) = 0.
  • Axiom 3 (Countable additivity): For a sequence of pairwise mutually exclusive events A1,A2,…,AnA_1, A_2, \dots, A_n (AiAj=∅A_iA_j = \emptyset for i≠ji \ne j), the probability of their sum is the sum of their individual probabilities: P(A1+A2+⋯+An)=P(A1)+P(A2)+⋯+P(An)P(A_1+A_2+\dots+A_n) = P(A_1)+P(A_2)+\dots+P(A_n).
  • General definition: If for any event A in a sample space Ω\Omega, there is a real number P(A)P(A) that satisfies these three axioms, then P(A)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)P(A+B) = P(A) + P(B).
  • Corollary 2-1: For nn pairwise mutually exclusive events A1,A2,…,AnA_1, A_2, \dots, A_n, P(A1+A2+⋯+An)=P(A1)+P(A2)+⋯+P(An)P(A_1+A_2+\dots+A_n) = P(A_1)+P(A_2)+\dots+P(A_n).
  • Corollary 2-2 (Complementary event formula): For any event A and its complementary event Aˉ\bar{A}, P(Aˉ)=1−P(A)P(\bar{A}) = 1 - P(A).
  • Corollary 2-3 (Event difference formula): For any events A and B, P(A−B)=P(A)−P(AB)P(A-B) = P(A) - P(AB). If B⊂AB \subset A, then P(A−B)=P(A)−P(B)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)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)P(A+B+C) = P(A) + P(B) + P(C) - P(AB) - P(AC) - P(BC) + P(ABC).
  • For nn events: P(∑i=1nAi)=∑P(Ai)−∑P(AiAj)+∑P(AiAjAk)−⋯+(−1)n−1P(A1A2…An)P(\sum_{i=1}^n A_i) = \sum P(A_i) - \sum P(A_iA_j) + \sum P(A_iA_jA_k) - \dots + (-1)^{n-1} P(A_1A_2\dots A_n) 9.

📝 If P(A)=0.4P(A) = 0.4 and P(A+B)=0.7P(A+B) = 0.7:

  • If A and B are mutually exclusive, P(B)=P(A+B)−P(A)=0.7−0.4=0.3P(B) = P(A+B) - P(A) = 0.7 - 0.4 = 0.3.
  • If A⊂BA \subset B, then P(B)=P(A+B)=0.7P(B) = P(A+B) = 0.7.
  • If P(AB)=0.2P(AB) = 0.2, then P(B)=P(A+B)−P(A)+P(AB)=0.7−0.4+0.2=0.5P(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)>0P(B) > 0, the conditional probability of A given B is P(A∣B)=P(AB)/P(B)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):

  • The probability of drawing a glass ball is P(A)=6/16=0.375P(A) = 6/16 = 0.375.
  • The probability of drawing a glass ball given it is blue is P(A∣B)=4/11≈0.364P(A|B) = 4/11 \approx 0.364. This is calculated as P(AB)/P(B)=(4/16)/(11/16)=4/11P(AB)/P(B) = (4/16)/(11/16) = 4/11 10 11.
  • Theorem 2-3 (Multiplication theorem): For any two events A and B:
  • If P(B)>0P(B) > 0, then P(AB)=P(B)P(A∣B)P(AB) = P(B)P(A|B).
  • If P(A)>0P(A) > 0, then P(AB)=P(A)P(B∣A)P(AB) = P(A)P(B|A).
  • For nn events A1,A2,…,AnA_1, A_2, \dots, A_n, if P(A1A2…An−1)>0P(A_1A_2\dots A_{n-1}) > 0, then P(A1A2…An)=P(A1)P(A2∣A1)P(A3∣A1A2)…P(An∣A1A2…An−1)P(A_1A_2\dots A_n) = P(A_1)P(A_2|A_1)P(A_3|A_1A_2)\dots P(A_n|A_1A_2\dots A_{n-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)P(AB) = P(A)P(B).
  • Theorem 2-4:
  • If P(A)>0P(A) > 0 or P(B)>0P(B) > 0, then A and B are mutually independent if and only if P(B)=P(B∣A)P(B) = P(B|A) or P(A)=P(A∣B)P(A) = P(A|B) 11.
  • If A and B are mutually independent, then Aˉ\bar{A} and B, A and Bˉ\bar{B}, and Aˉ\bar{A} and Bˉ\bar{B} are also mutually independent.
  • Definition 2-9 (Mutual independence for multiple events): Events A1,A2,…,AnA_1, A_2, \dots, A_n are mutually independent if for any kk events (2≤k≤n2 \le k \le 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(AB) = P(A)P(B), P(AC)=P(A)P(C)P(AC) = P(A)P(C), P(BC)=P(B)P(C)P(BC) = P(B)P(C), and P(ABC)=P(A)P(B)P(C)P(ABC) = P(A)P(B)P(C).
  • If only the first three conditions are met, the events are pairwise independent.
  • If A1,A2,…,AnA_1, A_2, \dots, A_n are mutually independent, then P(A1A2…An)=P(A1)P(A2)…P(An)P(A_1A_2\dots A_n) = P(A_1)P(A_2)\dots P(A_n) 12.

📝 If two shooters, A and B, aim at a target with hit rates P(A)=0.6P(A) = 0.6 and P(B)=0.5P(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.8P(A+B) = P(A) + P(B) - P(A)P(B) = 0.6 + 0.5 - (0.6 \times 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,…,AnA_1, A_2, \dots, A_n forms a complete group if they are pairwise mutually exclusive (AiAj=∅A_iA_j = \emptyset for i≠ji \ne j) and their sum covers the entire sample space (A1+A2+⋯+An=ΩA_1+A_2+\dots+A_n = \Omega) 12.
  • Theorem 2-5 (Total probability formula): If A1,A2,…,AnA_1, A_2, \dots, A_n is a complete group of events with P(Ai)>0P(A_i) > 0 for all ii, then for any event B, P(B)=∑i=1nP(Ai)P(B∣Ai)P(B) = \sum_{i=1}^n P(A_i)P(B|A_i).
  • P(Ai)P(A_i) are called prior probabilities, representing the probability of each "cause" event.
  • P(B)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) = P(A_1)P(B|A_1) + P(A_2)P(B|A_2) + P(A_3)P(B|A_3) P(B)=(0.3×0.06)+(0.45×0.05)+(0.25×0.03)=0.048P(B) = (0.3 \times 0.06) + (0.45 \times 0.05) + (0.25 \times 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 AiA_i given that an effect event B has already occurred 13 14.

  • Theorem 2-6 (Inverse probability formula): If A1,A2,…,AnA_1, A_2, \dots, A_n is a complete group of events with P(Ai)>0P(A_i) > 0 and P(B)>0P(B) > 0, then P(Ai∣B)=P(Ai)P(B∣Ai)∑j=1nP(Aj)P(B∣Aj)P(A_i|B) = \frac{P(A_i)P(B|A_i)}{\sum_{j=1}^n P(A_j)P(B|A_j)}.
  • P(Ai∣B)P(A_i|B) is called the posterior probability, representing the probability of event AiA_i 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 XX or YY.

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 XX 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 XX with possible values xkx_k and corresponding probabilities P{X=xk}=pkP\{X=x_k\}=p_k, its distribution law is P{X=xk}=pkP\{X=x_k\}=p_k, for k=1,2,…k=1, 2, \dots.
  • Properties of probability function pkp_k:
  • pk≥0p_k \ge 0 for all k=1,2,…k=1, 2, \dots.
  • ∑pk=1\sum p_k = 1 20.
Xx1x2xk
Pp1p2pk

📝 If 8 drugs contain 3 defective items, and 2 are randomly selected, the number of defective items XX can be 0, 1, or 2. The probabilities are P{X=0}=C30C52/C82=5/14≈0.357P\{X=0\} = C_3^0 C_5^2 / C_8^2 = 5/14 \approx 0.357, P{X=1}=C31C51/C82=15/28≈0.536P\{X=1\} = C_3^1 C_5^1 / C_8^2 = 15/28 \approx 0.536, and P{X=2}=C32C50/C82=3/28≈0.107P\{X=2\} = C_3^2 C_5^0 / C_8^2 = 3/28 \approx 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.893P\{X \le 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)F(x) of a random variable XX is defined for any real number xx as F(x)=P{X≤x}F(x) = P\{X \le x\}, for −∞<x<+∞-\infty < x < +\infty. It represents the cumulative probability that the random variable XX takes a value less than or equal to xx 21.

  • Properties of F(x)F(x):
  • 0≤F(x)≤10 \le F(x) \le 1.
  • lim⁡x→−∞F(x)=F(−∞)=0\lim_{x \to -\infty} F(x) = F(-\infty) = 0 and lim⁡x→+∞F(x)=F(+∞)=1\lim_{x \to +\infty} F(x) = F(+\infty) = 1.
  • F(x)F(x) is a monotonically non-decreasing function of xx; if x1<x2x_1 < x_2, then F(x1)≤F(x2)F(x_1) \le F(x_2).
  • F(x)F(x) is right-continuous, meaning F(x0)=lim⁡x→x0+F(x)=F(x0+0)F(x_0) = \lim_{x \to x_0^+} F(x) = F(x_0+0) for any x0x_0.
  • Probabilities expressed using F(x)F(x):
  • P{a<X≤b}=F(b)−F(a)P\{a < X \le b\} = F(b) - F(a).
  • P{X>a}=1−F(a)P\{X > a\} = 1 - F(a).
  • P{X=a}=F(a)−F(a−0)P\{X = a\} = F(a) - F(a-0), where F(a−0)F(a-0) is the left-hand limit of F(x)F(x) at x=ax=a 21.
  • For discrete random variables: The distribution function F(x)F(x) is obtained by summing the probabilities P{X=xk}P\{X=x_k\} for all xk≤xx_k \le x: F(x)=P{X≤x}=∑xk≤xP{X=xk}=∑xk≤xpkF(x) = P\{X \le x\} = \sum_{x_k \le x} P\{X=x_k\} = \sum_{x_k \le x} p_k.
  • The graph of F(x)F(x) for a discrete random variable is a step function, with jumps at each possible value xkx_k, where the jump height equals pkp_k 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 XX taking values in (−∞,+∞)(-\infty, +\infty), if there exists a non-negative integrable function f(x)f(x) such that for any real numbers a,ba, b (a<ba < b), P{a<X≤b}=∫abf(x) dxP\{a < X \le b\} = \int_a^b f(x)\,dx, then f(x)f(x) is called the probability density function of XX.
  • The probability P{a<X≤b}P\{a < X \le b\} is represented by the area under the curve of f(x)f(x) between aa and bb.
  • Properties of f(x)f(x):
  • f(x)≥0f(x) \ge 0 for any real number xx.
  • ∫−∞+∞f(x) dx=1\int_{-\infty}^{+\infty} 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) dtF(x) = P\{X \le x\} = \int_{-\infty}^x f(t)\,dt, for −∞<x<+∞-\infty < x < +\infty.
  • Additional properties of continuous random variables:
  • F(x)F(x) is a continuous function.
  • P{a<X≤b}=F(b)−F(a)=∫abf(x) dxP\{a < X \le b\} = F(b) - F(a) = \int_a^b f(x)\,dx.
  • If f(x)f(x) is continuous at point xx, then f(x)=F′(x)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 aa is 0: P{X=a}=0P\{X=a\} = 0. This implies that P{a<X<b}=P{a≤X<b}=P{a<X≤b}=P{a≤X≤b}=∫abf(x) dxP\{a < X < b\} = P\{a \le X < b\} = P\{a < X \le b\} = P\{a \le X \le b\} = \int_a^b f(x)\,dx.

📝 For a random variable XX uniformly distributed on [a,b][a, b], its PDF is f(x)=1b−af(x) = \frac{1}{b-a} for a≤x≤ba \le x \le b, and 00 otherwise. Its distribution function F(x)F(x) is 00 for x<ax < a, x−ab−a\frac{x-a}{b-a} for a≤x<ba \le x < b, and 11 for x≥bx \ge b. The probability of XX falling into any sub-interval (x1,x1+Δx)(x_1, x_1+\Delta x) within [a,b][a, b] is Δxb−a\frac{\Delta x}{b-a}, 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 XX, denoted E(X)E(X), represents its average value 26.

  • For discrete random variables: If XX has probability distribution P{X=xk}=pkP\{X=x_k\}=p_k, its mathematical expectation is E(X)=∑k=1∞xkpkE(X) = \sum_{k=1}^{\infty} x_k p_k, 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 XX and YY respectively, their probability distributions are given. E(X)=5.50E(X) = 5.50 and E(Y)=4.00E(Y) = 4.00. Since E(X)>E(Y)E(X) > E(Y), drug A has a higher average number of effective cases, indicating better treatment efficacy.

  • For continuous random variables: If XX has probability density function f(x)f(x), its mathematical expectation is E(X)=∫−∞+∞xf(x) dxE(X) = \int_{-\infty}^{+\infty} xf(x)\,dx, provided the integral converges absolutely.

📝 For a random variable XX uniformly distributed on [a,b][a, b] with PDF f(x)=1b−af(x) = \frac{1}{b-a} for a≤x≤ba \le x \le b, its mathematical expectation is E(X)=∫abx1b−a dx=1b−a[x22]ab=b2−a22(b−a)=a+b2E(X) = \int_a^b x \frac{1}{b-a}\,dx = \frac{1}{b-a} \left[\frac{x^2}{2}\right]_a^b = \frac{b^2-a^2}{2(b-a)} = \frac{a+b}{2}. This is the midpoint of the interval [a,b][a, b] 27 28.

2.7 Mathematical expectation of a function of a random variable

If Y=g(X)Y = g(X) is a function of a random variable XX, then YY is also a random variable. Its mathematical expectation E[g(X)]E[g(X)] can be found using XX's distribution 28.

  • For discrete random variables: If XX has distribution P{X=xk}=pkP\{X=x_k\}=p_k, then E[g(X)]=∑g(xk)P{X=xk}=∑g(xk)pkE[g(X)] = \sum g(x_k) P\{X=x_k\} = \sum g(x_k) p_k.
  • For continuous random variables: If XX has PDF f(x)f(x), then E[g(X)]=∫−∞+∞g(x)f(x) dxE[g(X)] = \int_{-\infty}^{+\infty} g(x)f(x)\,dx.

📝 Given a discrete random variable XX with specific probabilities, and Y=2X2−1Y = 2X^2 - 1. To find E(Y)E(Y), calculate g(xk)g(x_k) for each xkx_k: g(−1)=1g(-1)=1, g(0)=−1g(0)=-1, g(1)=1g(1)=1, g(2)=7g(2)=7. Then E(Y)=1×0.15+(−1)×0.1+1×0.3+7×0.45=3.5E(Y) = 1 \times 0.15 + (-1) \times 0.1 + 1 \times 0.3 + 7 \times 0.45 = 3.5 28.

2.8 Properties of mathematical expectation

Mathematical expectation has several important properties that simplify calculations 28.

PropertyDescription
E(C) = CThe 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) + bFor 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 XX, if E[(X−E(X))2]E[(X-E(X))^2] exists, it is called the variance of XX, denoted D(X)D(X) or Var(X)Var(X).
  • D(X)=E[(X−E(X))2]D(X) = E[(X-E(X))^2].
  • For discrete random variables: D(X)=∑k=1∞(xk−E(X))2pkD(X) = \sum_{k=1}^{\infty} (x_k - E(X))^2 p_k.
  • For continuous random variables: D(X)=∫−∞+∞(x−E(X))2f(x) dxD(X) = \int_{-\infty}^{+\infty} (x - E(X))^2 f(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 XX, denoted σ(X)\sigma(X), is the square root of the variance: σ(X)=D(X)\sigma(X) = \sqrt{D(X)}. It has the same units as XX.
  • Important formula for variance: D(X)=E(X2)−[E(X)]2D(X) = E(X^2) - [E(X)]^2.

📝 For a Poisson distribution with parameter λ\lambda, E(X)=λE(X) = \lambda. Using the variance formula, D(X)=E(X2)−[E(X)]2=λ2+λ−λ2=λD(X) = E(X^2) - [E(X)]^2 = \lambda^2 + \lambda - \lambda^2 = \lambda. Thus, for a Poisson distribution, the variance and mathematical expectation are both equal to its parameter λ\lambda 30.

2.10 Properties of variance

Variance also has several important properties 31.

PropertyDescription
D(C) = 0The 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 XX with mean E(X)E(X) and variance D(X)D(X), its standardized random variable is X∗=X−E(X)D(X)X^\ast = \frac{X-E(X)}{\sqrt{D(X)}} 31.
  • E(X∗)=0E(X^\ast) = 0.
  • D(X∗)=1D(X^\ast) = 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 XX and a non-negative integer kk, if E(Xk)E(X^k) exists, it is called the k-th order origin moment.
  • The mean E(X)E(X) is the first-order moment.
  • k-th order central moment: If E[(X−E(X))k]E[(X-E(X))^k] exists, it is called the k-th order central moment.
  • The variance D(X)D(X) is the second-order central moment.
  • Relationship between moments: E(X2)=D(X)+(E(X))2E(X^2) = 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ˉ\bar{A}. The probability of event A occurring is pp (0<p<10 < p < 1), and the probability of Aˉ\bar{A} is q=1−pq = 1-p.
  • Probability of kk successes in nn trials: In nn Bernoulli trials, the probability that event A occurs exactly kk times is P{X=k}=Cnkpkqn−kP\{X=k\} = C_n^k p^k q^{n-k}, for k=0,1,…,nk=0, 1, \dots, 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.9885P\{X \ge 1\} = 1 - P\{X=0\} = 1 - (0.8)^{20} \approx 0.9885. The probability of exactly 2 patients not being cured is P{X=2}=C202(0.2)2(0.8)18≈0.1369P\{X=2\} = C_{20}^2 (0.2)^2 (0.8)^{18} \approx 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.2060P\{X \le 2\} = P\{X=0\} + P\{X=1\} + P\{X=2\} \approx 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 XX with the following probability law: P{X=1}=pP\{X=1\}=p and P{X=0}=qP\{X=0\}=q, where 0<p<10 < p < 1 and q=1−pq=1-p. It is denoted X∼B(1,p)X \sim B(1, p) 34.

X01
Pqp
  • 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)=pE(X)=p and D(X)=pqD(X)=pq 34.

2.15 Binomial distribution

A random variable XX follows a binomial distribution (or Bernoulli distribution) if its probability law is P{X=k}=Cnkpkqn−kP\{X=k\} = C_n^k p^k q^{n-k}, for k=0,1,…,nk=0, 1, \dots, n, where nn and pp are parameters, and q=1−pq=1-p. It is denoted X∼B(n,p)X \sim B(n, p) 35.

X01kn
Pq^nC_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−kC_n^k p^k q^{n-k} is the general term in the binomial expansion of (p+q)n(p+q)^n.
  • Relationship to Bernoulli trials: The binomial distribution describes the number of times an event A occurs in nn Bernoulli trials, where pp is the probability of A occurring in each trial.
  • Special case: When n=1n=1, the binomial distribution reduces to the two-point distribution.
  • Most probable value (k0k_0): The value of kk that maximizes P(k)P(k) is given by:
  • If (n+1)p(n+1)p is an integer, k0=(n+1)p−1k_0 = (n+1)p-1 or (n+1)p(n+1)p.
  • If (n+1)p(n+1)p is not an integer, k0=⌊(n+1)p⌋k_0 = \lfloor (n+1)p \rfloor.
  • Mathematical expectation and variance: For X∼B(n,p)X \sim B(n, p):
  • E(X)=npE(X) = np 35.
  • D(X)=npqD(X) = npq.
  • σ(X)=npq\sigma(X) = \sqrt{npq}.
  • SPSS application:
  • P{X=x}=PDF.BINOM(x,n,p)P\{X=x\} = \text{PDF.BINOM}(x, n, p).
  • P{X≤x}=CDF.BINOM(x,n,p)P\{X \le x\} = \text{CDF.BINOM}(x, n, p) 36.

2.16 Poisson distribution

A random variable XX follows a Poisson distribution if its probability law is P{X=k}=λkk!e−λP\{X=k\} = \frac{\lambda^k}{k!} e^{-\lambda}, for k=0,1,2,…k=0, 1, 2, \dots, where λ>0\lambda > 0 is a constant parameter. It is denoted X∼P(λ)X \sim P(\lambda) 37.

  • Poisson theorem: If np→λnp \to \lambda (a constant >0>0) as n→+∞n \to +\infty, then for any fixed integer kk, lim⁡n→+∞Cnkpk(1−p)n−k=λkk!e−λ\lim_{n \to +\infty} C_n^k p^k (1-p)^{n-k} = \frac{\lambda^k}{k!} e^{-\lambda}.
  • Poisson approximation: When nn is large and pp is small (typically n≥20,p≤0.1n \ge 20, p \le 0.1), the binomial distribution B(n,p)B(n, p) can be approximated by the Poisson distribution P(λ)P(\lambda) with λ=np\lambda = 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 (k0k_0):
  • If λ\lambda is an integer, k0=λk_0 = \lambda or λ−1\lambda-1.
  • If λ\lambda is not an integer, k0=⌊λ⌋k_0 = \lfloor \lambda \rfloor 38.
  • Mathematical expectation and variance: For X∼P(λ)X \sim P(\lambda), $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)\mathbf{X} = (X_1, X_2, \dots, X_n) formed by nn random variables X1,X2,…,XnX_1, X_2, \dots, X_n. 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)(X, Y) formed by random variables XX and YY. Its properties depend on both the individual properties of XX and YY and their interrelationship 48.

2.18 Joint distribution function of a two-dimensional random vector

The joint distribution function F(x,y)F(x, y) for a two-dimensional random vector (X,Y)(X, Y) is defined as F(x,y)=P{X≤x,Y≤y}F(x, y) = P\{X \le x, Y \le y\} for any real numbers x,yx, y 49.

  • Geometric interpretation: If (X,Y)(X, Y) represents a random point in a plane, F(x,y)F(x, y) is the probability that the random point (X,Y)(X, Y) falls within the infinite rectangular region to the lower-left of the point (x,y)(x, y) 49.
PropertyDescription
Range0≤F(x,y)≤10 \le F(x, y) \le 1
LimitsF(−∞,−∞)=0F(-\infty, -\infty) = 0, F(+∞,+∞)=1F(+\infty, +\infty) = 1
Marginal limitsF(−∞,y)=0F(-\infty, y) = 0, F(x,−∞)=0F(x, -\infty) = 0
MonotonicityNon-decreasing with respect to xx and yy
ContinuityRight-continuous with respect to xx and yy

2.19 Marginal distribution functions

The probability distribution of a component XX (or YY) in a two-dimensional random vector (X,Y)(X, Y) is called its marginal distribution 49.

  • Marginal distribution function for X: FX(x)=P{X≤x}=F(x,+∞)=lim⁡y→+∞F(x,y)F_X(x) = P\{X \le x\} = F(x, +\infty) = \lim_{y \to +\infty} F(x, y).
  • Marginal distribution function for Y: FY(y)=P{Y≤y}=F(+∞,y)=lim⁡x→+∞F(x,y)F_Y(y) = P\{Y \le y\} = F(+\infty, y) = \lim_{x \to +\infty} F(x, y) 49.

2.20 Two-dimensional discrete random vectors

A two-dimensional random vector (X,Y)(X, Y) is a two-dimensional discrete random vector if its possible values (x,y)(x, y) are finite or countably infinite 49.

  • Joint probability distribution: P{X=xi,Y=yj}=pijP\{X = x_i, Y = y_j\} = p_{ij}, for i,j=1,2,…i, j = 1, 2, \dots.
  • Properties of joint probabilities:
  • pij≥0p_{ij} \ge 0 for all i,ji, j.
  • ∑i=1∞∑j=1∞pij=1\sum_{i=1}^{\infty} \sum_{j=1}^{\infty} p_{ij} = 1.
  • Marginal probability distribution for X: P{X=xi}=∑j=1∞pij=pi.P\{X = x_i\} = \sum_{j=1}^{\infty} p_{ij} = p_{i.}.
  • Marginal probability distribution for Y: P{Y=yj}=∑i=1∞pij=p.jP\{Y = y_j\} = \sum_{i=1}^{\infty} p_{ij} = p_{.j} 49.

2.21 Two-dimensional continuous random vectors

A two-dimensional random vector (X,Y)(X, Y) is a two-dimensional continuous random vector if there exists a non-negative integrable function f(x,y)f(x, y) such that for any two-dimensional rectangle D={(x,y);a<x≤b,c<y≤d}D = \{(x, y); a < x \le b, c < y \le d\}, P{a<X≤b,c<Y≤d}=∬Df(x,y) dx dyP\{a < X \le b, c < Y \le d\} = \iint_D f(x, y) \,dx\,dy 51.

  • Joint probability density function (joint density): The function f(x,y)f(x, y) is called the joint probability density function of (X,Y)(X, Y).
  • Properties of joint density:
  • f(x,y)≥0f(x, y) \ge 0.
  • ∬−∞∞f(x,y) dx dy=1\iint_{-\infty}^{\infty} f(x, y) \,dx\,dy = 1.
  • For any region GG in the xoyxoy plane, P{(X,Y)∈G}=∬Gf(x,y) dx dyP\{(X, Y) \in G\} = \iint_G f(x, y) \,dx\,dy. This means the probability of (X,Y)(X, Y) falling into region GG is the volume of the cylinder with base GG and height z=f(x,y)z = f(x, y).
  • If f(x,y)f(x, y) is continuous at (x,y)(x, y), then ∂2F(x,y)∂x∂y=f(x,y)\frac{\partial^2 F(x, y)}{\partial x \partial y} = f(x, y).
  • Joint distribution function: F(x,y)=P{X≤x,Y≤y}=∫−∞x∫−∞yf(u,v) dv duF(x, y) = P\{X \le x, Y \le y\} = \int_{-\infty}^x \int_{-\infty}^y f(u, v) \,dv\,du.
  • Marginal probability density for X: fX(x)=∫−∞∞f(x,y) dyf_X(x) = \int_{-\infty}^{\infty} f(x, y) \,dy.
  • Marginal probability density for Y: fY(y)=∫−∞∞f(x,y) dxf_Y(y) = \int_{-\infty}^{\infty} f(x, y) \,dx 51.

2.22 Two-dimensional normal distribution

A two-dimensional random vector (X,Y)(X, Y) follows a two-dimensional normal distribution, denoted (X,Y)∼N(μ1,μ2,σ1,σ2,ρ)(X, Y) \sim N(\mu_1, \mu_2, \sigma_1, \sigma_2, \rho), if its joint density function is given by: f(x,y)=12πσ1σ21−ρ2exp⁡{−12(1−ρ2)[(x−μ1)2σ12+(y−μ2)2σ22−2ρ(x−μ1)(y−μ2)σ1σ2]}f(x, y) = \frac{1}{2\pi\sigma_1\sigma_2\sqrt{1-\rho^2}} \exp\left\{-\frac{1}{2(1-\rho^2)}\left[\frac{(x-\mu_1)^2}{\sigma_1^2} + \frac{(y-\mu_2)^2}{\sigma_2^2} - \frac{2\rho(x-\mu_1)(y-\mu_2)}{\sigma_1\sigma_2}\right]\right\} where μ1,μ2,σ1>0,σ2>0,∣ρ∣<1\mu_1, \mu_2, \sigma_1 > 0, \sigma_2 > 0, |\rho| < 1 are constants 52.

  • Marginal distributions: If (X,Y)∼N(μ1,μ2,σ1,σ2,ρ)(X, Y) \sim N(\mu_1, \mu_2, \sigma_1, \sigma_2, \rho), then X∼N(μ1,σ12)X \sim N(\mu_1, \sigma_1^2) and Y∼N(μ2,σ22)Y \sim N(\mu_2, \sigma_2^2). The marginal distributions of a two-dimensional normal distribution are also normal distributions.
  • Parameters: μ1\mu_1 and σ1\sigma_1 are the mean and standard deviation of XX, respectively, while μ2\mu_2 and σ2\sigma_2 are the mean and standard deviation of YY 52.

2.23 Independence of random variables

Two random variables XX and YY are mutually independent if for any a<ba < b and c<dc < d, the events {a<X<b}\{a < X < b\} and {c<Y<d}\{c < Y < d\} are independent 52.

Type of Random VectorCondition for Independence
DiscreteP{X=xi,Y=yj}=P{X=xi}P{Y=yj}P\{X = x_i, Y = y_j\} = P\{X = x_i\}P\{Y = y_j\} for all i,ji, j
Continuousf(x,y)=fX(x)fY(y)f(x, y) = f_X(x)f_Y(y) for all x,yx, y
  • Implication: When XX and YY 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 XX and YY, denoted Cov(X,Y)\text{Cov}(X, Y) or σXY\sigma_{XY}, is defined as E[(X−E(X))(Y−E(Y))]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\text{Cov}(X, Y) = \sum_i \sum_j (x_i - E(X))(y_j - E(Y))p_{ij}.
  • Calculation for continuous variables: Cov(X,Y)=∫−∞∞∫−∞∞(x−E(X))(y−E(Y))f(x,y) dx dy\text{Cov}(X, Y) = \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} (x - E(X))(y - E(Y))f(x, y) \,dx\,dy.
  • Simplified formula: Cov(X,Y)=E(XY)−E(X)E(Y)\text{Cov}(X, Y) = E(XY) - E(X)E(Y).
  • Properties of covariance:
  • Cov(X,Y)=Cov(Y,X)\text{Cov}(X, Y) = \text{Cov}(Y, X).
  • For constants a,ba, b, Cov(aX,bY)=abCov(X,Y)\text{Cov}(aX, bY) = ab\text{Cov}(X, Y).
  • Cov(X1+X2,Y)=Cov(X1,Y)+Cov(X2,Y)\text{Cov}(X_1 + X_2, Y) = \text{Cov}(X_1, Y) + \text{Cov}(X_2, Y).
  • D(X±Y)=D(X)+D(Y)±2Cov(X,Y)D(X \pm Y) = D(X) + D(Y) \pm 2\text{Cov}(X, Y).
  • If XX and YY are independent, then Cov(X,Y)=0\text{Cov}(X, Y) = 0. The converse is not necessarily true.
  • Two-dimensional normal distribution: For (X,Y)∼N(μ1,μ2,σ1,σ2,ρ)(X, Y) \sim N(\mu_1, \mu_2, \sigma_1, \sigma_2, \rho), Cov(X,Y)=ρσ1σ2\text{Cov}(X, Y) = \rho\sigma_1\sigma_2 54.

2.25 Correlation coefficient

The correlation coefficient of two random variables XX and YY, denoted ρXY\rho_{XY} or ρ\rho, is defined as ρXY=Cov(X,Y)D(X)D(Y)\rho_{XY} = \frac{\text{Cov}(X, Y)}{\sqrt{D(X)}\sqrt{D(Y)}}, provided D(X)>0D(X) > 0, D(Y)>0D(Y) > 0, and Cov(X,Y)\text{Cov}(X, Y) exist 54.

  • Properties of correlation coefficient:
  • ∣ρXY∣≤1|\rho_{XY}| \le 1.
  • ∣ρXY∣=1|\rho_{XY}| = 1 if and only if there exist constants a,ba, b such that P{Y=aX+b}=1P\{Y = aX + b\} = 1. This indicates a perfect linear relationship.
  • Interpretation: ρXY\rho_{XY} quantifies the degree of linear relationship between XX and YY. A larger ∣ρXY∣|\rho_{XY}| indicates a stronger linear relationship. If ρXY=0\rho_{XY} = 0, XX and YY are uncorrelated, meaning no linear relationship exists, though other non-linear relationships might still be present 54.
ConditionDescription
ρXY=0\rho_{XY} = 0X and Y are uncorrelated
Cov(X,Y)=0\text{Cov}(X, Y) = 0X and Y are uncorrelated
E(XY)=E(X)E(Y)E(XY) = E(X)E(Y)X and Y are uncorrelated
D(X±Y)=D(X)+D(Y)D(X \pm Y) = D(X) + D(Y)X and Y are uncorrelated
  • Independence vs. Uncorrelation: If XX and YY are independent, they are uncorrelated (Cov(X,Y)=0\text{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,ρ)N(\mu_1, \mu_2, \sigma_1^2, \sigma_2^2, \rho), the correlation coefficient is ρXY=ρ\rho_{XY} = \rho. In this specific case, uncorrelation (ρ=0\rho=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 XX with existing mean E(X)E(X) and variance D(X)D(X), for any positive number ϵ\epsilon, P{∣X−E(X)∣≥ϵ}≤D(X)ϵ2P\{|X - E(X)| \ge \epsilon\} \le \frac{D(X)}{\epsilon^2} 56.

  • Equivalent form: P{∣X−E(X)∣<ϵ}≥1−D(X)ϵ2P\{|X - E(X)| < \epsilon\} \ge 1 - \frac{D(X)}{\epsilon^2}.
  • Interpretation: This inequality shows that as the variance D(X)D(X) decreases, the probability of XX deviating significantly from its mean E(X)E(X) also decreases. It provides a way to estimate probabilities when only the mean and variance are known.

📝 For a random variable XX with mean μ\mu and standard deviation σ\sigma, the probability that XX falls within 2σ2\sigma of the mean is P{μ−2σ<X<μ+2σ}≥0.75P\{\mu - 2\sigma < X < \mu + 2\sigma\} \ge 0.75. For 3σ3\sigma, it is P{μ−3σ<X<μ+3σ}≥0.8889P\{\mu - 3\sigma < X < \mu + 3\sigma\} \ge 0.8889 56.

2.28 Chebyshev's law of large numbers

If X1,X2,…,XnX_1, X_2, \dots, X_n are independent and identically distributed random variables with E(Xk)=μE(X_k) = \mu and D(Xk)=σ2D(X_k) = \sigma^2 (both finite), then for any positive ϵ>0\epsilon > 0, lim⁡n→+∞P{∣1n∑k=1nXk−μ∣≥ϵ}=0\lim_{n \to +\infty} P\left\{\left|\frac{1}{n}\sum_{k=1}^n X_k - \mu\right| \ge \epsilon\right\} = 0 57.

  • Convergence in probability: This means that the sample mean 1n∑k=1nXk\frac{1}{n}\sum_{k=1}^n X_k converges in probability to μ\mu 57.

2.29 Bernoulli's law of large numbers

If XX is the number of occurrences of event AA in nn independent Bernoulli trials, and pp is the probability of event AA occurring in each trial (0<p<10 < p < 1), then for any positive ϵ>0\epsilon > 0, lim⁡n→+∞P{∣Xn−p∣≥ϵ}=0\lim_{n \to +\infty} P\left\{\left|\frac{X}{n} - p\right| \ge \epsilon\right\} = 0 57.

  • Frequency stability: This theorem mathematically describes the "frequency stability" of random events, stating that the frequency of event AA converges in probability to its true probability pp as nn increases. This provides the theoretical basis for using observed frequencies as approximations for probabilities when nn 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,…,XnX_1, X_2, \dots, X_n are independent and identically distributed random variables with E(Xk)=μE(X_k) = \mu and D(Xk)=σ2D(X_k) = \sigma^2 (both finite), then for any real number xx, lim⁡n→+∞P{∑k=1nXk−nμnσ≤x}=12π∫−∞xe−t2/2 dt=Φ(x)\lim_{n \to +\infty} P\left\{\frac{\sum_{k=1}^n X_k - n\mu}{\sqrt{n}\sigma} \le x\right\} = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^x e^{-t^2/2} \,dt = \Phi(x) 57.

  • Standardized random variable: The term ∑k=1nXk−nμnσ\frac{\sum_{k=1}^n X_k - n\mu}{\sqrt{n}\sigma} is the standardized random variable of ∑k=1nXk\sum_{k=1}^n X_k.
  • Approximation: For sufficiently large nn, the standardized random variable approximately follows a standard normal distribution N(0,1)N(0, 1). Consequently, ∑k=1nXk\sum_{k=1}^n X_k approximately follows a normal distribution N(nμ,nσ2)N(n\mu, n\sigma^2).
  • Generalization: The theorem holds even if XkX_k 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=200n=200, μ=100\mu=100, σ=10\sigma=10. The sum X=∑k=1200XkX = \sum_{k=1}^{200} X_k is approximately N(nμ,nσ2)=N(200×100,200×102)=N(20000,20000)N(n\mu, n\sigma^2) = N(200 \times 100, 200 \times 10^2) = N(20000, 20000). The probability P{X>20500}P\{X > 20500\} is approximately 1−Φ(20500−2000020000)≈1−Φ(3.54)≈1−0.9998=0.00021 - \Phi\left(\frac{20500 - 20000}{\sqrt{20000}}\right) \approx 1 - \Phi(3.54) \approx 1 - 0.9998 = 0.0002 58.

2.32 De Moivre-Laplace central limit theorem

If XX is the number of occurrences of event AA in nn independent Bernoulli trials, and pp is the probability of event AA occurring in each trial (0<p<10 < p < 1), then for any real number xx, lim⁡n→+∞P{X−npnpq≤x}=Φ(x)\lim_{n \to +\infty} P\left\{\frac{X - np}{\sqrt{npq}} \le x\right\} = \Phi(x), where q=1−pq = 1-p 58.

  • Binomial approximation: If XX follows a binomial distribution B(n,p)B(n, p), for sufficiently large nn (typically n>30n > 30), the standardized random variable X−npnpq\frac{X - np}{\sqrt{npq}} approximately follows a standard normal distribution N(0,1)N(0, 1).
  • Probability calculation: This approximation simplifies the calculation of probabilities for binomial distributions when nn is large, as direct summation of binomial probabilities can be computationally intensive 58.
  • P{x1≤X≤x2}≈Φ(x2−npnpq)−Φ(x1−npnpq)P\{x_1 \le X \le x_2\} \approx \Phi\left(\frac{x_2 - np}{\sqrt{npq}}\right) - \Phi\left(\frac{x_1 - np}{\sqrt{npq}}\right).
  • P{X=k}≈Φ(k+0.5−npnpq)−Φ(k−0.5−npnpq)P\{X = k\} \approx \Phi\left(\frac{k + 0.5 - np}{\sqrt{npq}}\right) - \Phi\left(\frac{k - 0.5 - np}{\sqrt{npq}}\right) (continuity correction).

📝 In a workshop with 200 independent machines, each having a 0.02 probability of failure, the number of faulty machines XX follows B(200,0.02)B(200, 0.02). Since n=200n=200 is large, the De Moivre-Laplace theorem can be used. Here, np=4np = 4 and npq=3.92npq = 3.92. The probability of 2 to 10 machines failing is P{2≤X≤10}≈Φ(10−43.92)−Φ(2−43.92)=Φ(3.03)−Φ(−1.01)≈0.9989−(1−0.8437)=0.8426P\{2 \le X \le 10\} \approx \Phi\left(\frac{10 - 4}{\sqrt{3.92}}\right) - \Phi\left(\frac{2 - 4}{\sqrt{3.92}}\right) = \Phi(3.03) - \Phi(-1.01) \approx 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 ContentSPSS 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, λ\lambda)
Poisson distribution P{X <= x}CDF.POISSON(x, λ\lambda)
Normal distribution P{X <= x}CDF.NORMAL(x, μ\mu, σ\sigma)
Normal distribution critical value xαx_\alphaIDF.NORMAL(1-α\alpha, μ\mu, σ\sigma)
Exponential distribution P{X <= x}CDF.EXP(x, λ\lambda)
Exponential distribution critical value xαx_\alphaIDF.EXP(1-α\alpha, λ\lambda)

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 XX, where the population is the set of all possible values XX can take. If XX follows a distribution F(x)F(x), the population is said to have distribution F(x)F(x).
  • Population parameters: These are the characteristic indicators of the population, such as the population mean (μ\mu) and variance (σ2\sigma^2) 66.

A sample is a subset of nn individuals (X1,X2,…,XnX_1, X_2, \dots, X_n) drawn from a population XX. The number nn 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≥30n \ge 30 and small otherwise.
  • Simple random sampling: This method ensures each individual has an equal chance of being selected, and each selected individual XiX_i has the same distribution as the population XX. Additionally, selections are independent, meaning XiX_i 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)p(X_1, X_2, \dots, X_n) 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,…,XnX_1, X_2, \dots, X_n are random variables, and thus statistics like the sample mean Xˉ\bar{X} and sample variance S2S^2 are also random variables.
  • Specific values: For a specific sampling outcome, x1,x2,…,xnx_1, x_2, \dots, x_n are concrete values, making xˉ\bar{x} and s2s^2 concrete numerical values 67.

Common sample statistics include:

StatisticFormulaPurpose
Sample meanXˉ=1n∑i=1nXi\bar{X} = \frac{1}{n}\sum_{i=1}^{n}X_{i}Estimates population mean μ\mu
Sample varianceS2=1n−1∑i=1n(Xi−Xˉ)2S^2 = \frac{1}{n-1}\sum_{i=1}^{n}(X_{i}-\bar{X})^{2}Estimates population variance σ2\sigma^2
Sample standard deviationS=S2S=\sqrt{S^{2}}Estimates population standard deviation σ\sigma
Sample coefficient of variationCV=S∣Xˉ∣×100%CV = \frac{S}{\vert \bar{X}\vert } \times 100\%Compares variation across different mean samples
Sample standard errorSxˉ=SnS_{\bar{x}} = \frac{S}{\sqrt{n}}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 XX follows a normal distribution N(μ,σ2)N(\mu, \sigma^2), and X1,X2,…,XnX_1, X_2, \dots, X_n is a sample from XX, then the sample mean Xˉ\bar{X} also follows a normal distribution 68.

  • Theorem 4-1: For X∼N(μ,σ2)X \sim N(\mu, \sigma^2), the sample mean Xˉ=1n∑i=1nXi\bar{X} = \frac{1}{n}\sum_{i=1}^{n}X_i follows N(μ,σ2n)N(\mu, \frac{\sigma^2}{n}).
  • Expected value: E(Xˉ)=μE(\bar{X}) = \mu.
  • Variance: D(Xˉ)=σ2nD(\bar{X}) = \frac{\sigma^2}{n}.
  • Standardized form: U=Xˉ−μσ/n∼N(0,1)U = \frac{\bar{X}-\mu}{\sigma/\sqrt{n}} \sim N(0,1) 68.
  • Theorem 4-2 (Central Limit Theorem): If the population mean μ\mu and variance σ2\sigma^2 exist and are finite, then for a sufficiently large sample size nn, the sample mean Xˉ\bar{X} approximately follows a normal distribution N(μ,σ2n)N(\mu, \frac{\sigma^2}{n}), regardless of the population's original distribution.
  • Accuracy: A larger nn leads to a more accurate estimation of μ\mu by Xˉ\bar{X}.
  • Practical application: For large samples (n≥30n \ge 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\mu=18 and variance σ2=36\sigma^2=36. To find the probability that the sample mean Xˉ\bar{X} falls between 16 and 19, we use Theorem 4-2. Since n=64>30n=64 > 30, Xˉ\bar{X} approximately follows N(18,3664)N(18, \frac{36}{64}), which is N(18,916)N(18, \frac{9}{16}). The probability P{16≤Xˉ≤19}P\{16 \le \bar{X} \le 19\} is calculated by standardizing Xˉ\bar{X} and using the standard normal distribution table: P{16≤Xˉ≤19}=Φ(19−183/4)−Φ(16−183/4)=Φ(1.333)−Φ(−2.667)=0.9082−(1−0.9962)=0.9044P\{16 \le \bar{X} \le 19\} = \Phi(\frac{19-18}{3/4}) - \Phi(\frac{16-18}{3/4}) = \Phi(1.333) - \Phi(-2.667) = 0.9082 - (1 - 0.9962) = 0.9044 69.

3.4 Chi-square distribution

The chi-square (χ2\chi^2) distribution is defined for a sum of squares of independent standard normal random variables 69.

  • Definition 4-4: If X1,X2,…,XnX_1, X_2, \dots, X_n are independent and follow N(0,1)N(0,1), then χ2=X12+X22+⋯+Xn2\chi^2 = X_1^2 + X_2^2 + \dots + X_n^2 follows a χ2\chi^2 distribution with nn degrees of freedom, denoted χ2∼χ2(n)\chi^2 \sim \chi^2(n) 69.
  • Degrees of freedom (df): This represents the number of independent variables in a statistic, calculated as df=n−rdf = n-r, where nn is the number of variables and rr is the number of constraints.
  • Example: For χ2=∑Xi2\chi^2 = \sum X_i^2, df=ndf=n as there are no constraints. For sample variance S2=1n−1∑(Xi−Xˉ)2S^2 = \frac{1}{n-1}\sum(X_i-\bar{X})^2, df=n−1df=n-1 because ∑(Xi−Xˉ)=0\sum(X_i-\bar{X})=0 is one constraint.
  • Properties:
  • It is an asymmetric, right-skewed distribution, taking only non-negative values.
  • As n→∞n \to \infty, it approaches a normal distribution.
  • Additivity: If χ12∼χ2(n1)\chi_1^2 \sim \chi^2(n_1) and χ22∼χ2(n2)\chi_2^2 \sim \chi^2(n_2) are independent, then χ12+χ22∼χ2(n1+n2)\chi_1^2 + \chi_2^2 \sim \chi^2(n_1+n_2).
  • Mean: E(χ2)=nE(\chi^2) = n.
  • Variance: D(χ2)=2nD(\chi^2) = 2n.
  • Theorem 4-3: If X1,X2,…,XnX_1, X_2, \dots, X_n are from a normal population X∼N(μ,σ2)X \sim N(\mu, \sigma^2), then (n−1)S2σ2∼χ2(n−1)\frac{(n-1)S^2}{\sigma^2} \sim \chi^2(n-1), and Xˉ\bar{X} and S2S^2 are independent.
  • Critical values: The upper α\alpha critical value χα2(n)\chi^2_\alpha(n) satisfies P{χ2>χα2(n)}=αP\{\chi^2 > \chi^2_\alpha(n)\} = \alpha 70.
  • For n>45n > 45, χα2(n)≈12(uα+2n−1)2\chi^2_\alpha(n) \approx \frac{1}{2}(u_\alpha + \sqrt{2n-1})^2, where uαu_\alpha is the upper α\alpha critical value of N(0,1)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)X \sim N(0,1) and Y∼χ2(n)Y \sim \chi^2(n) are independent, then T=XY/nT = \frac{X}{\sqrt{Y/n}} follows a t-distribution with nn degrees of freedom, denoted T∼t(n)T \sim t(n).
  • Properties:
  • It is symmetric around zero, similar to the standard normal distribution.
  • As n→∞n \to \infty, it approaches the standard normal distribution N(0,1)N(0,1).
  • For large samples (n≥30n \ge 30), the t-distribution can be approximated by the standard normal distribution 71.
  • Theorem 4-4: If X1,X2,…,XnX_1, X_2, \dots, X_n are from a normal population X∼N(μ,σ2)X \sim N(\mu, \sigma^2), then T=Xˉ−μS/n∼t(n−1)T = \frac{\bar{X}-\mu}{S/\sqrt{n}} \sim t(n-1), where S/nS/\sqrt{n} is the sample standard error SxˉS_{\bar{x}}.
  • Theorem 4-5: For two independent samples from normal populations X∼N(μ1,σ2)X \sim N(\mu_1, \sigma^2) and Y∼N(μ2,σ2)Y \sim N(\mu_2, \sigma^2) with equal variances, the statistic T=(Xˉ−Yˉ)−(μ1−μ2)S1/n1+1/n2∼t(n1+n2−2)T = \frac{(\bar{X}-\bar{Y}) - (\mu_1-\mu_2)}{S\sqrt{1/n_1 + 1/n_2}} \sim t(n_1+n_2-2), where S2=(n1−1)Sx2+(n2−1)Sy2n1+n2−2S^2 = \frac{(n_1-1)S_x^2 + (n_2-1)S_y^2}{n_1+n_2-2}.
  • Critical values: The upper α\alpha critical value tα(n)t_\alpha(n) satisfies P{T>tα(n)}=αP\{T > t_\alpha(n)\} = \alpha.
  • Due to symmetry, for a two-sided test, P{∣T∣>tα/2(n)}=αP\{|T| > t_{\alpha/2}(n)\} = \alpha, where tα/2(n)t_{\alpha/2}(n) is the upper α/2\alpha/2 critical value.
  • For n>45n > 45, tα(n)t_\alpha(n) can be approximated by uαu_\alpha, the upper α\alpha critical value of N(0,1)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)X_1 \sim \chi^2(n_1) and X2∼χ2(n2)X_2 \sim \chi^2(n_2) are independent, then F=X1/n1X2/n2F = \frac{X_1/n_1}{X_2/n_2} follows an F-distribution with n1n_1 (numerator) and n2n_2 (denominator) degrees of freedom, denoted F∼F(n1,n2)F \sim F(n_1, n_2).
  • Properties:
  • It is an asymmetric, right-skewed distribution, taking only non-negative values.
  • Its shape varies with n1n_1 and n2n_2 73.
  • Theorem 4-6: If X1,…,Xn1X_1, \dots, X_{n_1} and Y1,…,Yn2Y_1, \dots, Y_{n_2} are independent samples from normal populations X∼N(μ1,σ12)X \sim N(\mu_1, \sigma_1^2) and Y∼N(μ2,σ22)Y \sim N(\mu_2, \sigma_2^2), then F=S12/σ12S22/σ22∼F(n1−1,n2−1)F = \frac{S_1^2/\sigma_1^2}{S_2^2/\sigma_2^2} \sim F(n_1-1, n_2-1), where S12S_1^2 and S22S_2^2 are the sample variances.
  • Theorem 4-7: If X∼F(n1,n2)X \sim F(n_1, n_2), then 1X∼F(n2,n1)\frac{1}{X} \sim F(n_2, n_1).
  • This property allows calculation of left-sided critical values: F1−α(n1,n2)=1Fα(n2,n1)F_{1-\alpha}(n_1, n_2) = \frac{1}{F_\alpha(n_2, n_1)}.
  • Critical values: The upper α\alpha critical value Fα(n1,n2)F_\alpha(n_1, n_2) satisfies P{F>Fα(n1,n2)}=αP\{F > F_\alpha(n_1, n_2)\} = \alpha 74.

3.7 SPSS software application

SPSS provides functions to calculate cumulative probabilities and critical values for χ2\chi^2, t, and F distributions 75.

DistributionProbability FunctionCritical Value Function
χ2\chi^2 distributionP{χ2(n)≤x}=CDF.CHISQ(x,n)P\{\chi^2(n) \le x\} = \text{CDF.CHISQ}(x, n)χα2(n)=IDF.CHISQ(1−α,n)\chi^2_\alpha(n) = \text{IDF.CHISQ}(1-\alpha, n)
t-distributionP{T(n)≤x}=CDF.T(x,n)P\{T(n) \le x\} = \text{CDF.T}(x, n)tα(n)=IDF.T(1−α,n)t_\alpha(n) = \text{IDF.T}(1-\alpha, n)
F-distributionP{F(n1,n2)≤x}=CDF.F(x,n1,n2)P\{F(n_1, n_2) \le x\} = \text{CDF.F}(x, n_1, n_2)Fα(n1,n2)=IDF.F(1−α,n1,n2)F_\alpha(n_1, n_2) = \text{IDF.F}(1-\alpha, n_1, n_2)
  • CDF functions: Calculate the cumulative probability P{X≤x}P\{X \le x\}.
  • IDF functions: Calculate the quantile (critical value) xαx_\alpha such that P{X≤xα}=1−αP\{X \le x_\alpha\} = 1-\alpha 75.

📝 To find P{χ2(10)>25}P\{\chi^2(10) > 25\} using SPSS, calculate P{χ2(10)≤25}P\{\chi^2(10) \le 25\} using CDF.CHISQ(25, 10), which yields 0.9946. Then, P{χ2(10)>25}=1−0.9946=0.0054P\{\chi^2(10) > 25\} = 1 - 0.9946 = 0.0054. To find χ0.052(50)\chi^2_{0.05}(50), use IDF.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-α\alpha) 77.

4.1 Point estimation of parameters

Point estimation involves constructing an appropriate statistic θ^(X1,X2,…,Xn)\hat{\theta}(X_1, X_2, \dots, X_n) from a sample X1,X2,…,XnX_1, X_2, \dots, X_n to estimate an unknown parameter θ\theta. The observed value of this statistic, θ^(x1,x2,…,xn)\hat{\theta}(x_1, x_2, \dots, x_n), 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 rr sample moments to the first rr population moments, where rr is the number of unknown parameters θ1,θ2,…,θr\theta_1, \theta_2, \dots, \theta_r. This creates a system of rr equations that can be solved for the unknown parameters.

The solutions are the moment estimators for θ1,θ2,…,θr\theta_1, \theta_2, \dots, \theta_r 78.

Population ParameterMoment Estimator
Population mean μ\muSample mean Xˉ\bar{X}
Population variance σ2\sigma^2Sample variance S2S^2
Population standard deviation σ\sigmaSample standard deviation SS
  • 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\bar{X} = 20.3 and sample variance S2=1.57S^2 = 1.57. These are the moment estimates for the population mean μ\mu and variance σ2\sigma^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,…,XnX_1, X_2, \dots, X_n are sample observations from a population with probability function P(x,θ)P(x, \theta) or density function f(x,θ)f(x, \theta), the likelihood function L(θ)L(\theta) is defined as: L(θ)=∏i=1nP(xi,θ)orL(θ)=∏i=1nf(xi,θ)L(\theta) = \prod_{i=1}^n P(x_i, \theta) \quad \text{or} \quad L(\theta) = \prod_{i=1}^n f(x_i, \theta) The value θ^\hat{\theta} that maximizes L(θ)L(\theta) is the maximum likelihood estimate, and θ^(X1,X2,…,Xn)\hat{\theta}(X_1, X_2, \dots, X_n) is the maximum likelihood estimator.

If L(θ)L(\theta) is differentiable, θ^\hat{\theta} can be found by solving the likelihood equation: dL(θ)dθ=0ordln⁡L(θ)dθ=0\frac{dL(\theta)}{d\theta} = 0 \quad \text{or} \quad \frac{d\ln L(\theta)}{d\theta} = 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 XX following an exponential distribution with density function f(x;λ)=λe−λxf(x; \lambda) = \lambda e^{-\lambda x} for x≥0x \ge 0, the maximum likelihood estimator for λ\lambda is λ^=1Xˉ\hat{\lambda} = \frac{1}{\bar{X}}, where Xˉ\bar{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 θ^\hat{\theta} is unbiased if its mathematical expectation equals the true value of the unknown parameter θ\theta, i.e., E(θ^)=θE(\hat{\theta}) = \theta. 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 θ\theta 80 81.

📝 The sample mean Xˉ=1n∑Xi\bar{X} = \frac{1}{n}\sum X_i is an unbiased estimator for the population mean μ\mu, as E(Xˉ)=μE(\bar{X}) = \mu. The sample variance S2=1n−1∑(Xi−Xˉ)2S^2 = \frac{1}{n-1}\sum(X_i - \bar{X})^2 is an unbiased estimator for the population variance σ2\sigma^2, as E(S2)=σ2E(S^2) = \sigma^2 81.

4.6 Efficiency

Efficiency refers to how small the deviation between an estimator θ^\hat{\theta} and the true parameter θ\theta is. This deviation is typically measured by the mean square error E[(θ^−θ)2]E[(\hat{\theta} - \theta)^2].

For an unbiased estimator, E(θ^)=θE(\hat{\theta}) = \theta, so the mean square error simplifies to the variance D(θ^)D(\hat{\theta}). 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\hat{\theta}_1 and θ^2\hat{\theta}_2 are two unbiased estimators for θ\theta, and D(θ^1)<D(θ^2)D(\hat{\theta}_1) < D(\hat{\theta}_2), then θ^1\hat{\theta}_1 is considered more efficient than θ^2\hat{\theta}_2 81.

📝 The sample mean Xˉ\bar{X} is a more efficient estimator for the population mean μ\mu than X1X_1 (the first sample observation), because D(Xˉ)=σ2nD(\bar{X}) = \frac{\sigma^2}{n} and D(X1)=σ2D(X_1) = \sigma^2. For n>1n > 1, D(Xˉ)<D(X1)D(\bar{X}) < D(X_1), indicating that Xˉ\bar{X}'s values are more concentrated around μ\mu 81 82.

4.7 Consistency

Consistency describes the property that as the sample size nn increases indefinitely, the estimator θ^(X1,X2,…,Xn)\hat{\theta}(X_1, X_2, \dots, X_n) approaches the true parameter value θ\theta with greater probability, leading to more precise estimates 82.

  • Definition: An estimator θ^(X1,X2,…,Xn)\hat{\theta}(X_1, X_2, \dots, X_n) is a consistent estimator for parameter θ\theta if, for any given ϵ>0\epsilon > 0, lim⁡n→+∞P{∣θ^−θ∣<ϵ}=1\lim_{n \to +\infty} P\{|\hat{\theta} - \theta| < \epsilon\} = 1. This means θ^\hat{\theta} converges in probability to θ\theta 82.

  • Key consistent estimators:

  • The sample mean Xˉ\bar{X} is a consistent estimator for the population mean μ\mu.

  • The sample kk-th order origin moment is a consistent estimator for the population kk-th order origin moment E(Xk)E(X^k).

  • For a general population XX, the sample mean Xˉ\bar{X} and sample variance S2S^2 are unbiased and consistent estimators for μ\mu and σ2\sigma^2, respectively. For a normal population XX, Xˉ\bar{X} and S2S^2 are the optimal unbiased and consistent estimators for μ\mu and σ2\sigma^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 θ\theta, if two statistics θ^1\hat{\theta}_1 and θ^2\hat{\theta}_2 (where θ^1<θ^2\hat{\theta}_1 < \hat{\theta}_2) satisfy P{θ^1<θ<θ^2}=1−αP\{\hat{\theta}_1 < \theta < \hat{\theta}_2\} = 1 - \alpha for a given α\alpha (where 0<α<10 < \alpha < 1), then the random interval (θ^1,θ^2)(\hat{\theta}_1, \hat{\theta}_2) is called the (1−α)%(1-\alpha)\% confidence interval for θ\theta.

  • θ^1\hat{\theta}_1 is the confidence lower limit.

  • θ^2\hat{\theta}_2 is the confidence upper limit.

  • (1−α)(1-\alpha) or 100(1−α)%100(1-\alpha)\% is the confidence level 82.

  • Confidence level and interval length: A smaller α\alpha leads to a larger confidence level (1−α)(1-\alpha), increasing the probability that the interval contains θ\theta. However, a smaller α\alpha 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−α)(1-\alpha) is the one with the smallest average length 82.

  • Common α\alpha values: α\alpha is typically set to 0.05, 0.01, or sometimes 0.1. For α=0.05\alpha = 0.05, approximately 95 out of 100 confidence intervals constructed from independent samples would contain the true parameter θ\theta 83.

4.9 Interval estimation of population mean when σ2\sigma^2 is known

When the population variance σ2\sigma^2 is known, and the sample X1,X2,…,XnX_1, X_2, \dots, X_n is drawn from a normal population N(μ,σ2)N(\mu, \sigma^2), the sample mean Xˉ\bar{X} follows N(μ,σ2n)N(\mu, \frac{\sigma^2}{n}). The random variable U=Xˉ−μσ/nU = \frac{\bar{X} - \mu}{\sigma/\sqrt{n}} follows a standard normal distribution N(0,1)N(0,1) 83.

The (1−α)(1-\alpha) confidence interval for the population mean μ\mu is given by: (Xˉ−uα/2σn,Xˉ+uα/2σn)orXˉ±uα/2σn\left(\bar{X} - u_{\alpha/2} \frac{\sigma}{\sqrt{n}}, \bar{X} + u_{\alpha/2} \frac{\sigma}{\sqrt{n}}\right) \quad \text{or} \quad \bar{X} \pm u_{\alpha/2} \frac{\sigma}{\sqrt{n}} where uα/2u_{\alpha/2} is the critical value from the standard normal distribution such that P{∣U∣<uα/2}=1−αP\{|U| < u_{\alpha/2}\} = 1-\alpha. Commonly used critical values are u0.05/2=1.96u_{0.05/2} = 1.96 and u0.01/2=2.58u_{0.01/2} = 2.58 83.

📝 For a normal population N(μ,0.12)N(\mu, 0.1^2) with a sample mean Xˉ=5.58\bar{X} = 5.58 from a sample of size n=4n=4, the 99% confidence interval for μ\mu is calculated using u0.01/2=2.58u_{0.01/2} = 2.58. The interval is 5.58±2.58×0.14=5.58±0.1295.58 \pm 2.58 \times \frac{0.1}{\sqrt{4}} = 5.58 \pm 0.129, resulting in (5.451,5.709)(5.451, 5.709) 84.

4.10 Interval estimation of population mean when σ2\sigma^2 is unknown

When the population variance σ2\sigma^2 is unknown, it is replaced by the unbiased sample variance S2S^2. In this case, the random variable T=Xˉ−μS/nT = \frac{\bar{X} - \mu}{S/\sqrt{n}} follows a t-distribution with n−1n-1 degrees of freedom, denoted as t(n−1)t(n-1) 84.

The (1−α)(1-\alpha) confidence interval for the population mean μ\mu is given by: (Xˉ−tα/2(n−1)Sn,Xˉ+tα/2(n−1)Sn)orXˉ±tα/2(n−1)Sn\left(\bar{X} - t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}, \bar{X} + t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}\right) \quad \text{or} \quad \bar{X} \pm t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}} where tα/2(n−1)t_{\alpha/2}(n-1) is the critical value from the t-distribution with n−1n-1 degrees of freedom such that P{∣T∣<tα/2(n−1)}=1−αP\{|T| < t_{\alpha/2}(n-1)\} = 1-\alpha 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 nn is sufficiently large, the confidence interval for μ\mu can be approximated using uα/2u_{\alpha/2} instead of tα/2(n−1)t_{\alpha/2}(n-1): Xˉ±uα/2Sn\bar{X} \pm u_{\alpha/2} \frac{S}{\sqrt{n}} 85 86.

📝 For 12 children's blood calcium measurements, with Xˉ=59.14\bar{X} = 59.14 and S=8.61S = 8.61, the 90% confidence interval for the average blood calcium content is calculated. With n−1=11n-1=11 degrees of freedom and α=0.1\alpha=0.1, t0.05(11)=1.796t_{0.05}(11) = 1.796. The interval is 59.14±1.796×8.6112=59.14±4.4659.14 \pm 1.796 \times \frac{8.61}{\sqrt{12}} = 59.14 \pm 4.46, resulting in (54.68,63.60)(54.68, 63.60) 84 85.

4.11 Interval estimation of normal population variance

When estimating the population variance σ2\sigma^2 for a normal population N(μ,σ2)N(\mu, \sigma^2) with unknown μ\mu and σ2\sigma^2, the sample variance S2S^2 is an unbiased estimator. The statistic (n−1)S2σ2\frac{(n-1)S^2}{\sigma^2} follows a chi-squared distribution with n−1n-1 degrees of freedom, denoted as χ2(n−1)\chi^2(n-1) 86.

Due to the asymmetry of the χ2\chi^2 distribution, two critical values are needed: χ1−α/22(n−1)\chi^2_{1-\alpha/2}(n-1) and χα/22(n−1)\chi^2_{\alpha/2}(n-1). The (1−α)(1-\alpha) confidence interval for σ2\sigma^2 is given by: ((n−1)S2χα/22(n−1),(n−1)S2χ1−α/22(n−1))\left(\frac{(n-1)S^2}{\chi^2_{\alpha/2}(n-1)}, \frac{(n-1)S^2}{\chi^2_{1-\alpha/2}(n-1)}\right) 86 87.

📝 For 10 aspirin tablets with a sample variance S2=0.956S^2 = 0.956, the 90% confidence interval for the population variance is calculated. With n=10n=10 and α=0.1\alpha=0.1, the degrees of freedom are n−1=9n-1=9. The critical values are χ0.052(9)=16.919\chi^2_{0.05}(9) = 16.919 and χ0.952(9)=3.325\chi^2_{0.95}(9) = 3.325. The interval is (9×0.95616.919,9×0.9563.325)=(0.509,2.588)\left(\frac{9 \times 0.956}{16.919}, \frac{9 \times 0.956}{3.325}\right) = (0.509, 2.588) 87.

4.12 Interval estimation of binomial population proportion PP

The population proportion PP is the ratio of individuals with a certain characteristic to the total population size. The sample proportion p=m/np = m/n is the ratio of individuals with the characteristic in a sample of size nn 87.

For a sufficiently large sample size nn, the sample proportion pp approximately follows a normal distribution N(P,P(1−P)n)N(P, \frac{P(1-P)}{n}). Since PP is unknown, it can be estimated by the sample proportion pp.

When nn is large and pp and 1−p1-p are not close to 0 or 1, the statistic U=p−Pp(1−p)/nU = \frac{p-P}{\sqrt{p(1-p)/n}} approximately follows N(0,1)N(0,1) 88.

The (1−α)(1-\alpha) confidence interval for the population proportion PP is: (p−uα/2p(1−p)n,p+uα/2p(1−p)n)orp±uα/2p(1−p)n\left(p - u_{\alpha/2}\sqrt{\frac{p(1-p)}{n}}, p + u_{\alpha/2}\sqrt{\frac{p(1-p)}{n}}\right) \quad \text{or} \quad p \pm u_{\alpha/2}\sqrt{\frac{p(1-p)}{n}} 88.

📝 For 100 mice, 80 died after receiving an organophosphorus pesticide. The sample mortality rate p=80/100=0.80p = 80/100 = 0.80. For a 95% confidence interval (α=0.05\alpha=0.05), uα/2=1.96u_{\alpha/2} = 1.96. The interval is 0.80±1.96×0.8(1−0.8)100=0.80±0.0780.80 \pm 1.96 \times \sqrt{\frac{0.8(1-0.8)}{100}} = 0.80 \pm 0.078, resulting in (0.722,0.878)(0.722, 0.878) or (72.2%,87.8%)(72.2\%, 87.8\%) 88.

4.13 Sample size for interval estimation of binomial population proportion PP

To control the precision of the estimate, the sample size nn can be determined by requiring the width of the confidence interval to not exceed a given positive value δ\delta. The formula for the required sample size is: n≥uα/22p(1−p)(δ/2)2n \ge \frac{u_{\alpha/2}^2 p(1-p)}{(\delta/2)^2} If pp is unknown, it can be estimated from a pilot study, prior experience, or by setting p=0.5p=0.5 to obtain the largest possible nn 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%\pm 5\%. Previous experience suggests p=0.8p=0.8. For α=0.05\alpha=0.05, uα/2=1.96u_{\alpha/2}=1.96 and δ/2=0.05\delta/2=0.05. The required sample size is n≥1.962×0.8×0.20.052=245.9n \ge \frac{1.96^2 \times 0.8 \times 0.2}{0.05^2} = 245.9. Thus, 246 tablets should be weighed 89.

4.14 Interval estimation of Poisson distribution parameter λ\lambda

For a random variable XX following a Poisson distribution with parameter λ\lambda, both the population mean and variance are equal to λ\lambda. For a large sample size nn, the sample mean Xˉ\bar{X} approximately follows N(λ,λ/n)N(\lambda, \lambda/n).

The statistic U=Xˉ−λλ/nU = \frac{\bar{X} - \lambda}{\sqrt{\lambda/n}} approximately follows N(0,1)N(0,1) 89.

Since the sample mean Xˉ\bar{X} is an unbiased estimator for λ\lambda, we can substitute Xˉ\bar{X} for λ\lambda in the standard deviation, leading to Xˉ−λXˉ/n\frac{\bar{X} - \lambda}{\sqrt{\bar{X}/n}} approximately following N(0,1)N(0,1). If X=∑XiX = \sum X_i is the total count, then Xˉ=X/n\bar{X} = X/n.

The (1−α)(1-\alpha) confidence interval for the population mean λ\lambda is: (Xn−uα/2Xn2,Xn+uα/2Xn2)\left(\frac{X}{n} - u_{\alpha/2}\sqrt{\frac{X}{n^2}}, \frac{X}{n} + u_{\alpha/2}\sqrt{\frac{X}{n^2}}\right) The (1−α)(1-\alpha) confidence interval for the total count nλn\lambda is: (X−uα/2X,X+uα/2X)(X - u_{\alpha/2}\sqrt{X}, X + u_{\alpha/2}\sqrt{X}) 89.

📝 A radioactive sample recorded 11,286 pulses in 20 minutes. For a 95% confidence interval (α=0.05\alpha=0.05), uα/2=1.96u_{\alpha/2}=1.96. The total pulse count X=11,286X = 11,286. The 95% confidence interval for the total pulse count is 11,286±1.96×11,286=11,286±20811,286 \pm 1.96 \times \sqrt{11,286} = 11,286 \pm 208, resulting in (11,078,11,494)(11,078, 11,494). The 95% confidence interval for the average pulse count per minute is (553.9,574.7)(553.9, 574.7) 90.

4.15 Interval estimation of binomial population proportion PP

When the sample size nn 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 mm in a sample of size nn follows a binomial distribution.

Exact confidence intervals for PP 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−α)(1-\alpha) 90.

📝 If 4 out of 10 animals died after drug injection, for a 99% confidence interval (α=0.01\alpha=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%)(7.7\%, 80.9\%) 90.

4.16 Interval estimation of Poisson distribution parameter λ\lambda

Similar to the binomial distribution, for small samples from a Poisson distribution, exact confidence intervals for λ\lambda 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−α)(1-\alpha) and the total sample count XX.

The interval for the total count nλn\lambda is found directly, and then divided by nn to get the interval for λ\lambda 90.

📝 If a bacterial culture yielded 12 colonies, for a 99% confidence interval, consulting Appendix Table 9 for X=12X=12 yields (4.94,24.14)(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 (H0H_0), which is the assumption being tested, and the alternative hypothesis (H1H_1), which is the opposing assumption 94 95.

  • Null hypothesis (H0H_0): The statement being tested, often representing no effect or no difference.
  • Alternative hypothesis (H1H_1): 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 α\alpha) occurs in a single experiment, it is considered contradictory to the assumption that H0H_0 is true.
  • Significance level (α\alpha): 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\sigma^2 = 6.5^2. If a sample of 6 bags has an average weight of xˉ=504.5\bar{x} = 504.5g, we test H0:μ=500H_0: \mu = 500 against H1:μ≠500H_1: \mu \neq 500. Assuming H0H_0 is true, the test statistic U=Xˉ−μ0σ/n∼N(0,1)U = \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}} \sim N(0,1). The observed value is u=504.5−5006.5/6=1.696u = \frac{504.5 - 500}{6.5/\sqrt{6}} = 1.696. For α=0.05\alpha = 0.05, the critical value uα/2=u0.025=1.96u_{\alpha/2} = u_{0.025} = 1.96. Since ∣u∣=1.696<1.96|u| = 1.696 < 1.96, we accept H0H_0, concluding that the average weight is still 500g 95.

The general steps for conducting a hypothesis test are as follows:

  1. Establish hypotheses: Define the null hypothesis (H0H_0) and the alternative hypothesis (H1H_1).
  2. 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.
  3. Find critical value and rejection region: Using the given significance level (α\alpha), consult statistical tables to find the critical value(s) and define the rejection region.
  4. Make a statistical decision: If the test statistic falls within the rejection region, or if the P-value is less than α\alpha, reject H0H_0 and accept H1H_1. Otherwise, accept H0H_0 96.

Hypothesis testing can lead to two types of errors due to the randomness of sampling:

Actual SituationAccept H₀Reject H₀
H₀ is trueCorrectType I Error (False Positive)
H₀ is falseType II Error (False Negative)Correct
  • Type I error: Occurs when the null hypothesis (H0H_0) is true but is incorrectly rejected. The probability of this error is the significance level α\alpha, denoted as P{reject H0∣H0 is true}=αP\{\text{reject } H_0 | H_0 \text{ is true}\} = \alpha.
  • Type II error: Occurs when the null hypothesis (H0H_0) is false but is incorrectly accepted. The probability of this error is denoted by β\beta, i.e., P{accept H0∣H0 is false}=βP\{\text{accept } H_0 | H_0 \text{ is false}\} = \beta 96.

There is an inverse relationship between α\alpha and β\beta: 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,…,XnX_1, X_2, \dots, X_n is drawn from a normal population N(μ,σ2)N(\mu, \sigma^2) with a known variance σ2\sigma^2, a u-test (or z-test) is used to test hypotheses about the population mean μ\mu 97.

  • Test statistic: Under H0:μ=μ0H_0: \mu = \mu_0, the test statistic is U=Xˉ−μ0σ/n∼N(0,1)U = \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}} \sim N(0,1).
  • Critical value method: Compare the calculated uu value to the critical value uα/2u_{\alpha/2} (for two-sided tests) or uαu_\alpha (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 H0H_0 is true. If P<αP < \alpha, reject H0H_0 98.
Test TypeHypothesesTest StatisticCritical ValueRejection Region
Two-sidedH0:μ=μ0;H1:μ≠μ0H_0: \mu = \mu_0; H_1: \mu \neq \mu_0U=Xˉ−μ0σ/nU = \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}}uα/2u_{\alpha/2}∣u∣>uα/2\vert u\vert > u_{\alpha/2}
One-sided (right)H0:μ=μ0;H1:μ>μ0H_0: \mu = \mu_0; H_1: \mu > \mu_0U=Xˉ−μ0σ/nU = \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}}uαu_{\alpha}u>uαu > u_{\alpha}
One-sided (left)H0:μ=μ0;H1:μ<μ0H_0: \mu = \mu_0; H_1: \mu < \mu_0U=Xˉ−μ0σ/nU = \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}}−uα-u_{\alpha}u<−uαu < -u_{\alpha}

📝 A drug ointment's glycyrrhizic acid content X∼N(4.45,0.1082)X \sim N(4.45, 0.108^2). A sample of 5 ointments has an average content of xˉ=4.33\bar{x} = 4.33. With σ2\sigma^2 unchanged, we test H0:μ=4.45H_0: \mu = 4.45 against H1:μ≠4.45H_1: \mu \neq 4.45 at α=0.05\alpha = 0.05. The observed u=4.33−4.450.108/5=−2.485u = \frac{4.33 - 4.45}{0.108/\sqrt{5}} = -2.485. The critical value u0.025=1.96u_{0.025} = 1.96. Since ∣−2.485∣>1.96|-2.485| > 1.96, we reject H0H_0, 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\sigma^2 is unknown, a t-test is used for testing the population mean μ\mu. This is a common scenario in practical applications 99.

  • Test statistic: Under H0:μ=μ0H_0: \mu = \mu_0, the test statistic is T=Xˉ−μ0S/n∼t(n−1)T = \frac{\bar{X} - \mu_0}{S/\sqrt{n}} \sim t(n-1), where SS is the sample standard deviation and n−1n-1 is the degrees of freedom 99.
  • Critical value method: Compare the calculated tt value to the critical value tα/2(n−1)t_{\alpha/2}(n-1) (for two-sided tests) or tα(n−1)t_\alpha(n-1) (for one-sided tests) from the t-distribution table 100.
Test TypeHypothesesTest StatisticCritical ValueRejection Region
Two-sidedH0:μ=μ0;H1:μ≠μ0H_0: \mu = \mu_0; H_1: \mu \neq \mu_0T=Xˉ−μ0S/nT = \frac{\bar{X} - \mu_0}{S/\sqrt{n}}tα/2t_{\alpha/2}∣t∣>tα/2\vert t\vert > t_{\alpha/2}
One-sided (right)H0:μ=μ0;H1:μ>μ0H_0: \mu = \mu_0; H_1: \mu > \mu_0T=Xˉ−μ0S/nT = \frac{\bar{X} - \mu_0}{S/\sqrt{n}}tαt_{\alpha}t>tαt > t_{\alpha}
One-sided (left)H0:μ=μ0;H1:μ<μ0H_0: \mu = \mu_0; H_1: \mu < \mu_0T=Xˉ−μ0S/nT = \frac{\bar{X} - \mu_0}{S/\sqrt{n}}−tα-t_{\alpha}t<−tαt < -t_{\alpha}

📝 Continuing the previous example, if the variance of glycyrrhizic acid content is unknown, we use a t-test. Given n=5n=5, μ0=4.45\mu_0=4.45, xˉ=4.33\bar{x}=4.33, and S=0.103S=0.103. The observed t=4.33−4.450.103/5=−2.605t = \frac{4.33 - 4.45}{0.103/\sqrt{5}} = -2.605. For α=0.05\alpha=0.05 and df=4df=4, the critical value t0.025(4)=2.776t_{0.025}(4) = 2.776. Since ∣−2.605∣<2.776|-2.605| < 2.776, we accept H0H_0, concluding that the average glycyrrhizic acid content is not significantly different from 4.45 100.

For large samples (n>30n > 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>30n > 30, U=Xˉ−μ0S/n∼N(0,1)U = \frac{\bar{X} - \mu_0}{S/\sqrt{n}} \sim N(0,1) approximately 101.

5.5 Variance test for a single normal population

To test hypotheses about the population variance σ2\sigma^2 of a normal population N(μ,σ2)N(\mu, \sigma^2), a chi-square test (χ2\chi^2-test) is used. This test is applicable whether the mean μ\mu is known or unknown 102.

  • Test statistic: Under H0:σ2=σ02H_0: \sigma^2 = \sigma_0^2, the test statistic is χ2=(n−1)S2σ02∼χ2(n−1)\chi^2 = \frac{(n-1)S^2}{\sigma_0^2} \sim \chi^2(n-1), where S2S^2 is the sample variance and n−1n-1 is the degrees of freedom.
  • Critical value method: Compare the calculated χ2\chi^2 value to the critical values χ1−α/22(n−1)\chi^2_{1-\alpha/2}(n-1) and χα/22(n−1)\chi^2_{\alpha/2}(n-1) (for two-sided tests) or χα2(n−1)\chi^2_\alpha(n-1) (for one-sided tests) from the chi-square distribution table 102.
Test TypeHypothesesTest StatisticCritical ValuesRejection Region
Two-sidedH0:σ2=σ02;H1:σ2≠σ02H_0: \sigma^2 = \sigma_0^2; H_1: \sigma^2 \neq \sigma_0^2χ2=(n−1)S2σ02\chi^2 = \frac{(n-1)S^2}{\sigma_0^2}χ1−α/22,χα/22\chi^2_{1-\alpha/2}, \chi^2_{\alpha/2}χ2<χ1−α/22\chi^2 < \chi^2_{1-\alpha/2} or χ2>χα/22\chi^2 > \chi^2_{\alpha/2}
One-sided (right)H0:σ2=σ02;H1:σ2>σ02H_0: \sigma^2 = \sigma_0^2; H_1: \sigma^2 > \sigma_0^2χ2=(n−1)S2σ02\chi^2 = \frac{(n-1)S^2}{\sigma_0^2}χα2\chi^2_{\alpha}χ2>χα2\chi^2 > \chi^2_{\alpha}
One-sided (left)H0:σ2=σ02;H1:σ2<σ02H_0: \sigma^2 = \sigma_0^2; H_1: \sigma^2 < \sigma_0^2χ2=(n−1)S2σ02\chi^2 = \frac{(n-1)S^2}{\sigma_0^2}χ1−α2\chi^2_{1-\alpha}χ2<χ1−α2\chi^2 < \chi^2_{1-\alpha}

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=σ22H_0: \sigma_1^2 = \sigma_2^2, the test statistic is F=S12S22∼F(n1−1,n2−1)F = \frac{S_1^2}{S_2^2} \sim F(n_1-1, n_2-1), where S12S_1^2 and S22S_2^2 are the sample variances, and n1−1n_1-1 and n2−1n_2-1 are the degrees of freedom.
  • Procedure: To simplify calculations, the larger sample variance is typically placed in the numerator, ensuring F>1F > 1. Only the upper critical value Fα/2(n1−1,n2−1)F_{\alpha/2}(n_1-1, n_2-1) needs to be checked 104.
Test TypeHypothesesTest StatisticCritical ValueRejection Region
Two-sidedH0:σ12=σ22;H1:σ12≠σ22H_0: \sigma_1^2 = \sigma_2^2; H_1: \sigma_1^2 \neq \sigma_2^2F=S12S22F = \frac{S_1^2}{S_2^2}Fα/2F_{\alpha/2}F>Fα/2F > F_{\alpha/2}
One-sided (right)H0:σ12=σ22;H1:σ12>σ22H_0: \sigma_1^2 = \sigma_2^2; H_1: \sigma_1^2 > \sigma_2^2F=S12S22F = \frac{S_1^2}{S_2^2}FαF_{\alpha}F>FαF > F_{\alpha}

📝 Two groups of guinea pigs (control and treatment, n1=n2=12n_1=n_2=12) have perfusion rates with sample variances S12=96.33S_1^2 = 96.33 and S22=48.33S_2^2 = 48.33. We test H0:σ12=σ22H_0: \sigma_1^2 = \sigma_2^2 against H1:σ12≠σ22H_1: \sigma_1^2 \neq \sigma_2^2 at α=0.05\alpha = 0.05. The observed F=96.3348.33=1.993F = \frac{96.33}{48.33} = 1.993. The critical value F0.025(11,11)≈3.45F_{0.025}(11,11) \approx 3.45. Since 1.993<3.451.993 < 3.45, we accept H0H_0, 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\sigma_1^2 and σ22\sigma_2^2, a u-test is used to test H0:μ1=μ2H_0: \mu_1 = \mu_2 (or H0:μ1−μ2=0H_0: \mu_1 - \mu_2 = 0) 106.

  • Test statistic: Under H0:μ1=μ2H_0: \mu_1 = \mu_2, the test statistic is U=Xˉ−Yˉσ12n1+σ22n2∼N(0,1)U = \frac{\bar{X} - \bar{Y}}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}} \sim N(0,1) 106.

📝 Machine A produces drugs with weights X∼N(μ1,70)X \sim N(\mu_1, 70), and Machine B produces drugs with weights Y∼N(μ2,90)Y \sim N(\mu_2, 90). Samples are n1=35,Xˉ=137n_1=35, \bar{X}=137 and n2=45,Yˉ=130n_2=45, \bar{Y}=130. We test H0:μ1=μ2H_0: \mu_1 = \mu_2 against H1:μ1≠μ2H_1: \mu_1 \neq \mu_2 at α=0.01\alpha = 0.01. The observed u=137−1307035+9045=72+2=3.5u = \frac{137 - 130}{\sqrt{\frac{70}{35} + \frac{90}{45}}} = \frac{7}{\sqrt{2+2}} = 3.5. The critical value u0.005=2.58u_{0.005} = 2.58. Since ∣3.5∣>2.58|3.5| > 2.58, we reject H0H_0, 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\sigma_1^2 and σ22\sigma_2^2 are unknown, the approach depends on sample size and whether variances are assumed equal 106.

  • Large samples (n1,n2>30n_1, n_2 > 30): Sample variances S12,S22S_1^2, S_2^2 can approximate population variances. An approximate u-test is used: U=Xˉ−YˉS12n1+S22n2∼N(0,1)U = \frac{\bar{X} - \bar{Y}}{\sqrt{\frac{S_1^2}{n_1} + \frac{S_2^2}{n_2}}} \sim N(0,1) 106.
  • Small samples with unknown but equal variances (σ12=σ22\sigma_1^2 = \sigma_2^2): A pooled sample variance Sp2=(n1−1)S12+(n2−1)S22n1+n2−2S_p^2 = \frac{(n_1-1)S_1^2 + (n_2-1)S_2^2}{n_1+n_2-2} is used. The test statistic is T=Xˉ−YˉSp1n1+1n2∼t(n1+n2−2)T = \frac{\bar{X} - \bar{Y}}{S_p\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}} \sim t(n_1+n_2-2) 107.
Test TypeHypothesesTest StatisticCritical ValueRejection Region
Two-sidedH0:μ1=μ2;H1:μ1≠μ2H_0: \mu_1 = \mu_2; H_1: \mu_1 \neq \mu_2T=Xˉ−YˉSp1n1+1n2T = \frac{\bar{X} - \bar{Y}}{S_p\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}tα/2t_{\alpha/2}∣t∣>tα/2\vert t\vert > t_{\alpha/2}
One-sided (right)H0:μ1=μ2;H1:μ1>μ2H_0: \mu_1 = \mu_2; H_1: \mu_1 > \mu_2T=Xˉ−YˉSp1n1+1n2T = \frac{\bar{X} - \bar{Y}}{S_p\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}tαt_{\alpha}t>tαt > t_{\alpha}
One-sided (left)H0:μ1=μ2;H1:μ1<μ2H_0: \mu_1 = \mu_2; H_1: \mu_1 < \mu_2T=Xˉ−YˉSp1n1+1n2T = \frac{\bar{X} - \bar{Y}}{S_p\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}−tα-t_{\alpha}t<−tαt < -t_{\alpha}

📝 For the guinea pig perfusion experiment (Example 6-6), with n1=n2=12n_1=n_2=12, xˉ=44.83\bar{x}=44.83, S12=96.33S_1^2=96.33, yˉ=52.83\bar{y}=52.83, S22=48.33S_2^2=48.33. Assuming equal variances, the pooled variance Sp2=96.33+48.332=72.33S_p^2 = \frac{96.33+48.33}{2} = 72.33, so Sp=8.505S_p = 8.505. We test H0:μ1=μ2H_0: \mu_1 = \mu_2 against H1:μ1≠μ2H_1: \mu_1 \neq \mu_2 at α=0.05\alpha = 0.05. The observed t=44.83−52.838.505112+112=−2.304t = \frac{44.83 - 52.83}{8.505\sqrt{\frac{1}{12} + \frac{1}{12}}} = -2.304. For α=0.05\alpha=0.05 and df=22df=22, the critical value t0.025(22)=2.074t_{0.025}(22) = 2.074. Since ∣−2.304∣>2.074|-2.304| > 2.074, we reject H0H_0, concluding a significant difference in mean perfusion rates 108.

  • Small samples with unknown and unequal variances (σ12≠σ22\sigma_1^2 \neq \sigma_2^2): An approximate t-test is used with a modified degrees of freedom calculation. The test statistic is T′=Xˉ−YˉS12n1+S22n2T' = \frac{\bar{X} - \bar{Y}}{\sqrt{\frac{S_1^2}{n_1} + \frac{S_2^2}{n_2}}}, and the degrees of freedom df=(n1+n2−2)(S12n1+S22n2)2(S12n1)2+(S22n2)2df = (n_1+n_2-2) \frac{(\frac{S_1^2}{n_1} + \frac{S_2^2}{n_2})^2}{(\frac{S_1^2}{n_1})^2 + (\frac{S_2^2}{n_2})^2} (#page=109 109.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also