Solve Probability Question Homework: Ex, Var X

  • Thread starter Thread starter GreenPrint
  • Start date Start date
  • Tags Tags
    Probability
AI Thread Summary
The discussion revolves around calculating the expected value (E[X]) and variance (Var X) of a random variable X that takes on specific values with equal probabilities. The user derives E[X] using the formula for the expected value of a uniformly distributed variable and expresses it in terms of a summation. However, there is confusion regarding the final result, as the user's calculation yields a different answer than the one provided by the professor's answer key. The user questions the correctness of their approach and seeks clarification on the discrepancy, particularly regarding the summation of the first n+1 integers. The conversation highlights the importance of correctly applying probability and summation formulas in statistical calculations.
GreenPrint
Messages
1,186
Reaction score
0

Homework Statement



Random variable X takes values a,a+Δ,a+2Δ,...,a+nΔ with equal probabilities. (a) What is Ex? (b) What is Var X?

Homework Equations


The Attempt at a Solution



X = [a,a+Δ,a+2Δ,...,a+nΔ]
X = a+(X'-1)Δ
where X' is some random variable
X' = [1,2,...,n+1]
I test to make sure this is true
X = [a+(1-1)Δ,a+(2-1)Δ,a+(3-1)Δ...,a+(n+1-1)Δ]=[a,a+Δ,a+2Δ...,a+nΔ]
So it's true.

E[X] = E[a+(X'-1)Δ] = a+(E[X']-1)Δ

E[X']=\sum^{n+1}_{X'=1}X'P(X')

Since X has equal probabilities then X' has equal probabilities so it's just
P(X') = \frac{1}{number of entities}
number of entities in this case is n+1 so
E[X']=\sum^{n+1}_{X'=1}X'(\frac{1}{n+1})
So I can pull out the constant from the summation
=\frac{1}{n+1}\sum^{n+1}_{X'=1}X'=\frac{1}{n+1}(1+2+...+n+1)
I know that the quantity 1+2+...+n+1 can be expressed as 1+\frac{(n+1)n}{2} so...
\frac{1}{n+1}(1+\frac{(n+1)n}{2}) = \frac{1}{n+1}+\frac{n}{2}

however the answer key which my professor made up says that it should be \frac{n}{2}+1. However I don't see how my answer is wrong.

Thanks for any help that anyone can provide me in solving this problem. My professor didn't show in the answer key how hey got this and just wrote it without showing any work. I think he may be wrong.
 
Physics news on Phys.org
GreenPrint said:

Homework Statement



Random variable X takes values a,a+Δ,a+2Δ,...,a+nΔ with equal probabilities. (a) What is Ex? (b) What is Var X?

Homework Equations





The Attempt at a Solution



X = [a,a+Δ,a+2Δ,...,a+nΔ]
X = a+(X'-1)Δ
where X' is some random variable
X' = [1,2,...,n+1]
I test to make sure this is true
X = [a+(1-1)Δ,a+(2-1)Δ,a+(3-1)Δ...,a+(n+1-1)Δ]=[a,a+Δ,a+2Δ...,a+nΔ]
So it's true.

E[X] = E[a+(X'-1)Δ] = a+(E[X']-1)Δ

E[X']=\sum^{n+1}_{X'=1}X'P(X')

Since X has equal probabilities then X' has equal probabilities so it's just
P(X') = \frac{1}{number of entities}
number of entities in this case is n+1 so
E[X']=\sum^{n+1}_{X'=1}X'(\frac{1}{n+1})
So I can pull out the constant from the summation
=\frac{1}{n+1}\sum^{n+1}_{X'=1}X'=\frac{1}{n+1}(1+2+...+n+1)
I know that the quantity 1+2+...+n+1 can be expressed as 1+\frac{(n+1)n}{2} so...
\frac{1}{n+1}(1+\frac{(n+1)n}{2}) = \frac{1}{n+1}+\frac{n}{2}

however the answer key which my professor made up says that it should be \frac{n}{2}+1. However I don't see how my answer is wrong.

Thanks for any help that anyone can provide me in solving this problem. My professor didn't show in the answer key how hey got this and just wrote it without showing any work. I think he may be wrong.

\sum_{i=0}^n i = \sum_{i=1}^n i = \frac{1}{2}n(n+1).
 
But I want to sum to n+1 and not n. How does this effect the answer? I haven't taken calculus 2 in several semesters. I remember some change of base thing.

\sum^{n+1}_{X'=1}X'=\sum^{n}_{X'=0}(X'-1)

Is this correct?
 
So now that I think of it using the information you provided

\frac{1}{n+1}\sum^{n+1}_{X'=1}X'=\frac{1}{n+1}\sum [1 + 2 + 3 + ... + n+1] = \frac{1}{n+1}(1+[1+ 2+ 3 + ... + n]) = \frac{1}{n+1}(1+\frac{1}{2}n(n+1))=\frac{1}{n+1}+.5 n

I still get the same answer
 
GreenPrint said:
So now that I think of it using the information you provided

\frac{1}{n+1}\sum^{n+1}_{X'=1}X'=\frac{1}{n+1}\sum [1 + 2 + 3 + ... + n+1] = \frac{1}{n+1}(1+[1+ 2+ 3 + ... + n]) = \frac{1}{n+1}(1+\frac{1}{2}n(n+1))=\frac{1}{n+1}+.5 n

I still get the same answer

It is still wrong. Start again, and do not bother to look at X'; just go with the original X.
 
What am I doing wrong though? I can't seem to find what it is exactly that I am doing wrong.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top