Question

In: Math

In a quiz show a uniformly random integer r between 1 and 10 is generated. Another,...

In a quiz show a uniformly random integer r between 1 and 10 is generated. Another, independent such random numbers will then be generated, but before that happens, you are invited to guess whether s will be greater than or less than r. If you are correct, then you win s pounds. If you lose (or if s = r) then you win nothing. (i) Clearly if r = 1 you should guess that s will be larger. And if r = 10 you should guess that s will be smaller. At which value of r should your strategy change from guessing s will be larger to guessing it will be smaller? (Your aim, as always, is to maximise your expected gain.) (ii) Suppose now that the range of possible values for r and s is 1, ... , N. Then in the limit as N tends to infinity the change of strategy should happen at a value of r of approximately N/k. Find the value of k.

Solutions

Expert Solution

(i)

Our aim is to maximize the expected gain.

If r=1, expected gain for guessing s is large = P(s=1)*0+P(s=2)*2+...+P(s=10)*10

If r=1, expected gain for guessing s is small = P(s=1)*0+P(s=2)*0+...+P(s=10)*0

Since s is a uniform random number between 1 and 10, P(s=i)=1/10 for all i in [1,10]

Therefore, expected gain for guessing s is large= 1/10*(2+3+...+10)

  =5.4 pounds

Also, expected gain for guessing s is small= 0

Similarly, if r=2, expected gain for guessing s is large = P(s=1)*0+P(s=2)*0+P(s=3)*3+...+P(s=10)*10

=1/10*(3+4+...+10)

=5.2 pounds

Also, expected gain for guessing s is small= P(s=1)*1+P(s=2)*0+P(s=3)*0+...+P(s=10)*0

=0.1 pound

Proceeding similarly, expected gain at each value of r can be summarized as below:

r expected gain for guessing s is large expected gain for guessing s is small
1 5.4 pounds 0
2 5.2 pounds 0.1 pounds
3 4.9 pounds 0.3 pounds
4 4.5 pounds 0.6 pounds
5 4 pounds 1 pounds
6 3.4 pounds 1.5 pounds
7 2.7 pounds 2.1 pounds
8 1.9 pounds 2.8 pounds
9 1 pounds 3.6 pounds
10 0 pounds 4.5 pounds

So if r is less than or equal to 7, then guess s is large and if r is greater than 7, guess s is small.

So, the value of r at which our strategy should change from guessing s is large or small is 7.

(ii)

Suppose the range of possible values of r and s is 1,2,...N.

Proceeding as in above case, we can see that if r=i where i is in [1,N], the expected gain in guessing s is large can be formulated as 1/N*[(i+1)+(i+2)+...+N]

and the expected gain in guessing s is small can be formulated as 1/N*[1+2+...+(i-1)]

So, our strategy changes for  1/N*[1+2+...+(i-1)] > 1/N*[(i+1)+(i+2)+...+N]

i.e, 1+2+...+(i-1) > (i+1)+(i+2)+...+N

L.H.S of above equation is sum of first i-1 natural numbers = (i-1)*i/2

R.H.S of above equation is (sum of first N natural numbers) - (sum of first i natural numbers) = N*(N+1)/2 - i(i+1)/2

So, i is such that (i-1)*1/2 > N*(N+1)/2 - i(i+1)/2

On solving, i= [N*(N+1)/2]1/2

In the limit as N tends to infinity the change of strategy should happen at r = N/k

where N/k = [N*(N+1)/2]1/2

Solving for k, k=[2*N/(N+1)]1/2


Related Solutions

The command below produces a row vector of 100 random values uniformly distributed between -10 and...
The command below produces a row vector of 100 random values uniformly distributed between -10 and +10. r = 10.*rand(1,100)-10; r = 20.*rand(1,100)-10; r = -10.*rand(1,100)+10; r = 10.*rand(1,100)-20;
Challenge 4 – Random Integer in Range Write a function to return a random integer between...
Challenge 4 – Random Integer in Range Write a function to return a random integer between a minimum value and maximum value. var ival = IntRandomRange(, );
Suppose R1,R2,...,Rn are mutually independent and uniformly distributed random variables on [0,1]. Assume R(1) ≤ R(2)...
Suppose R1,R2,...,Rn are mutually independent and uniformly distributed random variables on [0,1]. Assume R(1) ≤ R(2) ≤···≤ R(n) are the order statistics of the R1,R2,...,Rn. It is given that 1 ≤ a < b ≤ n. What is the distribution of R(b)−R(a)?
1)Using R, construct one plot of the density function for a uniformly distributed continuous random variable...
1)Using R, construct one plot of the density function for a uniformly distributed continuous random variable defined between 0 and 6. Make sure you include a main title, label both axis correctly and include a legend in your figure. The main title needs to include your last name, also include your R code with your answer. 2) Using R, construct one plot of the density function for a Chi-square distributed random variable. The plots should contain six lines corresponding to...
Design a program that uses an array to store 10 randomly generated integer numbers in the...
Design a program that uses an array to store 10 randomly generated integer numbers in the range from 1 to 50. The program should first generate random numbers and save these numbers into the array. It will then provide the following menu options to the user: 1. Display 10 random numbers stored in the array 2. Compute and display the largest number in the array 3. Compute and display the average value of all numbers 4. Exit The options 2...
An arrow lands uniformly random on a circular target of radius r. Let y and z...
An arrow lands uniformly random on a circular target of radius r. Let y and z be the Cartesian coordinates. Thus, we can view y to be a realization of a random variable Y, and z a realization of another random variable Z. (a) Are Y and Z independent? (b) Are Y and Z uncorrelated?
Consider the following experiment. Pick a random integer from 1 to 10^12 . (a) What is...
Consider the following experiment. Pick a random integer from 1 to 10^12 . (a) What is the probability that it is either a perfect square (1, 4, 9, 16, …) or a perfect cube (1, 8, 27, 64,…)? (b) What is the probability that it is either a perfect fourth power (1, 16, 81, 256, …) or a perfect sixth power (1, 64, 729, 4096,…)?
Problem 4.Step 1: Generate a random integer between 3 and 6. Set A to be the...
Problem 4.Step 1: Generate a random integer between 3 and 6. Set A to be the value of the generated number.Step 2: Generate a random integer between 3 and 6. Set B to bethe value of the generated number.You are running a camp of 30 students, including John and Jane.3a.) What is the total possible ways you can arrange 2 focus groupsof students one group being size A(from step 1), and the other sizeB.3b.) What is the probability that John...
1) There is a continuous function from [1, 4] to R that is not uniformly continuous....
1) There is a continuous function from [1, 4] to R that is not uniformly continuous. True or False and justify your answer. 2) Suppose f : D : →R be a function that satisfies the following condition: There exists a real number C ≥ 0 such that |f(u) − f(v)| ≤ C|u − v| for all u, v ∈ D. Prove that f is uniformly continuous on D Definition of uniformly continuous: A function f: D→R is called uniformly...
Let Y and Z be independent continuous random variables, both uniformly distributed between 0 and 1....
Let Y and Z be independent continuous random variables, both uniformly distributed between 0 and 1. 1. Find the CDF of |Y − Z|. 2. Find the PDF of |Y − Z|.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT