MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Area Under Curve (Min Length Interval)


Re Mathematica 5.1.

How would I compute the minimum length interval over which the area under f(x) is given?  

For instance, as shown below, f(x) is the PDF of a chi-square distributed random variable whose CDF is F[x].  Seeking the minimum length 93%-interval [a,b], the code returns "Obtained solution does not satisfy the following constraints within Tolerance -> 0.001..."  Fiddling with options has been futile.    

Any ideas?  Thankx.

Bruce

F[x_] := CDF[ChiSquareDistribution[5], x]

Minimize[{b - a, F[b] - F[a] == 0.93, b > a > 0}, {a, b}]

NMinimize[{b - a, F[b] - F[a] == 0.93, b > a > 0}, {a, b}]



  • Prev by Date: List Partition
  • Next by Date: Re: Collect and manipulate subexpressions
  • Previous by thread: Re: List Partition
  • Next by thread: Re: Area Under Curve (Min Length Interval)