Reader small image

You're reading from  Big Data Analytics with Java

Product typeBook
Published inJul 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781787288980
Edition1st Edition
Languages
Concepts
Right arrow
Author (1)
RAJAT MEHTA
RAJAT MEHTA
author image
RAJAT MEHTA

The author is a VP (Technical Architect) in technology in JP Morgan Chase in New York. The author is a sun certified java developer and has worked on java related technologies for more than 16 years. Current role for the past few years heavily involves the usage of bid data stack and running analytics on it. Author is also a contributor in various open source projects that are available on his GitHub repository and is also a frequent write on dev magazines.
Read more about RAJAT MEHTA

Right arrow

Conditional probability


Conditional probability in simple terms is the probability of occurrence of an event given that another event has already occurred. It is given by the following formula:

P(B|A)= P(A and B)/P(A)

Here in this formula the values stand for:

Probability value

Description

P(B|A)

This is the probability of occurrence of event B given that event A has already occurred.

P(A and B)

The probability that both event A and B occur.

P(A)

This is the probability of occurrence of an event A.

Now let's try to understand this using an example. Suppose we have a set of seven figures as follows:

As seen in the preceding figure, we have three triangles and four rectangles. So if we randomly pull one figure from this set the probability that it belongs to either of the figures will be:

P(triangle) = Number of Triangles / Total number of figures = 3 / 7

P(rectangle) = Number of rectangles / Total number of figures = 4 / 7

Now suppose we break the figure into two individual sets...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Big Data Analytics with Java
Published in: Jul 2017Publisher: PacktISBN-13: 9781787288980

Author (1)

author image
RAJAT MEHTA

The author is a VP (Technical Architect) in technology in JP Morgan Chase in New York. The author is a sun certified java developer and has worked on java related technologies for more than 16 years. Current role for the past few years heavily involves the usage of bid data stack and running analytics on it. Author is also a contributor in various open source projects that are available on his GitHub repository and is also a frequent write on dev magazines.
Read more about RAJAT MEHTA