Question: Write a python program. Generate 2 0 , 0 0 0 random numbers, each of which is a sum of X and Y . X
Write a python program.
Generate random numbers, each of which is a sum of X and Y X follows a lognormal distribution with parameters mu and sigma ; Y follows a normal distribution with mu and sigma Once random numbers are generated, compute the mean and variance.
Repeat this process for times and record all results in an array. Save only the first rows and the last rows to a text file.
You are required to complete this task using TWO approaches: a without forloops and b with forloops. Name those two files as taskoutputHWatxt and taskoutputHWbtxt respectively. Add a screenshot see below for a sample to your notebook indicating that output text file is generated.
Additional: compare the computational efficiencies of two approaches.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
