Topic 21:  Learning About Two Proportions

 

Minitab Local Macro pp_disc

 

Finds posterior distribution for (p1, p2) when a uniform prior is used.

 

 

TO RUN:

 

Suppose that the prior distribution is located in columns 'p1', 'p2', 'prior' and you observe 4 successes and 16 failures in the first sample and 8 successes and 12 failures in the second sample.  To display the posterior probabilities for the two proportions, type the following command in the Minitab Session Window.

 

MTB > %pp_disc 'p1' 'p2' 'prior';

SUBC> data 4 16 8 12.

 

Probability distribution of P1 and P2:

 

(Rows and columns are expressed in percentage format.)

 

 Rows: PER_1     Columns: PER_2

 

          10       20       30       40       50       60       70       80

 

 10 0.000140 0.008735 0.045094 0.070837 0.047355 0.013993 0.001521 0.000034

 20 0.000341 0.021231 0.109596 0.172164 0.115093 0.034008 0.003697 0.000083

 30 0.000204 0.012690 0.065507 0.102905 0.068793 0.020327 0.002210 0.000050

 40 0.000055 0.003405 0.017575 0.027608 0.018456 0.005454 0.000593 0.000013

 50 0.000007 0.000450 0.002321 0.003646 0.002437 0.000720 0.000078 0.000002

 60 0.000000 0.000026 0.000135 0.000213 0.000142 0.000042 0.000005 0.000000

 70 0.000000 0.000000 0.000003 0.000004 0.000003 0.000001 0.000000 0.000000

 80 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000

 90 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000

 

          90

 

 10 0.000000

 20 0.000000

 30 0.000000

 40 0.000000

 50 0.000000

 60 0.000000

 70 0.000000

 80 0.000000

 90 0.000000

 

  Cell Contents --

             PROB:Data