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 - BC

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

  • Research Tools
      Measure human resource allocation and collect data with the goal of determining patterns that will bring forward actionable insights which may lead to policy changes, saving money and improving quality of service.
     
  • Process Evaluation Questions
      Questions to help focus discussion about process improvement
     
  • Operations Research
      Operations Research (frequently called OR), is the methodical study of how to do things better. It is also called Optimization Theory.
     
  • Our Role in Operations Optimization
      Meet objectives more efficiently by improving operational effectiveness and profitability.
     
  • Monte Carlo Method
      Short description of the Monte Carlo Method in optimization theory.
     
  • Introduction to Markov Process
      Introduction to Markov Chains and Markov Processes, with a link to an introductory PDF which provides essential details about Markov analysis, along with helpful examples and exercises.
     
  • Windows PC Tech Support Price Calculator
      Transparen offers first-class Windows PC and Linux PC tech support services based on a number of factors such as a count of supported desktops.
     
  • Remote Technical Support
      Remote technical support is provided 24/7 by Transparen's staff, not only for data recovery, but also for proactive maintenance (i.e. detecting problems early, before they become disasters).
     
  • Monthly Price for Computer Support Service
      Transparen's billing is predictable and affordable. Use our automated price calculator to find the monthly price for our tech support service.
     

Most Recent Website and Regional Updates

 Research Tools
Measure human resource allocation and collect data with the goal of determining patterns that will bring forward actionable insights which may lead to policy changes, saving money and improving quality of service.

 
 Process Evaluation Questions
Questions to help focus discussion about process improvement

 
 Operations Research
Operations Research (frequently called OR), is the methodical study of how to do things better. It is also called Optimization Theory.

 
 Our Role in Operations Optimization
Meet objectives more efficiently by improving operational effectiveness and profitability.

 
 Monte Carlo Method
Short description of the Monte Carlo Method in optimization theory.

 
 Introduction to Markov Process
Introduction to Markov Chains and Markov Processes, with a link to an introductory PDF which provides essential details about Markov analysis, along with helpful examples and exercises.

 
 Windows PC Tech Support Price Calculator
Transparen offers first-class Windows PC and Linux PC tech support services based on a number of factors such as a count of supported desktops.

 
 Remote Technical Support
Remote technical support is provided 24/7 by Transparen's staff, not only for data recovery, but also for proactive maintenance (i.e. detecting problems early, before they become disasters).

 
 Monthly Price for Computer Support Service
Transparen's billing is predictable and affordable. Use our automated price calculator to find the monthly price for our tech support service.

 
 LEGISLATION INTRODUCED TO MAINTAIN STRONG ECONOMY
VICTORIA ? Proposed legislative amendments introduced today will fulfil Premier Gordon Campbell?s 10-point economic plan and help ensure British Columbians have financial stability during the global financial crisis.

 
 SCHWARZENEGGER SUMMIT LOOKS TO KICKSTART GREEN ECONOMY
LOS ANGELES ? During the Governors? Global Climate Summit in California, B.C. joined more than eight U.S. states and representatives from 11 countries in signing a joint declaration agreeing to pursue collaborative action to reduce GHG emissions and create opportunities to grow green economies, announced Environment Minister Barry Penner.

 
 B.C. WOOD SALES IN CHINA SUPPORT B.C. JOBS
SHANGHAI, CHINA ? New orders for B.C. lumber in the world?s fastest growing market provide a boost for B.C.?s forest sector, Forests and Range Minister Pat Bell announced.

 
 B.C. WOOD SALES IN CHINA SUPPORT JOBS ON B.C.?S COAST
SHANGHAI, CHINA ? New orders for B.C. lumber help provide some stability for mill workers and loggers on Vancouver Island, Forests and Range Minister Pat Bell and Duncan Kerr, Chief Operating Officer of Western Forest Products, announced.

 
 B.C. WOOD ENHANCES CHINA?S LANDSCAPE
SHANGHAI ? Qingdao is the location of a new, $125,000 landscape project, which demonstrates creative new uses of B.C. hemlock and western red cedar products, Forests and Range Minister Pat Bell announced on his trade mission to China.

 
 B.C. WOOD TRUSS ROOFING TECHNOLOGY SUCCESSFUL IN CHINA
SHANGHAI, CHINA ? B.C. forest products and Canadian wood truss technology have experienced a breakthrough with three commercial projects providing new roofs to 38 apartment buildings in Shanghai, Forests and Range Minister Pat Bell announced while visiting a project site in the Putuo district.

 
 MINISTER HAGEN CELEBRATES 4-H MONTH WITH COMOX CLUBS
COURTENAY ? Minister of Agriculture and Lands and Comox Valley MLA Stan Hagen took time out to celebrate National 4-H month with 4-H clubs from the Comox Valley.

 
 21/11/2008: Somali Pirates
Earlier this week, a giant Saudi oil tanker became the largest vessel ever hijacked by pirates operating with near impunity off the coast of Somalia. Today on the Current podcast, we'll have an interview with the head of one of the pirate groups operating in the area.

 
 20/11/2008: Juice Box Investigation
How a tainted juice box led one family on a convoluted quest for answers about their children's health.

 
 19/11/2008: Intimidation by Pharmaceutical Companies
Doctors sometimes discover that the drugs they're prescribing can be more harmful to some of their patients than the diseases they treat. But as CBC Radio health reporter Pauline Dakin tells the Current, some doctors say they've been intimidated by pharmaceutical companies into keeping their suspicions and their research quiet.

 
 18/11/2008: The Ascent of Money: Niall Ferguson
Author Niall Ferguson forecasts our financial future by checking on the planet's moneyed history in his book, "The Ascent of Money: A Financial History of The World".

 
 17/11/2008: Shuja Nawaz on Pakistan
For more than half of its existence as an independent nation, Pakistan has been governed by its military. Author and journalist Shuja Nawaz dissects the Country's military history and provides a perspective on today's political reality.

 

Google
 
Web transparen.com

Contact Information

Related Information

 
   
 
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
* Burnaby (City) * Campbell River (Town) * Chilliwack (City) * Comox (City) * Coquitlam * Cranbrook (City) * Delta (City) * Duncan (City) * Grand Forks (City) * Hope (Town) * Kamloops (City) * Kelowna (City) * Ladysmith (Town) * Langley (City) * Mission (City) * Nanaimo (City) * Nelson (City) * New Westminster (City) * North Vancouver (City) * Penticton (City) * Port Alberni * Prince George (City) * Prince Rupert (City) * Quesnel (City) * Saanich (City) * Sidney (City) * Sooke (City) * Steveston (City of Richmond) * Surrey (City) * Tofino * Ucluelet * Vancouver (City) * Vernon (City) * Victoria (City) * West Vancouver (City) * Whistler * White Rock