Question: hello Can any one please provide a solution to this question. Exercise 1 - Random Numbers, Loops and Functions 1: The following um contains the
Exercise 1 - Random Numbers, Loops and Functions 1: The following um contains the white and five black balls You are drawing five times a tall with replacement. Asume that you are interested in the cando alle natit defined as the number of white bats you have drawn ex Binia.pl with and 3/8 un'alte', 'white', 'adiace black urn I white, white, black, black, white, black, black, black Use the function randon.choice from the numpy package to smolate the experientierowfiw balls with replacement Strand (1234) to make your results reproducible. How many white balls have you drawn Now we want to repeat this experiment = 100 times bi First write a function named drawn, up that simulate observation of X eg draw times 5 balls with replacement from them and store the number at white bails you have drawn in every iteration Hint The function nungyappend may help Use a for bop c) Use the function draw to simulate a sample of size 100. How many white ball did you draw on average Exercise 1 - Random Numbers, Loops and Functions The following um contains the white and live black ball your drawing ball with placement Authorities in the room defined as the number of white ball you have drawing within and/ e vecante Site Twite black black white chocol ale the function random choice from the many package to commutate the periment well with placement Strand (12149 reproducible How many white balls have you drawn? Now we want to repeat this experiment X 100 tunes Dj First, write a function hasted drawn that dimutate observation of Xarw Nimes Dalton the mood for this purbetchballo have drawn in every tertion Hint: The function num append may help. Use a tolon c) Use the function draw to multo a sople of How many who did you down
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
