Select your font size 
 
about us products & services consulting & support news & events contact us
Paul Meagher gives an example of calculating conditional probability using the set enumeration method.

Conditional probability - Alberta

print this article 
 
1

A conditional probability refers to the probability of observing an event A given that you have observed a separate event B. The mathematical shorthand for expressing this idea is:

P(A | B)

Imagine that A refers to "customer buys product A" and B refers to "customer buys product B". P(A | B) would then read as the "probability that a customer will buy product A given that they have bought product B." If A tends to occur when B occurs, then knowing that B has occurred allows you to assign a higher probability to A's occurrence than in a situation in which you did not know that B occurred.

More generally, if A and B systematically co-vary in some way, then P(A | B) will not be equal to P(A). Conversely, if A and B are independent events, then P(A | B) would be expected to equal P(A).

The need to compute a conditional probability thus arises any time you think the occurence of some event has a bearing on the probability of another event's occurring.

The most basic and intuitive method for computing P(A | B) is the set enumeration method. Using this method, P(A | B) can be computed by counting the number of times A and B occur together {A & B} and dividing by the number of times B occurs :

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

If you observe that 12 customers to date bought product B and of those 12, 10 also bought product A, then P(A | B) would be estimated at 10/12 or 0.833. In other words, the probability of a customer buying product A given that they have purchased product B can be estimated at 83 percent by using a method that involves enumerating relative frequencies of A and B events from the data gathered to date.

You can compute a conditional probability using the set enumeration method with the following PHP code:

Listing 1. Computing conditional probability using set enumeration


Page: 1 2 3 4 5 6 7 8 9 10 11 Next Page: Learning from experience

 

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

 


Most Recent Website and Regional Updates

 Respond to More RFPs (Requests for Proposals)
Respond to more proposals by outsourcing some of your RFP response processes to Transparen's technical writing team, and benefit from Canadian technical writers who understand technology and its business applications.

 
 RFI (Request for Information) Response Service
Outsource your RFI response process to Transparen's technical writing team in Surrey, British Columbia, Canada.

 
 Website Graphic Design, By Transparen
Creating css-based, compatible, yet beautiful and functional, attractive and maintainable websites since 2003.

 
 Project Management Experience
Project success or failure often depends on scope, budget, and the cost of time. Actual time to completion is a function of scope, budget, distance (effort) and other factors. Golf analogy used to describe how beginning determines ending.

 
 Alberta Evidence Amendment Act, 2008
Chapter/Regulation: 11 2008Item/ISBN# 9780779735693 Pages 2

 
 Alberta Sugar Beet Growers Authorization Regulation
Chapter/Regulation: 286/1997Current to   188/2008Item/ISBN# 9780779735655 Pages 5

 
 Alberta Sugar Beet Growers Negotiation, Mediation and Arbitration Regulation
Chapter/Regulation: 285/1997Current to   187/2008Item/ISBN# 9780779735648 Pages 12

 
 Archaeological and Palaeontological Research Permit Regulation
Chapter/Regulation: 254/2002Current to   183/2008Item/ISBN# 9780779735563 Pages 11

 
 Auto Body Technician Trade Regulation
Chapter/Regulation: 161/2008Item/ISBN# 9780779735143 Pages 15

 
 Beverage Container Recycling Regulation
Chapter/Regulation: 101/1997Current to   177/2008Item/ISBN# 9780779735341 Pages 11

 
 Builders' Lien Act
Chapter/Regulation: B-7 RSA 2000Current to   10/23/2008Item/ISBN# 9780779735235 Pages 46

 
 Child Care Licensing Act
Chapter/Regulation: C-10.5 2007Current to   11/1/2008Item/ISBN# 9780779733866 Pages 16

 
 Child Care Licensing Act
Chapter/Regulation: C-10.5 2007Item/ISBN# 9780779724314 Pages 17

 
 Child Care Licensing Regulation
Chapter/Regulation: 143/2008Current to   185/2008Item/ISBN# 9780779735570 Pages 53

 
 City of Medicine Hat Payment in Lieu of Tax Regulation
Chapter/Regulation: 235/2003Current to   175/2008Item/ISBN# 9780779735426 Pages 9

 
 Climate Change and Emissions Management Amendment Act, 2008
Chapter/Regulation: 12 2008Item/ISBN# 9780779735723 Pages 3

 
 Closure of Schools Regulation
Chapter/Regulation: 238/1997Current to   163/2008Item/ISBN# 9780779735167 Pages 5

 
 Community Organization Property Tax Exemption Regulation
Chapter/Regulation: 281/1998Current to   182/2008Item/ISBN# 9780779735549 Pages 12

 
 Correctional Institution Regulation
Chapter/Regulation: 205/2001Current to   176/2008Item/ISBN# 9780779735419 Pages 24

 
 Cost of Credit Disclosure Regulation
Chapter/Regulation: 198/1999Current to   184/2008Item/ISBN# 9780779735556 Pages 22

 
 Court of Queen's Bench Amendment Act, 2008
Chapter/Regulation: 13 2008Item/ISBN# 9780779735730 Pages 5

 
 Crown Property Regulation
Chapter/Regulation: 125/1998Current to   171/2008Item/ISBN# 9780779735365 Pages 4

 
 Cypress County Investment Regulation
Chapter/Regulation: 178/2008Item/ISBN# 9780779735587 Pages 1

 
 Direct Purchase Regulation
Chapter/Regulation: 210/1998Current to   173/2008Item/ISBN# 9780779735389 Pages 1

 
 Employment Pension Plans Amendment Act, 2008
Chapter/Regulation: 14 2008Item/ISBN# 9780779735747 Pages 7

 
 Family Law Amendment Act, 2008
Chapter/Regulation: 15 2008Item/ISBN# 9780779735754 Pages 8

 
 Financial Administration Amendment Act, 2008
Chapter/Regulation: 16 2008Item/ISBN# 9780779735761 Pages 2

 
 First Nations Sacred Ceremonial Objects Repatriation Amendment Act, 2008
Chapter/Regulation: 17 2008Item/ISBN# 9780779735778 Pages 3

 
 Freedom of Information and Protection of Privacy Regulation
Chapter/Regulation: 186/2008Item/ISBN# 9780779735594 Pages 20

 
 Freehold Mineral Rights Tax Act
Chapter/Regulation: F-26 RSA 2000Current to   10/23/2008Item/ISBN# 9780779735259 Pages 14

 
 Government Organization Amendment Act, 2008
Chapter/Regulation: 18 2008Item/ISBN# 9780779735785 Pages 2

 
 Health Insurance Premiums Act
Chapter/Regulation: H-6 RSA 2000Current to   10/23/2008Item/ISBN# 9780779735266 Pages 18

 
 Heating Oil and Propane Rebate Act
Chapter/Regulation: H-7.5 2008Item/ISBN# 9780779735860 Pages 3

 
 Income Supports, Health and Training Benefits Regulation
Chapter/Regulation: 60/2004Current to   170/2008Item/ISBN# 9780779735464 Pages 52

 
 Interpretation Act
Chapter/Regulation: I-8 RSA 2000Current to   10/23/2008Item/ISBN# 9780779735273 Pages 24

 
 Jury Amendment Act, 2008
Chapter/Regulation: 20 2008Item/ISBN# 9780779735792 Pages 1

 
 Land Agents Licensing Amendment Act, 2008
Chapter/Regulation: 21 2008Item/ISBN# 9780779735808 Pages 1

 
 Land Titles Act
Chapter/Regulation: L-4 RSA 2000Current to   10/23/2008Item/ISBN# 9780779735228 Pages 112

 
 Land Titles Amendment Act, 2008
Chapter/Regulation: 22 2008Item/ISBN# 9780779735815 Pages 4

 
 Mines and Minerals Act
Chapter/Regulation: M-17 RSA 2000Current to   10/23/2008Item/ISBN# 9780779735280 Pages 90

 
 Miscellaneous Statutes Amendment Act, 2008
Chapter/Regulation: 23 2008Item/ISBN# 9780779735822 Pages 2

 
 Motorcycle Mechanic Trade Regulation
Chapter/Regulation: 291/2000Current to   162/2008Item/ISBN# 9780779735150 Pages 6

 
 Municipal Government Amendment Act, 2008
Chapter/Regulation: 24 2008Item/ISBN# 9780779735839 Pages 2

 
 North Red Deer Regional Wastewater Services Commission Regulation
Chapter/Regulation: 166/2008Item/ISBN# 9780779735433 Pages 2

 
 Nursing Homes Operation Regulation
Chapter/Regulation: 258/1985Current to   165/2008Item/ISBN# 9780779735518 Pages 21

 
 Oil and Gas Conservation Regulations
Chapter/Regulation: 151/1971Current to   180/2008Item/ISBN# 9780779735501 Pages 175

 
 Post-secondary Learning Amendment Act, 2008
Chapter/Regulation: 25 2008Item/ISBN# 9780779735846 Pages 9

 
 Proof of Identity Regulation
Chapter/Regulation: 174/2008Item/ISBN# 9780779735457 Pages 2

 
 Public Health Act
Chapter/Regulation: P-37 RSA 2000Current to   11/1/2008Item/ISBN# 9780779733873 Pages 56

 
 Public Lands Act
Chapter/Regulation: P-40 RSA 2000Current to   10/23/2008Item/ISBN# 9780779735297 Pages 72

 
 Real Estate (Ministerial) Regulation
Chapter/Regulation: 113/1996Current to   164/2008Item/ISBN# 9780779735174 Pages 10

 
 Records Management Regulation
Chapter/Regulation: 224/2001Current to   186/2008Item/ISBN# 9780779735600 Pages 5

 
 Securities Amendment Act, 2008
Chapter/Regulation: 26 2008Item/ISBN# 9780779735853 Pages 6

 
 Seniors Benefit Act General Regulation
Chapter/Regulation: 213/1994Current to   172/2008Item/ISBN# 9780779735327 Pages 13

 
 Social Care Facilities Licensing Act
Chapter/Regulation: S-10 RSA 2000Current to   11/1/2008Item/ISBN# 9780779733880 Pages 11

 
 Social Care Facilities Review Committee Act
Chapter/Regulation: S-11 RSA 2000Current to   11/1/2008Item/ISBN# 9780779733897 Pages 6

 
 Special Areas Disposition Regulation
Chapter/Regulation: 137/2001Current to   168/2008Item/ISBN# 9780779735402 Pages 32

 
 Special Areas Service Fees Regulation
Chapter/Regulation: 124/2000Current to   169/2008Item/ISBN# 9780779735396 Pages 4

 
 Special School Tax Levy Plebiscite Regulation
Chapter/Regulation: 94/1998Current to   181/2008Item/ISBN# 9780779735471 Pages 2

 
 Sugar Beet Production and Marketing Regulation
Chapter/Regulation: 287/1997Current to   179/2008Item/ISBN# 9780779735532 Pages 22

 
 Surveys Act
Chapter/Regulation: S-26 RSA 2000Current to   10/23/2008Item/ISBN# 9780779735303 Pages 26

 
 Ukrainian Famine and Genocide (Holodomor) Memorial Day Act
Chapter/Regulation: U-0.5 2008Item/ISBN# 9780779735877 Pages 2

 
 Westlock Regional Water Services Commission Regulation
Chapter/Regulation: 167/2008Item/ISBN# 9780779735440 Pages 2

 

Google
 
Web transparen.com

Contact Information

Related Information

 
  Edmonton
Calgary
Lethbridge
Red Deer
Medicine Hat
St. Albert
Fort MacMurray
 
 
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
* Airdrie * Brooks * Calgary * Camrose * Cold Lake * Edmonton * Fort Saskatchewan * Grande Prairie * Leduc * Lethbridge * Lloydminster * Medicine Hat * Red Deer * Spruce Grove * St. Albert * Wetaskiwin * Fort McMurray * Sherwood Park Athabasca Banff Barrhead Bashaw Bassano Beaumont Beaverlodge Bentley Black Diamond Blackfalds Bon Accord Bonnyville Bow Island Bowden Bruderheim Calmar Canmore Cardston Carstairs Castor Chestermere Claresholm Coaldale Coalhurst Cochrane Coronation Crossfield Crowsnest Pass, Municipality of Daysland Devon Didsbury Drayton Valley Drumheller Eckville Edson Elk Point Fairview Falher Fort Macleod Fox Creek Gibbons Grande Cache Granum Grimshaw Hanna Hardisty High Level High Prairie High River Hinton Innisfail Irricana Killam Lac La Biche Magrath Manning Mayerthorpe McLennan Milk River Millet Morinville Mundare Nanton Okotoks Olds Onoway Oyen Peace River Penhold Picture Butte Pincher Creek Ponoka Provost Rainbow Lake Raymond Redcliff Redwater Rimbey Rocky Mountain House Sedgewick Sexsmith Slave Lake Smoky Lake Spirit River St. Paul Stavely Stettler Stony Plain Strathmore Sundre Swan Hills Sylvan Lake Taber Three Hills Tofield Trochu Turner Valley Two Hills Valleyview Vauxhall Vegreville Vermilion Viking Vulcan Wainwright Wembley Westlock Whitecourt Acme Alberta Beach Alix Alliance Amisk Andrew Arrowwood Barnwell Barons Bawlf Beiseker Berwyn Big Valley Bittern Lake Botha Boyle Breton Carbon Carmangay Caroline Cereal Champion Chauvin Chipman Clive Clyde Consort Coutts Cowley Cremona Czar Delburne Delia Derwent Dewberry Donalda Donnelly Duchess Edberg Edgerton Elnora Empress Ferintosh Foremost Forestburg Gadsby Galahad Girouxville Glendon Glenwood Halkirk Hay Lakes Heisler Hill Spring Hines Creek Holden Hughenden Hussar Hythe Innisfree Irma Kinuso Kitscoty Linden Lomond Longview Lougheed Mannville Marwayne Milo Minburn Morrin Munson Myrnam Nampa New Norway New Sarepta Nobleford Paradise Valley Rockyford Rosalind Rosemary Rycroft Ryley Sangudo Spring Lake Standard Stirling Strome Thorhild Thorsby Tilley Veteran Vilna Wabamun Warburg Warner Waskatenau Willingdon Youngstown Gull Lake Lakeview Rochon Sands Seba Beach Abee Acadia Valley Aldersyde Ardmore Ardrossan Ashmont Atikameg Atmore Balzac Benchlands Blairmore Blue Ridge Bottrel Bragg Creek Brocket Burdett Carway Chisholm Cochrane Lake Coleman Conrich Craigmyle Chisholm Crooked Creek Dalemead Dalroy Dalum De Winton Deadwood Delacour Desmarais Diamond City Dickson Duhamel Dunmore Elkwater Endiang Entwistle Erskine Evansburg Exshaw Fort Chipewyan Fort McMurray Fort Vermilion Frank Frog Lake Hays Heritage Pointe Hillcrest Mines Indus Irvine Janet Jasper Jefferson Kananaskis Kathyrn Kavanagh Kelsey Keoma Kingman La Crete Lac Des Arcs Lake Louise Langdon Madden Mallaig Niton Junction Nordegg Ohaton Pine Lake Plamondon Richdale Rochfort Bridge Saskatchewan River Crossing Schuler Scotfield Seebe Seven Persons Shepard Sherwood Park South Cooking Lake St. Isidore Star Tawatinaw Teepee Creek Tomahawk Torrington Turin Wabasca Wabasca-Desmarais Welling Zama City Acadia Athabasca Barrhead Beaver Bighorn Big Lakes Birch Hills Bonnyville Brazeau Camrose Cardston Clear Hills Clearwater Cypress Fairview Flagstaff Foothills Forty Mile Grande Prairie Greenview Kananaskis Kneehill Lacombe Lac Ste. Anne Lakeland Lamont Leduc Lesser Slave River Lethbridge Mackenzie Minburn Mountain View Newell Northern Lights Northern Sunrise Opportunity Paintearth Parkland Peace Pincher Creek Ponoka Provost Ranchland Red Deer Rocky View Saddle Hills Smoky Lake Smoky River Spirit River Starland Stettler St. Paul Strathcona Sturgeon Taber Thorhild Two Hills Vermilion River Vulcan Wainwright Warner Westlock Wetaskiwin Wheatland Willow Creek Wood Buffalo Woodlands Yellowhead Crowsnest Pass Jasper Municipal District of Mackenzie Wood Buffalo Strathcona County 4-Waterton Lakes National Park 5-Kananaskis Country 9-Banff National Park 12-Jasper National Park 13-Elk Island National Park 24-Wood Buffalo National Park 25-Willmore Wilderness Park