<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Awwthor Blog</title>
	<atom:link href="https://awwthor.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://awwthor.wordpress.com</link>
	<description>Studying the application of machine learning to financial markets</description>
	<lastBuildDate>Fri, 01 Jan 2010 19:08:05 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='awwthor.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s-ssl.wordpress.com/i/buttonw-com.png</url>
		<title>Awwthor Blog</title>
		<link>https://awwthor.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://awwthor.wordpress.com/osd.xml" title="Awwthor Blog" />
	<atom:link rel='hub' href='https://awwthor.wordpress.com/?pushpress=hub'/>
		<item>
		<title>A Thousand Foot View of Machine Learning</title>
		<link>https://awwthor.wordpress.com/2009/12/31/a-thousand-foot-view-of-machine-learning/</link>
		<comments>https://awwthor.wordpress.com/2009/12/31/a-thousand-foot-view-of-machine-learning/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 03:41:03 +0000</pubDate>
		<dc:creator>awwthor</dc:creator>
				<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://awwthor.wordpress.com/?p=9</guid>
		<description><![CDATA[Since I plan to spend a fair amount of time on this blog talking about machine learning, I thought it would make sense to give a basic introduction to what in the world machine learning is. From the outside, people seem to think it's some kind of magic. In this post, I will give a brief introduction to the principles in machine learning, highlighting the way machine learning researchers frame problems and how the algorithms they develop work to solve these problems.
<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=awwthor.wordpress.com&amp;blog=11176858&amp;post=9&amp;subd=awwthor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since I plan to spend a fair amount of time on this blog talking about machine learning, I thought it would make sense to give a basic introduction to what in the world machine learning is. From the outside, people seem to think it&#8217;s some kind of magic. In this post, I will give a brief introduction to the principles in machine learning, highlighting the way machine learning researchers frame problems and how the algorithms they develop work to solve these problems.</p>
<p>The field is separated into two main categories: supervised learning and unsupervised learning.</p>
<p>Supervised learning is when we are given input vectors (X&#8217;s) and associated results (Y&#8217;s), which could be categories (classification problems) or numbers (regression problems). Given this information, we then seek to develop a model whereby, given a new vector (X), we can determine the associated result (Y).</p>
<p>Sorry if that was too far out there. Maybe we&#8217;re given a vector of a user&#8217;s preferences in music and we&#8217;re trying to classify him as a fan of &#8220;rock&#8221; or &#8220;rap.&#8221; Maybe we&#8217;re trying to look at some market variables and tell whether it&#8217;s going to go up or down.</p>
<p>In unsupervised problems, we are only given the input vectors (X). Our goal, then, is to &#8220;cluster&#8221; (or find logical groupings) of these vectors subject to some constraints. That&#8217;s not as important to what I do, so I&#8217;m going to leave it for another time.</p>
<p><strong>Supervised learning</strong></p>
<p>A vector is simply a list of numbers. For simplicity&#8217;s sake, we&#8217;ll start with a problem where the input vectors (X) are two-dimensional, since these vectors can easily be visualized on an x-y plane. However, it is important to remember that these algorithms can work on input vectors of any dimension.</p>
<p>Consider the following &#8220;toy problem.&#8221; We are given two-dimensional input vectors (X), and associated Y values which can be either &#8220;square&#8221; or &#8220;triangle.&#8221; Then, given a new two-dimensional point (X), depicted below as a green circle, we want to decide whether it corresponds to &#8220;square&#8221; or &#8220;triangle&#8221;:</p>
<p style="text-align:center;"><img class="aligncenter" src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/KnnClassification.svg/279px-KnnClassification.svg.png" alt="" /></p>
<p>This image demonstrates how perhaps the simplest of supervised learning algorithms, known as the <a href="http://en.wikipedia.org/wiki/K-nearest_neighbor_algorithm">k-nearest neighbor algorithm</a> (or <em>KNN</em>) works. KNN simply looks at the new point, and finds the closest points in the training set (the nearest neighbors) in order to decide how to classify the new point. The inner circle demonstrates that, when we use the closest 3 points (k = 3) the algorithm will predict &#8220;triangle.&#8221; However, the outer circle shows that, when we select k = 5, it will predict &#8220;square.&#8221;</p>
<p>Naturally, since the Euclidean distance function used by KNN can work with vectors of any dimension, this principle can be applied to input vectors of any size (although they wouldn&#8217;t be quite as easy to visualize).</p>
<p>This is the fundamental problem of supervised learning: we are given examples (input vectors X and their associated outcomes Y), and we look for a way to train a model to make predictions about new points.</p>
<p>Although KNN does it in a fairly simple way, other algorithms tackle the problem from other directions.</p>
<p>Another example is an algorithm called a linear support vector machine. This algorithm relies on the intuition of maximum margin to solve supervised learning problems. Consider the following 2-dimensional example, here training an algorithm to separate between black and white Y values:</p>
<p style="text-align:center;"><img class="aligncenter" src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Svm_max_sep_hyperplane_with_margin.png/556px-Svm_max_sep_hyperplane_with_margin.png" alt="" width="389" height="419" /></p>
<p style="text-align:left;">
<p>The linear SVM draws a line between the two sets in such a way that it accomplishes two things:</p>
<ol>
<li>The line is as far as possible from the closest training points of each class (maximum margin); and</li>
<li>As few as possible points are on the &#8220;wrong side&#8221; of the line.</li>
</ol>
<p>The training points along the dotted line are called the &#8220;support vectors&#8221;—the line is drawn so as to maximize its distance from these support vectors.</p>
<p>The linear SVM has one serious flaw: in order for it to work, the two classes must be separable by a simple line. That doesn&#8217;t occur very often. In the above KNN demonstration, for example, the squares weren&#8217;t linearly separable from the triangles. In that case, the linear SVM would fail miserably.</p>
<p><strong>The Kernel Trick</strong></p>
<p>The way we get around this problem is by using the kernel trick, which I believe is one of the most beautiful pieces of mathematics I&#8217;ve ever seen.</p>
<p>The kernel trick works as follows. We have our original points (X&#8217;s), which are 2-dimensional and sit in the x-y plane. As it turns out, there are functions (called kernel functions) that take those original 2-dimensional points and project them (according to some rules) into a much higher dimensional space. In fact, using the most popular kernel (called the Gaussian radial basis function kernel), it takes points of any dimension and projects them into an infinite-dimensional space (believe it or not, this is possible). Of course, computers can&#8217;t use infinite dimensional points. But, these kernel functions have special properties that allow us to compute various operations (mainly the &#8220;dot&#8221; product) on these infinite-dimensional vectors without ever actually calculating the infinite-dimensional vector itself. Since SVMs use dot-products for doing their analysis, they can essentially use a kernel function to project the 2-dimensional points into an infinite-dimensional space in which the two classes are linearly separable, and train the algorithm based on where these points lie in that infinite-dimensional space. When an SVM is used this way, it is called a Kernel Support Vector Machine.</p>
<p>This concept can be confusing at first. To get an idea of how this works in practice, you can play around with this <a href="http://www.eee.metu.edu.tr/~alatan/Courses/Demo/AppletSVM.html">SVM applet</a>, which will allow you to use different data sets and different kernels and see how the SVM reacts.</p>
<p>KSVMs are truly revolutionary. They can accomplish a variety of tasks without any tweaking at all, including handwriting, speech and image recognition. I also have applied KSVMs to some problems in the financial sector, although their main selling point is that they can make good generalizations with small amounts of training examples. Since we have plenty of training examples, KSVMs may not be the right choice for us.</p>
<p><strong>Conclusions and further reading</strong></p>
<p>For further reading, I suggest taking a look at Andrew Moore&#8217;s tutorials, which I have found to be very helpful. Andrew Moore is a well-known AI researcher from CMU. Mainly, I suggest taking a look at his tutorials on Decision Trees, Gaussian Mixture Models, K-Means Clustering and Support Vector Machines. For a broad look at the field, his Intro to AI tutorial might be helpful.</p>
<p>Hopefully I&#8217;ve introduced the basic concept of machine learning. We come up with training examples, which are just a list of numbers tagged with a category/outcome. Then, given a new list of numbers, we are trying to classify it or predict the outcome associated with it. Thus, the data we feed these algorithms is of paramount importance. The real key is to find a group of data that make our outcomes separable in the high-dimensional space in which these training examples live—then, we simply have to write an algorithm that can learn how to separate between them.</p>
<p>Naturally, this is a bit of a simplification. These algorithms rarely work &#8220;out of the box,&#8221; and it requires a good understanding of all the internals to figure out which algorithm to use, and how specifically to implement it such as to maximize the chances of success. The programmer has to determine which kernel to use (if any), how to use the data to make it as useful as possible to the algorithm, and how to fine-tune the parameters that each of these algorithms take.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/awwthor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/awwthor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/awwthor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/awwthor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/awwthor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/awwthor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/awwthor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/awwthor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/awwthor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/awwthor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/awwthor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/awwthor.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/awwthor.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/awwthor.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=awwthor.wordpress.com&amp;blog=11176858&amp;post=9&amp;subd=awwthor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://awwthor.wordpress.com/2009/12/31/a-thousand-foot-view-of-machine-learning/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/4fd0fd6612becfe751b075aa9d1ccf05?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">awwthor</media:title>
		</media:content>

		<media:content url="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/KnnClassification.svg/279px-KnnClassification.svg.png" medium="image" />

		<media:content url="http://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Svm_max_sep_hyperplane_with_margin.png/556px-Svm_max_sep_hyperplane_with_margin.png" medium="image" />
	</item>
		<item>
		<title>Welcome to the official blog of Awwthor Technologies, LLC</title>
		<link>https://awwthor.wordpress.com/2009/12/31/welcome-to-the-official-blog-of-awwthor-technologies-llc/</link>
		<comments>https://awwthor.wordpress.com/2009/12/31/welcome-to-the-official-blog-of-awwthor-technologies-llc/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 03:04:52 +0000</pubDate>
		<dc:creator>awwthor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://awwthor.wordpress.com/?p=4</guid>
		<description><![CDATA[Hello everyone, My name is Jason Victor and I am the managing member and founder of Awwthor Technologies, LLC. I started my little company during my senior year of college in order to bring machine learning technologies I had been developing as a student to market. Now, with inspiration from fellow blogger Quantivity, I am [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=awwthor.wordpress.com&amp;blog=11176858&amp;post=4&amp;subd=awwthor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>My name is Jason Victor and I am the managing member and founder of Awwthor Technologies, LLC. I started my little company during my senior year of college in order to bring machine learning technologies I had been developing as a student to market.</p>
<p>Now, with inspiration from fellow blogger <a href="http://quantivity.wordpress.com">Quantivity</a>, I am starting this blog to let the world know a little bit more about me and the research I&#8217;m doing.</p>
<p>I have pretty unique views on investing and on machine learning, and I hope to use this blog to open up a constructive dialogue with the community. In the articles to come, I will likely range from rants about technical analysis to philosophizing about markets and mathematics to cold scientific analysis of the research I&#8217;ve been doing. Stay tuned.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/awwthor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/awwthor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/awwthor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/awwthor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/awwthor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/awwthor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/awwthor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/awwthor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/awwthor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/awwthor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/awwthor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/awwthor.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/awwthor.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/awwthor.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=awwthor.wordpress.com&amp;blog=11176858&amp;post=4&amp;subd=awwthor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://awwthor.wordpress.com/2009/12/31/welcome-to-the-official-blog-of-awwthor-technologies-llc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="https://secure.gravatar.com/avatar/4fd0fd6612becfe751b075aa9d1ccf05?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">awwthor</media:title>
		</media:content>
	</item>
	</channel>
</rss>
