Select your font size 
 
about us products & services consulting & support news & events contact us
You can compute a conditional probability from joint distribution data by dividing the relevant joint probability.

Joint probability - SK

print this article 
 

The most basic method for computing a conditional probability using a probability format is:

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

This probability format is identical to the frequency format, except for the probability operator P( ) surrounding the numerator and denominator terms. The P(A & B) term denotes the joint probability of A and B occurring together. To understand how the joint probability P(A & B) can be computed from cross-tabulated data, consider the following hypothetical data (taken from pp. 147-48 of Grimstead and Snell's online texbook):

 -Smokes+Smokes  Totals  
-Cancer 401050
+Cancer 7310
Totals 471360

To convert this table of frequencies to a table of probabilities, you divide each cell frequency by the total frequency (60). Note that dividing by the total frequency also ensures that Cancer x Smokes cell probabilies sum to 1 and permits you to refer to the silver area of the table below as the joint probability distribution of Cancer and Smoking.

 -Smokes+Smokes  Totals  
-Cancer 40 / 6010 / 6050 / 60
+Cancer 7 / 603 / 6010 / 60
Totals 47 / 6013 / 6060 / 60

To compute the probability of cancer given that a person smokes P(+Cancer | +Smokes), you can simply substitute the values from this table into the above formula as follows:

P(+Cancer | +Smokes) = ( 3 / 60 ) / ( 13 / 60) = 0.05 / .217 = 0.23

Note that you could have derived this value from the table of frequencies as well:

P(+Cancer | +Smokes) = 3 / 13 = 0.23

How do you interpret this result? Using the recommended approach of communicating risk in terms of frequencies, you might say that of the next 100 smokers you enounter, you can expect 23 of them to experience cancer in their lifetime. What is the probability of getting cancer if you do not smoke?

P(+Cancer | -Smokes) = ( 7 / 60 ) / ( 47 / 60) = 0.117 / .783 = 0.15

So it appears that you are more likely to get cancer if you smoke than if you do not smoke, even though the tallies appearing in the table might not have initially given you that impression. It is interesting to speculate on what the true conditional probabilities might be for various types of cancer given various criteria for defining someone as a smoker.

A "cohort" research methodology would also require you to equate smokers and non-smokers on other variables like age, gender, and weight so that smoking, and not these other co-variates, can be isolated as the root cause of the different cancer rates.

To summarize, you can compute a conditional probability (+Cancer | +Smokes) from joint distribution data by dividing the relevant joint probability P(+Cancer & +Smokes) by the relevant marginal probability P(+Smokes). As you might imagine, it is often easier and more feasible to derive estimates of a conditional probability from summary tables like this, rather than expecting to apply more data-intensive enumeration methods.



Page:   1  2  3  4  5  6  7  8  9  10  11 Next Page: Deriving Bayes Theorem

The content shown in this page was first published by IBM developerWorks and is reprinted with permission from Paul Meagher (www.datavore.com)


Transparen Corporation - Recently Updated Pages

Most Recent Website and Regional Updates

 High Scalability - Large Systems Optimization
Transparen Corporation lends its expertise to clients experiencing rapid and sudden growth in traffic or server utilization, bottlenecks, systems instability, downtime during peak traffic, or which would like to plan to avoid such issues.

 
 Throughput (or Bandwidth) vs. Latency
This document uses the example of Bill Gates purchasing Google to explain the difference between bandwidth (or throughput) and latency.

 
 Avoidance of Magic - Informal Survey Results
Joe the IT Director phones up high-traffic websites to ask them if they used magic.

 
 Don't go take a walk in Saskatoon!
There's been a rash of pedestrians hit by autos in Saskatoon this year.  Rapid economic and population growth has resulted in an overloaded infrastructure.  Attempts to upgrade this infrastructure have closed down...read more

 
 Self checkout arrives at the grocery store!
Last night I went to my preferred grocery store for my shopping. On the way in I noticed a new thing.  At first I thought they'd replaced all the checkouts, then I saw it was just a few checkouts were brand new.  I...read more

 
 Canadian Fireball Remains Found
"University of Calgary researchers reported last Friday that they have found the remains of the meteor that streaked through Canadian skies in November The remains of the 10-ton meteor were densely strewn over a...read more

 
 Scientists Find Canadian Meteorite
Planetary scientist Alan Hildebrand and graduate student Ellen Milley from the University of Calgary discovered fragments of the ten ton meteorite that fell near the Alberta-Saskatchewan border on the evening of...read more

 
 UPDATED: Liberal Video Attacks Conservative Deficit, Canada Perilously Close to Budget Deficit, No Stimulus, No End in Sight
Update: " The Conservatives pledged during the election campaign never to run a deficit, but Flaherty said the sudden decline in the global and domestic economies has brought Ottawa perilously close to a budget...read more

 
 Meteorite Hunter Offers $10,000 Reward for Canadian Meteorite
A bright meteor streaked across the skies of Saskatchewan and Alberta, Canada on November 20, 2008 at approximately 5:26 PM MST, prompting telephone calls to police stations, NORAD, and news stations from North...read more

 
 Massive Fireball Falls Over Alberta and Saskatchewan, Canada
A bright meteor streaked across the skies of Saskatchewan and Alberta, Canada on November 20, 2008 at approximately 5:26 PM MST, prompting telephone calls to police stations, NORAD, and news...read more

 
 03/12/2008: Crime in Canada
The story of a long-standing family feud and what it says about the future of violent crime in Canada.

 
 02/12/2008: The Constitution and a Coalition Government
What does the Constitution say about coalitions? Today on the podcast, we'll conjure up the ghost of Mackenzie King to find the answers.

 
 01/12/2008: The Big Three & the Future of the Auto Industry
One way or another, the Big Three automakers will have a huge impact on Windsor's future. But the future of those companies is being decided by forces well beyond this city's borders.

 
 28/11/2008: Greenpeace and the DRC
For more than a decade, the Democratic Republic of Congo has seen one humanitarian disaster after another. But there's an environmental catastrophe as well. And Greenpeace thinks it deserves our attention too.

 
 27/11/2008: The Agony of Stephen Harper
Stephen Harper got into politics to make government smaller. Now he's facing an economic crisis that seems to cry out for big time public intervention.

 

Google
 
Web transparen.com

Contact Information

Related Information

 
  Saskatoon
Regina
Prince Albert
Moose Jaw
Yorkton
Swift Current
North Battleford
Estevan
Weyburn
Corman Park
 
 
E C M | © 2003-2007 Transparen Corp.      

Standardized Services: Data Recovery Service / Creative Services / Premium Web Hosting Services / System Administration Tech Support Services
Recent Projects: Full-Service Mortgage and Financing Company / System to manage flights from Vancouver to Tofino / Photo exchange verification service
Our Vancouver BC Server Proudly Hosts: automated parking and revenue control systems, leafside lane at southlands, cost effective alternative power sources, Higher Grade Learning Centres, pacific forage bag supply, sunburst medical, neosonic design, roger mahler photography - passionate, intriguing, desirable, the connection between east and west, affordable flights to victoria and tofino, low interest mortgage brokers in vancouver, richmond, surrey, toronto, Toronto Calgary and Vancouver IT staffing and talent search
Saskatoon, Regina, Prince Albert, Moose Jaw, Yorkton, Swift Current, North Battleford, Estevan, Weyburn, Corman Park