Poisson distribution involving 2 variables

In summary, the probability of exactly 3 cups of drink being sold in a period of 3 minutes, where all 3 cups are coffee, is 0.07612. This is calculated by dividing the probability of 3 cups of coffee and 0 cups of tea being sold by the total probability of exactly 3 cups of drink being sold (0.421).
  • #1
somecelxis
121
0

Homework Statement



A coffee shop sell tea and coffee. The number of cups of coffee sold in a minute can be assumed to be a random poisson variable with mean = 1.5 . The number of cups of tea sold can be assumed to be an independent random variable with mean = 0.5.
Calculate the probablity that in a period of 3minutes , less than 5 cups of drink were sold.

Homework Equations





The Attempt at a Solution


less than 5 cups drink sold= 4 cup + 3 cup + 2 cup +1 cup + 0 cup, ( I let coffee = X , tea = Y) ,
so i have ( 3X , 1Y ) + ( 3Y , 1X ) +( 2X , 1Y) +( 2Y , 1X) + ( 1X , 1Y) +(2X , 0Y) + (2Y , 0X) + (1X) + (1Y) = 0.877 , please refer to the photo below for the working.

sorry , since this involve complicated maths formula , so i can't type it one by one and post it here . i attached the working in the photo .
 

Attachments

  • imid.JPG
    imid.JPG
    66.2 KB · Views: 480
Physics news on Phys.org
  • #2
Care with your notation 3X is "3 multiplied into X".
P(x,y):=P(X=x,Y=y) would be the probability of x coffees and y teas being sold in the same 3min interval.
By (3X,1Y) I assume you mean 3 coffees and 1 tea, or (x,y)=(3,1).

I cannot see your reasoning from the sheet of calculations you attached.
Are tea and coffee sales independent?
 
  • Like
Likes 1 person
  • #3
The problem says "The number of cups of tea sold can be assumed to be an independent random variable". That doesn't say "independent" of what but since "number of cups of coffee sold" is the only other random variable, yes, I believe it is saying that tea and coffee sales are independent. (Which, in real situation, I would not consider likely.)
 
  • Like
Likes 1 person
  • #4
You *can* do it like that (assuming independent sales). However, splitting it up in all cases is not a priori required. What is the distribution of the sum of two independent Poisson distributions?
 
  • Like
Likes 1 person
  • #5
Simon Bridge said:
Care with your notation 3X is "3 multiplied into X".
P(x,y):=P(X=x,Y=y) would be the probability of x coffees and y teas being sold in the same 3min interval.
By (3X,1Y) I assume you mean 3 coffees and 1 tea, or (x,y)=(3,1).

I cannot see your reasoning from the sheet of calculations you attached.
Are tea and coffee sales independent?

yes , both are independent. can you tell me why i am wrong?
 
  • #7
Simon Bridge said:
Are you wrong? It is hard to tell because you have not commented your work.
It certainly looks sub-optimal.

There are two main approaches - either work through each possible combination (which works faster in table form) or by combining the two distributions.
https://proofwiki.org/wiki/Sum_of_Independent_Poisson_Random_Variables_is_Poisson

by introducing new variable , i ahve the new mean = 3(1.5+0.50 = 6 , then i plug in the mean into the poisson formua , then i got the ans eventually..
 
  • #8
Simon Bridge said:
Are you wrong? It is hard to tell because you have not commented your work.
It certainly looks sub-optimal.

There are two main approaches - either work through each possible combination (which works faster in table form) or by combining the two distributions.
https://proofwiki.org/wiki/Sum_of_Independent_Poisson_Random_Variables_is_Poisson

here's another part of the question .
In a period of a minutes , exactly 3 cups of drink were sold. Find the probality of that 3 cups sold were coffee ,
i let X = coffee Y= tea
I have attached the working in the photo.
my working is P(3 cups coffee n 0 cup tea ) / P( 3 drinks ) = 0.42

in the photo , for P( 3 drinks ), i have inserted the value of X and Y and calcultaed outside, the ans is 0.180 the formula for the coffee and tea is shown in the photo. p/s : probability of 3 drinks = P(3X , 0Y) + P(2X , 1Y) +P(1X, 2Y ) + P(3 Y , 0X)= 0.180 P(3 cups coffee n 0 cup tea )= 0.07612. then i take P(3 cups coffee n 0 cup tea ) / P( 3 drinks ) = 0.42 , But the ans is 0.442.
 

Attachments

  • IMG_20140817_222510[1].jpg
    IMG_20140817_222510[1].jpg
    31.7 KB · Views: 419
  • #9
somecelxis said:
by introducing new variable , i ahve the new mean = 3(1.5+0.50 = 6 , then i plug in the mean into the poisson formua , then i got the ans eventually..

Are you saying that for independent Poisson random variables X and Y the total, X+Y, is also a Poisson random variable? That, of course, is a very well-known result and is found in every probability textbook.
 
  • Like
Likes 1 person
  • #10
somecelxis said:
here's another part of the question .
In a period of a minutes , exactly 3 cups of drink were sold. Find the probality of that 3 cups sold were coffee ,
Please be careful of your notation and comment your work so I can see your reasoning.

It is not good enough to get the answer - even the correct answer is not good enough - you must also be able to show someone else how you got the answer so that they can easily follow your working.
 
  • #11
somecelxis said:
here's another part of the question .
In a period of a minutes , exactly 3 cups of drink were sold. Find the probality of that 3 cups sold were coffee ,
i let X = coffee Y= tea
I have attached the working in the photo.
my working is P(3 cups coffee n 0 cup tea ) / P( 3 drinks ) = 0.42

in the photo , for P( 3 drinks ), i have inserted the value of X and Y and calcultaed outside, the ans is 0.180 the formula for the coffee and tea is shown in the photo. p/s : probability of 3 drinks = P(3X , 0Y) + P(2X , 1Y) +P(1X, 2Y ) + P(3 Y , 0X)= 0.180 P(3 cups coffee n 0 cup tea )= 0.07612


. then i take P(3 cups coffee n 0 cup tea ) / P( 3 drinks ) = 0.42 , But the ans is 0.442.

The correct answer is (3/4)^3 = 27/64 = 0.421875, so your answer is OK.

BTW: The distribution of P(C=k|C+T=n) (C = coffee sales, T = tea sales) is very well known; see almost any textbook and several web pages found from searching on keywords 'poisson distribution'. You will gain a lot more insight if you first evaluate it symbolically and then plug in numbers at the end! This also makes the computations a lot easier.

Finally: please try to respect PF standards, and post typed versions of your work whenever possible. Your submitted photo is almost useless: it is uncommented, messy and does not show enough intermediate steps. Try to reserve thumbnails for things like drawings and diagrams, etc. Usually I do not look at such thumbnails, and often I cannot even read them at all on some media.
 
  • #12
by introducing new variable = number of cups of coffee and tea sold which is equivalent to sales of coffee + sales of tea. to find the In a period of a minutes , exactly 3 cups of drink were sold. Find the probality of that 3 cups sold were coffee
i have P(W=3) = ((e^-6)(6^3) )/3! = 0.0892 , then i take 0.07612 divided by 0.0892 , ans = 0.85 , why can't i do in this way?
 
  • #13
somecelxis said:
by introducing new variable = number of cups of coffee and tea sold which is equivalent to sales of coffee + sales of tea. to find the In a period of a minutes , exactly 3 cups of drink were sold. Find the probality of that 3 cups sold were coffee
i have P(W=3) = ((e^-6)(6^3) )/3! = 0.0892 , then i take 0.07612 divided by 0.0892 , ans = 0.85 , why can't i do in this way?

Where does the 0.07612 come from? It looks wrong.
 
  • #14
Ray Vickson said:
Where does the 0.07612 come from? It looks wrong.

( (e^-1.5)(1.5^3)/ 3! ) x ( (e^-0.5)(0.5^0) / 0!) =0.07612
 
  • #15
somecelxis said:
( (e^-1.5)(1.5^3)/ 3! ) x ( (e^-0.5)(0.5^0) / 0!) =0.07612

Should be
[tex]P(C = 3,T = 0) = \frac{e^{-c}c^3}{3!} \cdot e^{-t}[/tex]
where ##c = 3 \times 1.5 = 4.5, t = 3 \times 0.5 = 1.5##.

That, by the way, is one very good reason for the advice I gave you before (first write things out symbolically, then substitute numbers afterwards). It really does help to avoid blunders, as well as helping to make the work readable.

Edit: sorry. I see the time period is now 1 minute, not three, so your numerator was correct. Your denominator was wrong, however: it should be
[tex] P(C+T=3) = \frac{e^{-2} 2^3}{3!}[/tex]
because C and T are now independent Poisson random variables with means 1.5 and 0.5.

The answer is still ##(3/4)^3 = 27/64##. This answer would be the same if we asked for the probability of 3 coffees given 3 drinks in 1 year, one microsecond, 1 hour, or any time period! You will see that if you write things out symbolically!
 
Last edited:

What is the Poisson distribution?

The Poisson distribution is a probability distribution that is used to model the number of events that occur in a fixed interval of time or space. It is often used in situations where events occur randomly and independently.

How does the Poisson distribution involve 2 variables?

The Poisson distribution involves 2 variables, lambda (λ) and x. Lambda represents the average number of events that occur in a given interval, while x represents the number of events that actually occur in that interval.

What is the formula for the Poisson distribution?

The formula for the Poisson distribution is P(x;λ) = (e^-λ * λ^x) / x!, where e is the base of the natural logarithm, λ is the average number of events, x is the actual number of events, and x! is the factorial of x.

What are some real-life examples of the Poisson distribution involving 2 variables?

The Poisson distribution can be used to model the number of customers arriving at a store in a given hour, the number of accidents on a highway in a given day, or the number of calls received by a call center in a given minute. In these examples, lambda would represent the average number of events (customers, accidents, calls) and x would represent the actual number of events that occur in a specific time interval.

How do you use the Poisson distribution to calculate probabilities?

To calculate probabilities using the Poisson distribution, plug in the values of lambda and x into the formula P(x;λ) = (e^-λ * λ^x) / x!. This will give you the probability of x events occurring in a given interval with an average of λ events. You can also use a Poisson distribution table or a calculator to find probabilities.

Similar threads

  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
837
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
5
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
12
Views
2K
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
1K
Back
Top