Blair's random numbers

Blair wrote a program that:

1) Generates 408 random integers between 7 and 109, inclusive.

2) Saves these integers to a file F.txt

Let A be the average of the integers in F.txt . What is the expected value of A ?


The answer is 58.

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.

1 solution

The answer is 58 .

The random number generator will generate all the integers between 7 and 109 with equal probability. The expected average is the mid-point of these numbers, which equals ( 7 + 109 ) / 2 = 58 (7 + 109)/2 = 58 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...