close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 15 years ago

Last modified 14 years ago

#849 closed defect

Muestrear una normal con restriciones de igualdad — at Initial Version

Reported by: jlaybar Owned by: Víctor de Buen Remiro
Priority: normal Milestone: Mantainance
Component: Math Version: 2.0.1
Severity: blocker Keywords:
Cc:

Description

Hola Victor estoy intentando muestrear dos variables aleatorias cuya suma sea igual a uno x1+x2=1 y x1>0, x2>0

Si embargo con la función RandConstrainedMNormal no lo consigo


Matrix mu = Col(0.2,0.8);
Matrix Cov =((1,0),(0,1));
Matrix B = (

(1,1),

(-1,-1),
(-1,0),
(0,-1)
);
Matrix b = Col(1,1,0,0);
Matrix sample = RandConstrainedMNormal(mu, Cov, B, b);

Change History (0)

Note: See TracTickets for help on using tickets.