Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'specifying domain of CDF, PDF' topicStudent Support Forum > General > Archives > "specifying domain of CDF, PDF"

Next Comment >Help | Reply To Topic
Author Comment/Response
Randy Silvers
07/26/02 7:01pm

I will be running some simulations that involve various density functions, all defined over [0,1]. Once I create the pdf and cdf, I then generate three probability functions, pi0, pi1, and pi2.

The equations used in the optimization involve pi0, pi1, pi2, and the first derivatives of each. But, when I differentiate pi0, pi1, or pi2, I get an expression that involves Sign[q] or Sign[-1+q], or even Sign`[q].

Since q is restricted to be within [0,1], it would be nice if Mathematica could know this and substitute 1 or -1 as appropriate.

For the uniform, this is easy, but for say a truncated normal, it will get messy.

How do I get Mathematica to substitute the proper expression with the domain defined for q, without actually giving a specific value of q?

Attachment: cdfques.nb, URL: ,

Subject (listing for 'specifying domain of CDF, PDF')
Author Date Posted
specifying domain of CDF, PDF Randy Silvers 07/26/02 7:01pm
Re: specifying domain of CDF, PDF Henry Lamb 07/29/02 02:02am
Next Comment >Help | Reply To Topic