Find the mean and variance of this set of 40 numbers

AI Thread Summary
To find the mean of the set of 40 numbers consisting of 23 zeros and 17 twos, add the total value of the numbers (0*23 + 2*17 = 34) and divide by the total count (40), resulting in a mean of 0.85. For the variance, apply the formula Variance(X) = Mean((X - mean(X))^2), which involves calculating the squared differences from the mean for each number, summing these, and dividing by the total count. The calculated variance for this dataset is approximately 0.978. The discussion emphasizes understanding the formulas for mean and variance to solve the problem accurately. Clarity in the calculation process is essential for reaching the correct results.
jinx007
Messages
60
Reaction score
0
A computer can generate random numbers which are either 0 or 2. On a particular occasion, it
generates a set of numbers which consists of 23 zeros and 17 twos. Find the mean and variance of this set of 40 numbers.


Please help i just don't know where to start. In fact i am thinking of using the formula mean = np but i cannot relate it to the question.

According to the booklet the answer for the mean is 0.850 and variance = 0.978

PLEASE HELP I AM STUCK
 
Physics news on Phys.org


For the mean: just add up all the numbers (that is the 23 zeros and the 17 twos) and divide through the amount of numbers that you have added up.

For the variance: use the formula Variance(X)= Mean( (X - mean(X))^2 ), so for each number calculate (X- mean(X))^2, add these all up and divide though the amount of numbers you have added up
 


gerben said:
For the mean: just add up all the numbers (that is the 23 zeros and the 17 twos) and divide through the amount of numbers that you have added up.

For the variance: use the formula Variance(X)= Mean( (X - mean(X))^2 ), so for each number calculate (X- mean(X))^2, add these all up and divide though the amount of numbers you have added up


Oh if i understand you, you are saying that i must add 17 and 23 which is equal to 40 then i divide by 40.. ? but the answer is not correct, or i have misinterpreted you..??

If i know how to find the mean i can work out the variance. Just help me to find the mean.!
 


add up 17 twos and 23 zeros and divide by 40
 
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