Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

105Peturns Question 2 Half-normal distribution Using the on random normal function, create an array of 10,000 random normal variables. The normal function takes three parameters,

image text in transcribed
105Peturns Question 2 Half-normal distribution Using the on random normal function, create an array of 10,000 random normal variables. The normal function takes three parameters, first is the mean second, is the standard deviation. By default, it is a standard normal, so you don't need to do anything with those. The third parameter is size, which you can set equal to the number of random variables you want : normal_array Suppose we want to create halt-normal random variables. Those are just the absolute value of standard normal random variables. Go ahead and create an array of half-normal random vanables from your sample of standard normal variables - half_normal What is the mean of your sample? The mean of your random variables should be close to V7x. Using numpy functions, we can see that is around 0 798 Calculate the standard deviation In numpy, that can be done using st) Your standard deviation should be close to 1-3 which is

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

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