Simple Probability Question (with p.d.f.)

  • Thread starter Thread starter FeDeX_LaTeX
  • Start date Start date
  • Tags Tags
    Probability
Click For Summary

Homework Help Overview

The problem involves a scenario where a person takes a random portion of a cake containing four randomly placed currants. The proportion taken is represented by a random variable with a specified probability density function (PDF). The questions posed include finding the expected number of currants in the portion taken and determining the probability of having taken more than half the cake given that all four currants are found in that portion.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants discuss the calculation of the expected number of currants based on the PDF and the implications of the random distribution of currants. There is exploration of conditional probabilities related to finding all currants in a portion and the size of that portion. Some participants question the independence of the events involved and how to properly combine probabilities.

Discussion Status

Participants are actively engaging with the problem, sharing their attempts and reasoning. Some have provided calculations and insights into the nature of the probability distributions involved, while others express uncertainty about the correct approach to combining probabilities and the implications of independence.

Contextual Notes

There is an ongoing discussion about the independence of the placement of currants and the size of the portion taken, as well as the need to consider continuous distributions in the context of conditional probabilities.

FeDeX_LaTeX
Science Advisor
Messages
436
Reaction score
13
Homework Statement

"The cakes in our canteen each contain exactly four currants, each currant being randomly placed in the cake. I take a proportion X of a cake where X is a random variable with density function

f(x) = Ax

for 0 ≤ x ≤ 1, where A is a constant.

(i) What is the expected number of currants in my portion?
(ii) If I find all four currants in my portion, what is the probability that I took more than
half the cake?"

The attempt at a solution

First part seems pretty straightforward.

[tex]\int_{0}^{1} Axdx = 1 \implies A = 2[/tex]

So f(x) = 2x.

[tex]E(X) = \int_{0}^{1} x \cdot 2xdx = \frac{2}{3}[/tex]

The 4 currents are randomly distributed, so the expected number of currents in my portion is 4*(2/3) = 8/3.

I can find the probability of taking more than half the cake (integrating the PDF between 1/2 and 1 gives 3/4), but not sure what to do about the 4 currants in my portion in part (ii). It's a conditional probability so I'd also need to know how to find the probability of having 4 currants AND more than half the portion, and I don't know how to do that... can anyone help me?
 
Physics news on Phys.org
FeDeX_LaTeX said:
Homework Statement

"The cakes in our canteen each contain exactly four currants, each currant being randomly placed in the cake. I take a proportion X of a cake where X is a random variable with density function

f(x) = Ax

for 0 ≤ x ≤ 1, where A is a constant.

(i) What is the expected number of currants in my portion?
(ii) If I find all four currants in my portion, what is the probability that I took more than
half the cake?"

The attempt at a solution

First part seems pretty straightforward.

[tex]\int_{0}^{1} Axdx = 1 \implies A = 2[/tex]

So f(x) = 2x.

[tex]E(X) = \int_{0}^{1} x \cdot 2xdx = \frac{2}{3}[/tex]

The 4 currents are randomly distributed, so the expected number of currents in my portion is 4*(2/3) = 8/3.

I can find the probability of taking more than half the cake (integrating the PDF between 1/2 and 1 gives 3/4), but not sure what to do about the 4 currants in my portion in part (ii). It's a conditional probability so I'd also need to know how to find the probability of having 4 currants AND more than half the portion, and I don't know how to do that... can anyone help me?

For given proportion x, the probability that a current falls into it is x, so the distribution of the number of currents in it is binomial with parameters n = 4 and p = x. Can you take it from here?
 
I see, so the probability of having 4 currants in my portion is x^4. But how can I use that and combine it with having more than half the cake?
 
Wait, currants are independent of the proportion size, right? So can I just multiply x^4 by 2x and integrate? Or is that not the way...?
 
FeDeX_LaTeX said:
can I just multiply x^4 by 2x and integrate?
That would give you the probability of getting 4 currants, no?
What equations do you know relating joint and conditional probabilities?
 
Using P(A n B) = P(A|B)P(B), I'm getting 63/64. But I still can't intuitively understand why I can just multiply x^4 by 2x...
 
FeDeX_LaTeX said:
Using P(A n B) = P(A|B)P(B), I'm getting 63/64. But I still can't intuitively understand why I can just multiply x^4 by 2x...

You do not want the probability of an individual value of x; you want the probability that the proportion lies in the interval 1/2 <= x <= 1.
 
So I can multiply them only because finding a current and the proportion size are independent?
 
FeDeX_LaTeX said:
So I can multiply them only because finding a current and the proportion size are independent?
They're not independent.
Applying conditional probabilities here may be a little different from what you're used to because we have to consider 'individual' values in a continuous distribution. I.e. we work with the density function rather than actual probabilities of events. This can be made rigorous by considering the prob that the size of your slice is in some small range R(x) = (x, x+dx).
P[currants = n & slice size in R(x)] = P[currants = n | slice size in R(x)] * P[slice size in R(x)]
You should be able to write down the two terms on the RHS.
Also
P[currants = n & slice size in R(x)] = P[slice size in R(x) | currants = n] * P[currants = n]
 

Similar threads

Replies
6
Views
2K
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
1K
Replies
3
Views
2K