Select a number randomly with probability proportional to its magnitude from the given array of n elements¶
consider an experiment, selecting an element from the list A randomly with probability proportional to its magnitude. assume we are doing the same experiment for 100 times with replacement, in each experiment you will print a number that is selected randomly from A.
Ex 1: A = [0 5 27 6 13 28 100 45 10 79]
let f(x) denote the number of times x getting selected in 100 experiments.
f(100) > f(79) > f(45) > f(28) > f(27) > f(13) > f(10) > f(6) > f(5) > f(0)
Answers
Answered by
0
Answer:
he formula in cell A5=(A1+A2+A3+A4)/4. Create a similar formula in cell A6 and A7 using two different functions so that the output in A5, A6, A7 is same.he formula in cell A5=(A1+A2+A3+A4)/4. Create a similar formula in cell A6 and A7 using two different functions so that the output in A5, A6, A7 is same.
ly u parth
Explanation:
Similar questions