Probability theory. quick question regarding conditionalizing the binomial dist

Click For Summary

Homework Help Overview

The discussion revolves around the properties of the binomial distribution B(n,p) where n is uniformly distributed over the integers from 1 to 5. Participants are exploring the expected value and variance of the distribution, as well as the implications of setting p to 1.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the expected value and variance calculations, questioning the validity of results when p equals 1. There is also exploration of how to calculate the probability of a specific number of successes while considering the distribution of n.

Discussion Status

Some participants have provided insights into the calculations and implications of the variance, while others are clarifying the approach to calculating probabilities based on the distribution of n. There is an ongoing examination of assumptions and interpretations without a clear consensus.

Contextual Notes

Participants are navigating the complexities of conditional probabilities and the implications of different values of n on the binomial distribution. There is a focus on ensuring that the distribution of n is appropriately considered in calculations.

Applejacks01
Messages
26
Reaction score
0
Hello,
so suppose we have B(n,p), where n is discretely uniformly distributed on the integers of the interval (1,5)

Is the expected value 3p, and is the variance 3p-p^2
?

I arrived at those answers by treating n as another variable, so np/5 summed over all n is 3p, and similar logic for E(x^2) yields the variance.

Also when I use the equation E(V(Y/n)) + V(E(Y/n)) I get the same variance.

However this will give a non-zero variance for p =1, which makes NO sense.

Please advise.

Thank you very much
 
Last edited:
Physics news on Phys.org
Applejacks01 said:
Hello,
so suppose we have B(n,p), where n is discretely uniformly distributed on the integers of the interval (1,5)

Is the expected value 3p, and is the variance 3p-p^2
?

I arrived at those answers by treating n as another variable, so np/5 summed over all n is 3p, and similar logic for E(x^2) yields the variance.

Also when I use the equation E(V(Y/n)) + V(E(Y/n)) I get the same variance.

However this will give a non-zero variance for p =1, which makes NO sense.

Please advise.

Thank you very much

If p = 1, every trial gives "success". Is there variation in the number of trials?

RGV
 
I didn't think about it like that. You're right..there is variation. I suppose that would make sense.

So in general, for the binomial given n, where n is distributed by f(n) we have the variance is:
Sum(Sum f(n)*B(n,p)*x^2 over all x) over all n) - (Sum(Sum f(n)*B(n,p)*x over all x) over all n))^2

Which can be simplified or evaluated much quicker using the law of total variance.

Thanks for your help!
 
Hi, I actually have one more question.
suppose I wanted to calculate the probability that x=#successes =2.
Do I need to conditionalize f(n) = distribution of n(# trials) such that n>=2, or do I just assume that the probabilities when n=0 and 1 are 0??
 
Applejacks01 said:
Hi, I actually have one more question.
suppose I wanted to calculate the probability that x=#successes =2.
Do I need to conditionalize f(n) = distribution of n(# trials) such that n>=2, or do I just assume that the probabilities when n=0 and 1 are 0??

P\{X=2\} = \sum_{n=1}^5 f(n) P\{X=5 | n \}.
What do you think the values of P{X=5|n} are for n = 1 and 2?

RGV
 
Well actually I think that P(X=2) is Sum C(n,2) *p^2 * (1-p)^(n-2) from n = 1 to 5, and when n equals 1, C(n,2) =0.

But to directly answer your question,I would say the values are 0.

Sorry for not using latex BTW. I'm on my lunch break. Just trying to learn.
 
Last edited:
Applejacks01 said:
Well actually I think that P(X=2) is Sum C(n,2) *p^2 * (1-p)^(n-2) from n = 1 to 5, and when n equals 1 or 2 C(n,2) =0.

But to directly answer your question,I would say the values are 0.

Sorry for not using latex BTW. I'm on my lunch break. Just trying to learn.

Your answer for P(X=2) is correct; the point is that you use the original f(n), and not some conditional version of it, and you let P{X=k|n} take care of the zeros or not.

Don't worry about not using LaTeX; what you wrote is clear enough and not very complicated, so it is perfectly readable without ambiguity.

RGV
 
Ray Vickson said:
Your answer for P(X=2) is correct; the point is that you use the original f(n), and not some conditional version of it, and you let P{X=k|n} take care of the zeros or not.

Don't worry about not using LaTeX; what you wrote is clear enough and not very complicated, so it is perfectly readable without ambiguity.

RGV

Thank you so much Ray, you've been very helpful!
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
5K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
9K