Question

You use random.randint to generate random numbers between 2 and 12 (inclusive), and get (a) 2...

You use random.randint to generate random numbers between 2 and 12 (inclusive), and get (a) 2 and then (b) 7. What is the information content of each of these two outcomes?

Homework Answers

Answer #1

Set of possible values=

No. of elements in

The Information Content of an outcome is given by

We can use logarithmic to base 2,e or 10 basing on our choice.

Here I have used base 2.

Hence the information content  

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Use the row of numbers shown below to generate 12 random numbers between 01 and 99....
Use the row of numbers shown below to generate 12 random numbers between 01 and 99. 03087, 11990, 31970, 68370, 63674, 11151, 27521, 83595 Starting at the beginning of the row, what are the first 12 numbers between 01 and 99 in the sample?
If you roll a die, you get one of the following numbers: 1, 2, 3, 4,...
If you roll a die, you get one of the following numbers: 1, 2, 3, 4, 5, 6. Each possibility occurs with equal probability of 1/6. The expected value of a dice roll is E(D)= 3.5 and the variance of a dice roll is Var(X) = 2.917. a) Suppose you roll a die and then add 1 to the roll to get a new random variable taking one of the following numbers: 2,3,4,5,6,7. What is the variance of this new...
#5. You can find 20 RANDOM NUMBERS in a Table or you can generate them with...
#5. You can find 20 RANDOM NUMBERS in a Table or you can generate them with software like Excel. The Excel functions are “RAND” and “RANDBETWEEN”. With “Randbetween” you simply input how many numbers you want, the number of digits you want in your random number and the range of values you want those numbers to fall between. For example you may want twenty, 2-digit numbers that fall between 00 and 100 (like “34”). TWO CONSIDERATIONS: (1) You must systematically...
1.) Generate an array of 10 random numbers between 1 - 100 2.) Copy the array...
1.) Generate an array of 10 random numbers between 1 - 100 2.) Copy the array to a temp array 3.) Call each of the methods to sort (bubble, selection, insertion, quick, merge), passing it the array 4.) In-between the calls, you are going to refresh the array to the original numbers. 5.) Inside of each sorting method, you are going to obtain the nanoseconds time, before and after the method Subtract the before time from the after time to...
Write a script that will generate seven random integers in the range [-100:200] inclusive and then...
Write a script that will generate seven random integers in the range [-100:200] inclusive and then print the value of each integer and whether it is positive or negative and whether it is even or odd. An output from this program might be: -57 is negative and odd. 26 is positive and even. If zero is one of the random integers generated, remember that zero is even and neither negative or positive. Hint: even numbers are divisible by 2 with...
Generate 1000 random numbers between 0 and 1*Create a frequency table with the following Generate 1000...
Generate 1000 random numbers between 0 and 1*Create a frequency table with the following Generate 1000 random numbers between 0 and 1*Create a frequency table with the following bins 0, 0,1, 0.2, ..., 0.8, 0.9 , 1Find the expected value bins 0, 0,1, 0.2, ..., 0.8, 0.9 , 1Find the expected value
(1) Use ‘sample’ function to generate a vector of 100 random numbers that follows a multinomial...
(1) Use ‘sample’ function to generate a vector of 100 random numbers that follows a multinomial distribution with probability (0.1, 0.15, 0.3, 0.45). (2) Without using the ‘sample’ function, generate a vector of 100 random numbers that follows a multinomial distribution with probability (0.1, 0.15, 0.3, 0.45). (3) Calculate the probability for 2.5 < X < 9 in a Poisson distribution with the mean 6. (using R)
Use another random decimal fraction generator at Random.org, linked here to generate a list of ten...
Use another random decimal fraction generator at Random.org, linked here to generate a list of ten two-digit random numbers between 10 and 30. Calculate the z-score of the median of the data set. (12, 15, 17, 18, 19, 21, 23, 24, 25, 28) σ: 4.6647615158762 Mean: 20.2 Median: 20 Z-score: -0.043 1. What does the z-score of the data set median just above tell you about the shape of the distribution? How do you know this? 2. If you were...
1) Suppose you generated 1,000 random integers from 2 to 8, inclusive. (a) What are the...
1) Suppose you generated 1,000 random integers from 2 to 8, inclusive. (a) What are the expected mean and standard deviation of these 1,000 integers? (Round your mean value to 1 decimal place and standard deviation value to 3 decimal places.) Mean Standard deviation (d) Which Excel function would you use to generate these 1,000 integers? RANDBETWEEN(2,8) 2) Pepsi and Mountain Dew products sponsored a contest giving away a Lamborghini sports car worth $354,000. The probability of winning from a...
A random number generator is supposed to produce random numbers that are uniformly distributed on the...
A random number generator is supposed to produce random numbers that are uniformly distributed on the interval from 0 to 1. If this is true, the numbers generated come from a population with μμ = 0.5 and σσ = 0.2887. A command to generate 169 random numbers gives outcomes with mean x¯¯¯x¯ = 0.4366. Assume that the population σσ remains fixed. We want to test H0:μ=0.5 Ha:μ≠0.5 (a) Calculate the value of the Z test statistic. (b) Use Table C:...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT