Select your font size 
 
about us products & services consulting & support news & events contact us
Paul Meagher introduces Bayesian inference by discussing the basic mathematical concepts and demonstrating how to implement the underlying conditional probability calculations using PHP.

Understanding Bayes Using PHP - Manitoba

print this article 
 

Conditional probability -- the probability of observing one event as a result of having observed another event -- is a potentially important factor in designing intelligent Web applications. Paul Meagher (www.datavore.com) introduces Bayesian inference by discussing the basic mathematical concepts involved and demonstrating how to implement the underlying conditional probability calculations using PHP. In this article, the author discusses how Bayesian inference can be used to build an online PHP-based wizard that guides a user through the process making a medical diagnosis. This three-part series features interesting applications designed to help you appreciate the power and potential of Bayesian inference concepts.


If you examine current artificial intelligence, statistics, and data-mining journals, books, and conferences, you will notice that Bayesian inference techniques are being applied to increasingly complex problems in a growing number of application areas. Many Web developers, however, lack a constructive understanding of Bayesian inference and this prevents them from utilizing these techniques in their own software-development practice. This article, the first of three, aims to provide web developers with some necessary background.

For a Web developer, a constructive understanding of Bayesian inference means that you are able to see how Bayesian inference can be applied to the Web development problems you are facing. To achieve this level of understanding, a developer cannot be content to simply study a few examples of how the relevant math formulas work; he must also:

  1. See how these math formulas might be distilled into software routines
  2. Determine how these mathematical software routines can be integrated into interesting Web applications
In mathematics, we are usually concerned with declarative, or "what is", descriptions, whereas in computer science we are usually concerned with imperative, or "how to", descriptions. -- Abelson, Sussman, and Sussman in Structure and Interpretation of Computer Programs, p.22

Bayesian inference techniques have been widely used in developing various types of Artifical Intelligence (AI) systems, for instance for text retrieval, classification, medical diagnosis, data mining, troubleshooting, and more, so this article series will be of interest to anyone interested in building intelligent Web applications.

In this article, I will introduce some of the basic mathematical concepts and notations you need to know in order to properly apply the techniques of Bayesian inference. I will also demonstrate how you can implement conditional probability and Bayes theorem calculations using PHP, and how these calculations can be used to build an online medical diagnosis wizard.

In the next two articles, I will also explore the application of Bayesian inference to the design and analysis of Web surveys. This article lays some of the groundwork necessary for understanding this advanced application of Bayesian inference concepts.

The first and most important piece of groundwork to mention concerns the concept of conditional probability.



Page: 1 2 3 4 5 6 7 8 9 10 11 Next Page: Conditional probability

 

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 - Recent Updates

  • Emergency Management Services
      The prototypical emergency involves a shutdown of essential services for a finite period of time. What will your organization do when a world-wide financial crisis strikes?
     
  • 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.
     

Most Recent Website and Regional Updates

 Emergency Management Services
The prototypical emergency involves a shutdown of essential services for a finite period of time. What will your organization do when a world-wide financial crisis strikes?

 
 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.

 
 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.

 
 26/11/2008: Albino Killings in Tanzania
A horrifying story of an underground trade in human body parts, one that allegedly targets albinos in Tanzania and is said to be fueled by witchdoctors.

 
 25/11/2008: Cyber Crime and Bullying
Today on the podcast, the tragic story of a young life cut short that shows there's nothing virtual about on-line bullying. Find out how social networking web sites are being used to promote bullying and hate and why some people think our real world laws are failing to keep up with these kinds of cyber crimes.

 
 24/11/2008: The Story of Private Joseph Dwyer
Today on the Current podcast, a documentary about an American photo-journalist named Warren Zinn. Back in March of 2003, he snapped a now iconic photo of a U.S. Army medic carrying an injured Iraqi boy in his arms. Earlier this year, the medic killed himself. And Zinn has been trying to piece together what ? if any ? role his photograph played in what happened.

 

Google
 
Web transparen.com

Contact Information

Related Information

 
  Winnipeg
Portage la Prairie
The Pas
Flin Flon
Brandon
Churchill
 
 
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
Winnipeg, Portage la Prairie, The Pas, Flin Flon, Brandon, Churchill