Question: i dont know how to R programming prb 7. [R Progralnming] In his 1889 publication Natural Inheritance, the renewed British scientist Sir Francis Galton described
i dont know how to R programming prb
![i dont know how to R programming prb 7. [R Progralnming] In](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/6709a0a02f120_1926709a0a003c0c.jpg)
7. [R Progralnming] In his 1889 publication Natural Inheritance, the renewed British scientist Sir Francis Galton described a pinball-type board that he called a quincunx. A A A A A A A A A A A A A A A A A A A A A A A A A 0 1 2 3 4 5 As pictured, the quincunx has ve rows of pegs, the pegs in each row being the same distance apart. At the bottom of the board are six cells, numbered 0 through 5. A ball is introduced at the top of the board and will hit the middle peg in the rst row and veer either to the right or to the left, then strike a peg in the second row, again veering to the right or to the left, and so on. (a) If the ball has a 5050 chance of going either direction each time it hits a peg, what is the probability it ends in cell 0? What about for the other cells? (b) Write a code in R that simulates this experiment and run it 1,000 times, recording the number of times the ball lands on each cell. Compare the frequencies with the theoretical probabilities derived in part (a). (c) Suppose now that the quincunx is enlarged to have 100 rows. Derive the probabilities of landing on cells 0, 1, 2, . . . , 100? (d) Update your code to run this experiment and run it 1,000 times. Compare the frequencies with the theoretical probabilities derived in part (c)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
