On Wed, 01 Oct 2003, Ian Clarke wrote:

> On Wed, Oct 01, 2003 at 12:35:08PM -0700, Ian Clarke wrote:
> > Line 160:
> > 
> >             double pNotConnectFailedOrSearchFailed =
> >                     (1 - pConnectFailed) * (1- pSearchFailed);
> > 
> > My high-school math is a bit rusty, but shouldn't that be:
> > 
> >      ... =  1-(pConnectFailed+pSearchFailed);
> 
> Well, thinking about it  what is there is:
> 
> not(connectFailed) and not(searchFailed)
> 
> My suggested correction was:
> 
> not (connectFailed or searchFailed)

pConnectFailed = .75, pSearchFailed=.75

The original comes out to (1 - .0625) or .9375

Yours comes out to 1 - ( .75 + .75 ) or -0.5.  Obviously wrong.

Assumming that you meant to multiply, it's still different:

1 - ( .75 * .75 ) = .4375

To combine probabilites you have muliply and divide.
1/2 + 1/2 = 3/4. not 1.

A OR B = pA/pB
A AND B = pA * pB

That said, what we're looking for is 1-(pConnectFailed / pSearchFailed )

--Dan

Attachment: pgp00000.pgp
Description: PGP signature

_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to