Question
Explain why the following does not produce the expected result:$$\begin{aligned}& a \leftarrow 1 \text { to } 9 \\& b \leftarrow \text { a shuffle: [:x }: y \mid \text { true] with: } a\end{aligned}$$Is this a problem inherent with the generators technique described in this chapter? How might it be overcome?
Step 1
This means that "a" will take on the values 1, 2, 3, 4, 5, 6, 7, 8, and 9. Show more…
Show all steps
Your feedback will help us improve your experience
Alexander Cheng and 70 other educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
A random number generator is supposed to produce the digits 0 through 9 with equal probability. A sample of 200 digits was generated, with the following frequency for each of the digits: Digit: 0 1 2 3 4 5 6 7 8 9 Frequency: 21 17 20 18 25 16 28 19 22 14 At the 5% significance level, do these data provide evidence that the random number generator is not working properly? Explain.
Explain why each of the following simulations fails to model the real situation properly: a) Use a random integer from 0 through 9 to represent the number of heads when 9 coins are tossed. b) A basketball player takes a foul shot. Look at a random digit, using an odd digit to represent a good shot and an even digit to represent a miss. c) Use random numbers from 1 through 13 to represent the denominations of the cards in a five-card poker hand.
Gathering Data
Understanding Randomness
Is the result obtained in Exercise 4.35 also valid for discrete random variables? Why?
Continuous Variables and Their Probability Distributions
Expected Values for Continuous Random Variables
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD