Chapitre n2 Introduction au Calcul de Proba EST

Table of contents

  1. Constituent Elements
  2. Calculation of P(A) in Equiprobability
  3. Conditional Probability
  4. Partition and Compound Probabilities
  5. Law of Total Probability
  6. Bayes' Theorem
  7. Independent Events
  8. End of Chapter 2

1. Constituent Elements

1.1 Random experiment

A random experiment is a procedure that can be repeated under identical conditions, with outcomes determined by chance. The set of all possible results is known, but the specific outcome cannot be predicted beforehand 3.

1.2 Sample space

The sample space, denoted by SS, is the set of all possible outcomes of a random experiment 4.

  • Dice roll: If a die is rolled, the sample space is S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\}.
  • Coin toss: If a coin is tossed, the sample space is S={H,T}S = \{H, T\} (Heads or Tails) 4.

1.3 Fundamental space

A sample space is considered fundamental if each of its possible outcomes has an equal chance of occurring. When a sample space is fundamental, the situation is described as equiprobalistic 4.

  • Rolling two dice: When rolling two non-defective, balanced dice (one red 'r', one green 'v'), the sample space of pairs is S={(r,v)∣r,v∈{1,2,3,4,5,6}}S = \{(r, v) | r, v \in \{1, 2, 3, 4, 5, 6\}\}. The sample space for the sum of the dice is S′={2,3,4,5,6,7,8,9,10,11,12}S' = \{2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12\}. Both are fundamental spaces because each outcome has an equal probability of occurring 5.

1.4 Event

An event is defined as a subset of the sample space SS 6.

  • Rolling a die: Given the sample space S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\}:
  • Event A: "Obtaining an even number" is the subset {2,4,6}\{2, 4, 6\}.
  • Event B: "Obtaining a prime number" is the subset {2,3,5}\{2, 3, 5\}.
  • Event C: "Obtaining a multiple of 3" is the subset {3,6}\{3, 6\} 6.

2. Calculation of P(A) in Equiprobability

2.1 Fundamental formula

When the sample space S consists of equally likely outcomes (equiprobability), the probability of an event A, denoted P(A), is calculated using the formula: P(A) = Number of favorable outcomes for A / Number of possible outcomes This can be expressed as: P(A)=#A#SP(A) = \frac{\#A}{\#S} 7.

For example, if the sample space is S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\} and the event A is "Obtaining an even number," then A={2,4,6}A = \{2, 4, 6\}. If the die is fair (equiprobable), the probability of event A is: P(A)=#A#S=36=0.5P(A) = \frac{\#A}{\#S} = \frac{3}{6} = 0.5 7.

2.2 Application examples

  1. Ticket probability: A hat contains 200 tickets, 15 of which are for M.E. students. The probability of drawing one of these tickets is calculated as the number of M.E. tickets divided by the total number of tickets.
  2. Family composition probability: In a family with 3 children, the probability that the eldest is a boy and the two younger are girls is determined by the number of favorable birth order combinations divided by the total possible combinations.
  3. Family composition probability (alternative): The probability of a family with 3 children having exactly 1 boy and 2 girls is found by counting the specific arrangements of boys and girls and dividing by the total possible arrangements 8.

2.3 Definitions and properties

Definitions are provided for key event types:

  • An impossible event is one with a probability of 0.
  • A certain event is one with a probability of 1.
  • Disjoint (incompatible) events A and B are those that cannot occur simultaneously, meaning their intersection is the empty set (A∩B=∅A \cap B = \emptyset) 9.

The empty set (∅\emptyset) represents an impossible event, while the entire sample space (S) represents a certain event 9.

Properties of the probability calculation formula include:

  • For any event A, 0≤P(A)≤10 \le P(A) \le 1.
  • P(∅)=0P(\emptyset) = 0 and P(S)=1P(S) = 1.
  • If events A and B are disjoint (A∩B=∅A \cap B = \emptyset), then P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B) 9.

2.4 Theorems of probability 10

Several theorems extend the basic probability calculations:

TheoremFormulaDescription
Theorem 1P(A‾)=1−P(A)P(\overline{A}) = 1 - P(A)The probability of the complement of an event A (event A not occurring) is 1 minus the probability of event A.
Theorem 2P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)The probability of the union of two events A and B (either A or B or both occurring) is the sum of their individual probabilities minus the probability of their intersection.
Theorem 3P(A∖B)=P(A)−P(A∩B)P(A \setminus B) = P(A) - P(A \cap B)The probability of event A occurring but not event B is the probability of A minus the probability of the intersection of A and B.

3. Conditional Probability

3.1 Definition and notation

Conditional probability, denoted as P(B∣A)P(B|A), represents the probability of event B occurring given that event A has already occurred. This concept is fundamental when analyzing the likelihood of events under specific circumstances 11.

3.2 Formula

For any two events A and B in a given sample space, if the number of outcomes in event A is not zero (∣A∣≠0|A| \neq 0), the conditional probability of B given A is calculated as the ratio of the number of outcomes common to both A and B (∣B∩A∣|B \cap A|) to the total number of outcomes in A (∣A∣|A|) 11.

The generalized formula for conditional probability, applicable to any sample space and valid when the probability of event A is not zero (P(A)≠0P(A) \neq 0), is given by the probability of the intersection of A and B (P(B∩A)P(B \cap A)) divided by the probability of A (P(A)P(A)) 12.

P(B∣A)=P(B∩A)P(A)P(B|A) = \frac{P(B \cap A)}{P(A)}

3.3 Example

An urn contains 12 balls: 2 white, 6 black, and 4 red. If a ball is drawn at random and it is white, what is the probability that it is numbered 2 12?

4. Partition and Compound Probabilities

4.1 Partition of a set

A partition of a set SS is a collection of non-empty subsets {A1,A2,…,Ak}\{A_1, A_2, \dots, A_k\} such that the subsets are mutually exclusive (their intersection is empty) and their union is the entire set SS. This means that every element in SS belongs to exactly one of the subsets in the partition 13.

  • Mutually exclusive subsets: For any two distinct subsets AiA_i and AjA_j in the partition, their intersection is empty (Ai∩Aj=∅A_i \cap A_j = \emptyset for i≠ji \neq j).
  • Union equals the set: The union of all subsets in the partition is equal to the original set SS (⋃i=1kAi=S\bigcup_{i=1}^{k} A_i = S) 13.

4.2 Complete system of events

A complete system of events is a set of events {A1,A2,…,Ak}\{A_1, A_2, \dots, A_k\} that form a partition of the sample space SS. This implies that one and only one of these events must occur 13.

  • Example: For any subset AA of a given set SS, the subsets AA and its complement Aˉ\bar{A} form a partition of SS.
  • Dice roll example: If S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\} represents the outcomes of rolling a die, the events "Obtaining an even number" (A={2,4,6}A = \{2, 4, 6\}) and "Obtaining an odd number" (B={1,3,5}B = \{1, 3, 5\}) form a partition of SS. Thus, {A,B}\{A, B\} is a complete system of events 14.

4.3 Compound probability theorem

The compound probability theorem provides a way to calculate the probability of the intersection of two or more events. It is based on conditional probability 15.

  • For two events: If P(A)≠0P(A) \neq 0, the probability of the intersection of events AA and BB is given by P(B∩A)=P(B∣A)⋅P(A)P(B \cap A) = P(B|A) \cdot P(A). This means the probability of both AA and BB occurring is the probability of AA occurring multiplied by the probability of BB occurring given that AA has already occurred.
  • For nn events: For a sequence of nn events A1,A2,…,AnA_1, A_2, \dots, A_n, the probability of their intersection is: P(A1∩⋯∩An)=P(A1)⋅P(A2∣A1)⋅P(A3∣A1∩A2)⋅⋯⋅P(An∣A1∩⋯∩An−1)P(A_1 \cap \dots \cap A_n) = P(A_1) \cdot P(A_2|A_1) \cdot P(A_3|A_1 \cap A_2) \cdot \dots \cdot P(A_n|A_1 \cap \dots \cap A_{n-1}) 15.

📝 An urn contains 3 white balls and 2 black balls (5 total). Two balls are drawn sequentially without replacement.

  • Event A: "Drawing a white ball on the 1st draw." P(A)=35=0.6P(A) = \frac{3}{5} = 0.6.
  • Event B: "Drawing a black ball on the 2nd draw, given a white ball was drawn first." P(B∣A)=24=0.5P(B|A) = \frac{2}{4} = 0.5.

The probability of drawing a white ball then a black ball is: P(A∩B)=P(A)⋅P(B∣A)=35×24=620=0.3P(A \cap B) = P(A) \cdot P(B|A) = \frac{3}{5} \times \frac{2}{4} = \frac{6}{20} = 0.3 (or 30%) 16.

5. Law of Total Probability

5.1 Theorem of Total Probability

The theorem of total probability provides a method to calculate the probability of an event by considering a partition of the sample space. If {A1,A2,…,An}\{A_1, A_2, \dots, A_n\} is a partition of a sample space SS, meaning that the events AiA_i are mutually exclusive and their union is SS, and if P(Ai)≠0P(A_i) \neq 0 for all ii, then for any event BB in SS, the probability of BB can be expressed as: P(B)=∑i=1nP(Ai)⋅P(B∣Ai)P(B) = \sum_{i=1}^{n} P(A_i) \cdot P(B|A_i) This formula sums the probabilities of BB occurring through each event AiA_i in the partition 17.

A special case of this theorem considers a partition consisting of an event AA and its complement Aˉ\bar{A}. If P(A)≠0P(A) \neq 0 and P(Aˉ)≠0P(\bar{A}) \neq 0, then for any event BB: P(B)=P(A)⋅P(B∣A)+P(Aˉ)⋅P(B∣Aˉ)P(B) = P(A) \cdot P(B|A) + P(\bar{A}) \cdot P(B|\bar{A}) 17.

5.2 Example: Probability of drawing a white ball

Consider three urns, U1U_1, U2U_2, and U3U_3, each containing 10 balls. U1U_1 has 1 white ball, U2U_2 has 2 white balls, and U3U_3 has 6 white balls. If a ball is drawn at random, the probability of obtaining a white ball can be calculated using the law of total probability 18.

Let BB be the event of drawing a white ball, and UiU_i be the event of drawing from urn ii. The events {U1,U2,U3}\{U_1, U_2, U_3\} form a partition of the sample space.

The probability of choosing each urn is P(U1)=P(U2)=P(U3)=13P(U_1) = P(U_2) = P(U_3) = \frac{1}{3} 18.

The probability of drawing a white ball is: P(B)=P(U1)⋅P(B∣U1)+P(U2)⋅P(B∣U2)+P(U3)⋅P(B∣U3)P(B) = P(U_1) \cdot P(B|U_1) + P(U_2) \cdot P(B|U_2) + P(U_3) \cdot P(B|U_3) P(B)=(13×110)+(13×210)+(13×610)P(B) = \left(\frac{1}{3} \times \frac{1}{10}\right) + \left(\frac{1}{3} \times \frac{2}{10}\right) + \left(\frac{1}{3} \times \frac{6}{10}\right) P(B)=13×(1+2+610)=13×910=930=310=0.3P(B) = \frac{1}{3} \times \left(\frac{1 + 2 + 6}{10}\right) = \frac{1}{3} \times \frac{9}{10} = \frac{9}{30} = \frac{3}{10} = 0.3 18.

📝 In a datacenter, servers come from two suppliers, F1 and F2. 60% of servers are from F1, and 40% are from F2. The annual failure rate for F1 servers is 2%, and for F2 servers is 5%. If a server is chosen randomly from the stock, what is the probability that it will fail during the year 19?

6. Bayes' Theorem

6.1 Bayes' Theorem

Bayes' theorem provides a way to update the probability of a hypothesis based on new evidence. It is particularly useful when dealing with conditional probabilities and prior beliefs.

The theorem allows us to calculate the posterior probability of an event given that another event has occurred 20.

The theorem is stated as follows: Let SS be a sample space and {A1,…,An}\{A_1, \dots, A_n\} be a partition of SS such that P(Ai)≠0P(A_i) \neq 0 for all ii. If BB is an event in SS with P(B)≠0P(B) \neq 0, then for any i∈{1,2,…,n}i \in \{1, 2, \dots, n\}: P(Ai∣B)=P(Ai)⋅P(B∣Ai)P(B)P(A_i|B) = \frac{P(A_i) \cdot P(B|A_i)}{P(B)} This can also be expressed as: P(Ai∣B)=P(Ai)⋅P(B∣Ai)∑j=1nP(Aj)⋅P(B∣Aj)P(A_i|B) = \frac{P(A_i) \cdot P(B|A_i)}{\sum_{j=1}^{n} P(A_j) \cdot P(B|A_j)} 20.

6.2 Application: USB manufacturing plant

A USB manufacturing plant uses five machines (A1, A2, A3, A4, A5) for its production. The proportion of global production for each machine and their respective defect rates are given.

This scenario can be used to apply Bayes' theorem to calculate probabilities related to defective USB drives 21.

The production proportions are:

  • A1: 15%
  • A2: 25%
  • A3: 20%
  • A4: 20%
  • A5: 20% 21.

The defect rates per machine are:

  • A1: 1%
  • A2: 2%
  • A3: 1.5%
  • A4: 1%
  • A5: 0.5% 21.

The following questions can be addressed using Bayes' theorem:

  • What is the probability that a randomly chosen USB drive is defective and comes from machine A1? This tests the calculation of the joint probability P(Ai∩B)P(A_i \cap B).
  • What is the overall probability that a USB drive is defective? This tests the calculation of the total probability of the event BB.
  • If a USB drive is defective, what is the probability that it comes from machine A1? This tests the application of Bayes' theorem to find the posterior probability P(A1∣B)P(A_1|B) 21.
MachineProduction Proportion (P(Ai))Defect Rate (P(BAi))
A115 %1 %—
A225 %2 %—
A320 %1.5 %—
A420 %1 %—
A520 %0.5 %—

7. Independent Events

7.1 Definition of independent events

Two events, A and B, associated with the same random experiment are considered mutually independent if the occurrence of one event does not influence the probability of the other. This mutual independence is formally defined by the condition that the conditional probability of A given B is equal to the probability of A, provided that the probability of B is not zero.

  • Mutually independent events: A and B are mutually independent if P(A∣B)=P(A)P(A|B) = P(A), given P(B)≠0P(B) \neq 0 22.

7.2 Theorem for independent events

A theorem states that for two events, A and B, with non-zero probabilities, they are independent if and only if the probability of their intersection (both events occurring) is equal to the product of their individual probabilities. This theorem provides a practical way to test for independence.

  • Independence condition: A and B are independent if and only if P(A∩B)=P(A)⋅P(B)P(A \cap B) = P(A) \cdot P(B), given P(A)≠0P(A) \neq 0 and P(B)≠0P(B) \neq 0 22.

7.3 Consequence and generalization

A direct consequence of the theorem is that if two events A and B are independent, then the event A and the complement of B (Bˉ\bar{B}) are also independent, and vice versa. This principle can be extended to multiple events.

For a set of nn events, A1,A2,…,AnA_1, A_2, \ldots, A_n, if they are mutually independent, the probability of their intersection is the product of their individual probabilities.

  • Independence of complements: A and B are independent if and only if A and Bˉ\bar{B} are independent, given P(A)≠0P(A) \neq 0 and P(B)≠0P(B) \neq 0.
  • Generalization to multiple events: If A1,A2,…,AnA_1, A_2, \ldots, A_n are mutually independent events, then P(A1∩A2∩⋯∩An)=P(A1)×P(A2)×⋯×P(An)P(A_1 \cap A_2 \cap \cdots \cap A_n) = P(A_1) \times P(A_2) \times \cdots \times P(A_n) 23.

7.4 Application: Independence of academic failures

This application explores whether failing mathematics and failing physics are independent events. The probabilities provided are the likelihood of failing mathematics, the likelihood of failing physics, and the likelihood of failing both courses.

The question asks to determine if these two failure events are independent based on these probabilities.

  • Scenario:
  • Probability of failing mathematics: 0.2
  • Probability of failing physics: 0.15
  • Probability of failing both mathematics and physics: 0.02
  • Question: Are the events of failing mathematics and failing physics independent 24?

📝 To determine if the events are independent, one would check if the probability of failing both courses (0.02) equals the product of the individual probabilities of failing mathematics (0.2) and failing physics (0.15). If 0.02=0.2×0.150.02 = 0.2 \times 0.15, then the events are independent 24.

8. End of Chapter 2

8.1 Thank you for your attention!

This section concludes Chapter 2 of the course material, marking the end of the introduction to probability calculations. The academic year is 2026-2027, and the course is offered by EST Salé 25.

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

See also