Podcast
Questions and Answers
What does np.random.randint(0, 5, 3) produce?
What does np.random.randint(0, 5, 3) produce?
- Produces an error
- Gives a 2D array with 5 random integers between 0 and 5
- Gives an array with 5 random float values
- Gives 3 random integers between 0 and 5 (correct)
What does np.random.rand(5) produce?
What does np.random.rand(5) produce?
- Gives 3 random integers between 0 and 5
- Gives a 2D array with 5 random integers between 0 and 5
- Gives an array with 5 random float values (correct)
- Produces an error
What is true about a random outcome?
What is true about a random outcome?
- The outcome is not predictable in advance (correct)
- The distribution of outcomes remains constant
- It follows a predictable long-term pattern
- It is always predictable in advance
What must the probabilities of all possible outcomes add up to in a random phenomenon?
What must the probabilities of all possible outcomes add up to in a random phenomenon?
What does np.random.choice([24,10,12,35,5]) output?
What does np.random.choice([24,10,12,35,5]) output?
What is important for the probability of an outcome to obey?
What is important for the probability of an outcome to obey?
What is the purpose of 'data cleaning' in the context of this lecture?
What is the purpose of 'data cleaning' in the context of this lecture?
Which numpy method is used to generate a random float value between 0 and 1?
Which numpy method is used to generate a random float value between 0 and 1?
What output value range does np.random.randint(0, 5) produce?
What output value range does np.random.randint(0, 5) produce?
In numpy, what does np.random.randint(0, 5, (2,3)) do?
In numpy, what does np.random.randint(0, 5, (2,3)) do?
What is the difference between np.random.randint(0, 5) and np.random.rand()?
What is the difference between np.random.randint(0, 5) and np.random.rand()?
What does 'Handling missing values' refer to in the context of this lecture?
What does 'Handling missing values' refer to in the context of this lecture?
Flashcards are hidden until you start studying