Questions and Answers
What is the purpose of 'data cleaning' in probability and statistics?
To handle missing values
What is the difference between 'np.random.randint(0, 5)' and 'np.random.rand()' in numpy?
randint() generates a random value between 0 and 5, while rand() generates a random float between 0 and 1.
What does 'np.random.randint(0, 5, 3)' do in numpy?
Generates an array of size 3 filled with random integers between 0 and 5
What is the output of 'np.random.rand(5)' in numpy?
Signup and view all the answers
What does np.random.randint(0, 5, 3) output?
Signup and view all the answers
What is the characteristic of a random outcome?
Signup and view all the answers
In probability, what must the sum of probabilities of all possible outcomes be?
Signup and view all the answers
What does np.random.choice([24,10,12,35,5]) output?
Signup and view all the answers
What is the main characteristic of probability values?
Signup and view all the answers
What is np.random.rand(5) expected to output?
Signup and view all the answers