Skip to content
Prev 399 / 885 Next

Example(s) of Biomodal distributions

Just noticing that I read the post below too quickly and thought it  
said "binomial" rather than "bimodal".  But my solution works all the  
same, you just need to provide a bimodal distribution as the first  
argument.  The only requirement is that if the name of your  
distribution is "foo", then dfoo, pfoo, and qfoo need to exist and do  
the correct things.  They may be user defined functions.

You can of course, use the groups argument however you like to define  
the tails of the distribution.  For example, something like

	groups = ( x < qfoo(0.05, ....) | x > qfoo(0.95) )

should shade the tails differently from the center.

In view of the email from Jeff Laux, I might consider adding some  
utilities to build new dfoo, pfoo, and qfoo functions from existing  
ones, at least for a few easy cases, like linear combinations.  That  
would make it really easy to generate various bimodal distributions.

---rjp
On Jan 15, 2012, at 2:41 PM, AbouEl-Makarim Aboueissa wrote: