Mother buys ice cream for her son [closed]

Clash Royale CLAN TAG#URR8PPP
up vote
-2
down vote
favorite
The ice-cream guy sells 25 different kind of ice cream. 5 of those are vegan. Mother buys 6 Ice Cream Caps for her son (he is vegan) at random. How many are vegan?
I try this.
So we have all posibilities 25 right ? The picks she gets are(N=normal, V=vegan):
- 6N, 0V;
- 5N, 1V;
- 4N, 2V;
- 3N, 3V;
- 2N, 4V;
- 1N, 5V;
- 0N, 6V.
I dont understand the question of this example? Does it mean that at least one is vegan ? Than it is 6/25 ? Is this correct ?
probability
closed as unclear what you're asking by Greg Martin, Theo Bendit, user91500, Did, Theoretical Economist Aug 29 at 12:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |Â
up vote
-2
down vote
favorite
The ice-cream guy sells 25 different kind of ice cream. 5 of those are vegan. Mother buys 6 Ice Cream Caps for her son (he is vegan) at random. How many are vegan?
I try this.
So we have all posibilities 25 right ? The picks she gets are(N=normal, V=vegan):
- 6N, 0V;
- 5N, 1V;
- 4N, 2V;
- 3N, 3V;
- 2N, 4V;
- 1N, 5V;
- 0N, 6V.
I dont understand the question of this example? Does it mean that at least one is vegan ? Than it is 6/25 ? Is this correct ?
probability
closed as unclear what you're asking by Greg Martin, Theo Bendit, user91500, Did, Theoretical Economist Aug 29 at 12:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
3
I'm confused about the question. Surely this is up to the mother? She could buy all vegan, none of them vegan, or anywhere in between? If her son is vegan, then presumably she'd buy $6$ vegan ice creams? The question is not clear, and needs its rules explained more carefully (e.g. maybe the mother isn't allowed to get two of the same type of ice cream?).
â Theo Bendit
Aug 29 at 5:02
2
Apparently the mother doesn't know which flavores are vegan or not. That's the probabilty aspect and the possibilities listed in the question.
â giusti
Aug 29 at 5:06
2
Except that the question itself mentioned nothing about probabilities. The question is seriously confused.
â Robert Israel
Aug 29 at 5:08
1
I agree. Some important details are missing. But the probability aspect is in the tags.
â giusti
Aug 29 at 5:09
3
All I'm saying is: I think this question is salvageable. Let's give the author a chance before burying it in downvotes. :)
â giusti
Aug 29 at 5:11
add a comment |Â
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
The ice-cream guy sells 25 different kind of ice cream. 5 of those are vegan. Mother buys 6 Ice Cream Caps for her son (he is vegan) at random. How many are vegan?
I try this.
So we have all posibilities 25 right ? The picks she gets are(N=normal, V=vegan):
- 6N, 0V;
- 5N, 1V;
- 4N, 2V;
- 3N, 3V;
- 2N, 4V;
- 1N, 5V;
- 0N, 6V.
I dont understand the question of this example? Does it mean that at least one is vegan ? Than it is 6/25 ? Is this correct ?
probability
The ice-cream guy sells 25 different kind of ice cream. 5 of those are vegan. Mother buys 6 Ice Cream Caps for her son (he is vegan) at random. How many are vegan?
I try this.
So we have all posibilities 25 right ? The picks she gets are(N=normal, V=vegan):
- 6N, 0V;
- 5N, 1V;
- 4N, 2V;
- 3N, 3V;
- 2N, 4V;
- 1N, 5V;
- 0N, 6V.
I dont understand the question of this example? Does it mean that at least one is vegan ? Than it is 6/25 ? Is this correct ?
probability
edited Aug 29 at 6:00
Q the Platypus
3,127933
3,127933
asked Aug 29 at 4:54
Helii
7
7
closed as unclear what you're asking by Greg Martin, Theo Bendit, user91500, Did, Theoretical Economist Aug 29 at 12:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by Greg Martin, Theo Bendit, user91500, Did, Theoretical Economist Aug 29 at 12:52
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
3
I'm confused about the question. Surely this is up to the mother? She could buy all vegan, none of them vegan, or anywhere in between? If her son is vegan, then presumably she'd buy $6$ vegan ice creams? The question is not clear, and needs its rules explained more carefully (e.g. maybe the mother isn't allowed to get two of the same type of ice cream?).
â Theo Bendit
Aug 29 at 5:02
2
Apparently the mother doesn't know which flavores are vegan or not. That's the probabilty aspect and the possibilities listed in the question.
â giusti
Aug 29 at 5:06
2
Except that the question itself mentioned nothing about probabilities. The question is seriously confused.
â Robert Israel
Aug 29 at 5:08
1
I agree. Some important details are missing. But the probability aspect is in the tags.
â giusti
Aug 29 at 5:09
3
All I'm saying is: I think this question is salvageable. Let's give the author a chance before burying it in downvotes. :)
â giusti
Aug 29 at 5:11
add a comment |Â
3
I'm confused about the question. Surely this is up to the mother? She could buy all vegan, none of them vegan, or anywhere in between? If her son is vegan, then presumably she'd buy $6$ vegan ice creams? The question is not clear, and needs its rules explained more carefully (e.g. maybe the mother isn't allowed to get two of the same type of ice cream?).
â Theo Bendit
Aug 29 at 5:02
2
Apparently the mother doesn't know which flavores are vegan or not. That's the probabilty aspect and the possibilities listed in the question.
â giusti
Aug 29 at 5:06
2
Except that the question itself mentioned nothing about probabilities. The question is seriously confused.
â Robert Israel
Aug 29 at 5:08
1
I agree. Some important details are missing. But the probability aspect is in the tags.
â giusti
Aug 29 at 5:09
3
All I'm saying is: I think this question is salvageable. Let's give the author a chance before burying it in downvotes. :)
â giusti
Aug 29 at 5:11
3
3
I'm confused about the question. Surely this is up to the mother? She could buy all vegan, none of them vegan, or anywhere in between? If her son is vegan, then presumably she'd buy $6$ vegan ice creams? The question is not clear, and needs its rules explained more carefully (e.g. maybe the mother isn't allowed to get two of the same type of ice cream?).
â Theo Bendit
Aug 29 at 5:02
I'm confused about the question. Surely this is up to the mother? She could buy all vegan, none of them vegan, or anywhere in between? If her son is vegan, then presumably she'd buy $6$ vegan ice creams? The question is not clear, and needs its rules explained more carefully (e.g. maybe the mother isn't allowed to get two of the same type of ice cream?).
â Theo Bendit
Aug 29 at 5:02
2
2
Apparently the mother doesn't know which flavores are vegan or not. That's the probabilty aspect and the possibilities listed in the question.
â giusti
Aug 29 at 5:06
Apparently the mother doesn't know which flavores are vegan or not. That's the probabilty aspect and the possibilities listed in the question.
â giusti
Aug 29 at 5:06
2
2
Except that the question itself mentioned nothing about probabilities. The question is seriously confused.
â Robert Israel
Aug 29 at 5:08
Except that the question itself mentioned nothing about probabilities. The question is seriously confused.
â Robert Israel
Aug 29 at 5:08
1
1
I agree. Some important details are missing. But the probability aspect is in the tags.
â giusti
Aug 29 at 5:09
I agree. Some important details are missing. But the probability aspect is in the tags.
â giusti
Aug 29 at 5:09
3
3
All I'm saying is: I think this question is salvageable. Let's give the author a chance before burying it in downvotes. :)
â giusti
Aug 29 at 5:11
All I'm saying is: I think this question is salvageable. Let's give the author a chance before burying it in downvotes. :)
â giusti
Aug 29 at 5:11
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
Assuming that the mother buys six different kinds of ice cream at random, we can assume that the number $X$ of vegan cups purchased has a hypergeometric distribution. For example,
$$P(X = 0) = frac5choose 020 choose 625 choose 6 = 0.2189.$$
So the probability she buys at least one vegan cup is
$P(X ge 1) = 1 - P(X = 0) = 1 - 0.2189 = 0.7811.$
You can express the binomial coefficients in terms of factorials to compute the answer. For example,
$20 choose 6 = frac20!6! cdot 14!= 38,760.$
Alternatively, you can use the hypergeometric PDF function dhyper in R statistical software to obtain the answer (or a hypergeometric PDF from other software).
dhyper(0, 5, 20, 6)
[1] 0.2188594
1 - dhyper(0, 5, 20, 6)
[1] 0.7811406
choose(20,6)
[1] 38760
The following R code gives the six probabilities of getting 0 through 5 vegan cups out of six. [Notice that it is impossible to get 6 vegan cups because there are not 6 different ones available.]
x = 0:5; pdf = dhyper(x, 5, 20, 6); cbind(x, pdf)
x pdf
[1,] 0 0.2188594015
[2,] 1 0.4377188029
[3,] 2 0.2735742518
[4,] 3 0.0643704122
[5,] 4 0.0053642010
[6,] 5 0.0001129305
If you might have to compute such probabilities on an ordinary calculator during an exam, maybe you should try computing a couple of these using the general formula below. (The job can be simplified somewhat by noticing that a lot of factors get
canceled.)
$$P(X = k) = frac5choose k20 choose 6-k25 choose 6,$$
for $k = 0, 1, dots, 5.$
Note: If the mother buys six cups out of many, of which $1/5$ are vegan, without making sure she buys all of different kinds, then the number $Y$ of vegan cups purchased has the distribution
$Y sim mathsfBinom(n = 6,, p=1/5),$ which has
$$P(Y = k) = 6choose kleft(frac15right)^kleft(frac45right)^6-k,$$
where $k = 0, 1, dots, 6.$ For example,
$P(Y = 0) = (4/5)^6 = 0.2621.$
Addendum prompted by @Bungo's comments:
The figure below compares the PDF's of the
hypergeometric and binomial distributions mentioned above.

R code below also makes the figure and shows mean and variances of the two distributions.
x = 0:6; pdf.h = dhyper(x, 5, 20, 6)
pdf.b = dbinom(x, 6, 1/5)
plot(x-.05, pdf.h, type="h", col="blue", lwd=2, ylab="PDF",
xlab ="x", main="Hypergeometric (blue) and Binomial PDFs")
lines(x+.05, pdf.b, type="h", col="red", lwd=2)
abline(h=-.001, col="green2")
mu.h=sum(x*pdf.h); mu.h; var.h=sum(x^2*pdf.h) - mu.h^2; var.h
[1] 1.2 # E(X)
[1] 0.76 # Var(X)
mu.b=sum(x*pdf.b); mu.b; var.b=sum(x^2*pdf.b) - mu.b^2; var.b
[1] 1.2 # E(Y)
[1] 0.96 # Var(Y)
1
Comparing the probability of zero vegan ice creams in the two scenarios shows that even if the mother is not required to buy six different kinds, she is better off doing so, if the goal is to minimize the likelihood that none of the ice creams is vegan. This makes intuitive sense, but it's nice to see the probabilities quantified (21.8% if buying distinct kinds versus 26.2% if buying completely at random from a seller who stocks more than one of each type).
â Bungo
Aug 29 at 6:01
1
Interestingly, unless I made a computational error, the mean is identical in both cases: $1.2 = 6/5$.
â Bungo
Aug 29 at 6:10
1
Yes, If there are $N$ items altogether, $a$ of one kind and $b$ of the other, then the expected number of $a$'s chosen in $n le a$ draws without replacement is $nfracaN.$ For the binomial the fraction of $a$'s is $p=fracaN$ and the mean is $np.$ However, the variance of the hypergeometric is smaller than the binomial $np(1-p)$ because the breadth of choices decreases as we sample without replacement.
â BruceET
Aug 29 at 6:16
1
Hypergeometric variance with $p = a/N:$ $np(1-p)left(fracN-nN-1right).$ The last factor is called the 'finite population correction' in polling; often ignored if $n/N < 0.1.$
â BruceET
Aug 29 at 6:59
1
Ah, scratch that, I misread the fraction $(N-n)/(N-1)$ as $(N-a)/(N-1)$. Now it makes more sense! The hypergeometric variance exactly matches the binomial variance if we only perform one draw ($n=1$), as then it doesn't matter whether there is replacement or not. For $n > 1$, the variances are only approximately equal for large $N$.
â Bungo
Aug 29 at 7:20
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Assuming that the mother buys six different kinds of ice cream at random, we can assume that the number $X$ of vegan cups purchased has a hypergeometric distribution. For example,
$$P(X = 0) = frac5choose 020 choose 625 choose 6 = 0.2189.$$
So the probability she buys at least one vegan cup is
$P(X ge 1) = 1 - P(X = 0) = 1 - 0.2189 = 0.7811.$
You can express the binomial coefficients in terms of factorials to compute the answer. For example,
$20 choose 6 = frac20!6! cdot 14!= 38,760.$
Alternatively, you can use the hypergeometric PDF function dhyper in R statistical software to obtain the answer (or a hypergeometric PDF from other software).
dhyper(0, 5, 20, 6)
[1] 0.2188594
1 - dhyper(0, 5, 20, 6)
[1] 0.7811406
choose(20,6)
[1] 38760
The following R code gives the six probabilities of getting 0 through 5 vegan cups out of six. [Notice that it is impossible to get 6 vegan cups because there are not 6 different ones available.]
x = 0:5; pdf = dhyper(x, 5, 20, 6); cbind(x, pdf)
x pdf
[1,] 0 0.2188594015
[2,] 1 0.4377188029
[3,] 2 0.2735742518
[4,] 3 0.0643704122
[5,] 4 0.0053642010
[6,] 5 0.0001129305
If you might have to compute such probabilities on an ordinary calculator during an exam, maybe you should try computing a couple of these using the general formula below. (The job can be simplified somewhat by noticing that a lot of factors get
canceled.)
$$P(X = k) = frac5choose k20 choose 6-k25 choose 6,$$
for $k = 0, 1, dots, 5.$
Note: If the mother buys six cups out of many, of which $1/5$ are vegan, without making sure she buys all of different kinds, then the number $Y$ of vegan cups purchased has the distribution
$Y sim mathsfBinom(n = 6,, p=1/5),$ which has
$$P(Y = k) = 6choose kleft(frac15right)^kleft(frac45right)^6-k,$$
where $k = 0, 1, dots, 6.$ For example,
$P(Y = 0) = (4/5)^6 = 0.2621.$
Addendum prompted by @Bungo's comments:
The figure below compares the PDF's of the
hypergeometric and binomial distributions mentioned above.

R code below also makes the figure and shows mean and variances of the two distributions.
x = 0:6; pdf.h = dhyper(x, 5, 20, 6)
pdf.b = dbinom(x, 6, 1/5)
plot(x-.05, pdf.h, type="h", col="blue", lwd=2, ylab="PDF",
xlab ="x", main="Hypergeometric (blue) and Binomial PDFs")
lines(x+.05, pdf.b, type="h", col="red", lwd=2)
abline(h=-.001, col="green2")
mu.h=sum(x*pdf.h); mu.h; var.h=sum(x^2*pdf.h) - mu.h^2; var.h
[1] 1.2 # E(X)
[1] 0.76 # Var(X)
mu.b=sum(x*pdf.b); mu.b; var.b=sum(x^2*pdf.b) - mu.b^2; var.b
[1] 1.2 # E(Y)
[1] 0.96 # Var(Y)
1
Comparing the probability of zero vegan ice creams in the two scenarios shows that even if the mother is not required to buy six different kinds, she is better off doing so, if the goal is to minimize the likelihood that none of the ice creams is vegan. This makes intuitive sense, but it's nice to see the probabilities quantified (21.8% if buying distinct kinds versus 26.2% if buying completely at random from a seller who stocks more than one of each type).
â Bungo
Aug 29 at 6:01
1
Interestingly, unless I made a computational error, the mean is identical in both cases: $1.2 = 6/5$.
â Bungo
Aug 29 at 6:10
1
Yes, If there are $N$ items altogether, $a$ of one kind and $b$ of the other, then the expected number of $a$'s chosen in $n le a$ draws without replacement is $nfracaN.$ For the binomial the fraction of $a$'s is $p=fracaN$ and the mean is $np.$ However, the variance of the hypergeometric is smaller than the binomial $np(1-p)$ because the breadth of choices decreases as we sample without replacement.
â BruceET
Aug 29 at 6:16
1
Hypergeometric variance with $p = a/N:$ $np(1-p)left(fracN-nN-1right).$ The last factor is called the 'finite population correction' in polling; often ignored if $n/N < 0.1.$
â BruceET
Aug 29 at 6:59
1
Ah, scratch that, I misread the fraction $(N-n)/(N-1)$ as $(N-a)/(N-1)$. Now it makes more sense! The hypergeometric variance exactly matches the binomial variance if we only perform one draw ($n=1$), as then it doesn't matter whether there is replacement or not. For $n > 1$, the variances are only approximately equal for large $N$.
â Bungo
Aug 29 at 7:20
 |Â
show 2 more comments
up vote
1
down vote
Assuming that the mother buys six different kinds of ice cream at random, we can assume that the number $X$ of vegan cups purchased has a hypergeometric distribution. For example,
$$P(X = 0) = frac5choose 020 choose 625 choose 6 = 0.2189.$$
So the probability she buys at least one vegan cup is
$P(X ge 1) = 1 - P(X = 0) = 1 - 0.2189 = 0.7811.$
You can express the binomial coefficients in terms of factorials to compute the answer. For example,
$20 choose 6 = frac20!6! cdot 14!= 38,760.$
Alternatively, you can use the hypergeometric PDF function dhyper in R statistical software to obtain the answer (or a hypergeometric PDF from other software).
dhyper(0, 5, 20, 6)
[1] 0.2188594
1 - dhyper(0, 5, 20, 6)
[1] 0.7811406
choose(20,6)
[1] 38760
The following R code gives the six probabilities of getting 0 through 5 vegan cups out of six. [Notice that it is impossible to get 6 vegan cups because there are not 6 different ones available.]
x = 0:5; pdf = dhyper(x, 5, 20, 6); cbind(x, pdf)
x pdf
[1,] 0 0.2188594015
[2,] 1 0.4377188029
[3,] 2 0.2735742518
[4,] 3 0.0643704122
[5,] 4 0.0053642010
[6,] 5 0.0001129305
If you might have to compute such probabilities on an ordinary calculator during an exam, maybe you should try computing a couple of these using the general formula below. (The job can be simplified somewhat by noticing that a lot of factors get
canceled.)
$$P(X = k) = frac5choose k20 choose 6-k25 choose 6,$$
for $k = 0, 1, dots, 5.$
Note: If the mother buys six cups out of many, of which $1/5$ are vegan, without making sure she buys all of different kinds, then the number $Y$ of vegan cups purchased has the distribution
$Y sim mathsfBinom(n = 6,, p=1/5),$ which has
$$P(Y = k) = 6choose kleft(frac15right)^kleft(frac45right)^6-k,$$
where $k = 0, 1, dots, 6.$ For example,
$P(Y = 0) = (4/5)^6 = 0.2621.$
Addendum prompted by @Bungo's comments:
The figure below compares the PDF's of the
hypergeometric and binomial distributions mentioned above.

R code below also makes the figure and shows mean and variances of the two distributions.
x = 0:6; pdf.h = dhyper(x, 5, 20, 6)
pdf.b = dbinom(x, 6, 1/5)
plot(x-.05, pdf.h, type="h", col="blue", lwd=2, ylab="PDF",
xlab ="x", main="Hypergeometric (blue) and Binomial PDFs")
lines(x+.05, pdf.b, type="h", col="red", lwd=2)
abline(h=-.001, col="green2")
mu.h=sum(x*pdf.h); mu.h; var.h=sum(x^2*pdf.h) - mu.h^2; var.h
[1] 1.2 # E(X)
[1] 0.76 # Var(X)
mu.b=sum(x*pdf.b); mu.b; var.b=sum(x^2*pdf.b) - mu.b^2; var.b
[1] 1.2 # E(Y)
[1] 0.96 # Var(Y)
1
Comparing the probability of zero vegan ice creams in the two scenarios shows that even if the mother is not required to buy six different kinds, she is better off doing so, if the goal is to minimize the likelihood that none of the ice creams is vegan. This makes intuitive sense, but it's nice to see the probabilities quantified (21.8% if buying distinct kinds versus 26.2% if buying completely at random from a seller who stocks more than one of each type).
â Bungo
Aug 29 at 6:01
1
Interestingly, unless I made a computational error, the mean is identical in both cases: $1.2 = 6/5$.
â Bungo
Aug 29 at 6:10
1
Yes, If there are $N$ items altogether, $a$ of one kind and $b$ of the other, then the expected number of $a$'s chosen in $n le a$ draws without replacement is $nfracaN.$ For the binomial the fraction of $a$'s is $p=fracaN$ and the mean is $np.$ However, the variance of the hypergeometric is smaller than the binomial $np(1-p)$ because the breadth of choices decreases as we sample without replacement.
â BruceET
Aug 29 at 6:16
1
Hypergeometric variance with $p = a/N:$ $np(1-p)left(fracN-nN-1right).$ The last factor is called the 'finite population correction' in polling; often ignored if $n/N < 0.1.$
â BruceET
Aug 29 at 6:59
1
Ah, scratch that, I misread the fraction $(N-n)/(N-1)$ as $(N-a)/(N-1)$. Now it makes more sense! The hypergeometric variance exactly matches the binomial variance if we only perform one draw ($n=1$), as then it doesn't matter whether there is replacement or not. For $n > 1$, the variances are only approximately equal for large $N$.
â Bungo
Aug 29 at 7:20
 |Â
show 2 more comments
up vote
1
down vote
up vote
1
down vote
Assuming that the mother buys six different kinds of ice cream at random, we can assume that the number $X$ of vegan cups purchased has a hypergeometric distribution. For example,
$$P(X = 0) = frac5choose 020 choose 625 choose 6 = 0.2189.$$
So the probability she buys at least one vegan cup is
$P(X ge 1) = 1 - P(X = 0) = 1 - 0.2189 = 0.7811.$
You can express the binomial coefficients in terms of factorials to compute the answer. For example,
$20 choose 6 = frac20!6! cdot 14!= 38,760.$
Alternatively, you can use the hypergeometric PDF function dhyper in R statistical software to obtain the answer (or a hypergeometric PDF from other software).
dhyper(0, 5, 20, 6)
[1] 0.2188594
1 - dhyper(0, 5, 20, 6)
[1] 0.7811406
choose(20,6)
[1] 38760
The following R code gives the six probabilities of getting 0 through 5 vegan cups out of six. [Notice that it is impossible to get 6 vegan cups because there are not 6 different ones available.]
x = 0:5; pdf = dhyper(x, 5, 20, 6); cbind(x, pdf)
x pdf
[1,] 0 0.2188594015
[2,] 1 0.4377188029
[3,] 2 0.2735742518
[4,] 3 0.0643704122
[5,] 4 0.0053642010
[6,] 5 0.0001129305
If you might have to compute such probabilities on an ordinary calculator during an exam, maybe you should try computing a couple of these using the general formula below. (The job can be simplified somewhat by noticing that a lot of factors get
canceled.)
$$P(X = k) = frac5choose k20 choose 6-k25 choose 6,$$
for $k = 0, 1, dots, 5.$
Note: If the mother buys six cups out of many, of which $1/5$ are vegan, without making sure she buys all of different kinds, then the number $Y$ of vegan cups purchased has the distribution
$Y sim mathsfBinom(n = 6,, p=1/5),$ which has
$$P(Y = k) = 6choose kleft(frac15right)^kleft(frac45right)^6-k,$$
where $k = 0, 1, dots, 6.$ For example,
$P(Y = 0) = (4/5)^6 = 0.2621.$
Addendum prompted by @Bungo's comments:
The figure below compares the PDF's of the
hypergeometric and binomial distributions mentioned above.

R code below also makes the figure and shows mean and variances of the two distributions.
x = 0:6; pdf.h = dhyper(x, 5, 20, 6)
pdf.b = dbinom(x, 6, 1/5)
plot(x-.05, pdf.h, type="h", col="blue", lwd=2, ylab="PDF",
xlab ="x", main="Hypergeometric (blue) and Binomial PDFs")
lines(x+.05, pdf.b, type="h", col="red", lwd=2)
abline(h=-.001, col="green2")
mu.h=sum(x*pdf.h); mu.h; var.h=sum(x^2*pdf.h) - mu.h^2; var.h
[1] 1.2 # E(X)
[1] 0.76 # Var(X)
mu.b=sum(x*pdf.b); mu.b; var.b=sum(x^2*pdf.b) - mu.b^2; var.b
[1] 1.2 # E(Y)
[1] 0.96 # Var(Y)
Assuming that the mother buys six different kinds of ice cream at random, we can assume that the number $X$ of vegan cups purchased has a hypergeometric distribution. For example,
$$P(X = 0) = frac5choose 020 choose 625 choose 6 = 0.2189.$$
So the probability she buys at least one vegan cup is
$P(X ge 1) = 1 - P(X = 0) = 1 - 0.2189 = 0.7811.$
You can express the binomial coefficients in terms of factorials to compute the answer. For example,
$20 choose 6 = frac20!6! cdot 14!= 38,760.$
Alternatively, you can use the hypergeometric PDF function dhyper in R statistical software to obtain the answer (or a hypergeometric PDF from other software).
dhyper(0, 5, 20, 6)
[1] 0.2188594
1 - dhyper(0, 5, 20, 6)
[1] 0.7811406
choose(20,6)
[1] 38760
The following R code gives the six probabilities of getting 0 through 5 vegan cups out of six. [Notice that it is impossible to get 6 vegan cups because there are not 6 different ones available.]
x = 0:5; pdf = dhyper(x, 5, 20, 6); cbind(x, pdf)
x pdf
[1,] 0 0.2188594015
[2,] 1 0.4377188029
[3,] 2 0.2735742518
[4,] 3 0.0643704122
[5,] 4 0.0053642010
[6,] 5 0.0001129305
If you might have to compute such probabilities on an ordinary calculator during an exam, maybe you should try computing a couple of these using the general formula below. (The job can be simplified somewhat by noticing that a lot of factors get
canceled.)
$$P(X = k) = frac5choose k20 choose 6-k25 choose 6,$$
for $k = 0, 1, dots, 5.$
Note: If the mother buys six cups out of many, of which $1/5$ are vegan, without making sure she buys all of different kinds, then the number $Y$ of vegan cups purchased has the distribution
$Y sim mathsfBinom(n = 6,, p=1/5),$ which has
$$P(Y = k) = 6choose kleft(frac15right)^kleft(frac45right)^6-k,$$
where $k = 0, 1, dots, 6.$ For example,
$P(Y = 0) = (4/5)^6 = 0.2621.$
Addendum prompted by @Bungo's comments:
The figure below compares the PDF's of the
hypergeometric and binomial distributions mentioned above.

R code below also makes the figure and shows mean and variances of the two distributions.
x = 0:6; pdf.h = dhyper(x, 5, 20, 6)
pdf.b = dbinom(x, 6, 1/5)
plot(x-.05, pdf.h, type="h", col="blue", lwd=2, ylab="PDF",
xlab ="x", main="Hypergeometric (blue) and Binomial PDFs")
lines(x+.05, pdf.b, type="h", col="red", lwd=2)
abline(h=-.001, col="green2")
mu.h=sum(x*pdf.h); mu.h; var.h=sum(x^2*pdf.h) - mu.h^2; var.h
[1] 1.2 # E(X)
[1] 0.76 # Var(X)
mu.b=sum(x*pdf.b); mu.b; var.b=sum(x^2*pdf.b) - mu.b^2; var.b
[1] 1.2 # E(Y)
[1] 0.96 # Var(Y)
edited Aug 29 at 7:17
answered Aug 29 at 5:52
BruceET
33.7k71440
33.7k71440
1
Comparing the probability of zero vegan ice creams in the two scenarios shows that even if the mother is not required to buy six different kinds, she is better off doing so, if the goal is to minimize the likelihood that none of the ice creams is vegan. This makes intuitive sense, but it's nice to see the probabilities quantified (21.8% if buying distinct kinds versus 26.2% if buying completely at random from a seller who stocks more than one of each type).
â Bungo
Aug 29 at 6:01
1
Interestingly, unless I made a computational error, the mean is identical in both cases: $1.2 = 6/5$.
â Bungo
Aug 29 at 6:10
1
Yes, If there are $N$ items altogether, $a$ of one kind and $b$ of the other, then the expected number of $a$'s chosen in $n le a$ draws without replacement is $nfracaN.$ For the binomial the fraction of $a$'s is $p=fracaN$ and the mean is $np.$ However, the variance of the hypergeometric is smaller than the binomial $np(1-p)$ because the breadth of choices decreases as we sample without replacement.
â BruceET
Aug 29 at 6:16
1
Hypergeometric variance with $p = a/N:$ $np(1-p)left(fracN-nN-1right).$ The last factor is called the 'finite population correction' in polling; often ignored if $n/N < 0.1.$
â BruceET
Aug 29 at 6:59
1
Ah, scratch that, I misread the fraction $(N-n)/(N-1)$ as $(N-a)/(N-1)$. Now it makes more sense! The hypergeometric variance exactly matches the binomial variance if we only perform one draw ($n=1$), as then it doesn't matter whether there is replacement or not. For $n > 1$, the variances are only approximately equal for large $N$.
â Bungo
Aug 29 at 7:20
 |Â
show 2 more comments
1
Comparing the probability of zero vegan ice creams in the two scenarios shows that even if the mother is not required to buy six different kinds, she is better off doing so, if the goal is to minimize the likelihood that none of the ice creams is vegan. This makes intuitive sense, but it's nice to see the probabilities quantified (21.8% if buying distinct kinds versus 26.2% if buying completely at random from a seller who stocks more than one of each type).
â Bungo
Aug 29 at 6:01
1
Interestingly, unless I made a computational error, the mean is identical in both cases: $1.2 = 6/5$.
â Bungo
Aug 29 at 6:10
1
Yes, If there are $N$ items altogether, $a$ of one kind and $b$ of the other, then the expected number of $a$'s chosen in $n le a$ draws without replacement is $nfracaN.$ For the binomial the fraction of $a$'s is $p=fracaN$ and the mean is $np.$ However, the variance of the hypergeometric is smaller than the binomial $np(1-p)$ because the breadth of choices decreases as we sample without replacement.
â BruceET
Aug 29 at 6:16
1
Hypergeometric variance with $p = a/N:$ $np(1-p)left(fracN-nN-1right).$ The last factor is called the 'finite population correction' in polling; often ignored if $n/N < 0.1.$
â BruceET
Aug 29 at 6:59
1
Ah, scratch that, I misread the fraction $(N-n)/(N-1)$ as $(N-a)/(N-1)$. Now it makes more sense! The hypergeometric variance exactly matches the binomial variance if we only perform one draw ($n=1$), as then it doesn't matter whether there is replacement or not. For $n > 1$, the variances are only approximately equal for large $N$.
â Bungo
Aug 29 at 7:20
1
1
Comparing the probability of zero vegan ice creams in the two scenarios shows that even if the mother is not required to buy six different kinds, she is better off doing so, if the goal is to minimize the likelihood that none of the ice creams is vegan. This makes intuitive sense, but it's nice to see the probabilities quantified (21.8% if buying distinct kinds versus 26.2% if buying completely at random from a seller who stocks more than one of each type).
â Bungo
Aug 29 at 6:01
Comparing the probability of zero vegan ice creams in the two scenarios shows that even if the mother is not required to buy six different kinds, she is better off doing so, if the goal is to minimize the likelihood that none of the ice creams is vegan. This makes intuitive sense, but it's nice to see the probabilities quantified (21.8% if buying distinct kinds versus 26.2% if buying completely at random from a seller who stocks more than one of each type).
â Bungo
Aug 29 at 6:01
1
1
Interestingly, unless I made a computational error, the mean is identical in both cases: $1.2 = 6/5$.
â Bungo
Aug 29 at 6:10
Interestingly, unless I made a computational error, the mean is identical in both cases: $1.2 = 6/5$.
â Bungo
Aug 29 at 6:10
1
1
Yes, If there are $N$ items altogether, $a$ of one kind and $b$ of the other, then the expected number of $a$'s chosen in $n le a$ draws without replacement is $nfracaN.$ For the binomial the fraction of $a$'s is $p=fracaN$ and the mean is $np.$ However, the variance of the hypergeometric is smaller than the binomial $np(1-p)$ because the breadth of choices decreases as we sample without replacement.
â BruceET
Aug 29 at 6:16
Yes, If there are $N$ items altogether, $a$ of one kind and $b$ of the other, then the expected number of $a$'s chosen in $n le a$ draws without replacement is $nfracaN.$ For the binomial the fraction of $a$'s is $p=fracaN$ and the mean is $np.$ However, the variance of the hypergeometric is smaller than the binomial $np(1-p)$ because the breadth of choices decreases as we sample without replacement.
â BruceET
Aug 29 at 6:16
1
1
Hypergeometric variance with $p = a/N:$ $np(1-p)left(fracN-nN-1right).$ The last factor is called the 'finite population correction' in polling; often ignored if $n/N < 0.1.$
â BruceET
Aug 29 at 6:59
Hypergeometric variance with $p = a/N:$ $np(1-p)left(fracN-nN-1right).$ The last factor is called the 'finite population correction' in polling; often ignored if $n/N < 0.1.$
â BruceET
Aug 29 at 6:59
1
1
Ah, scratch that, I misread the fraction $(N-n)/(N-1)$ as $(N-a)/(N-1)$. Now it makes more sense! The hypergeometric variance exactly matches the binomial variance if we only perform one draw ($n=1$), as then it doesn't matter whether there is replacement or not. For $n > 1$, the variances are only approximately equal for large $N$.
â Bungo
Aug 29 at 7:20
Ah, scratch that, I misread the fraction $(N-n)/(N-1)$ as $(N-a)/(N-1)$. Now it makes more sense! The hypergeometric variance exactly matches the binomial variance if we only perform one draw ($n=1$), as then it doesn't matter whether there is replacement or not. For $n > 1$, the variances are only approximately equal for large $N$.
â Bungo
Aug 29 at 7:20
 |Â
show 2 more comments
3
I'm confused about the question. Surely this is up to the mother? She could buy all vegan, none of them vegan, or anywhere in between? If her son is vegan, then presumably she'd buy $6$ vegan ice creams? The question is not clear, and needs its rules explained more carefully (e.g. maybe the mother isn't allowed to get two of the same type of ice cream?).
â Theo Bendit
Aug 29 at 5:02
2
Apparently the mother doesn't know which flavores are vegan or not. That's the probabilty aspect and the possibilities listed in the question.
â giusti
Aug 29 at 5:06
2
Except that the question itself mentioned nothing about probabilities. The question is seriously confused.
â Robert Israel
Aug 29 at 5:08
1
I agree. Some important details are missing. But the probability aspect is in the tags.
â giusti
Aug 29 at 5:09
3
All I'm saying is: I think this question is salvageable. Let's give the author a chance before burying it in downvotes. :)
â giusti
Aug 29 at 5:11