Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Calculate n in binomial distribution

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101229] Re: Calculate n in binomial distribution
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Sat, 27 Jun 2009 06:04:24 -0400 (EDT)
  • References: <h229dp$i0v$1@smc.vnet.net>

> Is it, because Abs isn't differentiable at the peak?
>
Nope, (cf[n, 0.2, 7] - 0.3)^2 which has its maximum at the same point
doesn't work either.

> I tried other ways too, like Reduce NMinimize, FindMinimum, but no success.
>

NMinimize[{Abs[cf[n, 0.2, 7] - 0.3], n > 7}, n]

works (if you don't mind n being real).

Cheers -- Sjoerd

> --
> _________________________________________________________________
> Peter Breitfeld, Bad Saulgau, Germany --http://www.pBreitfeld.de



  • Prev by Date: Removing unused nodes in GraphPlot
  • Next by Date: Re: Separating real part and imaginary part from each other
  • Previous by thread: Calculate n in binomial distribution
  • Next by thread: Re: Calculate n in binomial distribution