Question: Write a SPSS program to empirically determine the probability of getting a sum of 7 when rolling a pair of fair dice. Do 100,000 simulations.
Write a SPSS program to empirically determine the probability of getting a sum of 7 when rolling a pair of fair dice. Do 100,000 simulations. This is what I have so far: INPUT PROGRAM. LOOP #I = 1 TO 100000. COMPUTE case = 1. END CASE. END LOOP. END INPUT PROGRAM. EXECUTE. COMPUTE DIE1=TRUNC(RV.UNIFORM(1,7)). COMPUTE DIE2=TRUNC(RV.UNIFORM(1,7)). COMPUTE TOTAL = DIE1 + DIE2.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
