【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 can be classified into two types: deterministic phenomena, which always occur or do not occur under specific conditions, and random phenomena, which may yield different outcomes under the same conditions. Probability theory and mathematical statistics study the statistical regularities of random phenomena 1.

  • Random experiment (experiment): An experiment or observation with three key characteristics 1:
  • It can be repeated under identical conditions.
  • All possible outcomes are known and distinct.
  • The exact outcome of any single trial cannot be predicted beforehand.
  • Event: Any outcome that occurs in a random experiment.
  • Random event: An event that may or may not occur under specific conditions, typically denoted by capital letters like A, B, C.
  • Elemental event: Each indivisible possible outcome of an experiment.
  • Sample space (Ω\Omega): The set of all possible outcomes of an experiment, comprising all elemental events. Elemental events are also called sample points.
  • Certain event: The sample space Ω\Omega itself, which is guaranteed to occur in every experiment.
  • Impossible event (∅\emptyset): An empty set containing no elemental events, which is guaranteed not to occur in any experiment 2.

📝 Consider an experiment where 10 items are randomly drawn from a batch of 100 drugs, 5 of which are defective.

  • Elemental events: The number of defective items drawn, ranging from {0} to {5}.
  • Sample space: Ω={0,1,2,3,4,5}\Omega = \{0, 1, 2, 3, 4, 5\}.
  • Random event: "Fewer than 3 defective items" is A={0,1,2}A = \{0, 1, 2\}.
  • Certain event: "No more than 5 defective items" is Ω\Omega.
  • Impossible event: "More than 5 defective items" is ∅\emptyset 2.

1.2 Relationships and operations between events

Events can have various relationships and operations, which are often visualized using Venn diagrams 2.

  • Event inclusion and equality:
  • Inclusion (A⊂BA \subset B or B⊃AB \supset A): If the occurrence of event A necessarily leads to the occurrence of event B, then B includes A.
  • Equality (A=BA = B): If A includes B and B includes A, meaning they contain the same elemental events.
  • Sum (or union) of events (A+BA+B or A∪BA \cup B): The event where at least one of A or B occurs. It includes all elemental events in A or B. This can be extended to nn events as A1+A2+⋯+AnA_1 + A_2 + \dots + A_n or ⋃i=1nAi\bigcup_{i=1}^n A_i 2.
  • Product (or intersection) of events (ABAB or A∩BA \cap B): The event where both A and B occur simultaneously. It includes all common elemental events in A and B. This can be extended to nn events as A1A2…AnA_1 A_2 \dots A_n or ⋂i=1nAi\bigcap_{i=1}^n A_i.
  • Difference of events (A−BA-B): The event where A occurs but B does not. It consists of all elemental events belonging to A but not to B.
  • Mutually exclusive (or disjoint) events: Two events A and B are mutually exclusive if they cannot occur simultaneously, meaning their intersection is empty (AB=∅AB = \emptyset). For nn events, they are pairwise mutually exclusive if AiAj=∅A_i A_j = \emptyset for any i≠ji \neq j.
  • Complementary event (Aˉ\bar{A} or AcA^c): The event that A does not occur. It consists of all elemental events in the sample space that are not in A. If A and B are complementary, then AB=∅AB = \emptyset and A+B=ΩA+B = \Omega 3 4.

📝 If event A is "a target is hit" in a shooting experiment, then its complementary event Aˉ\bar{A} is "the target is not hit" 4.

  • Laws of event operations: These laws govern how events combine and interact 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. Parentheses are evaluated first 4.

📝 For three patients, A, B, C, receiving a new drug, where A, B, C denote effective treatment for each person:

  • "Only the first person is effective" is ABˉCˉA\bar{B}\bar{C}.
  • "Only one person is effective" is ABˉCˉ+AˉBCˉ+AˉCˉCA\bar{B}\bar{C} + \bar{A}B\bar{C} + \bar{A}\bar{C}C.
  • "All three are effective" is ABCABC.
  • "None of the three are effective" is AˉBˉCˉ=A+B+C‾\bar{A}\bar{B}\bar{C} = \overline{A+B+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 (mm): The number of times an event A occurs in nn independent repetitions of an experiment under identical conditions.
  • Relative frequency (f(A)f(A)): The ratio of the frequency of event A to the total number of trials, f(A)=m/nf(A) = m/n.
  • 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 called the statistical probability of A, denoted P(A)=pP(A) = p. In practice, P(A)≈m/nP(A) \approx m/n for a 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. Thus, the probability of the drug being effective is approximately 0.695 5.

1.5 Classical probability

Classical probability applies to random experiments with specific characteristics, known as a classical probability model or finite equiprobable model 6.

  • Characteristics of classical probability models:
  • The total number of possible outcomes (elemental events) is finite.
  • Each elemental event has an equal likelihood of occurring.
  • Classical probability definition: For a classical probability model with nn total elemental events, if event A consists of mm elemental events, its classical probability is given by: P(A)=mn=Number of elemental events in ATotal number of elemental eventsP(A) = \frac{m}{n} = \frac{\text{Number of elemental events in A}}{\text{Total number of elemental events}} From this definition, 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.

📝 A bag contains 10 balls (6 white, 4 red). If 3 balls are randomly drawn:

  • The total number of ways to draw 3 balls from 10 is C103=120C_{10}^3 = 120.
  • The probability of drawing 3 white balls (event A) 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 drawing at least one white ball (event B) can be found using the complementary event Bˉ\bar{B} (no white balls, i.e., 3 red balls): P(Bˉ)=C43/C103=4/120P(\bar{B}) = C_4^3 / C_{10}^3 = 4/120. So, P(B)=1−P(Bˉ)=1−4/120=116/120≈0.967P(B) = 1 - P(\bar{B}) = 1 - 4/120 = 116/120 \approx 0.967 6.

1.6 Subjective probability

Subjective probability is used for phenomena that do not fit the criteria for statistical or classical probability, such as estimating the chance of rain tomorrow or a new drug's market success 7.

  • Subjective probability definition: A probability determined by individuals based on their experience, available information, and personal beliefs about the likelihood of an event 7.

📝 A surgeon estimates the success rate of their next surgery to be 0.9, based on years of experience and the difficulty of the procedure. This is a subjective probability 7.

1.7 Axiomatic definition of probability

The axiomatic definition provides a general framework for probability, applicable to all random phenomena. It was first proposed by A.N. Kolmogorov in 1933 7.

  • Axioms of probability:
  • Non-negativity: For any event A, 0≤P(A)≤10 \le P(A) \le 1.
  • 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.
  • Countable additivity: For a sequence of pairwise mutually exclusive events A1,A2,…,AnA_1, A_2, \dots, A_n (AiAj=∅A_i A_j = \emptyset for i≠ji \neq 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).
  • Axiomatic definition of probability: Given a sample space Ω\Omega, if a real number P(A)P(A) is assigned to every event A in Ω\Omega such that it satisfies the three axioms above, then P(A)P(A) is called the probability of event A. Classical and statistical probabilities are special cases of this general definition 8.

1.8 Addition theorems of probability

  • Addition theorem for mutually exclusive events: If events A and B are mutually exclusive, then P(A+B)=P(A)+P(B)P(A+B) = P(A)+P(B). This extends to nn pairwise mutually exclusive events: 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).
  • Complementary event formula: For any event A and its complement Aˉ\bar{A}, P(Aˉ)=1−P(A)P(\bar{A}) = 1 - P(A).
  • Event difference formula: For any events A and B, P(A−B)=P(A)−P(AB)P(A-B) = P(A) - P(AB). Specifically, if B⊂AB \subset A, then P(A−B)=P(A)−P(B)P(A-B) = P(A) - P(B) 8.
  • General addition theorem: For any two events A and B, P(A+B)=P(A)+P(B)−P(AB)P(A+B) = P(A) + P(B) - P(AB). If A and B are mutually exclusive, P(AB)=0P(AB) = 0, and the formula reduces to the addition theorem for mutually exclusive events. This can be extended to three events: P(A+B+C)=P(A)+P(B)+P(C)−P(AB)−P(AC)−P(BC)+P(ABC)P(A+B+C) = P(A) + P(B) + P(C) - P(AB) - P(AC) - P(BC) + P(ABC) 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: The probability of event A occurring given that event B has already occurred, denoted P(A∣B)P(A|B).
  • Definition: 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) = \frac{P(AB)}{P(B)} This means that if B has occurred, the sample space effectively shrinks to B, and the probability of A occurring within this reduced space is the ratio of the probability of both A and B occurring to the probability of B occurring 10.

📝 A box contains 16 balls (6 glass, 10 wooden). Among glass balls, 2 are red, 4 are blue. Among wooden balls, 3 are red, 7 are blue.

  • The probability of drawing a glass ball (event A) is P(A)=6/16=0.375P(A) = 6/16 = 0.375.

  • The probability of drawing a glass ball given it is blue (event B) is P(A∣B)P(A|B). There are 11 blue balls in total (4 glass, 7 wooden). So, P(A∣B)=4/11≈0.364P(A|B) = 4/11 \approx 0.364 10.

  • Multiplication theorem: Derived from the definition of conditional probability, it calculates the probability of two events occurring simultaneously.

  • For any two events A and B, if P(B)>0P(B) > 0, then P(AB)=P(B)P(A∣B)P(AB) = P(B)P(A|B).

  • Similarly, if P(A)>0P(A) > 0, then P(AB)=P(A)P(B∣A)P(AB) = P(A)P(B|A).

  • This can be extended to nn events A1,A2,…,AnA_1, A_2, \dots, A_n: 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}) provided P(A1A2…An−1)>0P(A_1A_2\dots A_{n-1}) > 0 11.

📝 A batch of 100 parts has 90 good parts and 10 defective parts. If parts are drawn without replacement, the probability of getting a good part on the third draw, given the first two were defective:

  • Let A1A_1 = {first part is defective}, A2A_2 = {second part is defective}, A3A_3 = {third part is good}.
  • P(A1)=10/100P(A_1) = 10/100.
  • P(A2∣A1)=9/99P(A_2|A_1) = 9/99 (since one defective part is removed).
  • P(A3∣A1A2)=90/98P(A_3|A_1A_2) = 90/98 (since two defective parts are removed, leaving 90 good parts out of 98 total).
  • P(A1A2A3)=P(A1)P(A2∣A1)P(A3∣A1A2)=(10/100)×(9/99)×(90/98)≈0.0084P(A_1A_2A_3) = P(A_1)P(A_2|A_1)P(A_3|A_1A_2) = (10/100) \times (9/99) \times (90/98) \approx 0.0084 11.

1.10 Independence of events

  • Mutual independence: Two events A and B are mutually independent if the occurrence of one does not affect the probability of the other.
  • Definition: Events A and B are mutually independent if P(AB)=P(A)P(B)P(AB) = P(A)P(B).
  • Equivalent conditions: If P(A)>0P(A) > 0 or P(B)>0P(B) > 0, then A and B are 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.
  • Properties: 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.
  • 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 intersection equals the product of their individual probabilities.
  • For three mutually independent events A, B, C, the following must hold:
  • P(AB)=P(A)P(B)P(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)
  • P(ABC)=P(A)P(B)P(C)P(ABC) = P(A)P(B)P(C)
  • If only the first three conditions hold, the events are pairwise independent.
  • If A1,A2,…,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.

📝 Two shooters, A and B, aim at a target with hit probabilities of 0.6 and 0.5, respectively. Since their shots are independent, the probability that the target is hit (event C = A+BA+B) is:

  • P(C)=P(A+B)=P(A)+P(B)−P(AB)=P(A)+P(B)−P(A)P(B)P(C) = P(A+B) = P(A) + P(B) - P(AB) = P(A) + P(B) - P(A)P(B)
  • P(C)=0.6+0.5−(0.6×0.5)=1.1−0.3=0.8P(C) = 0.6 + 0.5 - (0.6 \times 0.5) = 1.1 - 0.3 = 0.8 12.

1.11 Total probability formula

The total probability formula is used to calculate the probability of a complex event by breaking it down into a sum of probabilities of simpler, mutually exclusive events 12.

  • Complete group of events: A set of events A1,A2,…,AnA_1, A_2, \dots, A_n forms a complete group if they are pairwise mutually exclusive (AiAj=∅A_i A_j = \emptyset for i≠ji \neq j) and their sum covers the entire sample space (A1+A2+⋯+An=ΩA_1 + A_2 + \dots + A_n = \Omega).
  • 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) Here, P(Ai)P(A_i) are called prior probabilities (probabilities of causes), and P(B)P(B) is the total probability 13.

📝 A drug factory has three production lines (A1, A2, A3) accounting for 30%, 45%, and 25% of total output, respectively. Their defect rates are 6%, 5%, and 3%. The probability of randomly selecting a defective drug (event B) is:

  • P(A1)=0.3P(A_1) = 0.3, P(A2)=0.45P(A_2) = 0.45, P(A3)=0.25P(A_3) = 0.25.
  • P(B∣A1)=0.06P(B|A_1) = 0.06, P(B∣A2)=0.05P(B|A_2) = 0.05, P(B∣A3)=0.03P(B|A_3) = 0.03.
  • 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.018+0.0225+0.0075=0.048P(B) = (0.3 \times 0.06) + (0.45 \times 0.05) + (0.25 \times 0.03) = 0.018 + 0.0225 + 0.0075 = 0.048 13.

1.12 Inverse probability formula (Bayes' theorem)

Bayes' theorem addresses the inverse problem: given that event B has occurred, what is the probability that it was caused by a specific event AiA_i? 13.

  • Inverse probability formula (Bayes' theorem): 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, and B is any event with P(B)>0P(B) > 0, then the conditional probability of AkA_k given B is: P(Ak∣B)=P(Ak)P(B∣Ak)∑i=1nP(Ai)P(B∣Ai)P(A_k|B) = \frac{P(A_k)P(B|A_k)}{\sum_{i=1}^n P(A_i)P(B|A_i)} Here, P(Ak∣B)P(A_k|B) is called the posterior probability, representing the probability of cause AkA_k given that event B has occurred 14.

📝 Continuing from the previous example, if a randomly selected drug is found to be defective, what is the probability it came from production line A1?

  • We need to calculate P(A1∣B)P(A_1|B), P(A2∣B)P(A_2|B), and P(A3∣B)P(A_3|B).
  • P(A1∣B)=P(A1)P(B∣A1)P(B)=0.3×0.060.048=0.0180.048=0.375P(A_1|B) = \frac{P(A_1)P(B|A_1)}{P(B)} = \frac{0.3 \times 0.06}{0.048} = \frac{0.018}{0.048} = 0.375.
  • P(A2∣B)=P(A2)P(B∣A2)P(B)=0.45×0.050.048=0.02250.048≈0.469P(A_2|B) = \frac{P(A_2)P(B|A_2)}{P(B)} = \frac{0.45 \times 0.05}{0.048} = \frac{0.0225}{0.048} \approx 0.469.
  • P(A3∣B)=P(A3)P(B∣A3)P(B)=0.25×0.030.048=0.00750.048≈0.156P(A_3|B) = \frac{P(A_3)P(B|A_3)}{P(B)} = \frac{0.25 \times 0.03}{0.048} = \frac{0.0075}{0.048} \approx 0.156.
  • Since P(A2∣B)P(A_2|B) is the largest, the defective drug is most likely from production line A2 14.

2. Chapter 3: Random Variables and Their Distributions

2.1 Random variables and their probability distributions

A random variable is a variable whose value is determined by the outcome of a random experiment, and the probability of it taking specific values is fixed. Random variables are typically denoted by uppercase letters like XX or YY 19.

  • Characteristics of random variables:
  • They possess randomness because their values change with experimental outcomes.
  • They exhibit statistical regularity because each outcome has a specific probability.
  • These two characteristics differentiate random variables from ordinary variables.
  • Representing random events: Random events can be expressed using random variables. For example, if XX is the number of defective items in a drug inspection, the event "no more than 4 defective items" is {X≤4}\{X \le 4\}.
  • Probability distribution: This refers to all possible values a random variable XX can take and the probabilities associated with those values. Understanding this fully describes the statistical regularity of XX 19.

2.2 Discrete random variables

A discrete random variable XX can only take a finite or countably infinite number of values, meaning its possible values can be listed individually 20.

  • Examples:
  • The number rolled on a die, XX, can take values {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}.
  • The number of defective items found in a random drug inspection.
  • Distribution law (probability mass function): For a discrete random variable 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

📝 Consider 8 drugs, 3 of which are defective. If 2 drugs are randomly selected, the number of defective drugs XX can be 0, 1, or 2. The probability distribution is: 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, 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 getting at most 1 defective drug 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) for any random variable XX is defined as F(x)=P{X≤x}F(x) = P\{X \le x\} for −∞<x<+∞-\infty < x < +\infty. It represents the cumulative probability that XX takes a value less than or equal to xx 21.

  • Characteristics:
  • F(x)F(x) is defined over the entire real number line and its values are in the interval [0,1][0, 1].
  • It provides a universal way to describe the probability distribution for both discrete and continuous random variables.
  • Properties of F(x)F(x):
  • 0≤F(x)≤10 \le F(x) \le 1. Also, lim⁡x→−∞F(x)=0\lim_{x \to -\infty} F(x) = 0 and lim⁡x→+∞F(x)=1\lim_{x \to +\infty} F(x) = 1.
  • F(x)F(x) is a monotonically non-decreasing function: 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: for any x0x_0, F(x0)=lim⁡x→x0+F(x)F(x_0) = \lim_{x \to x_0^+} F(x).
  • Calculating probabilities 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 of all xk≤xx_k \le x: F(x)=∑xk≤xP{X=xk}=∑xk≤xpkF(x) = \sum_{x_k \le x} P\{X=x_k\} = \sum_{x_k \le x} p_k 22.
ConditionF(x)
x<−1x < -100
−1≤x<1-1 \le x < 10.30.3
1≤x<21 \le x < 20.90.9
x≥2x \ge 211

📝 Given a discrete random variable XX with P{X=−1}=0.3P\{X=-1\}=0.3, P{X=1}=0.6P\{X=1\}=0.6, and P{X=2}=0.1P\{X=2\}=0.1. The distribution function F(x)F(x) is a step function. For instance, P{X>1.5}=P{X=2}=0.1P\{X > 1.5\} = P\{X=2\} = 0.1. Using F(x)F(x), this is 1−F(1.5)=1−0.9=0.11 - F(1.5) = 1 - 0.9 = 0.1. Also, P{1<X≤2}=F(2)−F(1)=1−0.9=0.1P\{1 < X \le 2\} = F(2) - F(1) = 1 - 0.9 = 0.1 22.

2.4 Continuous random variables

A continuous random variable XX can take any value within a given interval. It is impossible and meaningless to list individual values and their probabilities for such variables 23.

  • Probability density function (PDF): For a continuous random variable XX, there exists a non-negative integrable function f(x)f(x), called the probability density function, such that for any real numbers a<ba < b, P{a<X≤b}=∫abf(x) dxP\{a < X \le b\} = \int_a^b f(x)\,dx.
  • Geometric interpretation: 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 all real xx.
  • ∫−∞+∞f(x) dx=1\int_{-\infty}^{+\infty} f(x)\,dx = 1, meaning the total area under the density curve is 1.
  • Relationship with distribution function F(x)F(x):
  • F(x)=P{X≤x}=∫−∞xf(t) dtF(x) = P\{X \le x\} = \int_{-\infty}^x f(t)\,dt.
  • F(x)F(x) is a continuous function.
  • If f(x)f(x) is continuous at xx, then f(x)=F′(x)f(x) = F'(x), meaning the PDF is the derivative of the CDF 23.
  • Probability of a single point: For a continuous random variable, the probability of taking any specific value aa is P{X=a}=0P\{X=a\}=0.
  • This implies that for continuous random variables, the interval endpoints do not affect the probability: P{a<X<b}=P{a≤X<b}=P{a<X≤b}=P{a≤X≤b}=∫abf(x) 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.
  • An event with probability 0 is not necessarily an impossible event 24.
x rangeF(x)
x<ax < a00
a≤x<ba \le x < b(x−a)/(b−a)(x-a)/(b-a)
x≥bx \ge b11

📝 If XX follows a uniform distribution on [a,b][a, b], its PDF is f(x)=1/(b−a)f(x) = 1/(b-a) for a≤x≤ba \le x \le b and 00 otherwise. The CDF is F(x)=0F(x) = 0 for x<ax<a, F(x)=(x−a)/(b−a)F(x) = (x-a)/(b-a) for a≤x<ba \le x < b, and F(x)=1F(x) = 1 for x≥bx \ge b. The probability of XX falling into any subinterval (x1,x1+Δx)(x_1, x_1+\Delta x) within [a,b][a, b] is 1/(b−a)⋅Δx1/(b-a) \cdot \Delta x, which depends only on the length of the subinterval, not its position 24 25.

2.5 Numerical characteristics of random variables

Numerical characteristics quantify specific features of a random variable, such as its average value or degree of deviation 26.

  • Importance: For many common random variables, knowing just a few numerical characteristics can fully determine their probability distribution.
  • Common characteristics: Mathematical expectation (mean), variance, standard deviation, and moments 26.

2.6 Mathematical expectation

The mathematical expectation (or mean) of a random variable 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 values XX can take, with probabilities as weights.

📝 For a lottery with 100,000 tickets at 1 dollar each, the average prize money per ticket is calculated by summing the product of each prize amount and its frequency (probability). If the total prize money is 50,000 dollars, the average prize per ticket is 50,000/100,000=0.550,000 / 100,000 = 0.5 dollars 26. 📝 For a Poisson distribution with parameter λ\lambda, where P{X=k}=λke−λk!P\{X=k\} = \frac{\lambda^k e^{-\lambda}}{k!}, the mathematical expectation E(X)=λE(X) = \lambda 27.

  • 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} x f(x)\,dx, provided the integral converges absolutely.

📝 For a uniform distribution on [a,b][a, b] with PDF f(x)=1/(b−a)f(x) = 1/(b-a), the mathematical expectation 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} [\frac{x^2}{2}]_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.

  • Mathematical expectation of a function of a random variable: If Y=g(X)Y = g(X) is a function of a random variable XX, and E[g(X)]E[g(X)] exists:
  • Discrete case: E(Y)=E[g(X)]=∑k=1∞g(xk)P{X=xk}=∑k=1∞g(xk)pkE(Y) = E[g(X)] = \sum_{k=1}^\infty g(x_k) P\{X=x_k\} = \sum_{k=1}^\infty g(x_k) p_k.
  • Continuous case: E(Y)=E[g(X)]=∫−∞+∞g(x)f(x) dxE(Y) = E[g(X)] = \int_{-\infty}^{+\infty} g(x) f(x)\,dx.

📝 If XX has a given discrete probability distribution, and Y=2X2−1Y = 2X^2 - 1, then E(Y)E(Y) is calculated by summing g(xk)pkg(x_k)p_k for each xkx_k. For X={−1,0,1,2}X=\{-1, 0, 1, 2\} with probabilities {0.15,0.1,0.3,0.45}\{0.15, 0.1, 0.3, 0.45\}, the corresponding YY values are {1,−1,1,7}\{1, -1, 1, 7\}. Thus, E(Y)=1(0.15)+(−1)(0.1)+1(0.3)+7(0.45)=3.5E(Y) = 1(0.15) + (-1)(0.1) + 1(0.3) + 7(0.45) = 3.5 28.

  • Properties of mathematical expectation:
  • E(C)=CE(C) = C for any constant CC.
  • E(CX)=C⋅E(X)E(CX) = C \cdot E(X) for any random variable XX and constant CC.
  • E(aX+b)=aE(X)+bE(aX + b) = aE(X) + b for any random variable XX and constants a,ba, b.
  • For any nn random variables X1,…,XnX_1, \dots, X_n, E(X1+⋯+Xn)=E(X1)+⋯+E(Xn)E(X_1 + \dots + X_n) = E(X_1) + \dots + E(X_n).
  • If XX and YY are independent, then E(XY)=E(X)⋅E(Y)E(XY) = E(X) \cdot E(Y) 29.

2.7 Variance and standard deviation

While mathematical expectation describes the average value, variance and standard deviation measure the degree to which a random variable's values deviate from its mean 29.

  • Variance: For a random variable 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). It is defined as D(X)=E[(X−E(X))2]D(X) = E[(X-E(X))^2].
  • For discrete random variables: D(X)=∑k(xk−E(X))2pkD(X) = \sum_k (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 greater dispersion of values from the mean, while a smaller variance indicates greater concentration.
  • 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.

📝 For two automatic bottling machines, A and B, both with an average weight of 100g (E(X)=E(Y)=100E(X)=E(Y)=100). Machine A's weights XX are {99,100,101}\{99, 100, 101\} with probabilities {0.2,0.6,0.2}\{0.2, 0.6, 0.2\}. Machine B's weights YY are {98,99,100,101,102}\{98, 99, 100, 101, 102\} with probabilities {0.15,0.2,0.3,0.2,0.15}\{0.15, 0.2, 0.3, 0.2, 0.15\}. D(X)=(−1)2(0.2)+02(0.6)+12(0.2)=0.4D(X) = (-1)^2(0.2) + 0^2(0.6) + 1^2(0.2) = 0.4. D(Y)=(−2)2(0.15)+(−1)2(0.2)+02(0.3)+12(0.2)+22(0.15)=1.6D(Y) = (-2)^2(0.15) + (-1)^2(0.2) + 0^2(0.3) + 1^2(0.2) + 2^2(0.15) = 1.6. Since D(X)<D(Y)D(X) < D(Y), machine A's weights are more concentrated around the mean, indicating better performance 30.

  • Important formula for variance: D(X)=E(X2)−[E(X)]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, its variance equals its mean 30. 📝 For a uniform distribution on [a,b][a, b], E(X)=(a+b)/2E(X) = (a+b)/2. E(X2)=∫abx21b−a dx=1b−a[x33]ab=b3−a33(b−a)=b2+ab+a23E(X^2) = \int_a^b x^2 \frac{1}{b-a}\,dx = \frac{1}{b-a} [\frac{x^3}{3}]_a^b = \frac{b^3-a^3}{3(b-a)} = \frac{b^2+ab+a^2}{3}. Therefore, D(X)=b2+ab+a23−(a+b2)2=(b−a)212D(X) = \frac{b^2+ab+a^2}{3} - (\frac{a+b}{2})^2 = \frac{(b-a)^2}{12} 31.

  • Properties of variance:
  • D(C)=0D(C) = 0 for any constant CC.
  • D(CX)=C2D(X)D(CX) = C^2 D(X) for any random variable XX and constant CC.
  • D(aX+b)=a2D(X)D(aX+b) = a^2 D(X) for any random variable XX and constants a,ba, b.
  • If XX and YY are independent, then D(X±Y)=D(X)+D(Y)D(X \pm Y) = D(X) + D(Y).
  • Generally, if X1,…,XnX_1, \dots, X_n are independent, then D(X1+⋯+Xn)=D(X1)+⋯+D(Xn)D(X_1 + \dots + X_n) = D(X_1) + \dots + D(X_n).
  • 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.8 Moments

Moments are generalized numerical characteristics of random variables 32.

  • k-th order origin moment: If E(Xk)E(X^k) exists for a non-negative integer kk, it is called the kk-th order origin moment (or simply kk-th moment) of XX.
  • k-th order central moment: If E[(X−E(X))k]E[(X-E(X))^k] exists, it is called the kk-th order central moment of XX.
  • Relationship to mean and variance:
  • The mean E(X)E(X) is the first-order origin moment.
  • The variance D(X)D(X) is the second-order central moment.
  • Calculating second-order origin moment: If E(X)E(X) and D(X)D(X) are known, the second-order origin moment E(X2)E(X^2) can be found using E(X2)=D(X)+(E(X))2E(X^2) = D(X) + (E(X))^2 32.

2.9 Binomial distribution

The binomial distribution describes the probability of a specific number of successes in a fixed number of independent Bernoulli trials. It is a discrete probability distribution 35.

  • Bernoulli trial: An experiment with only two mutually exclusive outcomes, typically labeled "success" (A) or "failure" (Aˉ\bar{A}).
  • Conditions: Trials are independent and repeated under identical conditions. The probability of success, P(A)=pP(A)=p, remains constant for each trial, where 0<p<10 < p < 1. The probability of failure is q=1−pq = 1-p.
  • Examples: Observing if a coin lands heads up, if a patient's treatment is effective, or if a sampled product is defective.
  • Probability mass function: For nn Bernoulli trials, the probability of exactly kk successes is given by: P{X=k}=Cnkpkqn−k,k=0,1,…,n;q=1−pP\{X=k\} = C_n^k p^k q^{n-k}, \quad k=0,1,\dots,n; \quad q=1-p where CnkC_n^k is the binomial coefficient 33.
  • Notation: A random variable XX following a binomial distribution with parameters nn (number of trials) and pp (probability of success) is denoted as X∼B(n,p)X \sim B(n,p).
  • Properties:
  • Expectation: E(X)=npE(X) = np.
  • Variance: D(X)=npqD(X) = npq.
  • Standard deviation: σ(X)=npq\sigma(X) = \sqrt{npq} 36.
  • Most probable value (k0k_0): The value of kk that maximizes P{X=k}P\{X=k\} 35.
ConditionMost Probable Value (k0k_0)
(n+1)p(n+1)p is an integer(n+1)p(n+1)p or (n+1)p−1(n+1)p-1
(n+1)p(n+1)p is not an integer[(n+1)p][(n+1)p] (floor function)

where [(n+1)p][(n+1)p] denotes the integer part of (n+1)p(n+1)p.

  • Two-point distribution: This is a special case of the binomial distribution where n=1n=1. It describes the outcome of a single Bernoulli trial35.
  • Distribution law: P{X=1}=pP\{X=1\}=p, P{X=0}=qP\{X=0\}=q.
  • Notation: X∼B(1,p)X \sim B(1,p).
  • Expectation: E(X)=pE(X)=p.
  • Variance: D(X)=pqD(X)=pq 34.

📝 A drug has an 80% cure rate for a certain disease. If 20 patients are treated, the number of uncured patients (XX) follows a binomial distribution B(20,0.2)B(20, 0.2), since the uncured rate is p=0.2p=0.2. The probability of exactly 2 patients being uncured is P{X=2}=C202(0.2)2(0.8)18=0.1369P\{X=2\} = C_{20}^2 (0.2)^2 (0.8)^{18} = 0.1369 34.

2.10 Poisson distribution

The Poisson distribution is a discrete probability distribution that describes the number of events occurring in a fixed interval of time or space, given a constant average rate of occurrence 37 38.

  • Probability mass function: For a random variable XX following a Poisson distribution with parameter λ>0\lambda > 0: P{X=k}=e−λλkk!,k=0,1,2,…P\{X=k\} = \frac{e^{-\lambda} \lambda^k}{k!}, \quad k=0,1,2,\dots where λ\lambda is the average rate of events.
  • Notation: X∼P(λ)X \sim P(\lambda).
  • Poisson theorem: 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), where λ=np\lambda = np. Cnkpkqn−k≈λke−λk!C_n^k p^k q^{n-k} \approx \frac{\lambda^k e^{-\lambda}}{k!} This approximation is useful for calculating probabilities of rare events in a large number of trials 37.
  • Properties:
  • Expectation: E(X)=λE(X) = \lambda.
  • Variance: D(X)=λD(X) = \lambda 38.
  • Most probable value (k0k_0):
ConditionMost Probable Value (k0k_0)
λ\lambda is an integerλ\lambda or λ−1\lambda-1
λ\lambda is not an integer[λ][\lambda] (floor function)

where [λ][\lambda] denotes the integer part of λ\lambda.

  • Applications: Used to model the number of rare events, such as triplets born in a region, cases of a common disease, bacteria counts in a unit area, or calls received by a telephone exchange in a unit time 38.

📝 In a unit with 30 people, the probability of infection with a certain disease is 20%. The number of infected people (XX) follows B(30,0.2)B(30, 0.2). The most probable number of infected people is k0=[(30+1)×0.2]=[6.2]=6k_0 = [(30+1) \times 0.2] = [6.2] = 6. The corresponding probability is P{X=6}=C306(0.2)6(0.8)24=0.17946P\{X=6\} = C_{30}^6 (0.2)^6 (0.8)^{24} = 0.17946 36.

2.11 Hypergeometric distribution

The hypergeometric distribution describes the probability of drawing a specific number of successes in nn draws, without replacement, from a finite population of size NN that contains MM successes 39.

  • Probability mass function: For a random variable XX following a hypergeometric distribution with parameters N,M,nN, M, n: P{X=k}=CMkCN−Mn−kCNn,k=0,1,…,min⁡(M,n)P\{X=k\} = \frac{C_M^k C_{N-M}^{n-k}}{C_N^n}, \quad k=0,1,\dots,\min(M,n) where NN is the total population size, MM is the number of successes in the population, and nn is the number of draws.
  • Notation: X∼H(N,M,n)X \sim H(N,M,n).
  • Applications: Commonly used in quality control (e.g., sampling for defective products without replacement) and epidemiological studies.
  • Relationship to binomial distribution: As the population size N→∞N \to \infty, the hypergeometric distribution approaches the binomial distribution B(n,p)B(n,p) where p=M/Np = M/N. This means that for very large populations, sampling without replacement can be approximated by sampling with replacement 39.

2.12 Normal distribution

The normal distribution, also known as the Gaussian distribution, is the most important continuous probability distribution in theory and applications of probability and mathematical statistics 39.

  • Probability density function (PDF): For a random variable XX following a normal distribution with parameters μ\mu and σ2\sigma^2: f(x)=12πσe−(x−μ)22σ2,−∞<x<+∞f(x) = \frac{1}{\sqrt{2\pi}\sigma} e^{-\frac{(x-\mu)^2}{2\sigma^2}}, \quad -\infty < x < +\infty where μ\mu is the mean and σ2\sigma^2 is the variance (σ>0\sigma > 0 is the standard deviation).
  • Notation: X∼N(μ,σ2)X \sim N(\mu, \sigma^2).
  • Cumulative distribution function (CDF): F(x)=∫−∞x12πσe−(t−μ)22σ2dt,−∞<x<+∞F(x) = \int_{-\infty}^x \frac{1}{\sqrt{2\pi}\sigma} e^{-\frac{(t-\mu)^2}{2\sigma^2}} dt, \quad -\infty < x < +\infty This function is continuous, monotonically increasing, and F(μ)=0.5F(\mu)=0.5 40.
  • Properties of the normal curve:
  • Shape: A "bell-shaped" smooth curve above the x-axis, symmetric about x=μx=\mu.
  • Peak: Reaches its maximum value of 12πσ\frac{1}{\sqrt{2\pi}\sigma} at x=μx=\mu. Values of XX are concentrated around μ\mu.
  • Asymptotes: Approaches 0 as x→±∞x \to \pm\infty, with the x-axis as its asymptote.
  • Inflection points: Located at x=μ±σx = \mu \pm \sigma.
  • Parameters:
  • μ\mu: Determines the position of the curve along the x-axis.
  • σ\sigma: Determines the steepness of the curve. A larger σ\sigma results in a flatter, more dispersed curve, while a smaller σ\sigma results in a steeper, more concentrated curve.
  • Total area: The total area under the curve is 1, a fundamental property of all probability density functions.
  • Expectation and variance: For X∼N(μ,σ2)X \sim N(\mu, \sigma^2), E(X)=μE(X) = \mu and D(X)=σ2D(X) = \sigma^2.
  • Linear transformations:
  • If X∼N(μ,σ2)X \sim N(\mu, \sigma^2), then for any constants a,ba, b, aX+b∼N(aμ+b,a2σ2)aX+b \sim N(a\mu+b, a^2\sigma^2).
  • If 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) are independent, then X±Y∼N(μ1±μ2,σ12+σ22)X \pm Y \sim N(\mu_1 \pm \mu_2, \sigma_1^2 + \sigma_2^2) 41.
  • Any linear combination of a finite number of independent normal random variables also follows a normal distribution 42.

📝 Many natural phenomena, such as human height, weight, red blood cell count, and cholesterol levels, often follow or approximate a normal distribution. This is because they are influenced by numerous small, independent random factors 40.

2.13 Standard normal distribution

The standard normal distribution is a special case of the normal distribution where the mean μ=0\mu=0 and the standard deviation σ=1\sigma=1 42.

  • Notation: X∼N(0,1)X \sim N(0,1).
  • PDF: Denoted by ϕ(x)\phi(x): ϕ(x)=12πe−x22,−∞<x<+∞\phi(x) = \frac{1}{\sqrt{2\pi}} e^{-\frac{x^2}{2}}, \quad -\infty < x < +\infty.
  • CDF: Denoted by Φ(x)\Phi(x): Φ(x)=∫−∞x12πe−t22dt,−∞<x<+∞\Phi(x) = \int_{-\infty}^x \frac{1}{\sqrt{2\pi}} e^{-\frac{t^2}{2}} dt, \quad -\infty < x < +\infty.
  • Symmetry property: The density curve is symmetric about the y-axis. For negative values of xx, Φ(−x)=1−Φ(x)\Phi(-x) = 1 - \Phi(x).
  • Standardization: Any general normal random variable X∼N(μ,σ2)X \sim N(\mu, \sigma^2) can be transformed into a standard normal random variable U∼N(0,1)U \sim N(0,1) using the formula: U=X−μσU = \frac{X-\mu}{\sigma}.
  • Probability calculations:
  • P{a<X≤b}=Φ(b)−Φ(a)P\{a < X \le b\} = \Phi(b) - \Phi(a) for X∼N(0,1)X \sim N(0,1).
  • For X∼N(μ,σ2)X \sim N(\mu, \sigma^2):
  • F(x)=Φ(x−μσ)F(x) = \Phi\left(\frac{x-\mu}{\sigma}\right).
  • P{X>x}=1−Φ(x−μσ)P\{X > x\} = 1 - \Phi\left(\frac{x-\mu}{\sigma}\right).
  • P{a<X≤b}=Φ(b−μσ)−Φ(a−μσ)P\{a < X \le b\} = \Phi\left(\frac{b-\mu}{\sigma}\right) - \Phi\left(\frac{a-\mu}{\sigma}\right) 42.
  • "3σ\sigma-principle": For X∼N(μ,σ2)X \sim N(\mu, \sigma^2), the probability of XX falling within certain intervals around the mean is 43:
IntervalProbability
[μ−σ,μ+σ][\mu-\sigma, \mu+\sigma]68.27%68.27\%
[μ−2σ,μ+2σ][\mu-2\sigma, \mu+2\sigma]95.45%95.45\%
[μ−3σ,μ+3σ][\mu-3\sigma, \mu+3\sigma]99.73%99.73\%

This principle states that almost all values of XX fall within the interval [μ−3σ,μ+3σ][\mu-3\sigma, \mu+3\sigma], with less than 0.3% falling outside. It is crucial in statistical inference and quality control 43.

📝 If X∼N(0,1)X \sim N(0,1), then P{0.5<X<1.5}=Φ(1.5)−Φ(0.5)=0.9332−0.6915=0.2417P\{0.5 < X < 1.5\} = \Phi(1.5) - \Phi(0.5) = 0.9332 - 0.6915 = 0.2417 42.

2.14 Critical values of the standard normal distribution

The critical value uαu_\alpha for a standard normal distribution is the point such that the probability of a random variable XX being greater than uαu_\alpha is α\alpha 44.

  • Definition: For a standard normal random variable XX and a given α\alpha (0<α<10 < \alpha < 1), uαu_\alpha satisfies: P{X>uα}=∫uα+∞12πe−x2/2dx=αP\{X > u_\alpha\} = \int_{u_\alpha}^{+\infty} \frac{1}{\sqrt{2\pi}} e^{-x^2/2} dx = \alpha.
  • Calculation: This implies Φ(uα)=1−α\Phi(u_\alpha) = 1-\alpha. Critical values can be found using standard normal distribution tables.
  • For general normal distribution: To find the critical value x0x_0 for X∼N(μ,σ2)X \sim N(\mu, \sigma^2) such that P{X>x0}=αP\{X > x_0\} = \alpha, first find uαu_\alpha from Φ(uα)=1−α\Phi(u_\alpha) = 1-\alpha. Then, x0=μ+uασx_0 = \mu + u_\alpha \sigma 44.

📝 If α=0.05\alpha=0.05, then Φ(u0.05)=1−0.05=0.95\Phi(u_{0.05}) = 1-0.05 = 0.95. From a standard normal distribution table, u0.05=1.645u_{0.05} = 1.645 44.

2.15 Exponential distribution

The exponential distribution is a continuous probability distribution that describes the time until an event occurs in a Poisson process, i.e., a process in which events occur continuously and independently at a constant average rate 45.

  • Probability density function (PDF): For a random variable XX following an exponential distribution with parameter λ>0\lambda > 0: f(x)={λe−λx,x≥00,x<0f(x) = \begin{cases} \lambda e^{-\lambda x}, & x \ge 0 \\ 0, & x < 0 \end{cases}.
  • Notation: X∼E(λ)X \sim E(\lambda). F(x)={1−e−λx,x≥00,x<0F(x) = \begin{cases} 1 - e^{-\lambda x}, & x \ge 0 \\ 0, & x < 0 \end{cases}.
  • Properties:
  • Expectation: E(X)=1/λE(X) = 1/\lambda.
  • Variance: D(X)=1/λ2D(X) = 1/\lambda^2.
  • Applications: Commonly used to model "lifespans" (e.g., animal lifespan, electronic component lifespan) and "waiting times" (e.g., phone call duration, service times in queuing theory) 45.

📝 If a batch of medical electronic monitors has an average lifespan of 1000 hours, then E(X)=1/λ=1000E(X) = 1/\lambda = 1000, so λ=1/1000\lambda = 1/1000. The probability that a randomly selected monitor will operate normally for more than 1000 hours is P{X>1000}=∫1000+∞11000e−x/1000dx=e−1≈0.368P\{X > 1000\} = \int_{1000}^{+\infty} \frac{1}{1000} e^{-x/1000} dx = e^{-1} \approx 0.368 45.

2.16 Distribution of functions of random variables

When a random variable XX is known, a function Y=g(X)Y = g(X) also becomes a random variable, and it is often necessary to find its probability distribution 46.

  • For discrete random variables: If XX has a probability mass function P{X=xk}=pkP\{X=x_k\} = p_k, then Y=g(X)Y=g(X) takes values g(xk)g(x_k) with corresponding probabilities.
  • Distinct values: If all g(xk)g(x_k) values are distinct, then P{Y=g(xk)}=P{X=xk}=pkP\{Y=g(x_k)\} = P\{X=x_k\} = p_k.
  • Repeated values: If some g(xk)g(x_k) values are equal, their corresponding probabilities must be summed to find the probability for that specific value of YY 46.
X valuesY values (g(xk)g(x_k))Probabilities (P{Y=yj}P\{Y=y_j\})
x1x_1g(x1)g(x_1)p1p_1
x2x_2g(x2)g(x_2)p2p_2
.........
xkx_kg(xk)g(x_k)pkp_k

This table represents the distribution of YY after combining probabilities for identical g(xk)g(x_k) values 46.

2.17 Functions of random variables

The distribution of a function of a random variable can be determined using the distribution function method. This method is generally applicable for both discrete and continuous random variables 47.

  • Discrete random variable functions: For a discrete random variable XX and a function Y=g(X)Y = g(X), the distribution of YY is found by mapping each value of XX to a value of YY and summing the probabilities for identical YY values.
  • Continuous random variable functions: For a continuous random variable XX with a known probability density function f(x)f(x), the probability density function f(y)f(y) of Y=g(X)Y = g(X) is found by first determining the cumulative distribution function F(y)=P{Y≤y}F(y) = P\{Y \le y\} and then differentiating F(y)F(y) with respect to yy to get f(y)f(y) 47.

📝 For a random variable XX following an exponential distribution with parameter λ\lambda, f(x)=λe−λxf(x) = \lambda e^{-\lambda x} for x>0x>0 and 00 otherwise. To find the density f(y)f(y) for Y=X3Y = X^3, we first find F(y)=P{Y≤y}=P{X3≤y}=P{X≤y1/3}F(y) = P\{Y \le y\} = P\{X^3 \le y\} = P\{X \le y^{1/3}\}. For y>0y>0, F(y)=∫0y1/3λe−λxdx=1−e−λy1/3F(y) = \int_0^{y^{1/3}} \lambda e^{-\lambda x} dx = 1 - e^{-\lambda y^{1/3}}. Differentiating with respect to yy gives f(y)=λe−λy1/3⋅13y−2/3f(y) = \lambda e^{-\lambda y^{1/3}} \cdot \frac{1}{3} y^{-2/3}. Thus, f(y)=13λy−2/3e−λy1/3f(y) = \frac{1}{3} \lambda y^{-2/3} e^{-\lambda y^{1/3}} for y>0y>0 and 00 otherwise 47.

When y=g(x)y = g(x) is a strictly monotonic function, a simplified formula can be used to find the probability density function of YY. If x=h(y)x = h(y) is the inverse function of y=g(x)y = g(x), then f(y)=f[h(y)]⋅∣h′(y)∣f(y) = f[h(y)] \cdot |h'(y)| 47.

  • Strictly monotonic function: If g′(x)>0g'(x) > 0 (strictly increasing) or g′(x)<0g'(x) < 0 (strictly decreasing) on the interval (a,b)(a, b) where f(x)f(x) is non-zero, this formula applies 47.
  • Non-monotonic functions: If y=g(x)y = g(x) is not strictly monotonic, the general distribution function method must be used 48.

2.18 Random vectors

In practical problems, many random phenomena are influenced by multiple random factors, requiring the simultaneous consideration of several random variables. An nn-dimensional random vector X=(X1,X2,…,Xn)X = (X_1, X_2, \dots, X_n) is formed by nn random variables, allowing for the study of their individual statistical laws and their interrelationships 48.

  • Two-dimensional random vector: A vector (X,Y)(X, Y) composed of random variables XX and YY is called a two-dimensional random vector or two-dimensional random variable 48.
  • Joint distribution function: For a two-dimensional random vector (X,Y)(X, Y), the joint distribution function 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. Geometrically, it represents the probability that the random point (X,Y)(X, Y) falls within the infinite rectangular region to the lower-left of (x,y)(x, y) 49.

The joint distribution function F(x,y)F(x, y) has several key properties:

  • Bounds: 0≤F(x,y)≤10 \le F(x, y) \le 1.
  • Limits: F(−∞,−∞)=0F(-\infty, -\infty) = 0, F(+∞,+∞)=1F(+\infty, +\infty) = 1. Also, F(−∞,y)=0F(-\infty, y) = 0 and F(x,−∞)=0F(x, -\infty) = 0.
  • Monotonicity: F(x,y)F(x, y) is non-decreasing with respect to both xx and yy.
  • Right-continuity: F(x,y)F(x, y) is right-continuous with respect to both xx and yy 49.

2.19 Marginal distributions

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

  • Marginal distribution function of 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 of 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 discrete if its possible values (xi,yj)(x_i, y_j) are finite or countably infinite 49.

  • Joint probability distribution: The probability P{X=xi,Y=yj}=pijP\{X = x_i, Y = y_j\} = p_{ij} is called the joint probability distribution or joint distribution law of (X,Y)(X, Y).
  • Properties of pijp_{ij}:
  • 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 XX: P{X=xi}=∑j=1∞pij=pi.P\{X = x_i\} = \sum_{j=1}^\infty p_{ij} = p_{i.}
  • For YY: 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 continuous 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)dxdyP\{a < X \le b, c < Y \le d\} = \iint_D f(x, y) dxdy 50 51.

  • Joint probability density function: The function f(x,y)f(x, y) is called the joint probability density function or joint density of (X,Y)(X, Y).
  • Properties of f(x,y)f(x, y):
  • f(x,y)≥0f(x, y) \ge 0.
  • ∬−∞+∞f(x,y)dxdy=1\iint_{-\infty}^{+\infty} f(x, y) dxdy = 1.
  • For any region GG in the xoyxoy plane, P{(X,Y)∈G}=∬Gf(x,y)dxdyP\{(X, Y) \in G\} = \iint_G f(x, y) dxdy. This probability 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 f(x,y)=∂2F(x,y)∂x∂yf(x, y) = \frac{\partial^2 F(x, y)}{\partial x \partial y}.
  • Joint distribution function: F(x,y)=∫−∞x∫−∞yf(u,v)dudvF(x, y) = \int_{-\infty}^x \int_{-\infty}^y f(u, v) dudv.
  • Marginal probability density:
  • For XX: fX(x)=∫−∞+∞f(x,y)dyf_X(x) = \int_{-\infty}^{+\infty} f(x, y) dy.
  • For YY: fY(y)=∫−∞+∞f(x,y)dxf_Y(y) = \int_{-\infty}^{+\infty} f(x, y) dx 51.

📝 Given the joint density f(x,y)=Ce−(2x+3y)f(x, y) = C e^{-(2x+3y)} for x>0,y>0x>0, y>0 and 00 otherwise. To find the constant CC, we use ∬−∞+∞f(x,y)dxdy=1\iint_{-\infty}^{+\infty} f(x, y) dxdy = 1. This gives C∫0∞e−2xdx∫0∞e−3ydy=C⋅12⋅13=C6=1C \int_0^\infty e^{-2x} dx \int_0^\infty e^{-3y} dy = C \cdot \frac{1}{2} \cdot \frac{1}{3} = \frac{C}{6} = 1, so C=6C=6. The marginal density for XX is fX(x)=∫0∞6e−(2x+3y)dy=6e−2x∫0∞e−3ydy=6e−2x⋅13=2e−2xf_X(x) = \int_0^\infty 6e^{-(2x+3y)} dy = 6e^{-2x} \int_0^\infty e^{-3y} dy = 6e^{-2x} \cdot \frac{1}{3} = 2e^{-2x} for x>0x>0 and 00 otherwise. Similarly, fY(y)=3e−3yf_Y(y) = 3e^{-3y} for y>0y>0 and 00 otherwise 51 52.

2.22 Two-dimensional normal distribution

The two-dimensional normal distribution is a commonly used distribution for random vectors. A two-dimensional random vector (X,Y)(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 a specific formula involving parameters μ1,μ2,σ1,σ2>0\mu_1, \mu_2, \sigma_1, \sigma_2 > 0, and ∣ρ∣<1|\rho|<1 52.

  • Parameters:
  • μ1,μ2\mu_1, \mu_2: Means of XX and YY, respectively.
  • σ1,σ2\sigma_1, \sigma_2: Standard deviations of XX and YY, respectively.
  • ρ\rho: Correlation coefficient between XX and YY.
  • Marginal distributions: If (X,Y)∼N(μ1,μ2,σ1,σ2,ρ)(X, Y) \sim N(\mu_1, \mu_2, \sigma_1, \sigma_2, \rho), then the marginal distributions are also normal: 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) 52.

2.23 Independence of random variables

The concept of independence for random variables is analogous to that for random events. 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.

  • Discrete random variables: XX and YY are independent if and only if P{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. This means pij=pi.p.jp_{ij} = p_{i.} p_{.j}.
  • Continuous random variables: XX and YY are independent if and only if f(x,y)=fX(x)fY(y)f(x, y) = f_X(x)f_Y(y) for all x,yx, y, where f(x,y)f(x, y) is the joint density and fX(x)f_X(x), fY(y)f_Y(y) are the marginal densities.
  • Implication: When XX and YY are independent, their marginal distributions completely determine their joint distribution, simplifying two-dimensional problems to one-dimensional ones 52.

📝 For the sampling problem in Example 3-24, with replacement sampling, XX and YY are independent because P{X=x,Y=y}=P{X=x}P{Y=y}P\{X=x, Y=y\} = P\{X=x\}P\{Y=y\} holds for all values. However, for sampling without replacement, XX and YY are not independent, as shown by P{X=0,Y=0}=3/10×2/9=6/90≠P{X=0}P{Y=0}=3/10×3/10=9/100P\{X=0, Y=0\} = 3/10 \times 2/9 = 6/90 \ne P\{X=0\}P\{Y=0\} = 3/10 \times 3/10 = 9/100 53.

2.24 Covariance and correlation coefficient

Covariance and the correlation coefficient are numerical characteristics used to describe the joint variation and linear relationship between two random variables 53.

2.25 Covariance

The covariance of two random variables XX and YY, denoted Cov(X,Y)\text{Cov}(X, Y) or σXY\sigma_{XY}, measures how XX and YY change together. It 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)dxdy\text{Cov}(X, Y) = \int_{-\infty}^{+\infty} \int_{-\infty}^{+\infty} (x - E(X))(y - E(Y))f(x, y)dxdy.
  • 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. However, 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), the covariance is Cov(X,Y)=ρσ1σ2\text{Cov}(X, Y) = \rho\sigma_1\sigma_2 54.

2.26 Correlation coefficient

The correlation coefficient ρXY\rho_{XY} (or ρ\rho) quantifies the linear relationship between XX and YY. It 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:
  • A larger ∣ρXY∣|\rho_{XY}| indicates a stronger linear relationship between XX and YY.
  • If ρXY=0\rho_{XY} = 0, XX and YY are said to be uncorrelated, meaning there is no linear relationship (though other non-linear relationships might exist) 54.
  • Independence vs. uncorrelation: If XX and YY are independent, they are uncorrelated (ρXY=0\rho_{XY} = 0). However, if they are uncorrelated, they are not necessarily independent.
  • Two-dimensional normal distribution: For a two-dimensional normal distribution, uncorrelation (ρ=0\rho=0) is equivalent to independence 55.

2.27 Limit theorems

Limit theorems in probability theory, such as the Law of Large Numbers and the Central Limit Theorem, explain the statistical regularities of random phenomena observed in large numbers of trials or observations 56.

2.28 Law of large numbers

The Law of Large Numbers describes the stability of average results in a large number of random phenomena. It provides a theoretical basis for the "frequency stability" of random events 57.

  • Chebyshev's inequality: For a random variable XX with existing E(X)E(X) and D(X)D(X), for any positive ε\varepsilon, P{∣X−E(X)∣≥ε}≤D(X)ε2P\{|X - E(X)| \ge \varepsilon\} \le \frac{D(X)}{\varepsilon^2}. This inequality shows that as D(X)D(X) decreases, XX values cluster more closely around E(X)E(X).
  • Equivalent form: P{∣X−E(X)∣<ε}≥1−D(X)ε2P\{|X - E(X)| < \varepsilon\} \ge 1 - \frac{D(X)}{\varepsilon^2}.
  • Application: It allows for estimating probabilities when only the mean and variance of XX are known 56.

📝 For adult males, the mean white blood cell count XX is μ=7300\mu = 7300 with variance σ2=7002\sigma^2 = 700^2. To estimate the probability that XX is between 59005900 and 87008700, we use Chebyshev's inequality: P{5900<X<8700}=P{∣X−7300∣<1400}P\{5900 < X < 8700\} = P\{|X - 7300| < 1400\}. Taking ε=1400\varepsilon = 1400, we get P{∣X−7300∣<1400}≥1−700214002=1−14=0.75P\{|X - 7300| < 1400\} \ge 1 - \frac{700^2}{1400^2} = 1 - \frac{1}{4} = 0.75. Thus, the probability is at least 0.750.75 56 57.

  • Chebyshev's Law of Large Numbers: If X1,X2,…X_1, X_2, \dots 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 ε>0\varepsilon > 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 \varepsilon\right\} = 0. This means the sample mean 1n∑k=1nXk\frac{1}{n}\sum_{k=1}^n X_k converges in probability to μ\mu.
  • Bernoulli's Law of Large Numbers: In nn independent Bernoulli trials, if AA is an event with probability pp of occurring in each trial, and XX is the number of times AA occurs, then for any ε>0\varepsilon > 0, lim⁡n→+∞P{∣Xn−p∣≥ε}=0\lim_{n \to +\infty} P\left\{\left|\frac{X}{n} - p\right| \ge \varepsilon\right\} = 0. This rigorously describes "frequency stability," stating that the frequency of event AA converges in probability to its probability pp as nn increases 57.

2.29 Central limit theorem

The Central Limit Theorem (CLT) provides a theoretical basis for why many random variables in practical problems approximately follow a normal distribution. This typically occurs when a random variable is influenced by many independent, small, and non-dominant random factors 57.

  • Lévy-Lindelberg Central Limit Theorem: If X1,X2,…X_1, X_2, \dots 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}=Φ(x)\lim_{n \to +\infty} P\left\{\frac{\sum_{k=1}^n X_k - n\mu}{\sqrt{n}\sigma} \le x\right\} = \Phi(x), where Φ(x)\Phi(x) is the cumulative distribution function of the standard normal distribution N(0,1)N(0,1) 57.
  • Approximation: For sufficiently large nn, the standardized sum Y=∑Xk−nμnσY = \frac{\sum X_k - n\mu}{\sqrt{n}\sigma} approximately follows a standard normal distribution N(0,1)N(0,1). Consequently, the sum ∑Xk\sum X_k approximately follows a normal distribution N(nμ,nσ2)N(n\mu, n\sigma^2).
  • Generalization: The CLT holds even if the XkX_k are not identically distributed, as long as they are independent and have finite means and variances 58.

2.30 SPSS software application summary

SPSS provides functions for calculating probabilities, cumulative probabilities, and critical values for various statistical distributions 59.

Statistical ContentSPSS Menu Option
Probability, cumulative probability, or critical value calculation for statistical distributionsTransform → Compute Variable (SPSS function calculation)
DistributionCalculation TypeSPSS Function
Binomial DistributionProbability P{X=x}P\{X=x\}PDF.BINOM(x,n,p)
Binomial DistributionCumulative Probability P{X≤x}P\{X \le x\}CDF.BINOM(x,n,p)
Poisson DistributionProbability P{X=x}P\{X=x\}PDF.POISSON(x,λ)
Poisson DistributionCumulative Probability P{X≤x}P\{X \le x\}CDF.POISSON(x,λ)
Normal DistributionCumulative Probability P{X≤x}P\{X \le x\}CDF.NORMAL(x,μ,σ)
Normal DistributionCritical Value (Quantile) xxIDF.NORMAL(1-α,μ,σ)
Exponential DistributionCumulative Probability P{X≤x}P\{X \le x\}CDF.EXP(x,λ)
Exponential DistributionCritical Value (Quantile) xxIDF.EXP(1-α,λ)

3. Chapter 4: Sampling Distributions

Statistical research aims to understand the quantitative characteristics and statistical regularities of a population. When a complete survey of the entire population is available, its characteristic indicators (like mean or variance) can be directly calculated.

However, in many real-world scenarios, it is impractical or impossible to measure every individual in a population, necessitating the use of sampling to infer population characteristics, a process known as statistical inference 65.

3.1 Basic concepts of mathematical statistics

Mathematical statistics defines the entire group of study objects as the population, with each basic unit being an individual. Populations can be finite or infinite, depending on the number of individuals they contain.

Often, a very large finite population is treated as an infinite one. In practice, research often focuses on one or more quantitative indicators of a population, which can be viewed as random variables 65.

  • Population (X): The entire set of individuals or quantitative indicator values under study. It can be represented by a random variable XX with a distribution F(x)F(x).
  • Individual: A single basic unit that makes up the population 65.
  • Parameter: A characteristic indicator of the population, such as the population mean (μ\mu) or variance (σ2\sigma^2) 66.

In probability theory, the distribution and parameters of a population are typically known, and the focus is on the likelihood of various experimental outcomes. In contrast, statistical inference deals with situations where population characteristics are unknown, requiring estimation and inference based on samples 66.

3.2 Population and sample

Sampling involves drawing nn individuals (X1,X2,…,XnX_1, X_2, \dots, X_n) from a population XX. The collection of these individuals forms a sample of size nn.

The number nn is the sample size. A sample is considered large if n≥30n \ge 30 and small otherwise 66.

  • Sample (X1,X2,…,XnX_1, X_2, \dots, X_n): A subset of nn individuals drawn from the population XX. These are considered nn random variables.
  • Sample observation values (x1,x2,…,xnx_1, x_2, \dots, x_n): The specific numerical values obtained from a single sampling event, representing the realizations of the random variables X1,X2,…,XnX_1, X_2, \dots, X_n.
  • Simple random sampling: A method where each individual has an equal chance of being selected, and each selection is independent and identically distributed (i.i.d.) with the same distribution as the population XX.
  • Independence: Each draw does not affect subsequent draws.
  • Identically distributed: Each sampled individual XiX_i has the same distribution as the population XX.
  • Sampling with replacement: For finite populations, this method satisfies the independence requirement.
  • Sampling without replacement: For finite populations, this method does not strictly satisfy independence. However, for infinite populations or very large finite populations (where nn is less than 5% of the population size), it is often considered to approximately satisfy independence and representativeness 66.

3.3 Statistics

A statistic is a function of the sample X1,X2,…,XnX_1, X_2, \dots, X_n that does not contain any unknown parameters of the population. Statistics are used to process sample information for estimating and inferring population characteristics 66.

StatisticFormulaPurpose
Sample meanXˉ=1n∑i=1nXi\bar{X} = \frac{1}{n}\sum_{i=1}^{n}X_iEstimates 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})^2Estimates 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 samples with different means
Sample standard errorSxˉ=SnS_{\bar{x}} = \frac{S}{\sqrt{n}}Measures average error when estimating population mean with sample mean

When referring to a general sampling outcome, statistics like Xˉ\bar{X} and S2S^2 are random variables. When referring to a specific sampling outcome, their values xˉ\bar{x} and s2s^2 are concrete numerical values 67.

📝 If a population X∼N(μ,σ2)X \sim N(\mu, \sigma^2) where μ\mu is known and σ2\sigma^2 is unknown, then min⁡{X1,X2,…,Xn}\min\{X_1, X_2, \dots, X_n\} and ∑i=1n(Xi−μ)2\sum_{i=1}^n (X_i - \mu)^2 are statistics. However, ∑i=1n(Xi−σ2)2\sum_{i=1}^n (X_i - \sigma^2)^2 is not a statistic because it contains the unknown parameter σ2\sigma^2 66.

3.4 Sampling distributions

A sampling distribution is the probability distribution of a statistic, which is itself a random variable. Sampling distributions are fundamental to statistical inference.

The most common sampling distributions are the normal distribution, chi-square (χ2\chi^2) distribution, t-distribution, and F-distribution 68.

3.5 Distribution of the sample mean

If X1,X2,…,XnX_1, X_2, \dots, X_n is a random sample from a population XX, these are nn independent and identically distributed random variables. The normal distribution is a common distribution, so its properties are often considered first 68.

  • Theorem 4-1: If the population X∼N(μ,σ2)X \sim N(\mu, \sigma^2), then the sample mean Xˉ=1n∑i=1nXi\bar{X} = \frac{1}{n}\sum_{i=1}^n X_i also follows a normal distribution: Xˉ∼N(μ,σ2n)\bar{X} \sim 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 sample mean: U=Xˉ−μσ/n∼N(0,1)U = \frac{\bar{X}-\mu}{\sigma/\sqrt{n}} \sim N(0,1) 68.

  • Standard error (σXˉ\sigma_{\bar{X}}): The standard deviation of the sample mean, σXˉ=σn\sigma_{\bar{X}} = \frac{\sigma}{\sqrt{n}} 69.

  • Theorem 4-2 (Central Limit Theorem application): If the population XX has a finite mean μ\mu and variance σ2\sigma^2, then for a sufficiently large sample size nn, the sample mean Xˉ\bar{X} is approximately normally distributed, regardless of the population's original distribution: Xˉ∼N(μ,σ2n)\bar{X} \sim N(\mu, \frac{\sigma^2}{n}).

  • This theorem implies that using Xˉ\bar{X} to estimate μ\mu is unbiased on average, and accuracy increases with larger nn.

  • For practical calculations, this theorem is applied when n≥30n \ge 30 if the population distribution is unknown 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: 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}). 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.6 Chi-square (χ2\chi^2) distribution

The chi-square distribution is defined based on independent standard normal random variables 69.

  • Definition 4-4: If X1,X2,…,XnX_1, X_2, \dots, X_n are independent random variables, each following a standard normal distribution N(0,1)N(0,1), then the sum of their squares, χ2=X12+X22+⋯+Xn2\chi^2 = X_1^2 + X_2^2 + \dots + X_n^2, follows a chi-square distribution with nn degrees of freedom (df), denoted χ2∼χ2(n)\chi^2 \sim \chi^2(n).

  • Degrees of freedom (df): Represents the number of independent variables in a statistic, calculated as n−rn-r, where nn is the number of variables and rr is the number of constraints among them.

  • Probability density function: f(x)={12n/2Γ(n2)xn2−1e−x2,x≥00,x<0f(x)=\begin{cases} \frac{1}{2^{n/2}\Gamma(\frac{n}{2})}x^{\frac{n}{2}-1}e^{-\frac{x}{2}}, & x\ge 0 \\ 0, & x<0 \end{cases} 69.

  • Properties of χ2(n)\chi^2(n) distribution:

  • It is an asymmetric, skewed distribution, taking only non-negative values.

  • As nn increases, it becomes more symmetrical and 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 70.

  • Theorem 4-3: If X1,X2,…,XnX_1, X_2, \dots, X_n is a sample 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 70.

  • Critical values: The upper α\alpha critical value χα2(n)\chi_\alpha^2(n) satisfies P{χ2>χα2(n)}=αP\{\chi^2 > \chi_\alpha^2(n)\} = \alpha.

  • For large nn (e.g., n>45n > 45), 2χ2≈N(2n−1,1)\sqrt{2\chi^2} \approx N(\sqrt{2n-1}, 1) 70.

  • An approximation for χα2(n)\chi_\alpha^2(n) when n>45n > 45 is 12(uα+2n−1)2\frac{1}{2}(u_\alpha + \sqrt{2n-1})^2, where uαu_\alpha is the upper α\alpha critical value of the standard normal distribution 71.

📝 For χ2(10)\chi^2(10), the upper 0.05 critical value is χ0.052(10)=18.307\chi_{0.05}^2(10) = 18.307, meaning P{χ2(10)>18.307}=0.05P\{\chi^2(10) > 18.307\} = 0.05 70.

3.7 t-distribution

The t-distribution is used when the population variance is unknown and estimated from the sample 71.

  • Definition 4-5: If X∼N(0,1)X \sim N(0,1) and Y∼χ2(n)Y \sim \chi^2(n) are independent random variables, 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).

  • Probability density function: f(x)=Γ((n+1)/2)nπΓ(n/2)(1+x2n)−(n+1)/2f(x) = \frac{\Gamma((n+1)/2)}{\sqrt{n\pi}\Gamma(n/2)} (1+\frac{x^2}{n})^{-(n+1)/2}, for −∞<x<+∞-\infty < x < +\infty.

  • Properties of t-distribution:

  • It is symmetrical around the y-axis.

  • 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 is a sample from a normal population X∼N(μ,σ2)X \sim N(\mu, \sigma^2), with sample mean Xˉ\bar{X} and sample variance S2S^2, then T=Xˉ−μS/n∼t(n−1)T = \frac{\bar{X}-\mu}{S/\sqrt{n}} \sim t(n-1).

  • S/nS/\sqrt{n} is the sample standard error, denoted SxˉS_{\bar{x}} 72.

  • Theorem 4-5 (Difference of two means): If X1,…,Xn1X_1, \dots, X_{n_1} and Y1,…,Yn2Y_1, \dots, Y_{n_2} are independent samples from two 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, then 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} 72.

  • 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 critical value tα/2(n)t_{\alpha/2}(n), P{∣T∣>tα/2(n)}=αP\{|T| > t_{\alpha/2}(n)\} = \alpha.

  • For n>45n > 45, tα(n)t_\alpha(n) can be approximated by the standard normal critical value uαu_\alpha 72.

📝 For t(10)t(10), the upper 0.025 critical value is t0.025(10)=2.228t_{0.025}(10) = 2.228 72.

3.8 F-distribution

The F-distribution is used to compare variances of two normal populations 73.

  • Definition 4-6: If X1∼χ2(n1)X_1 \sim \chi^2(n_1) and X2∼χ2(n2)X_2 \sim \chi^2(n_2) are independent random variables, 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).

  • Probability density function: f(x)=Γ((n1+n2)/2)Γ(n1/2)Γ(n2/2)(n1n2)n1/2xn1/2−1(1+n1n2x)−(n1+n2)/2f(x) = \frac{\Gamma((n_1+n_2)/2)}{\Gamma(n_1/2)\Gamma(n_2/2)} (\frac{n_1}{n_2})^{n_1/2} x^{n_1/2-1} (1+\frac{n_1}{n_2}x)^{-(n_1+n_2)/2}, for x>0x>0.

  • Properties of F-distribution:

  • It is a non-symmetrical, 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), with sample variances Sx2S_x^2 and Sy2S_y^2, then F=Sx2/σ12Sy2/σ22∼F(n1−1,n2−1)F = \frac{S_x^2/\sigma_1^2}{S_y^2/\sigma_2^2} \sim F(n_1-1, n_2-1) 74.

  • Theorem 4-7 (Reciprocal property): 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 is used to find 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)} 74.

  • 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.

📝 For F(10,5)F(10,5), the upper 0.05 critical value is F0.05(10,5)=4.74F_{0.05}(10,5) = 4.74. Using the reciprocal property, the lower 0.05 critical value is F0.95(10,5)=1F0.05(5,10)=13.33≈0.30F_{0.95}(10,5) = \frac{1}{F_{0.05}(5,10)} = \frac{1}{3.33} \approx 0.30 74.

3.9 SPSS software application

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

DistributionProbability Value (P{X ≤ x})Critical Value (X_α(n))
χ2\chi^2 distributionCDF.CHISQ(x, n)IDF.CHISQ(1-α, n)
t-distributionCDF.T(x, n)IDF.T(1-α, n)
F-distributionCDF.F(x, n₁, n₂)IDF.F(1-α, n₁, n₂)
  • CDF functions: Calculate the cumulative probability P{X≤x}P\{X \le x\}.
  • IDF functions: Calculate the quantile (critical value) Xα(n)X_\alpha(n) corresponding to a given cumulative probability 1−α1-\alpha 75.

4. Chapter 5: Parameter Estimation

Parameter estimation is a fundamental statistical inference method used to estimate unknown parameters of a population distribution based on a set of sample observations. It typically involves two types: point estimation and interval estimation 77.

4.1 Point estimation

Point estimation uses the observed value of a suitable statistic as a single estimate for an unknown parameter. The statistic used to estimate a population parameter is called an estimator.

An estimator is a random variable, and its estimated value varies with different samples 77.

4.2 Moment estimation method

The moment estimation method, proposed by K. Pearson in 1894, is one of the oldest and most widely used parameter estimation techniques. It relies on the principle that sample moments converge in probability to their corresponding population moments 77 78.

  • Principle: Sample moments are used as estimators for corresponding population moments, and continuous functions of sample moments are used for continuous functions of population moments.
  • Application: For a population XX with unknown parameters θ1,θ2,…,θr\theta_1, \theta_2, \dots, \theta_r, if the first rr raw moments E(Xk)E(X^k) exist, the method equates sample moments to population moments to solve for the parameters.
  • Common estimators:
  • The sample mean Xˉ\bar{X} is the moment estimator for the population mean μ\mu.
  • The sample variance S2S^2 is the moment estimator for the population variance σ2\sigma^2.
  • The sample standard deviation SS is the moment estimator for the population standard deviation σ\sigma 78.
  • Advantages: It is intuitive, simple, and broadly applicable, especially for estimating population means and variances without needing to know the exact population distribution.
  • Disadvantages:
  • May not be as effective as specialized estimators for certain distributions.
  • Moment estimators may not be unique.
  • Generally less precise than maximum likelihood estimation for large sample sizes.
  • Not suitable for populations where raw moments do not exist 79.

📝 For 10 mice with weights (g): 20, 21, 20, 20, 22, 19, 18, 20, 21, 22, the sample mean xˉ=20.3\bar{x} = 20.3 g and sample variance S2=1.57S^2 = 1.57 are the moment estimates for the population mean μ\mu and variance σ2\sigma^2, respectively 78.

4.3 Maximum likelihood estimation method

The maximum likelihood estimation (MLE) method fully utilizes known information about the population distribution type to obtain more accurate estimators. Its basic idea is to select population parameters that maximize the probability of observing the given sample values 79.

  • Likelihood function L(θ)L(\theta): For a random variable XX with known probability function P(x,θ)P(x, \theta) or density function f(x,θ)f(x, \theta) and sample observations x1,x2,…,xnx_1, x_2, \dots, x_n, the likelihood function is defined as:
  • For discrete distributions: L(θ)=∏i=1nP(xi,θ)L(\theta) = \prod_{i=1}^n P(x_i, \theta)
  • For continuous distributions: L(θ)=∏i=1nf(xi,θ)L(\theta) = \prod_{i=1}^n f(x_i, \theta) 79.
  • Maximum likelihood estimate θ^\hat{\theta}: The value of θ\theta that maximizes L(θ)L(\theta) is the maximum likelihood estimate.
  • Likelihood equation: If L(θ)L(\theta) is differentiable, θ^\hat{\theta} can be found by solving dL(θ)dθ=0\frac{dL(\theta)}{d\theta} = 0 or, more commonly, dln⁡L(θ)dθ=0\frac{d \ln L(\theta)}{d\theta} = 0.
  • Advantages: Widely applicable due to its full utilization of population distribution type and sample information.
  • Disadvantages:
  • Sometimes, the MLE cannot be derived from the likelihood equation.
  • Likelihood equations can be difficult to solve.
  • The solution to the likelihood equation may not always correspond to a maximum 80.

📝 For an exponential distribution with density function f(x;λ)=λe−λxf(x; \lambda) = \lambda e^{-\lambda x} for x≥0x \ge 0, the maximum likelihood estimator for λ\lambda is λ^=n∑xi=1Xˉ\hat{\lambda} = \frac{n}{\sum x_i} = \frac{1}{\bar{X}} 80.

4.4 Criteria for evaluating estimators

Different estimation methods can yield different estimators for the same population parameter, necessitating criteria to evaluate their quality. A good estimator should possess unbiasedness, efficiency, and consistency 80.

CriterionDescription
UnbiasednessThe expected value of the estimator equals the true value of the unknown parameter: E(θ^)=θE(\hat{\theta}) = \theta.
EfficiencyAmong unbiased estimators, the one with the smallest variance D(θ^)D(\hat{\theta}) is considered more efficient, indicating its values are more concentrated around the true parameter 81.
ConsistencyAs the sample size nn approaches infinity, the estimator θ^\hat{\theta} converges in probability to the true parameter θ\theta, meaning P{∣θ^−θ∣<ϵ}→1P\{\vert \hat{\theta} - \theta\vert < \epsilon\} \to 1 for any ϵ>0\epsilon > 0 82.

📝 The sample mean Xˉ\bar{X} is an unbiased estimator for the population mean μ\mu because 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 because E(S2)=σ2E(S^2) = \sigma^2 81.

4.5 Interval estimation

Interval estimation provides a range, or interval, within which the unknown parameter is likely to lie, along with a measure of confidence in that range. This addresses the limitations of point estimates, which do not account for sampling error 82.

  • Confidence interval: For an unknown parameter θ\theta, a (1−α)%(1-\alpha)\% confidence interval is defined by two statistics θ^1\hat{\theta}_1 and θ^2\hat{\theta}_2 such that P{θ^1<θ<θ^2}=1−αP\{\hat{\theta}_1 < \theta < \hat{\theta}_2\} = 1-\alpha.
  • Components:
  • θ^1\hat{\theta}_1: Confidence lower limit.
  • θ^2\hat{\theta}_2: Confidence upper limit.
  • (1−α)(1-\alpha) or 100(1−α)%100(1-\alpha)\%: Confidence level.
  • Interpretation: A 95%95\% confidence interval means that if the estimation process were repeated 100 times, approximately 95 of the resulting intervals would contain the true parameter θ\theta.
  • Trade-off: A smaller α\alpha (higher confidence level) leads to a wider interval, which may reduce its practical significance. Conversely, a smaller interval length (higher precision) reduces the confidence level 82 83.

4.6 Interval estimation for the mean of a normal population

When dealing with a normal population N(μ,σ2)N(\mu, \sigma^2), the interval estimate for the population mean μ\mu depends on whether the population variance σ2\sigma^2 is known 83.

ConditionFormula for (1−α)(1-\alpha) Confidence Interval for μ\mu
σ2\sigma^2 known(Xˉ−uα/2σn,Xˉ+uα/2σn)(\bar{X} - u_{\alpha/2} \frac{\sigma}{\sqrt{n}}, \bar{X} + u_{\alpha/2} \frac{\sigma}{\sqrt{n}}) or Xˉ±uα/2σn\bar{X} \pm u_{\alpha/2} \frac{\sigma}{\sqrt{n}} 83.
σ2\sigma^2 unknown(Xˉ−tα/2(n−1)Sn,Xˉ+tα/2(n−1)Sn)(\bar{X} - t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}, \bar{X} + t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}}) or Xˉ±tα/2(n−1)Sn\bar{X} \pm t_{\alpha/2}(n-1) \frac{S}{\sqrt{n}} 84.
Large sample (non-normal or σ2\sigma^2 unknown)Xˉ±uα/2Sn\bar{X} \pm u_{\alpha/2} \frac{S}{\sqrt{n}} (approximate) 86.
  • Critical values:
  • For σ2\sigma^2 known, uα/2u_{\alpha/2} is obtained from the standard normal distribution. Common values are u0.05/2=1.96u_{0.05/2} = 1.96 for 95%95\% confidence and u0.01/2=2.58u_{0.01/2} = 2.58 for 99%99\% confidence 83.
  • For σ2\sigma^2 unknown, tα/2(n−1)t_{\alpha/2}(n-1) is obtained from the t-distribution with n−1n-1 degrees of freedom 84.

📝 For a normal population N(μ,0.12)N(\mu, 0.1^2) with a sample mean of 5.585.58 from a sample of size n=4n=4, the 99%99\% confidence interval for μ\mu 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.7 Interval estimation for the variance of a normal population

For a normal population N(μ,σ2)N(\mu, \sigma^2) where both μ\mu and σ2\sigma^2 are unknown, the confidence interval for the population variance σ2\sigma^2 is based on the chi-squared distribution 86.

  • Formula: 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) where S2S^2 is the sample variance, nn is the sample size, and χα/22(n−1)\chi^2_{\alpha/2}(n-1) and χ1−α/22(n−1)\chi^2_{1-\alpha/2}(n-1) are critical values from the chi-squared distribution with n−1n-1 degrees of freedom87.
  • Chi-squared distribution: 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. Due to the asymmetry of the chi-squared distribution, two critical values are needed 86.

📝 For 10 aspirin tablets with a sample variance S2=0.956S^2 = 0.956, the 90%90\% confidence interval for the population variance σ2\sigma^2 is calculated using n=10n=10, α=0.1\alpha=0.1, and df=9df=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.8 Interval estimation for binomial and Poisson distribution parameters

For binomial and Poisson distributions, interval estimation often relies on large sample normal approximations or exact methods for small samples 87 90.

4.9 Interval estimation for binomial population proportion PP

The population proportion PP represents the proportion of individuals with a certain characteristic in a population. The sample proportion p=m/np = m/n is used to estimate PP, where mm is the number of individuals with the characteristic in a sample of size nn 87.

  • Large sample normal approximation: When nn is sufficiently large and pp and 1−p1-p are not close to 0 or 1, the sample proportion pp approximately follows a normal distribution N(P,P(1−P)n)N(P, \frac{P(1-P)}{n}).
  • Confidence interval formula: The (1−α)(1-\alpha) confidence interval for PP is: (p−uα/2p(1−p)n,p+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) or p±uα/2p(1−p)np \pm u_{\alpha/2} \sqrt{\frac{p(1-p)}{n}}.
  • Sample size determination: To ensure the confidence interval width does not exceed a given δ\delta, the required sample size nn can be estimated by n≥uα/22p(1−p)(δ/2)2n \ge \frac{u_{\alpha/2}^2 p(1-p)}{(\delta/2)^2}. If pp is unknown, p=0.5p=0.5 can be used for a conservative estimate 88 89.

📝 For 100 mice, 80 died after receiving an organophosphorus pesticide. The sample mortality rate p=0.80p = 0.80. For a 95%95\% confidence interval, 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, which is (0.722,0.878)(0.722, 0.878) or (72.2%,87.8%)(72.2\%, 87.8\%) 88.

4.10 Interval estimation for 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 89.

  • Large sample normal approximation: For a large sample size nn, the sample mean Xˉ\bar{X} approximately follows a normal distribution N(λ,λ/n)N(\lambda, \lambda/n).
  • Confidence interval for λ\lambda: The (1−α)(1-\alpha) confidence interval for λ\lambda is: (Xˉn−uα/2Xˉn,Xˉn+uα/2Xˉn)\left( \frac{\bar{X}}{n} - u_{\alpha/2} \sqrt{\frac{\bar{X}}{n}}, \frac{\bar{X}}{n} + u_{\alpha/2} \sqrt{\frac{\bar{X}}{n}} \right) where Xˉ\bar{X} is the sum of sample observations ∑Xi\sum X_i.
  • Confidence interval for nλn\lambda (total count): The (1−α)(1-\alpha) confidence interval for the total count nλn\lambda is: (Xˉ−uα/2Xˉ,Xˉ+uα/2Xˉ)( \bar{X} - u_{\alpha/2} \sqrt{\bar{X}}, \bar{X} + u_{\alpha/2} \sqrt{\bar{X}} ) 89.

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

4.11 Small sample exact estimation method

When sample sizes are not large enough for normal approximations, exact methods are used, often involving pre-calculated tables 90.

  • Binomial distribution: For small nn, the confidence interval for population proportion PP can be found by consulting specific tables for binomial distribution parameters.
  • Poisson distribution: Similarly, for small samples, the confidence interval for Poisson parameter λ\lambda can be obtained from tables based on the total sample count XX and the confidence level 90.

📝 If 4 out of 10 animals died after drug injection, for a 99%99\% confidence interval for the overall mortality rate, one would consult a table (e.g., Appendix Table 8) for n=10,m=4,α=0.01n=10, m=4, \alpha=0.01. This yields a confidence interval of (0.077,0.809)(0.077, 0.809) or (7.7%,80.9%)(7.7\%, 80.9\%) 90.

5. Chapter 6: Hypothesis Testing for Parameters

5.1 Introduction to hypothesis testing

Hypothesis testing, also known as significance testing, involves making an assumption about a population parameter or distribution, then using statistical methods to calculate statistics from a sample to infer whether the assumption should be accepted or rejected. It is a crucial aspect of statistical inference 94.

  • Types of hypothesis tests:
  • Parameter test: Used when the population distribution type is known, and the test concerns unknown population parameters like mean, variance, or population proportion. This chapter focuses on parameter tests.
  • Non-parameter test: Used when the population distribution type is unknown, covering tests for population distribution forms or the independence of random variables 94.

5.2 Hypothesis testing problems

Hypothesis testing addresses questions about whether a population parameter equals a specific value or meets a certain condition 94 95.

  • Null hypothesis (H0H_0): The assumption being tested, often stating no effect or no difference.
  • Alternative hypothesis (H1H_1): The hypothesis that contradicts the null hypothesis 95.

📝 For a packaging machine designed to fill 500g per bag, if a sample average is 504.5g, the question is whether the machine's average weight is still 500g. This translates to H0:μ=500H_0: \mu = 500 and H1:μ≠500H_1: \mu \neq 500 94 95.

5.3 Basic principles of hypothesis testing

The fundamental idea of hypothesis testing is based on the small probability principle, which states that a small probability event is highly unlikely to occur in a single trial 95.

  • Methodology:
  • Assume the null hypothesis (H0H_0) is true.
  • Use sampling theory and sample information to make an inference.
  • If a contradiction arises (a small probability event occurs), reject H0H_0.
  • Otherwise, do not reject H0H_0.
  • Test statistic: A value calculated from sample data to evaluate the null hypothesis. For a normal population mean μ\mu with known variance σ2\sigma^2, the test statistic is U=Xˉ−μ0σ/n∼N(0,1)U = \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}} \sim N(0,1).
  • Significance level (α\alpha): A pre-determined probability (e.g., 0.05) that defines the threshold for rejecting H0H_0. It represents the probability of committing a Type I error96.
  • Rejection region: The range of values for the test statistic that leads to rejecting the null hypothesis. If the calculated test statistic falls within this region, H0H_0 is rejected 95.

5.4 General steps of hypothesis testing

Hypothesis testing follows a structured approach to make statistical inferences 96.

  • Steps:
  1. Formulate hypotheses: Establish the null hypothesis (H0H_0) and the alternative hypothesis (H1H_1).
  2. Determine test statistic: Identify the appropriate test statistic and its distribution. Calculate its value from the sample data, and optionally, compute the corresponding P-value.
  3. Find critical value and rejection region: Based on the significance level α\alpha, find the critical value from statistical tables and define the rejection region.
  4. Make a 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.

5.5 Two types of errors in hypothesis testing

Due to the randomness of sampling, hypothesis testing can lead to two types of errors 96.

Actual SituationAccept H0H_0Reject H0H_0
H0H_0 is TrueCorrectType I Error (False Positive)
H0H_0 is FalseType II Error (False Negative)Correct
  • Type I error: Rejecting the null hypothesis when it is actually true. The probability of this error is denoted by α\alpha, the significance level (P{reject H0∣H0 is true}=αP\{\text{reject } H_0 | H_0 \text{ is true}\} = \alpha).
  • Type II error: Failing to reject the null hypothesis when it is actually false. The probability of this error is denoted by β\beta (P{accept H0∣H0 is false}=βP\{\text{accept } H_0 | H_0 \text{ is false}\} = \beta).
  • Relationship between errors: α\alpha and β\beta are inversely related; decreasing one typically increases the other. The ideal scenario is to reduce both, which usually requires increasing the sample size.
  • Controlling errors: The choice of which error to control more strictly depends on the consequences. For example, in drug quality control, α\alpha might be kept very small for appearance indicators, while β\beta is minimized for quality indicators to prevent harm 96.

5.6 Parameter tests for single normal population mean with known variance

When testing the mean of a single normal population with a known variance, the u-test (or z-test) is used 97.

  • Two-sided test (H1:μ≠μ0H_1: \mu \neq \mu_0):
  1. Hypotheses: H0:μ=μ0H_0: \mu = \mu_0; H1:μ≠μ0H_1: \mu \neq \mu_0.
  2. Test statistic: U=Xˉ−μ0σ/n∼N(0,1)U = \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}} \sim N(0,1).
  3. Critical value: For a given α\alpha, find uα/2u_{\alpha/2} such that P{∣U∣>uα/2}=αP\{|U| > u_{\alpha/2}\} = \alpha.
  4. Decision: Reject H0H_0 if ∣u∣>uα/2|u| > u_{\alpha/2} (or P-value < α\alpha), indicating a significant difference. Otherwise, accept H0H_0 97.

📝 A drug ointment normally contains 4.45% glycyrrhizic acid with σ=0.108\sigma = 0.108. A sample of 5 ointments has an average of 4.33%. To test if the mean content has significantly changed (α=0.05\alpha = 0.05), the calculated u=−2.485u = -2.485. Since ∣−2.485∣>u0.025=1.96|-2.485| > u_{0.025} = 1.96, H0H_0 is rejected, indicating a significant change 97 98.

  • P-value method: An alternative to the critical value method.

  • P-value: The probability of observing a sample as extreme as, or more extreme than, the current sample, assuming H0H_0 is true.

  • Decision: Reject H0H_0 if P-value < α\alpha. Otherwise, accept H0H_0.

  • Application: For the example above, the P-value is approximately 0.013. Since 0.013<0.050.013 < 0.05, H0H_0 is rejected 98.

  • One-sided test (H1:μ>μ0H_1: \mu > \mu_0 or H1:μ<μ0H_1: \mu < \mu_0): Used when inferring if the population mean is greater than or less than a known number.

  1. Hypotheses: H0:μ=μ0H_0: \mu = \mu_0; H1:μ>μ0H_1: \mu > \mu_0 (or H1:μ<μ0H_1: \mu < \mu_0).
  2. Critical value: For a given α\alpha, find uαu_{\alpha} such that P{U>uα}=αP\{U > u_{\alpha}\} = \alpha (or P{U<−uα}=αP\{U < -u_{\alpha}\} = \alpha).
  3. Decision: Reject H0H_0 if u>uαu > u_{\alpha} (or u<−uαu < -u_{\alpha}), or if P-value < α\alpha 98 99.
Test TypeHypothesesTest StatisticCritical ValueRejection Region
Two-sidedH0:μ=μ0H_0: \mu = \mu_0; H1:μ≠μ0H_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-sidedH0:μ=μ0H_0: \mu = \mu_0; H1:μ>μ0H_1: \mu > \mu_0 (or H1:μ<μ0H_1: \mu < \mu_0)U=Xˉ−μ0σ/nU = \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}}uαu_{\alpha}u>uαu > u_{\alpha} (or u<−uαu < -u_{\alpha})
  • Common critical values:
  • For α=0.05\alpha = 0.05: uα/2=1.96u_{\alpha/2} = 1.96, uα=1.64u_{\alpha} = 1.64.
  • For α=0.01\alpha = 0.01: uα/2=2.58u_{\alpha/2} = 2.58, uα=2.33u_{\alpha} = 2.33 99.

5.7 Single sample normal population mean test with unknown variance

When the population variance σ2\sigma^2 is unknown, the t-test is used to test the population mean 99.

  • Test statistic: Since σ\sigma is unknown, the sample standard deviation SS is used as an unbiased estimator. 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 t(n−1)t(n-1) is the t-distribution with n−1n-1 degrees of freedom 99.
  1. Test statistic: T=Xˉ−μ0S/n∼t(n−1)T = \frac{\bar{X} - \mu_0}{S/\sqrt{n}} \sim t(n-1).
  2. Critical value: For a given α\alpha, find tα/2(n−1)t_{\alpha/2}(n-1) from the t-distribution table such that P{∣T∣>tα/2(n−1)}=αP\{|T| > t_{\alpha/2}(n-1)\} = \alpha.
  3. Decision: Reject H0H_0 if ∣t∣>tα/2(n−1)|t| > t_{\alpha/2}(n-1) (or P-value < α\alpha), indicating a significant difference. Otherwise, accept H0H_0 100.

📝 Reconsidering the glycyrrhizic acid example, if the variance is unknown, and n=5n=5, μ0=4.45\mu_0=4.45, xˉ=4.33\bar{x}=4.33, and S=0.103S=0.103. The calculated t=−2.605t = -2.605. For α=0.05\alpha=0.05 and n−1=4n-1=4 degrees of freedom, t0.025(4)=2.776t_{0.025}(4) = 2.776. Since ∣−2.605∣<2.776|-2.605| < 2.776, H0H_0 is accepted, meaning there is no significant difference in the mean glycyrrhizic acid content from 4.45% 100.

5.8 Single-sample t-test for normal population mean with unknown variance

The t-test is used for small samples when the population variance is unknown but the population is normally distributed. As the sample size nn increases, the t-distribution approaches the standard normal distribution N(0,1)N(0,1), allowing for an approximate u-test for large samples (n>30n > 30) 101.

HypothesisStatisticCritical ValueRejection Region
Two-sided: H0:μ=μ0H_0: \mu = \mu_0, H1:μ≠μ0H_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: H1:μ>μ0H_1: \mu > \mu_0 (or H1:μ<μ0H_1: \mu < \mu_0)T=Xˉ−μ0S/nT = \frac{\bar{X} - \mu_0}{S/\sqrt{n}}tαt_{\alpha} (or −tα-t_{\alpha})t>tαt > t_{\alpha} (or t<−tαt < -t_{\alpha})

📝 To test if the average pulse rate of patients with chronic tetraethyl lead poisoning is lower than the normal average of 72 beats/min (α=0.05\alpha=0.05), with a sample of 20 patients having a mean of 63.50 and standard deviation of 5.60. The null hypothesis is H0:μ=72H_0: \mu = 72, and the alternative is H1:μ<72H_1: \mu < 72. The test statistic is t=63.50−725.60/20=−6.788t = \frac{63.50 - 72}{5.60/\sqrt{20}} = -6.788. For α=0.05\alpha=0.05 and df=19df=19, the critical value is t0.05(19)=1.729t_{0.05}(19) = 1.729. Since t=−6.788<−1.729t = -6.788 < -1.729, H0H_0 is rejected, concluding that the pulse rate is significantly lower 101.

5.9 Single-sample normal population variance test

This test, also known as the chi-square test (χ2\chi^2 test), is used to determine if the population variance σ2\sigma^2 is equal to a known value σ02\sigma_0^2. The test statistic follows a chi-square distribution with n−1n-1 degrees of freedom.

  • Hypothesis setup: The null hypothesis is H0:σ2=σ02H_0: \sigma^2 = \sigma_0^2.
  • Test statistic: When H0H_0 is true, the 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).
  • Critical values: For a given significance level α\alpha, critical values χ1−α/22(n−1)\chi^2_{1-\alpha/2}(n-1) and χα/22(n−1)\chi^2_{\alpha/2}(n-1) are found from the χ2\chi^2 distribution table.
  • Statistical judgment: Reject H0H_0 if χ2<χ1−α/22\chi^2 < \chi^2_{1-\alpha/2} or χ2>χα/22\chi^2 > \chi^2_{\alpha/2} for a two-sided test 102.
HypothesisStatisticCritical ValueRejection Region
Two-sided: H0:σ2=σ02H_0: \sigma^2 = \sigma_0^2, H1:σ2≠σ02H_1: \sigma^2 \neq \sigma_0^2χ2=(n−1)S2σ02\chi^2 = \frac{(n-1)S^2}{\sigma_0^2}χα/22\chi^2_{\alpha/2}, χ1−α/22\chi^2_{1-\alpha/2}χ2<χ1−α/22\chi^2 < \chi^2_{1-\alpha/2} or χ2>χα/22\chi^2 > \chi^2_{\alpha/2}
One-sided: H1:σ2>σ02H_1: \sigma^2 > \sigma_0^2 (or H1:σ2<σ02H_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} (or χ1−α2\chi^2_{1-\alpha})χ2>χα2\chi^2 > \chi^2_{\alpha} (or χ2<χ1−α2\chi^2 < \chi^2_{1-\alpha})

📝 To test if the weight variation of Ribavirin tablets produced on a certain day differs significantly from the usual variance of 0.25 (α=0.01\alpha=0.01). A sample of 20 tablets has a variance of 0.43. The null hypothesis is H0:σ2=0.25H_0: \sigma^2 = 0.25, and the alternative is H1:σ2≠0.25H_1: \sigma^2 \neq 0.25. The test statistic is χ2=(20−1)×0.430.25=32.68\chi^2 = \frac{(20-1) \times 0.43}{0.25} = 32.68. For α=0.01\alpha=0.01 and df=19df=19, the critical values are χ0.9952(19)=6.844\chi^2_{0.995}(19) = 6.844 and χ0.0052(19)=38.582\chi^2_{0.005}(19) = 38.582. Since 6.844<32.68<38.5826.844 < 32.68 < 38.582, H0H_0 is accepted, indicating no significant difference in weight variation 103.

5.10 Two independent samples mean comparison test

This section focuses on comparing the means of two independent samples, typically from normal populations. This is common in medical research for comparing treatments or processes.

  • Two-group design: Involves randomly dividing subjects into two independent groups (e.g., control and experimental) to observe changes in an indicator, assuming both populations are normally distributed 103.

5.11 Homogeneity test for variance

The homogeneity test for variance (F-test) determines if two or more population variances are equal. For two normal populations, X∼N(μ1,σ12)X \sim N(\mu_1, \sigma_1^2) and Y∼N(μ2,σ22)Y \sim N(\mu_2, \sigma_2^2), the null hypothesis is H0:σ12=σ22H_0: \sigma_1^2 = \sigma_2^2.

  • Test statistic: When H0H_0 is true, the 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 sample variances. For practical calculation, the larger sample variance is always placed in the numerator to ensure F>1F > 1.
  • Critical values: For a given α\alpha, critical values F1−α/2(n1−1,n2−1)F_{1-\alpha/2}(n_1-1, n_2-1) and Fα/2(n1−1,n2−1)F_{\alpha/2}(n_1-1, n_2-1) are obtained from the F-distribution table.
  • Statistical judgment: Reject H0H_0 if F>Fα/2F > F_{\alpha/2} (when the larger variance is in the numerator), indicating a significant difference in variances 104.
HypothesisStatisticCritical ValueRejection Region
Two-sided: H0:σ12=σ22H_0: \sigma_1^2 = \sigma_2^2, H1:σ12≠σ22H_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: H1:σ12>σ22H_1: \sigma_1^2 > \sigma_2^2F=S12S22F = \frac{S_1^2}{S_2^2}FαF_{\alpha}F>FαF > F_{\alpha}

📝 To test if the variance of perfusion rates in a control group differs significantly from a drug group (α=0.05\alpha=0.05). Both groups have n=12n=12. The control group has S12=96.33S_1^2 = 96.33, and the drug group has S22=48.33S_2^2 = 48.33. The test statistic is F=96.3348.33=1.993F = \frac{96.33}{48.33} = 1.993. For α=0.05\alpha=0.05 and df1=11,df2=11df_1=11, df_2=11, the critical value F0.025(11,11)≈3.45F_{0.025}(11,11) \approx 3.45. Since F=1.993<3.45F = 1.993 < 3.45, H0H_0 is accepted, indicating no significant difference in variances 105.

5.12 Levene's test for multiple populations

For testing the homogeneity of variances across multiple populations, especially when data may not be normally distributed, Levene's test is commonly used with statistical software.

  • Hypothesis: H0:σ12=σ22=⋯=σK2H_0: \sigma_1^2 = \sigma_2^2 = \dots = \sigma_K^2 (all population variances are equal); H1H_1: not all population variances are equal.
  • Test statistic: F=(N−K)∑ni(Zˉi−Zˉ)2(K−1)∑∑(Zij−Zˉi)2∼F(K−1,N−K)F = \frac{(N-K) \sum n_i (\bar{Z}_i - \bar{Z})^2}{(K-1) \sum \sum (Z_{ij} - \bar{Z}_i)^2} \sim F(K-1, N-K), where Zij=∣Xij−X∗∣Z_{ij} = |X_{ij} - X^\ast| and X∗X^\ast can be the sample mean, median, or trimmed mean 105.
  • Decision: If the P-value from the software is less than α\alpha, reject H0H_0, concluding that the variances are not homogeneous 106.

5.13 Two independent samples mean comparison with known variances

When comparing the means of two independent normal populations, H0:μ1=μ2H_0: \mu_1 = \mu_2 (or H0:μ1−μ2=0H_0: \mu_1 - \mu_2 = 0), and the population variances σ12\sigma_1^2 and σ22\sigma_2^2 are known, a u-test is used.

  • Test statistic: U=Xˉ−Yˉ−(μ1−μ2)σ12n1+σ22n2∼N(0,1)U = \frac{\bar{X} - \bar{Y} - (\mu_1 - \mu_2)}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}} \sim N(0,1).
  • Under H0H_0: The statistic simplifies to 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).

📝 To test if two machines produce drugs with significantly different weights (α=0.01\alpha=0.01). Machine A: n1=35n_1=35, Xˉ=137g\bar{X}=137g, σ12=70\sigma_1^2=70. Machine B: n2=45n_2=45, Yˉ=130g\bar{Y}=130g, σ22=90\sigma_2^2=90. The null hypothesis is H0:μ1=μ2H_0: \mu_1 = \mu_2. The test statistic is 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. For α=0.01\alpha=0.01, uα/2=u0.005=2.58u_{\alpha/2} = u_{0.005} = 2.58. Since ∣u∣=3.5>2.58|u|=3.5 > 2.58, H0H_0 is rejected, indicating a significant difference in drug weights 106.

5.14 Two independent samples mean comparison with unknown variances

When population variances are unknown, the approach depends on sample size 106.

5.15 Large sample case

For large samples (n1,n2>30n_1, n_2 > 30), sample variances S12S_1^2 and S22S_2^2 can approximate population variances σ12\sigma_1^2 and σ22\sigma_2^2. An approximate u-test is then used.

  • Test statistic: 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.

📝 To test if the number of hyphae and brown structures in Liuwei Dihuang Wan differ significantly (α=0.01\alpha=0.01). Hyphae: n1=75n_1=75, xˉ=56.5\bar{x}=56.5, S12=9.4S_1^2=9.4. Brown structures: n2=65n_2=65, yˉ=65\bar{y}=65, S22=5.5S_2^2=5.5. The null hypothesis is H0:μ1=μ2H_0: \mu_1 = \mu_2. The test statistic is u=56.5−659.475+5.565=−18.55u = \frac{56.5-65}{\sqrt{\frac{9.4}{75} + \frac{5.5}{65}}} = -18.55. For α=0.01\alpha=0.01, uα/2=u0.005=2.58u_{\alpha/2} = u_{0.005} = 2.58. Since ∣u∣=18.55>2.58|u|=18.55 > 2.58, H0H_0 is rejected, indicating a highly significant difference 107.

5.16 Small sample case with unknown but equal variances

If population variances are unknown but assumed equal (σ12=σ22=σ2\sigma_1^2 = \sigma_2^2 = \sigma^2), a pooled sample variance Sp2S_p^2 is used to estimate σ2\sigma^2. This leads to a t-test.

  • 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}. If n1=n2n_1 = n_2, then Sp2=S12+S222S_p^2 = \frac{S_1^2 + S_2^2}{2}.
  • Test statistic: Under H0:μ1=μ2H_0: \mu_1 = \mu_2, the 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.

5.17 Comparing means of two normal populations when variances are unknown and unequal

When comparing the means of two normal populations where the population variances (σ12\sigma_1^2 and σ22\sigma_2^2) are unknown and unequal, neither the standard t-test nor the u-test is directly applicable for small samples. An approximate t-test method can be used, which involves specific steps for hypothesis formulation, statistic construction, and critical value determination 109.

  • Hypotheses:
  • Null hypothesis (H0H_0): μ1=μ2\mu_1 = \mu_2 (the population means are equal).
  • Alternative hypothesis (H1H_1): μ1≠μ2\mu_1 \neq \mu_2 (the population means are not equal).
  • Test statistic: Under H0H_0, the test statistic T′T' is approximately normally distributed: T′=Xˉ−YˉS12n1+S22n2T' = \frac{\bar{X} - \bar{Y}}{\sqrt{\frac{S_1^2}{n_1} + \frac{S_2^2}{n_2}}} where Xˉ\bar{X} and Yˉ\bar{Y} are sample means, S12S_1^2 and S22S_2^2 are sample variances, and n1n_1 and n2n_2 are sample sizes.
  • Degrees of freedom (df): The degrees of freedom for this approximate t-test are calculated using a specific formula: df=(S12n1+S22n2)2(S12/n1)2n1−1+(S22/n2)2n2−1df = \frac{\left(\frac{S_1^2}{n_1} + \frac{S_2^2}{n_2}\right)^2}{\frac{(S_1^2/n_1)^2}{n_1-1} + \frac{(S_2^2/n_2)^2}{n_2-1}} This value is typically rounded to the nearest integer for table lookup.
  • Critical value: For a given significance level α\alpha, the critical value tα/2t_{\alpha/2} is found from the t-distribution table with the calculated degrees of freedom.
  • Decision rule:
  • Reject H0H_0 if ∣T′∣>tα/2|T'| > t_{\alpha/2}.
  • Accept H0H_0 if ∣T′∣<tα/2|T'| < t_{\alpha/2} 109.

📝 To compare a specific indicator between 10 male lung cancer patients and 50 healthy males, with α=0.05\alpha = 0.05. The lung cancer patients had a mean of 6.21 and variance of 3.204, while healthy males had a mean of 4.34 and variance of 0.314. An F-test for variance homogeneity showed F=10.20>F0.05(9,49)≈2.45F = 10.20 > F_{0.05}(9, 49) \approx 2.45, indicating unequal variances. The approximate t-test statistic was T′=3.272T' = 3.272. With df≈35df \approx 35, the critical value t0.025(35)=2.030t_{0.025}(35) = 2.030. Since ∣3.272∣>2.030|3.272| > 2.030, H0H_0 is rejected, concluding a significant difference in the indicator between the two groups 109 110.

5.18 Paired samples mean comparison test

Paired design experiments involve two sets of data that are related, such as measurements taken before and after a treatment on the same subject, or on two subjects matched by specific characteristics. In such cases, the samples are not independent 110.

  • Paired design: This involves matching research subjects based on certain characteristics or conditions, applying two different treatments to each pair, and then comparing the results.
  • Difference calculation: For paired comparisons, the difference (dd) between the paired data points is calculated. These differences are treated as a sample from a new population.
  • Assumptions: The differences dd are assumed to follow a normal distribution N(μd,σd2)N(\mu_d, \sigma_d^2), where μd\mu_d is the population mean of the differences and σd2\sigma_d^2 is the population variance of the differences.
  • Hypotheses: The test for a significant difference between the two results is equivalent to testing if the population mean of the differences (μd\mu_d) is zero:
  • Null hypothesis (H0H_0): μd=0\mu_d = 0.
  • Alternative hypothesis (H1H_1): μd≠0\mu_d \neq 0 (for a two-sided test).
  • Test statistic: The test statistic TT is calculated as: T=dˉ−μdSd/n=dˉSd/nT = \frac{\bar{d} - \mu_d}{S_d/\sqrt{n}} = \frac{\bar{d}}{S_d/\sqrt{n}} where dˉ\bar{d} is the sample mean of the differences, SdS_d is the sample standard deviation of the differences, and nn is the number of paired observations 110.
  • Degrees of freedom: The degrees of freedom for this t-test are n−1n-1 111.

📝 To compare two methods for determining fat content in lactic acid beverages, 10 samples were tested. The differences (dd) between Method A and Method B were calculated. The sample mean difference dˉ=0.2724\bar{d} = 0.2724 and sample standard deviation Sd=0.1087S_d = 0.1087. The test statistic t=7.925t = 7.925. For α=0.05\alpha = 0.05 and n−1=9n-1=9 degrees of freedom, the critical value t0.025(9)=2.262t_{0.025}(9) = 2.262. Since ∣7.925∣>2.262|7.925| > 2.262, H0H_0 is rejected, indicating a significant difference between the two methods 111.

5.19 Hypothesis testing for non-normal population parameters

When the population distribution is not normal, or unknown, hypothesis tests for population parameters can still be performed using large sample approximations based on the Central Limit Theorem. This typically requires a sufficiently large sample size, often n>30n > 30 in medical contexts 112.

5.20 Hypothesis testing for a single population mean

For a single non-normal population with an unknown mean, if the sample size nn is large enough (n>30n > 30), the sample mean Xˉ\bar{X} is approximately normally distributed 113.

  • Known population variance (σ2\sigma^2):
  • Test statistic: U=Xˉ−μ0σ/n∼N(0,1)U = \frac{\bar{X} - \mu_0}{\sigma/\sqrt{n}} \sim N(0,1) where μ0\mu_0 is the hypothesized population mean.
  • Unknown population variance (σ2\sigma^2):
  • Test statistic: If σ2\sigma^2 is unknown, it can be replaced by the sample variance S2S^2: U=Xˉ−μ0S/n∼N(0,1)U = \frac{\bar{X} - \mu_0}{S/\sqrt{n}} \sim N(0,1) This allows for a u-test even with unknown variance, provided a large sample 113.

📝 To test if the mean serum ferritin content of viral hepatitis patients is lower than the normal mean of 273.18 mg/dl, with α=0.01\alpha = 0.01. A sample of 100 patients had a mean of 230.08 and a variance of 12.50212.50^2. The test statistic U=(230.08−273.18)/(12.50/100)=−34.48U = (230.08 - 273.18) / (12.50 / \sqrt{100}) = -34.48. The critical value u0.01=2.326u_{0.01} = 2.326. Since U=−34.48<−u0.01U = -34.48 < -u_{0.01}, H0H_0 is rejected, concluding that the mean serum ferritin content in viral hepatitis patients is significantly lower 113.

5.21 Hypothesis testing for comparing two population means

For two non-normal populations, if both sample sizes (n1,n2n_1, n_2) are sufficiently large (>30>30), the difference between sample means (Xˉ−Yˉ\bar{X} - \bar{Y}) is approximately normally distributed 113.

  • Known population variances (σ12,σ22\sigma_1^2, \sigma_2^2):
  • Test statistic: 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)
  • Unknown population variances (σ12,σ22\sigma_1^2, \sigma_2^2):
  • Test statistic: If σ12\sigma_1^2 and σ22\sigma_2^2 are unknown, they can be approximated by their respective sample variances S12S_1^2 and S22S_2^2: 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) This allows for a u-test for comparing two means with large samples 113.

📝 To compare red blood cell counts between 150 normal adult males and 150 normal adult females, with α=0.05\alpha = 0.05. Males had a mean of 4.71 and variance of 0.5020.50^2; females had a mean of 4.22 and variance of 0.5520.55^2. The test statistic U=(4.71−4.22)/(0.502/150)+(0.552/150)=8.074U = (4.71 - 4.22) / \sqrt{(0.50^2/150) + (0.55^2/150)} = 8.074. The critical value u0.025=1.96u_{0.025} = 1.96. Since ∣8.074∣>1.96|8.074| > 1.96, H0H_0 is rejected, indicating a significant difference in red blood cell counts between males and females 113 114.

5.22 Hypothesis testing for population proportions

Hypothesis testing for population proportions examines whether a population proportion (PP) differs significantly from a hypothesized value (P0P_0) or whether two population proportions (P1,P2P_1, P_2) differ from each other 114.

5.23 Large sample case (u-test)115

For large samples, the sample proportion p=m/np = m/n (where mm is the number of successes and nn is the sample size) is approximately normally distributed 114.

  • Single population proportion:
  • Hypotheses:
  • H0:P=P0H_0: P = P_0
  • H1:P≠P0H_1: P \neq P_0 (two-sided), P>P0P > P_0 (one-sided), or P<P0P < P_0 (one-sided).
  • Test statistic: Under H0H_0, the test statistic UU is approximately: U=p−P0P0(1−P0)/n∼N(0,1)U = \frac{p - P_0}{\sqrt{P_0(1-P_0)/n}} \sim N(0,1) This is valid when n≥50n \ge 50 114.
Test TypeHypothesesStatisticCritical ValueRejection Region
Two-sidedH0:P=P0H_0: P = P_0, H1:P≠P0H_1: P \neq P_0U≈p−P0P0(1−P0)/nU \approx \frac{p-P_0}{\sqrt{P_0(1-P_0)/n}}uα/2u_{\alpha/2}∣U∣>uα/2\vert U\vert > u_{\alpha/2}
One-sidedH0:P=P0H_0: P = P_0, H1:P>P0H_1: P > P_0U≈p−P0P0(1−P0)/nU \approx \frac{p-P_0}{\sqrt{P_0(1-P_0)/n}}uαu_{\alpha}U>uαU > u_{\alpha}
One-sidedH0:P=P0H_0: P = P_0, H1:P<P0H_1: P < P_0U≈p−P0P0(1−P0)/nU \approx \frac{p-P_0}{\sqrt{P_0(1-P_0)/n}}−uα-u_{\alpha}U<−uαU < -u_{\alpha}

📝 To test if the defect rate of a batch of medicine exceeds 0.006, with α=0.05\alpha = 0.05. From 150 samples, 2 were defective, so p=2/150=0.0133p = 2/150 = 0.0133. The test statistic U=(0.0133−0.006)/0.006(1−0.006)/150=1.158U = (0.0133 - 0.006) / \sqrt{0.006(1-0.006)/150} = 1.158. For a one-sided test (H1:P>0.006H_1: P > 0.006), the critical value u0.05=1.645u_{0.05} = 1.645. Since U=1.158<1.645U = 1.158 < 1.645, H0H_0 is accepted, meaning the defect rate did not exceed the standard 114.

  • Comparing two population proportions:
  • Hypotheses:
  • H0:P1=P2H_0: P_1 = P_2
  • H1:P1≠P2H_1: P_1 \neq P_2 (two-sided), P1>P2P_1 > P_2 (one-sided), or P1<P2P_1 < P_2 (one-sided).
  • Test statistic: For large samples (n1≥30,n2≥30n_1 \ge 30, n_2 \ge 30), under H0H_0, the test statistic UU is approximately: U=p1−p2p(1−p)(1/n1+1/n2)∼N(0,1)U = \frac{p_1 - p_2}{\sqrt{p(1-p)(1/n_1 + 1/n_2)}} \sim N(0,1) where p1=m1/n1p_1 = m_1/n_1 and p2=m2/n2p_2 = m_2/n_2 are sample proportions, and pp is the pooled sample proportion: p=n1p1+n2p2n1+n2=m1+m2n1+n2p = \frac{n_1p_1 + n_2p_2}{n_1 + n_2} = \frac{m_1 + m_2}{n_1 + n_2} This pooled proportion estimates the common population proportion under H0H_0 115.
Test TypeHypothesesStatisticCritical ValueRejection Region
Two-sidedH0:P1=P2H_0: P_1 = P_2, H1:P1≠P2H_1: P_1 \neq P_2U≈p1−p2p(1−p)(1/n1+1/n2)U \approx \frac{p_1-p_2}{\sqrt{p(1-p)(1/n_1+1/n_2)}}uα/2u_{\alpha/2}∣U∣>uα/2\vert U\vert > u_{\alpha/2}
One-sidedH0:P1=P2H_0: P_1 = P_2, H1:P1>P2H_1: P_1 > P_2U≈p1−p2p(1−p)(1/n1+1/n2)U \approx \frac{p_1-p_2}{\sqrt{p(1-p)(1/n_1+1/n_2)}}uαu_{\alpha}U>uαU > u_{\alpha}
One-sidedH0:P1=P2H_0: P_1 = P_2, H1:P1<P2H_1: P_1 < P_2U≈p1−p2p(1−p)(1/n1+1/n2)U \approx \frac{p_1-p_2}{\sqrt{p(1-p)(1/n_1+1/n_2)}}−uα-u_{\alpha}U<−uαU < -u_{\alpha}

📝 To compare the efficacy of two anthelmintic drugs, walnut cream and mepacrine, with α=0.05\alpha = 0.05. Walnut cream treated 54 patients with an 81.48% efficacy (p1p_1), and mepacrine treated 36 patients with a 66.67% efficacy (p2p_2). The pooled proportion p=(54×0.8148+36×0.6667)/(54+36)=0.7556p = (54 \times 0.8148 + 36 \times 0.6667) / (54 + 36) = 0.7556. The test statistic U=(0.8148−0.6667)/0.7556(1−0.7556)(1/54+1/36)=1.6017U = (0.8148 - 0.6667) / \sqrt{0.7556(1-0.7556)(1/54 + 1/36)} = 1.6017. For a two-sided test, the critical value u0.025=1.96u_{0.025} = 1.96. Since ∣1.6017∣<1.96|1.6017| < 1.96, H0H_0 is accepted, indicating no significant difference in efficacy between the two drugs 115.

5.24 Small sample case (arcsin transformation method)

For small samples, the arcsin transformation can be used to approximate the normal distribution for proportions, allowing for a u-test 115.

  • Transformation: The sample proportion pp is transformed into ϕ=2arcsin⁡p\phi = 2\arcsin\sqrt{p}. This transformed variable ϕ\phi approximately follows a normal distribution N(Φ,1/n)N(\Phi, 1/n), where Φ=2arcsin⁡P\Phi = 2\arcsin\sqrt{P}.
  • Single population proportion:
  • Hypotheses: H0:P=P0H_0: P = P_0; H1:P≠P0H_1: P \neq P_0 (two-sided). U=ϕ−ϕ01/n=(ϕ−ϕ0)n∼N(0,1)U = \frac{\phi - \phi_0}{\sqrt{1/n}} = (\phi - \phi_0)\sqrt{n} \sim N(0,1) where ϕ=2arcsin⁡p\phi = 2\arcsin\sqrt{p} and ϕ0=2arcsin⁡P0\phi_0 = 2\arcsin\sqrt{P_0}.
  • Hypotheses: H0:P1=P2H_0: P_1 = P_2; H1:P1≠P2H_1: P_1 \neq P_2 (two-sided).
  • Test statistic: For small samples (at least one ni<30n_i < 30), after transforming p1p_1 and p2p_2 to ϕ1\phi_1 and ϕ2\phi_2: U=ϕ1−ϕ21/n1+1/n2=(ϕ1−ϕ2)n1n2n1+n2∼N(0,1)U = \frac{\phi_1 - \phi_2}{\sqrt{1/n_1 + 1/n_2}} = (\phi_1 - \phi_2)\sqrt{\frac{n_1n_2}{n_1+n_2}} \sim N(0,1) where ϕ1=2arcsin⁡p1\phi_1 = 2\arcsin\sqrt{p_1} and ϕ2=2arcsin⁡p2\phi_2 = 2\arcsin\sqrt{p_2} 116.

📝 To compare the efficacy of two methods (A and B) for treating arteriosclerosis patients, with α=0.01\alpha = 0.01. Method A treated 26 cases with 19 effective (p1=73.1%p_1 = 73.1\%), and Method B treated 20 cases with 6 effective (p2=30.0%p_2 = 30.0\%). Transformed proportions are ϕ1=2.051\phi_1 = 2.051 and ϕ2=1.159\phi_2 = 1.159. The test statistic U=(2.051−1.159)(26×20)/(26+20)=3.00U = (2.051 - 1.159)\sqrt{(26 \times 20) / (26 + 20)} = 3.00. For a one-sided test (H1:P1>P2H_1: P_1 > P_2), the critical value u0.01=2.326u_{0.01} = 2.326. Since U=3.00>2.326U = 3.00 > 2.326, H0H_0 is rejected, concluding that Method A's efficacy is significantly higher than Method B's 116 117.

5.25 SPSS software application summary

SPSS provides specific menu options for various hypothesis tests, streamlining the analysis process 117.

Statistical ContentSPSS Menu Option
Single sample normal population mean testAnalyze → Compare Means → One-Sample T Test
Single sample normal population variance testTransform → Compute Variable (multiple function calculations)
Paired samples mean comparison testAnalyze → Compare Means → Paired-Samples T Test
Two independent samples mean comparison testAnalyze → Compare Means → Independent-Samples T Test

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

See also