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