Chapitre n2 Introduction au Calcul de Proba EST
Table of contents
- Constituent Elements
- Calculation of P(A) in Equiprobability
- Conditional Probability
- Partition and Compound Probabilities
- Law of Total Probability
- Bayes' Theorem
- Independent Events
- 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 S, 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}.
- Coin toss: If a coin is tossed, the sample space is 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}}. The sample space for the sum of the dice is 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 S 6.
- Rolling a die: Given the sample space S={1,2,3,4,5,6}:
- Event A: "Obtaining an even number" is the subset {2,4,6}.
- Event B: "Obtaining a prime number" is the subset {2,3,5}.
- Event C: "Obtaining a multiple of 3" is the subset {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)=#S#A 7.
For example, if the sample space is S={1,2,3,4,5,6} and the event A is "Obtaining an even number," then A={2,4,6}. If the die is fair (equiprobable), the probability of event A is: P(A)=#S#A=63=0.5 7.
2.2 Application examples
- 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.
- 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.
- 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=∅) 9.
The empty set (∅) 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)≤1.
- P(∅)=0 and P(S)=1.
- If events A and B are disjoint (A∩B=∅), then P(A∪B)=P(A)+P(B) 9.
2.4 Theorems of probability 10
Several theorems extend the basic probability calculations:
| Theorem | Formula | Description |
|---|---|---|
| Theorem 1 | P(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 2 | P(A∪B)=P(A)+P(B)−P(A∩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 3 | P(A∖B)=P(A)−P(A∩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), 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), 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∣) to the total number of outcomes in 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)=0), is given by the probability of the intersection of A and B (P(B∩A)) divided by the probability of A (P(A)) 12.
P(B∣A)=P(A)P(B∩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 S is a collection of non-empty subsets {A1,A2,…,Ak} such that the subsets are mutually exclusive (their intersection is empty) and their union is the entire set S. This means that every element in S belongs to exactly one of the subsets in the partition 13.
- Mutually exclusive subsets: For any two distinct subsets Ai and Aj in the partition, their intersection is empty (Ai∩Aj=∅ for i=j).
- Union equals the set: The union of all subsets in the partition is equal to the original set S (⋃i=1kAi=S) 13.
4.2 Complete system of events
A complete system of events is a set of events {A1,A2,…,Ak} that form a partition of the sample space S. This implies that one and only one of these events must occur 13.
- Example: For any subset A of a given set S, the subsets A and its complement Aˉ form a partition of S.
- Dice roll example: If S={1,2,3,4,5,6} represents the outcomes of rolling a die, the events "Obtaining an even number" (A={2,4,6}) and "Obtaining an odd number" (B={1,3,5}) form a partition of S. Thus, {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)=0, the probability of the intersection of events A and B is given by P(B∩A)=P(B∣A)⋅P(A). This means the probability of both A and B occurring is the probability of A occurring multiplied by the probability of B occurring given that A has already occurred.
- For n events: For a sequence of n events A1,A2,…,An, the probability of their intersection is: P(A1∩⋯∩An)=P(A1)⋅P(A2∣A1)⋅P(A3∣A1∩A2)⋅⋯⋅P(An∣A1∩⋯∩An−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)=53=0.6.
- Event B: "Drawing a black ball on the 2nd draw, given a white ball was drawn first." P(B∣A)=42=0.5.
The probability of drawing a white ball then a black ball is: P(A∩B)=P(A)⋅P(B∣A)=53×42=206=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} is a partition of a sample space S, meaning that the events Ai are mutually exclusive and their union is S, and if P(Ai)=0 for all i, then for any event B in S, the probability of B can be expressed as: P(B)=∑i=1nP(Ai)⋅P(B∣Ai) This formula sums the probabilities of B occurring through each event Ai in the partition 17.
A special case of this theorem considers a partition consisting of an event A and its complement Aˉ. If P(A)=0 and P(Aˉ)=0, then for any event B: P(B)=P(A)⋅P(B∣A)+P(Aˉ)⋅P(B∣Aˉ) 17.
5.2 Example: Probability of drawing a white ball
Consider three urns, U1, U2, and U3, each containing 10 balls. U1 has 1 white ball, U2 has 2 white balls, and U3 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 B be the event of drawing a white ball, and Ui be the event of drawing from urn i. The events {U1,U2,U3} form a partition of the sample space.
The probability of choosing each urn is P(U1)=P(U2)=P(U3)=31 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)=(31×101)+(31×102)+(31×106) P(B)=31×(101+2+6)=31×109=309=103=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 S be a sample space and {A1,…,An} be a partition of S such that P(Ai)=0 for all i. If B is an event in S with P(B)=0, then for any i∈{1,2,…,n}: P(Ai∣B)=P(B)P(Ai)⋅P(B∣Ai) This can also be expressed as: P(Ai∣B)=∑j=1nP(Aj)⋅P(B∣Aj)P(Ai)⋅P(B∣Ai) 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).
- What is the overall probability that a USB drive is defective? This tests the calculation of the total probability of the event B.
- 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) 21.
| Machine | Production Proportion (P(Ai)) | Defect Rate (P(B | Ai)) |
|---|---|---|---|
| A1 | 15 % | 1 % | — |
| A2 | 25 % | 2 % | — |
| A3 | 20 % | 1.5 % | — |
| A4 | 20 % | 1 % | — |
| A5 | 20 % | 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), given P(B)=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), given P(A)=0 and P(B)=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ˉ) are also independent, and vice versa. This principle can be extended to multiple events.
For a set of n events, A1,A2,…,An, 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ˉ are independent, given P(A)=0 and P(B)=0.
- Generalization to multiple events: If A1,A2,…,An are mutually independent events, then P(A1∩A2∩⋯∩An)=P(A1)×P(A2)×⋯×P(An) 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.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.