Question: Python Generate an array containing a set of 100 normal random numbers, with mean 0 and standard deviation 1.5 (generate the random numbers with the
Python
Generate an array containing a set of 100 normal random numbers, with mean 0 and standard deviation 1.5 (generate the random numbers with the seed=1). Use a for loop and the if statement to create a new array which has the same value as the original array if the elements of the original array are positive and negative of the value if the elements are negative. Calculate and compare the mean the of two arrays
Repeat the task using matrix Boolean indexing techniques
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
