P and Q are integers

Algebra Level 5

If p + q = 1 p+q=1 , evaluate r = 0 n r 2 ( n r ) p r q n r \Large\sum\limits_{r=0}^nr^2\binom{n}{r}p^rq^{n-r}

Take n = 11 , p = 0.34 n= 11,~p = 0.34


The answer is 16.456.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Method 1

r = 0 n r 2 ( n r ) p r q n r = r = 0 n n p ( n 1 r 1 ) r p r 1 q n r = n p r = 0 n d d p ( ( n 1 r 1 ) p r q n r ) = n p d d p [ p ( p + q ) n 1 ] = n p [ ( p + q ) n 1 + ( n 1 ) p ( p + q ) n 2 ] = n p + n ( n 1 ) p 2 \displaystyle \begin{aligned}\sum\limits_{r=0}^nr^2\binom{n}{r}p^rq^{n-r} &=\sum\limits_{r=0}^nnp\binom{n-1}{r-1}rp^{r-1}q^{n-r}\\ &=np\sum\limits_{r=0}^n\dfrac{\mathrm{d}}{\mathrm{d}p}\left(\binom{n-1}{r-1}p^rq^{n-r}\right)\\ &=np\dfrac{\mathrm{d}}{\mathrm{d}p}\left[p(p+q)^{n-1}\right]\\ &=np\left[(p+q)^{n-1} + (n-1)p(p+q)^{n-2}\right]\\ &=np + n(n-1)p^2\end{aligned}\\

r = 0 n r 2 ( n r ) p r q n r = n p + n ( n 1 ) p 2 \Huge\displaystyle \therefore\boxed{\sum\limits_{r=0}^nr^2\binom{n}{r}p^rq^{n-r} = np + n(n-1)p^2}

Moderator note:

There are 2 ways to "get rid" of the r r term. One way is to integrate / differentiate it, and the other is to use the relation that ( n r ) = n r ( n 1 r 1 ) { n \choose r } = \frac{n}{r} { n - 1 \choose r - 1 } .

@Calvin Lin sir, that was method 2, which I did not mention... Thanks!

Kishore S. Shenoy - 5 years, 8 months ago

Log in to reply

Well, you actually used both ways in this method, so I was pointing out how to make the r 2 r^2 disappear. It would be nice if you added an approach which only used one of these ways (twice) to obtain the answer.

Calvin Lin Staff - 5 years, 8 months ago

Log in to reply

It's like in this method,I was able to remove one r, so I used diffentiation to remove the next one... I'll post the other way today. Thanks!

Kishore S. Shenoy - 5 years, 8 months ago

Log in to reply

@Kishore S. Shenoy RIght, so the way to use the same approach, is to consider ( r 2 r ) ( n r ) p r q n r \sum (r^2 -r ){ n \choose r} p^r q^{n-r} and then r ( n r ) p r q n r \sum r { n \choose r } p^r q ^{n-r} and sum the two of them.

Calvin Lin Staff - 5 years, 8 months ago

Log in to reply

@Calvin Lin Yes this same method... Method 2

Kishore S. Shenoy - 5 years, 8 months ago
Mark Hennings
Jan 30, 2019

If the random variable X X has the Binomial distribution B ( n , p ) B(n,p) , we are asked to calculate E [ X 2 ] = V a r [ X ] + E [ X ] 2 E[X^2] = \mathrm{Var}[X] + E[X]^2 . It is standard bookwork that X X has mean n p np and variance n p q npq , and so our answer is n p q + n 2 p 2 npq + n^2p^2 . For the given values of n , p n,p , this makes the answer 2057 125 = 16.456 \tfrac{2057}{125} = \boxed{16.456} .

To show that the binomial distribution has the stated mean and variance, note that if X B ( n , p ) X \sim B(n,p) , then X = Z 1 + Z 2 + + Z n X = Z_1 + Z_2 + \cdots + Z_n , where Z j Z_j is equal to 1 1 if the j j th trial is a success, and 0 0 otherwise. Then Z 1 , Z 2 , , Z n Z_1,Z_2,\ldots,Z_n are independent and identically distributed, and E [ Z 1 2 ] = E [ Z 1 ] = P [ Z 1 = 1 ] = p E[Z_1^2] = E[Z_1] = P[Z_1 = 1] = p so that E [ Z 1 ] = p V a r [ Z 1 ] = p p 2 = p q E[Z_1] \; = \; p \hspace{2cm} \mathrm{Var}[Z_1] \; = \; p - p^2 \; = \; pq Thus E [ X ] = j = 1 n E [ Z j ] = n p V a r [ X ] = j = 1 n V a r [ Z j ] = n p q \begin{aligned} E[X] & = \; \sum_{j=1}^n E[Z_j] \; = \; np \\ \mathrm{Var}[X] &= \; \sum_{j=1}^n \mathrm{Var}[Z_j] \; = \; npq \end{aligned}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...