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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!