Podcast
Questions and Answers
What is the purpose of 'data cleaning' in probability and statistics?
What is the purpose of 'data cleaning' in probability and statistics?
- To handle missing values (correct)
- To read data
- To generate random numbers
- To write data
What is the difference between 'np.random.randint(0, 5)' and 'np.random.rand()' in numpy?
What is the difference between 'np.random.randint(0, 5)' and 'np.random.rand()' in numpy?
- randint() generates random values in an array, while rand() generates a single random value.
- There is no difference between them.
- randint() generates a float value, while rand() generates an integer.
- randint() generates a random value between 0 and 5, while rand() generates a random float between 0 and 1. (correct)
What does 'np.random.randint(0, 5, 3)' do in numpy?
What does 'np.random.randint(0, 5, 3)' do in numpy?
- Generates a single random integer between 0 and 5
- Generates an array of size 3 filled with random integers between 0 and 5 (correct)
- Generates an array of random floats of size 3
- Generates a random integer between 0 and 5
What is the output of 'np.random.rand(5)' in numpy?
What is the output of 'np.random.rand(5)' in numpy?
What does np.random.randint(0, 5, 3) output?
What does np.random.randint(0, 5, 3) output?
What is the characteristic of a random outcome?
What is the characteristic of a random outcome?
In probability, what must the sum of probabilities of all possible outcomes be?
In probability, what must the sum of probabilities of all possible outcomes be?
What does np.random.choice([24,10,12,35,5]) output?
What does np.random.choice([24,10,12,35,5]) output?
What is the main characteristic of probability values?
What is the main characteristic of probability values?
What is np.random.rand(5) expected to output?
What is np.random.rand(5) expected to output?
Flashcards are hidden until you start studying