Tasks 07-02 - Basic Probability
Section 07: Probability & Statistics
Problem 1: Sample Spaces (x)
Define the sample space for each experiment:
- Rolling a six-sided die
- Flipping two coins
- Drawing a card from a standard deck and noting its suit
- A customer rating satisfaction on a scale of 1-5
\(S = \{1, 2, 3, 4, 5, 6\}\)
\(S = \{HH, HT, TH, TT\}\)
\(S = \{\text{Hearts, Diamonds, Clubs, Spades}\}\)
\(S = \{1, 2, 3, 4, 5\}\)
Problem 2: Basic Probability Calculations (x)
A fair six-sided die is rolled. Find:
- \(P(\text{rolling a 4})\)
- \(P(\text{rolling an even number})\)
- \(P(\text{rolling greater than 4})\)
- \(P(\text{rolling a 7})\)
- \(P(\text{not rolling a 6})\)
\(P(4) = \frac{1}{6}\)
\(P(\text{even}) = P(\{2,4,6\}) = \frac{3}{6} = \frac{1}{2}\)
\(P(>4) = P(\{5,6\}) = \frac{2}{6} = \frac{1}{3}\)
\(P(7) = 0\) (impossible event)
\(P(\text{not 6}) = 1 - P(6) = 1 - \frac{1}{6} = \frac{5}{6}\)
Problem 3: Addition Rule (x)
In a class of 100 students:
- 45 study German
- 35 study French
- 15 study both German and French
- Find \(P(\text{German})\)
- Find \(P(\text{German or French})\)
- Find \(P(\text{neither German nor French})\)
- Find \(P(\text{German only})\)
\(P(G) = \frac{45}{100} = 0.45\)
\(P(G \cup F) = P(G) + P(F) - P(G \cap F) = 0.45 + 0.35 - 0.15 = 0.65\)
\(P(\text{neither}) = 1 - P(G \cup F) = 1 - 0.65 = 0.35\)
\(P(\text{G only}) = P(G) - P(G \cap F) = 0.45 - 0.15 = 0.30\)
Problem 4: Independence (xx)
Two machines operate independently. Machine A works 95% of the time, Machine B works 90% of the time.
- Find \(P(\text{both work})\)
- Find \(P(\text{neither works})\)
- Find \(P(\text{at least one works})\)
- Find \(P(\text{exactly one works})\)
\(P(A \cap B) = P(A) \cdot P(B) = 0.95 \times 0.90 = 0.855\)
\(P(A' \cap B') = P(A') \cdot P(B') = 0.05 \times 0.10 = 0.005\)
\(P(\text{at least one}) = 1 - P(\text{neither}) = 1 - 0.005 = 0.995\)
\(P(\text{exactly one}) = P(A)P(B') + P(A')P(B) = 0.95 \times 0.10 + 0.05 \times 0.90 = 0.095 + 0.045 = 0.140\)
Problem 5: Cards (xx)
A card is drawn from a standard 52-card deck. Find:
- \(P(\text{Ace})\)
- \(P(\text{Heart})\)
- \(P(\text{Ace or Heart})\)
- \(P(\text{Face card})\) (Jack, Queen, King)
- Are “Ace” and “Heart” mutually exclusive? Independent?
\(P(\text{Ace}) = \frac{4}{52} = \frac{1}{13}\)
\(P(\text{Heart}) = \frac{13}{52} = \frac{1}{4}\)
\(P(\text{Ace} \cup \text{Heart}) = \frac{4}{52} + \frac{13}{52} - \frac{1}{52} = \frac{16}{52} = \frac{4}{13}\) (There’s 1 Ace of Hearts, counted twice if we just add)
\(P(\text{Face}) = \frac{12}{52} = \frac{3}{13}\) (4 Jacks + 4 Queens + 4 Kings)
Not mutually exclusive (Ace of Hearts exists). Check independence: \(P(\text{Ace}) \times P(\text{Heart}) = \frac{1}{13} \times \frac{1}{4} = \frac{1}{52}\) \(P(\text{Ace} \cap \text{Heart}) = \frac{1}{52}\) ✓ Yes, they ARE independent!
Problem 6: Business Application (xx)
A company surveyed 500 customers:
- 320 are satisfied with the product
- 280 are repeat customers
- 200 are satisfied AND repeat customers
- Find \(P(\text{Satisfied})\)
- Find \(P(\text{Satisfied or Repeat})\)
- Find \(P(\text{Satisfied but not Repeat})\)
- Are satisfaction and repeat status independent?
\(P(S) = \frac{320}{500} = 0.64\)
\(P(S \cup R) = \frac{320}{500} + \frac{280}{500} - \frac{200}{500} = \frac{400}{500} = 0.80\)
\(P(S \cap R') = P(S) - P(S \cap R) = \frac{320 - 200}{500} = \frac{120}{500} = 0.24\)
Check: \(P(S) \times P(R) = 0.64 \times 0.56 = 0.358\) \(P(S \cap R) = \frac{200}{500} = 0.40\) \(0.358 \neq 0.40\), so NOT independent.
Problem 7: Quality Control (xxx)
A factory produces items with a 3% defect rate. A sample of 5 items is randomly selected.
- Are these selections independent? Why or why not?
- Find \(P(\text{all 5 are good})\)
- Find \(P(\text{at least one is defective})\)
- Find \(P(\text{exactly one is defective})\)
If the population is large enough (much larger than 5), we can treat selections as approximately independent.
\(P(\text{all good}) = (0.97)^5 \approx 0.859\)
\(P(\text{at least 1 defective}) = 1 - P(\text{all good}) = 1 - 0.859 = 0.141\)
\(P(\text{exactly 1 defective}) = \binom{5}{1}(0.03)^1(0.97)^4 = 5 \times 0.03 \times 0.885 = 0.133\)