Two balls are drawn from a bag containing white balls and red balls. If denotes the number of white balls among the two drawn balls, what is the value of such that the variance of is ?
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.
First calculate the probabilities for each value of X , given that X can be either 0, 1 or 2:
P ( X = 0 ) = n + 2 n × n + 1 n − 1 = ( n + 2 ) ( n + 1 ) n ( n − 1 ) P ( X = 1 ) = n + 2 n × n + 1 2 + n + 2 2 × n + 1 n = ( n + 2 ) ( n + 1 ) 4 n P ( X = 2 ) = n + 2 2 × n + 1 1 = ( n + 2 ) ( n + 1 ) 2
Now calculate the expected values of X and X 2 : E ( X ) = 1 ∗ ( ( n + 2 ) ( n + 1 ) 4 n ) + 2 ∗ ( ( n + 2 ) ( n + 1 ) 2 ) = ( n + 2 ) ( n + 1 ) 4 n + 4 = n + 2 4 E ( X 2 ) = 1 2 ∗ ( ( n + 2 ) ( n + 1 ) 4 n ) + 2 2 ∗ ( ( n + 2 ) ( n + 1 ) 2 ) = ( n + 2 ) ( n + 1 ) 4 n + 8 = n + 1 4
Now calculate the variance using the standard formula: V a r ( X ) = E ( X 2 ) − [ E ( X ) ] 2 = n + 1 4 − ( n + 2 4 ) 2 = n + 1 4 − ( n + 2 ) 2 1 6 = ( n + 1 ) ( n + 2 ) 2 4 ( n + 2 ) 2 − 1 6 ( n + 1 ) = ( n + 1 ) ( n + 2 ) 2 4 n 2 + 1 6 n + 1 6 − 1 6 n − 1 6 = ( n + 1 ) ( n + 2 ) 2 4 n 2
We know the variance must be 3 1 , therefore: V a r X = 3 1 ⇒ ( n + 1 ) ( n + 2 ) 2 4 n 2 = 3 1 ( n + 1 ) ( n + 2 ) 2 = 1 2 n 2 ( n + 1 ) ( n 2 + 4 n + 4 ) = 1 2 n 2 n 3 + 4 n 2 + 4 n + n 2 + 4 n + 4 = 1 2 n 2 n 3 − 7 n 2 + 8 n + 4 = 0 ( n − 2 ) ( n 2 − 5 n − 2 ) = 0
∴ n = 2 , n = 2 5 ± 3 3
But n must be an integer, so n = 2 .