Environment for creative processing of text and numerical data

SURVO MM

Mixture of bivariate normal distributions

S.Mustonen, Survo Users' Guide (1992), p. 321
Mixture of bivariate normal distributions

Edit field:

   1 *
   2 *FILE CREATE MIXTURE,9,3,64,7,1000 
   3 *FIELDS:
   4 *1 N 1 Group
   5 *2 N 4 X
   6 *3 N 4 Y
   7 *END
   8 *
   9 *VAR Group,X,Y TO MIXTURE 
  10 * Group=3*int(0.3+rnd(1)) possible values 0 and 3 (0 with prob. 0.7)
  11 * U=probit(rnd(1)) V=probit(rnd(1))
  12 * X=if(Group=0)then(U)else(U+1)
  13 * Y=if(Group=0)then(U+V)else(0.3*U+0.5*V-1)
  14 *
  15 *HEADER=[Swiss(15)],Mixture_of_bivariate_normal_distributions
  16 *PLOT MIXTURE,X,Y 
  17 *POINT=[line_type(0)],0,10,Group,0
  18 *SCALE=-5(+1)5 GRID=[line_type(2)],XY
  19 *SIZE=1160,1160 XDIV=1,8,1 YDIV=1,8,1 DEVICE=PS,EX.PS
  20 *



Home  |  News  |  Publications  |  Download  |  Flash
Copyright © Survo Systems 2001-2008. All rights reserved.
Updated 2008-10-20 by webmaster'at'survo.fi.
Best viewed with any browser.