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:
- See how these math formulas might be distilled into software routines
- 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
Transparen Corporation - Recent Updates
- 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).
- Online Magazine Sales and Distribution System
Turnkey publishing system facilitates easy online recurring billing, content delivery. Publish using the same software as you use for the print edition.
- How to make a page that silently queries the server
Using IFrames and some JavaScript, your website can dynamically consult a database without needing to reload the page.
- 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
