The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Probabilities
Replies: 3   Last Post: Sep 5, 2012 7:08 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 404
Registered: 12/6/04
Re: Probabilities
Posted: Mar 13, 2007 11:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In article <>, Anonymous writes:
> Hi all,
> I've got the following phrase:
> I would like to calculate the conditional probability P(B|A).

To phrase it more clearly, you want the conditional probability
that the next symbol is a B given that the current symbol is an A.

(And perhaps you want to throw in that you want to choose the
current position uniformly in the range 1 through 23)

> If I use a logical thought, I get:
> P(B|A) = the_number_of_AB / the_number_of_A = 4 / 17 = 0.23

And you want to consider the A at the end of the string as being
"not followed by a B" even though this is arguably a degenerate case.

Yes, I'd consider this result to be correct, given that interpretation.

> and if I use the formula P(B|A) = P(B inter A)/P(A) I get:
> P(B inter A) = 4 / (23-1)
> and P(A) = 17/23 then:
> P(B|A) = 4/22 * 23/17 = 0.25

This time you did consider that the A at the end of the string to
be a degenerate case and threw it out. In effect, you are choosing
the "current position" uniformly in the range 1 through 22 now.

Yes, I'd consider this result to be correct, given that interpretation.

> So I would like to know why the "logical thought" is wrong and if the
> result is right with the formula.

Both results are correct. It just depends on whether you include or
exclude one particular boundary case.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.