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?
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
Get Answers For Free
Most questions answered within 1 hours.