A box contains 7 blue pens and 5 red pens. Four pens are randomly selected from the box. We want to calculate the probability of two events: A: All 4 pens are the same color. B: At most 2 red pens are selected.

Probability and StatisticsProbabilityCombinationsConditional Probability
2025/7/3

1. Problem Description

A box contains 7 blue pens and 5 red pens. Four pens are randomly selected from the box. We want to calculate the probability of two events:
A: All 4 pens are the same color.
B: At most 2 red pens are selected.

2. Solution Steps

A: All 4 pens are the same color.
This means either all 4 are blue or all 4 are red.
The total number of ways to choose 4 pens from 12 is (124)=12!4!8!=12×11×10×94×3×2×1=495\binom{12}{4} = \frac{12!}{4!8!} = \frac{12 \times 11 \times 10 \times 9}{4 \times 3 \times 2 \times 1} = 495.
The number of ways to choose 4 blue pens from 7 is (74)=7!4!3!=7×6×53×2×1=35\binom{7}{4} = \frac{7!}{4!3!} = \frac{7 \times 6 \times 5}{3 \times 2 \times 1} = 35.
The number of ways to choose 4 red pens from 5 is (54)=5!4!1!=5\binom{5}{4} = \frac{5!}{4!1!} = 5.
So, the number of ways to choose 4 pens of the same color is 35+5=4035 + 5 = 40.
The probability of event A is P(A)=40495=899P(A) = \frac{40}{495} = \frac{8}{99}.
B: At most 2 red pens are selected.
This means we can have 0, 1, or 2 red pens. It also means 4, 3, or 2 blue pens are selected respectively.
Number of ways to choose 0 red pens and 4 blue pens: (50)(74)=1×35=35\binom{5}{0} \binom{7}{4} = 1 \times 35 = 35.
Number of ways to choose 1 red pen and 3 blue pens: (51)(73)=5×7×6×53×2×1=5×35=175\binom{5}{1} \binom{7}{3} = 5 \times \frac{7 \times 6 \times 5}{3 \times 2 \times 1} = 5 \times 35 = 175.
Number of ways to choose 2 red pens and 2 blue pens: (52)(72)=5×42×1×7×62×1=10×21=210\binom{5}{2} \binom{7}{2} = \frac{5 \times 4}{2 \times 1} \times \frac{7 \times 6}{2 \times 1} = 10 \times 21 = 210.
So, the number of ways to choose at most 2 red pens is 35+175+210=42035 + 175 + 210 = 420.
The probability of event B is P(B)=420495=2833P(B) = \frac{420}{495} = \frac{28}{33}.

3. Final Answer

A: The probability that all 4 pens are the same color is 899\frac{8}{99}.
B: The probability that at most 2 red pens are selected is 2833\frac{28}{33}.

Related problems in "Probability and Statistics"

The problem provides a table showing the mass (m grams) of letters and their corresponding frequenci...

HistogramsFrequency DensityData AnalysisProportionality
2025/7/2

The problem requires us to calculate an estimate of the mean travel time to school based on the give...

MeanFrequency DistributionGrouped DataEstimation
2025/7/1

The Iganga District examination committee wants to determine the appropriate duration for an upcomin...

StatisticsFrequency DistributionAverageMedianOgiveData Analysis
2025/7/1

The problem provides a frequency table showing the time each of 40 students takes to travel to schoo...

MeanFrequency TableData AnalysisEstimation
2025/7/1

The problem provides a table showing the time it takes for each of 40 students to travel to school. ...

MeanHistogramFrequency DistributionData AnalysisFrequency Density
2025/7/1

The problem is to analyze a table showing the time that each of 40 students takes to travel to schoo...

Frequency TableData AnalysisDescriptive Statistics
2025/7/1

We are given a box-and-whisker plot representing the masses of parcels in a van. We need to find the...

Box-and-Whisker PlotMedianInterquartile RangeData AnalysisDescriptive Statistics
2025/6/30

The problem provides a table with the masses of parcels in different ranges and their corresponding ...

HistogramsFrequency DensityMeanData AnalysisStatistics
2025/6/30

The problem provides a table showing the masses of 40 parcels in a warehouse. The masses are grouped...

ProbabilityFrequency DistributionData Analysis
2025/6/30

The problem provides a cumulative frequency distribution table and asks us to complete it, draw a cu...

StatisticsCumulative Frequency DistributionMedianData Analysis
2025/6/30