FireworksColdFusionDreamweaverFreehandFlashMXHome
Past Week's New Content

Latest Free Content
View All
Free Content
Accessibility
CMX Learning Guides
Hosted by enterhost

Bayesian Filtering for the Rest of Us

By: Joel Martinez on Friday, November 18, 2005
Reader Level: Reader Level

Primary Category: ASP.NETMath, I don't know about you guys, but I could not stand it when I was in school. Well, hindsight being 20/20 and all, I have now learned in my old age as a programmer that math plays a big part n modern systems. Specifically, I have recently been digging into the implementation of Bayesian Spam Filters, a statistical method of determining whether an incoming email is spam or not. To be more specific, here's what Wikipedia has to say about Bayesian Spam Filters:

Bayesian email filters take advantage of Bayes' theorem. Bayes' theorem, in the context of spam, says that the probability that an email is spam, given that it has certain words in it, is equal to the probability of finding those certain words in spam email, times the probability that any email is spam, divided by the probability of finding those words in any email

The interesting thing about this method of classification is that it learns over time. The more you train it in how to differentiate spam from "ham", the better it gets at doing its job. The very idea that an application can take a look at an arbitrary piece of data like an email, and know what to do with it intrigues me.

By writing applications that learn over time and make decisions based on context, the art of application development is taken to the proverbial next level. The purpose of this article is to abstract the messy details of the implementation and give you cold hard code that you can implement in your own projects.

Code is presented in C#

Purchase this item
You can purchase this piece of content separately for $3.00

Want more?
Community MX members get unlimited access to daily articles, tutorials, extensions and support. The most comprehensive resource for Macromedia designers and developers today. Take a tour of what we offer, and discover the benefits of subscribing.

Already a member?
Simply log in using the form in the top right area of the site.

Member's Sign In

Remember Me

Retrieve Password

Current Articles
and Tutorials

3354

Most Recent JumpStarts

Newsletter

View the archive

CMX Suite

New every Tuesday!CMX Weekly Cartoon
View the archive

RSS Feed

Syndicate CMX

Our feeds