tanszek:oktatas:techcomm:conditional_probability
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tanszek:oktatas:techcomm:conditional_probability [2024/09/30 10:49] – knehez | tanszek:oktatas:techcomm:conditional_probability [2024/10/13 17:27] (current) – kissa | ||
---|---|---|---|
Line 3: | Line 3: | ||
=== Non-independent events === | === Non-independent events === | ||
- | How can we calculate the result | + | How can we calculate the result |
If events **A** and **B** are complex events that will not exclude each other, we have a so-called conditional probability (event A affects event B). | If events **A** and **B** are complex events that will not exclude each other, we have a so-called conditional probability (event A affects event B). | ||
- | Notation: \(p(A | B) \) | + | **Notation**: \(p(A | B) \) |
- | In this case we mean the relative frequency which compares the sum of all probability | + | In this case, we mean the relative frequency, which compares the sum of all probabilities |
- | $$ p(A|B) = \frac{k_{AB}}{k_b} = \frac{\frac{k_{AB}}{k}}{\frac{k_{B}}{k_b}} = \frac{p(A \cap B)}{p(B)} $$ | + | $$ p(A|B) = \frac{k_{AB}}{k_b} = \frac{\frac{k_{AB}}{k}}{\frac{k_{B}}{k}} = \frac{p(A \cap B)}{p(B)} $$ |
So we can get to the conclusion: | So we can get to the conclusion: | ||
Line 19: | Line 19: | ||
1.) \( p(A \cap B) \): | 1.) \( p(A \cap B) \): | ||
This represents the probability that both events | This represents the probability that both events | ||
- | A and B occur simultaneously. It is also known as the probability of the intersection | + | A and B occur simultaneously, which is also known as the probability of their intersection. |
2.) \( p(A|B) \): This is the conditional probability of event A occurring given that event B has already occurred. It tells us how likely A s to happen under the condition that B has happened. | 2.) \( p(A|B) \): This is the conditional probability of event A occurring given that event B has already occurred. It tells us how likely A s to happen under the condition that B has happened. | ||
Line 25: | Line 25: | ||
**What the Formula Says?** | **What the Formula Says?** | ||
- | The formula states that the probability of both events A and B occurring together, is equal to the probability of B occurring | + | The formula states that the probability of events |
- | **Example**: | + | **Example |
- | A manufacturer | + | A manufacturer |
Line 38: | Line 38: | ||
| Both dimensions are faulty \( ( A \cap B ) \) | 4 | | | Both dimensions are faulty \( ( A \cap B ) \) | 4 | | ||
| Only the length 𝐿 is faulty \((C)\) | 6 | | | Only the length 𝐿 is faulty \((C)\) | 6 | | ||
- | | Only the diameter 𝐷 is faulty \(D)\) | 8 | | + | | Only the diameter 𝐷 is faulty \((D)\) | 8 | |
**Question 1**: What are the probabilities of events \(A\) and \(B\)? | **Question 1**: What are the probabilities of events \(A\) and \(B\)? | ||
Line 60: | Line 60: | ||
$$ p(A \mid B) = \frac{\text{both dimensions are faulty}}{\text{diameter is faulty}} = \frac{4}{12} = 0.3333 $$ | $$ p(A \mid B) = \frac{\text{both dimensions are faulty}}{\text{diameter is faulty}} = \frac{4}{12} = 0.3333 $$ | ||
- | Since this does not match with the product \( p(A) p(B)\), we can conclude that the two events are **not independent**! | + | Since this does not match with the product \( p(A) \cdot p(B)\), we can conclude that the two events are **not independent**! |
Thus, the joint probability can also be calculated differently: | Thus, the joint probability can also be calculated differently: | ||
Line 87: | Line 87: | ||
where \( E = A \cap B \) | where \( E = A \cap B \) | ||
+ | |||
+ | |||
+ | **Example 2**: | ||
+ | Find the conditional probability of a machine breakdown given that preventive maintenance was performed. | ||
+ | |||
+ | We have the following information: | ||
+ | * The probability that the machine breaks down (Event A) is \( p(A) = 0.10 \) | ||
+ | * The probability that the machine undergoes preventive maintenance (Event B) is \( p(B) = 0.30 \) | ||
+ | * The probability that the machine both breaks down and has undergone preventive maintenance is \( p(A \cap B) = 0.015 \) | ||
+ | |||
+ | To calculate the conditional probability of the machine breaking down given that it underwent preventive maintenance, | ||
+ | |||
+ | $$ p(A|B) = \frac{p(A \cap B)}{p(B)} $$ | ||
+ | |||
+ | Substitute the values: | ||
+ | |||
+ | $$ p(A|B) = \frac{0.015}{0.30} $$ | ||
+ | |||
+ | Thus, the probability that the machine breaks down given that it underwent preventive maintenance is \( p(A|B) = 0.05 \), or 5%. | ||
+ | |||
+ | |||
+ |
tanszek/oktatas/techcomm/conditional_probability.1727693358.txt.gz · Last modified: 2024/09/30 10:49 by knehez