Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions