<?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/"
	>

<channel>
	<title>Computer vision for dummies &#187; Math basics</title>
	<atom:link href="https://www.visiondummy.com/category/math-basics/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.visiondummy.com</link>
	<description>A blog about intelligent algorithms, machine learning, computer vision, datamining and more.</description>
	<lastBuildDate>Tue, 04 May 2021 14:17:31 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.39</generator>
	<item>
		<title>A geometric interpretation of the covariance matrix</title>
		<link>https://www.visiondummy.com/2014/04/geometric-interpretation-covariance-matrix/</link>
		<comments>https://www.visiondummy.com/2014/04/geometric-interpretation-covariance-matrix/#comments</comments>
		<pubDate>Thu, 24 Apr 2014 11:09:38 +0000</pubDate>
		<dc:creator><![CDATA[Vincent Spruyt]]></dc:creator>
				<category><![CDATA[Linear algebra]]></category>
		<category><![CDATA[covariance matrix]]></category>
		<category><![CDATA[eigendecomposition]]></category>
		<category><![CDATA[Eigenvectors]]></category>
		<category><![CDATA[linear transformation]]></category>
		<category><![CDATA[PCA]]></category>

		<guid isPermaLink="false">http://www.visiondummy.com/?p=440</guid>
		<description><![CDATA[<p>In this article, we provide an intuitive, geometric interpretation of the covariance matrix, by exploring the relation between linear transformations and the resulting data covariance. Most textbooks explain the shape of data based on the concept of covariance matrices. Instead, we take a backwards approach and explain the concept of covariance matrices based on the [...]</p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/04/geometric-interpretation-covariance-matrix/">A geometric interpretation of the covariance matrix</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this article, we provide an intuitive, geometric interpretation of the covariance matrix, by exploring the relation between linear transformations and the resulting data covariance. Most textbooks explain the shape of data based on the concept of covariance matrices. Instead, we take a backwards approach and explain the concept of covariance matrices based on the shape of data.</p>
<div id="amzn-assoc-ad-b3cb92d7-7679-4d6e-9628-99f6459b00ca"></div>
<p><script async src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&#038;adInstanceId=b3cb92d7-7679-4d6e-9628-99f6459b00ca"></script><br />
In a previous article, we discussed the concept of <a title="Why divide the sample variance by N-1?" href="http://www.visiondummy.com/2014/03/divide-variance-n-1/" target="_blank">variance</a>, and provided a derivation and proof of the well known formula to estimate the sample variance. Figure 1 was used in this article to show that the standard deviation, as the square root of the variance, provides a measure of how much the data is spread across the feature space.</p>
<div id="attachment_213" style="width: 524px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/03/gaussiandensity.png"><img class="size-full wp-image-213 " style="margin: 0px;" title="Normal distribution" alt="Normal distribution" src="http://www.visiondummy.com/wp-content/uploads/2014/03/gaussiandensity.png" width="514" height="396" /></a><p class="wp-caption-text"><b>Figure 1.</b> Gaussian density function. For normally distributed data, 68% of the samples fall within the interval defined by the mean plus and minus the standard deviation.</p></div>
<p>We showed that an unbiased estimator of the sample variance can be obtained by:</p>
<p class="ql-center-displayed-equation" style="line-height: 129px;"><span class="ql-right-eqno"> (1) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-8511602375b6c3ba0dcf673f5fcdd8f9_l3.png" height="129" width="267" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#95;&#120;&#94;&#50;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#45;&#49;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#92;&#92; &#38;&#61;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#091;&#32;&#40;&#120;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#40;&#120;&#41;&#41;&#32;&#40;&#120;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#40;&#120;&#41;&#41;&#093;&#92;&#92; &#38;&#61;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#120;&#44;&#120;&#41; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>However, variance can only be used to explain the spread of the data in the directions parallel to the axes of the feature space. Consider the 2D feature space shown by figure 2:</p>
<div id="attachment_390" style="width: 391px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/transformeddata.png"><img class="size-full wp-image-390   " style="margin: 0px;" title="Data with a positive covariance" alt="Data with a positive covariance" src="http://www.visiondummy.com/wp-content/uploads/2014/04/transformeddata.png" width="381" height="369" /></a><p class="wp-caption-text"><b>Figure 2.</b> The diagnoal spread of the data is captured by the covariance.</p></div>
<p>For this data, we could calculate the variance <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-306b80c2caf6e1ce873db826824bae77_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#120;&#44;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="61" style="vertical-align: -6px;"/> in the x-direction and the variance <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d0a6f8d59fd3d651e6d12aacb3804cb5_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#121;&#44;&#121;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="59" style="vertical-align: -6px;"/> in the y-direction. However, the horizontal spread and the vertical spread of the data does not explain the clear diagonal correlation. Figure 2 clearly shows that on average, if the x-value of a data point increases, then also the y-value increases, resulting in a positive correlation. This correlation can be captured by extending the notion of variance to what is called the &#8216;covariance&#8217; of the data:</p>
<p class="ql-center-displayed-equation" style="line-height: 23px;"><span class="ql-right-eqno"> (2) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-476cbf37a8d4f3765fe0b2b58e5c8706_l3.png" height="23" width="304" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#40;&#120;&#44;&#121;&#41;&#32;&#61;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#091;&#32;&#40;&#120;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#40;&#120;&#41;&#41;&#32;&#40;&#121;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#40;&#121;&#41;&#41;&#093; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>For 2D data, we thus obtain <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-306b80c2caf6e1ce873db826824bae77_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#120;&#44;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="61" style="vertical-align: -6px;"/>, <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d0a6f8d59fd3d651e6d12aacb3804cb5_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#121;&#44;&#121;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="59" style="vertical-align: -6px;"/>, <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-88d33eb20eafcc741815d0fffe208e01_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#120;&#44;&#121;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="60" style="vertical-align: -6px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-42efe14d58befabbf2f821c96ced0b4a_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#121;&#44;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="60" style="vertical-align: -6px;"/>. These four values can be summarized in a matrix, called the covariance matrix:</p>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (3) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c3b2c0560068487dd51917cd55636781_l3.png" height="64" width="205" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#83;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#40;&#120;&#44;&#120;&#41;&#32;&#38;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#120;&#44;&#121;&#41;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#92;&#115;&#105;&#103;&#109;&#97;&#40;&#121;&#44;&#120;&#41;&#32;&#38;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#121;&#44;&#121;&#41;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>If x is positively correlated with y, y is also positively correlated with x. In other words, we can state that <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a9f6d2d1f35bd9860e5975cd6a893877_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#120;&#44;&#121;&#41;&#32;&#61;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#40;&#121;&#44;&#120;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="150" style="vertical-align: -6px;"/>. Therefore, the covariance matrix is always a symmetric matrix with the variances on its diagonal and the covariances off-diagonal. Two-dimensional normally distributed data is explained completely by its mean and its <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9550d59c0c85b85636acad265530a8ee_l3.png" class="ql-img-inline-formula " alt="&#50;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#50;" title="Rendered by QuickLaTeX.com" height="15" width="45" style="vertical-align: 0px;"/> covariance matrix. Similarly, a <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9f4e76f38736d8026154c7113a886bc0_l3.png" class="ql-img-inline-formula " alt="&#51;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#51;" title="Rendered by QuickLaTeX.com" height="15" width="46" style="vertical-align: 0px;"/> covariance matrix is used to capture the spread of three-dimensional data, and a <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-27211e8b64d0af6bb1c7c805a18af057_l3.png" class="ql-img-inline-formula " alt="&#78;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#78;" title="Rendered by QuickLaTeX.com" height="14" width="64" style="vertical-align: 0px;"/> covariance matrix captures the spread of N-dimensional data.</p>
<p>Figure 3 illustrates how the overall shape of the data defines the covariance matrix:</p>
<div id="attachment_446" style="width: 503px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/covariances.png"><img class="size-full wp-image-446" style="margin: 0px;" title="The spread of the data is defined by its covariance matrix" alt="The spread of the data is defined by its covariance matrix" src="http://www.visiondummy.com/wp-content/uploads/2014/04/covariances.png" width="493" height="479" /></a><p class="wp-caption-text"><b>Figure 3.</b> The covariance matrix defines the shape of the data. Diagonal spread is captured by the covariance, while axis-aligned spread is captured by the variance.</p></div>
<h2>Eigendecomposition of a covariance matrix</h2>
<p>In the next section, we will discuss how the covariance matrix can be interpreted as a linear operator that transforms white data into the data we observed. However, before diving into the technical details, it is important to gain an intuitive understanding of how eigenvectors and eigenvalues uniquely define the covariance matrix, and therefore the shape of our data.</p>
<p>As we saw in figure 3, the covariance matrix defines both the spread (variance), and the orientation (covariance) of our data. So, if we would like to represent the covariance matrix with a vector and its magnitude, we should simply try to find the vector that points into the direction of the largest spread of the data, and whose magnitude equals the spread (variance) in this direction.</p>
<p>If we define this vector as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/>, then the projection of our data <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6fe012cfdbc6f342dbd886ff568ed4ab_l3.png" class="ql-img-inline-formula " alt="&#68;" title="Rendered by QuickLaTeX.com" height="14" width="17" style="vertical-align: 0px;"/> onto this vector is obtained as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-ccf1bdb39d78be778899729ac16806ba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#32;&#68;" title="Rendered by QuickLaTeX.com" height="15" width="37" style="vertical-align: 0px;"/>, and the variance of the projected data is <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e76086e0b82464aff045e27892d04123_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="49" style="vertical-align: 0px;"/>. Since we are looking for the vector <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> that points into the direction of the largest variance, we should choose its components such that the covariance matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e76086e0b82464aff045e27892d04123_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="49" style="vertical-align: 0px;"/> of the projected data is as large as possible. Maximizing any function of the form <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e76086e0b82464aff045e27892d04123_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="49" style="vertical-align: 0px;"/> with respect to <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/>, where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> is a normalized unit vector, can be formulated as a so called <a href="http://en.wikipedia.org/wiki/Rayleigh_quotient" title="Rayleigh Quotient" target="_blank">Rayleigh Quotient</a>. The maximum of such a Rayleigh Quotient is obtained by setting <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> equal to the largest eigenvector of matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-66f091b3d894ca4b0418d9487b6b7e8a_l3.png" class="ql-img-inline-formula " alt="&#92;&#83;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/>.</p>
<p>In other words, the largest eigenvector of the covariance matrix always points into the direction of the largest variance of the data, and the magnitude of this vector equals the corresponding eigenvalue. The second largest eigenvector is always orthogonal to the largest eigenvector, and points into the direction of the second largest spread of the data.</p>
<p>Now let&#8217;s have a look at some examples. In an earlier article we saw that a linear transformation matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-99bdf2edc1f86c3fa1d60f4d82513c7d_l3.png" class="ql-img-inline-formula " alt="&#84;" title="Rendered by QuickLaTeX.com" height="14" width="15" style="vertical-align: 0px;"/> is completely defined by its <a title="What are eigenvectors and eigenvalues?" href="http://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/" target="_blank">eigenvectors and eigenvalues</a>. Applied to the covariance matrix, this means that:<br />
<a name="id3483335494"></a>
<p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno"> (4) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a17919125852783f2014314d7368316e_l3.png" height="15" width="79" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#92;&#83;&#105;&#103;&#109;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#61;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> is an eigenvector of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-66f091b3d894ca4b0418d9487b6b7e8a_l3.png" class="ql-img-inline-formula " alt="&#92;&#83;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/>, and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/> is the corresponding eigenvalue.</p>
<p>If the covariance matrix of our data is a diagonal matrix, such that the covariances are zero, then this means that the variances must be equal to the eigenvalues <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/>. This is illustrated by figure 4, where the eigenvectors are shown in green and magenta, and where the eigenvalues clearly equal the variance components of the covariance matrix.</p>
<div id="attachment_603" style="width: 810px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/eigenvectors.png"><img src="http://www.visiondummy.com/wp-content/uploads/2014/04/eigenvectors.png" alt="Eigenvectors of a covariance matrix" width="800" height="383" class="size-full wp-image-603" /></a><p class="wp-caption-text"><b>Figure 4.</b> Eigenvectors of a covariance matrix</p></div>
<p>However, if the covariance matrix is not diagonal, such that the covariances are not zero, then the situation is a little more complicated. The eigenvalues still represent the variance magnitude in the direction of the largest spread of the data, and the variance components of the covariance matrix still represent the variance magnitude in the direction of the x-axis and y-axis. But since the data is not axis aligned, these values are not the same anymore as shown by figure 5.</p>
<div id="attachment_604" style="width: 810px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/eigenvectors_covariance.png"><img src="http://www.visiondummy.com/wp-content/uploads/2014/04/eigenvectors_covariance.png" alt="Eigenvectors with covariance" width="800" height="382" class="size-full wp-image-604" /></a><p class="wp-caption-text"><b>Figure 5.</b> Eigenvalues versus variance</p></div>
<p>By comparing figure 5 with figure 4, it becomes clear that the eigenvalues represent the variance of the data along the eigenvector directions, whereas the variance components of the covariance matrix represent the spread along the axes. If there are no covariances, then both values are equal.</p>
<h2>Covariance matrix as a linear transformation</h2>
<p>Now let&#8217;s forget about covariance matrices for a moment. Each of the examples in figure 3 can simply be considered to be a linearly transformed instance of figure 6:</p>
<div id="attachment_447" style="width: 391px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/whiteneddata.png"><img class="size-full wp-image-447" style="margin: 0px;" title="White data" alt="White data" src="http://www.visiondummy.com/wp-content/uploads/2014/04/whiteneddata.png" width="381" height="369" /></a><p class="wp-caption-text"><b>Figure 6.</b> Data with unit covariance matrix is called white data.</p></div>
<p>Let the data shown by figure 6 be <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6fe012cfdbc6f342dbd886ff568ed4ab_l3.png" class="ql-img-inline-formula " alt="&#68;" title="Rendered by QuickLaTeX.com" height="14" width="17" style="vertical-align: 0px;"/>, then each of the examples shown by figure 3 can be obtained by linearly transforming <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6fe012cfdbc6f342dbd886ff568ed4ab_l3.png" class="ql-img-inline-formula " alt="&#68;" title="Rendered by QuickLaTeX.com" height="14" width="17" style="vertical-align: 0px;"/>:</p>
<p class="ql-center-displayed-equation" style="line-height: 18px;"><span class="ql-right-eqno"> (5) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-7aecb171a514b3c704f078ec86182805_l3.png" height="18" width="87" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#68;&#39;&#32;&#61;&#32;&#84;&#32;&#92;&#44;&#32;&#68; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-99bdf2edc1f86c3fa1d60f4d82513c7d_l3.png" class="ql-img-inline-formula " alt="&#84;" title="Rendered by QuickLaTeX.com" height="14" width="15" style="vertical-align: 0px;"/> is a transformation matrix consisting of a rotation matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-026035461a80f8e10b18e494d1116782_l3.png" class="ql-img-inline-formula " alt="&#82;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> and a scaling matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-7f83dd23b1b356198dd90895630ebcef_l3.png" class="ql-img-inline-formula " alt="&#83;" title="Rendered by QuickLaTeX.com" height="14" width="13" style="vertical-align: 0px;"/>:<br />
<a name="id1585768567"></a>
<p class="ql-center-displayed-equation" style="line-height: 14px;"><span class="ql-right-eqno"> (6) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-2481ecd212935a8cc503131bf2596bf6_l3.png" height="14" width="81" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#84;&#32;&#61;&#32;&#82;&#32;&#92;&#44;&#32;&#83;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>These matrices are defined as:</p>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (7) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-78bf053271a867c2d5b7c2b30d3e7924_l3.png" height="64" width="211" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#82;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#92;&#99;&#111;&#115;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#38;&#32;&#45;&#92;&#115;&#105;&#110;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#92;&#115;&#105;&#110;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#38;&#32;&#92;&#99;&#111;&#115;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41; &#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a633c6dcc2aba17ef85b129e4fbcaf98_l3.png" class="ql-img-inline-formula " alt="&#92;&#116;&#104;&#101;&#116;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="10" style="vertical-align: 0px;"/> is the rotation angle, and:</p>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (8) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-0756bebe1440213107fea1005e1a655b_l3.png" height="64" width="120" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#83;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#115;&#95;&#120;&#32;&#38;&#32;&#48;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#48;&#32;&#38;&#32;&#115;&#95;&#121; &#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-197e94159cb0b049505c16b6448e224c_l3.png" class="ql-img-inline-formula " alt="&#115;&#95;&#120;" title="Rendered by QuickLaTeX.com" height="12" width="18" style="vertical-align: -3px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-1be2a4d3326735aa17afcfc4d6409278_l3.png" class="ql-img-inline-formula " alt="&#115;&#95;&#121;" title="Rendered by QuickLaTeX.com" height="15" width="18" style="vertical-align: -6px;"/> are the scaling factors in the x direction and the y direction respectively.</p>
<p>In the following paragraphs, we will discuss the relation between the covariance matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-66f091b3d894ca4b0418d9487b6b7e8a_l3.png" class="ql-img-inline-formula " alt="&#92;&#83;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/>, and the linear transformation matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b40eb258e9e321e3d2262a5afffcc8bb_l3.png" class="ql-img-inline-formula " alt="&#84;&#32;&#61;&#32;&#82;&#92;&#44;&#32;&#83;" title="Rendered by QuickLaTeX.com" height="14" width="77" style="vertical-align: 0px;"/>.</p>
<p>Let&#8217;s start with unscaled (scale equals 1) and unrotated data. In statistics this is often refered to as &#8216;white data&#8217; because its samples are drawn from a standard normal distribution and therefore correspond to white (uncorrelated) noise:</p>
<div id="attachment_394" style="width: 391px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/whiteneddata.png"><img class="size-full wp-image-394 " style="margin: 0px;" title="Whitened data" alt="Whitened data" src="http://www.visiondummy.com/wp-content/uploads/2014/04/whiteneddata.png" width="381" height="369" /></a><p class="wp-caption-text"><b>Figure 7.</b> White data is data with a unit covariance matrix.</p></div>
<p>The covariance matrix of this &#8216;white&#8217; data equals the identity matrix, such that the variances and standard deviations equal 1 and the covariance equals zero:</p>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (9) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-22cfcbfd49a80711b48bee89d0ac5e9e_l3.png" height="64" width="218" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#83;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#95;&#120;&#94;&#50;&#32;&#38;&#32;&#48;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#48;&#32;&#38;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#121;&#94;&#50;&#32;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#49;&#32;&#38;&#32;&#48;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#48;&#32;&#38;&#32;&#49;&#32;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Now let&#8217;s scale the data in the x-direction with a factor 4:</p>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (10) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-93925ded582a8e859f4efd17c75d7dc9_l3.png" height="64" width="141" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#68;&#39;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#52;&#32;&#38;&#32;&#48;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#48;&#32;&#38;&#32;&#49;&#32;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#92;&#44;&#32;&#68; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>The data <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-69e87a5558d2fcd98b5a9d1292a4345e_l3.png" class="ql-img-inline-formula " alt="&#68;&#39;" title="Rendered by QuickLaTeX.com" height="17" width="23" style="vertical-align: 0px;"/> now looks as follows:</p>
<div id="attachment_400" style="width: 391px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/stretcheddata.png"><img class="size-full wp-image-400" style="margin: 0px;" title="Data with variance in the x-direction" alt="Data with variance in the x-direction" src="http://www.visiondummy.com/wp-content/uploads/2014/04/stretcheddata.png" width="381" height="369" /></a><p class="wp-caption-text"><b>Figure 8.</b> Variance in the x-direction results in a horizontal scaling.</p></div>
<p>The covariance matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6a91d339ba236a991b48b26135dd4246_l3.png" class="ql-img-inline-formula " alt="&#92;&#83;&#105;&#103;&#109;&#97;&#39;" title="Rendered by QuickLaTeX.com" height="17" width="19" style="vertical-align: 0px;"/> of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-69e87a5558d2fcd98b5a9d1292a4345e_l3.png" class="ql-img-inline-formula " alt="&#68;&#39;" title="Rendered by QuickLaTeX.com" height="17" width="23" style="vertical-align: 0px;"/> is now:</p>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (11) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b17970f14e6400c5fc20c4b9c069abfd_l3.png" height="64" width="234" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#83;&#105;&#103;&#109;&#97;&#39;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#95;&#120;&#94;&#50;&#32;&#38;&#32;&#48;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#48;&#32;&#38;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#121;&#94;&#50;&#32;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#49;&#54;&#32;&#38;&#32;&#48;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#48;&#32;&#38;&#32;&#49;&#32;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Thus, the covariance matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6a91d339ba236a991b48b26135dd4246_l3.png" class="ql-img-inline-formula " alt="&#92;&#83;&#105;&#103;&#109;&#97;&#39;" title="Rendered by QuickLaTeX.com" height="17" width="19" style="vertical-align: 0px;"/> of the resulting data <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-69e87a5558d2fcd98b5a9d1292a4345e_l3.png" class="ql-img-inline-formula " alt="&#68;&#39;" title="Rendered by QuickLaTeX.com" height="17" width="23" style="vertical-align: 0px;"/> is related to the linear transformation <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-99bdf2edc1f86c3fa1d60f4d82513c7d_l3.png" class="ql-img-inline-formula " alt="&#84;" title="Rendered by QuickLaTeX.com" height="14" width="15" style="vertical-align: 0px;"/> that is applied to the original data as follows: <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9bd559b313e798679ab85e7718dea765_l3.png" class="ql-img-inline-formula " alt="&#68;&#39;&#32;&#61;&#32;&#84;&#32;&#92;&#44;&#32;&#68;" title="Rendered by QuickLaTeX.com" height="17" width="87" style="vertical-align: 0px;"/>, where<br />
<a name="id537686066"></a>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (12) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-51df1544156ec5782e7799b4782b029b_l3.png" height="64" width="183" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#84;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#39;&#125;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125; &#52;&#32;&#38;&#32;&#48;&#32;&#92;&#92;&#091;&#48;&#46;&#51;&#101;&#109;&#093; &#48;&#32;&#38;&#32;&#49;&#32;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>However, although equation (<a href="#id537686066">12</a>) holds when the data is scaled in the x and y direction, the question rises if it also holds when a rotation is applied. To investigate the relation between the linear transformation matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-99bdf2edc1f86c3fa1d60f4d82513c7d_l3.png" class="ql-img-inline-formula " alt="&#84;" title="Rendered by QuickLaTeX.com" height="14" width="15" style="vertical-align: 0px;"/> and the covariance matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6a91d339ba236a991b48b26135dd4246_l3.png" class="ql-img-inline-formula " alt="&#92;&#83;&#105;&#103;&#109;&#97;&#39;" title="Rendered by QuickLaTeX.com" height="17" width="19" style="vertical-align: 0px;"/> in the general case, we will therefore try to decompose the covariance matrix into the product of rotation and scaling matrices.</p>
<p>As we saw earlier, we can represent the covariance matrix by its eigenvectors and eigenvalues:<br />
<a name="id3483335494"></a>
<p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno"> (13) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a17919125852783f2014314d7368316e_l3.png" height="15" width="79" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#92;&#83;&#105;&#103;&#109;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#61;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> is an eigenvector of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-66f091b3d894ca4b0418d9487b6b7e8a_l3.png" class="ql-img-inline-formula " alt="&#92;&#83;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/>, and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/> is the corresponding eigenvalue.</p>
<p>Equation (<a href="#id3483335494">13</a>) holds for each eigenvector-eigenvalue pair of matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-66f091b3d894ca4b0418d9487b6b7e8a_l3.png" class="ql-img-inline-formula " alt="&#92;&#83;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/>. In the 2D case, we obtain two eigenvectors and two eigenvalues. The system of two equations defined by equation (<a href="#id3483335494">13</a>) can be represented efficiently using matrix notation:<br />
<a name="id1495159919"></a>
<p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno"> (14) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-f6fdbf4f1af6863c9afc04f7418fdc6f_l3.png" height="15" width="97" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#92;&#83;&#105;&#103;&#109;&#97;&#32;&#92;&#44;&#32;&#86;&#32;&#61;&#32;&#86;&#32;&#92;&#44;&#32;&#76; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-1f1ceff6690e6ea05bc7802220277816_l3.png" class="ql-img-inline-formula " alt="&#86;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> is the matrix whose columns are the eigenvectors of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-66f091b3d894ca4b0418d9487b6b7e8a_l3.png" class="ql-img-inline-formula " alt="&#92;&#83;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-f8016ff830b491e0b1f3122a41ccff3f_l3.png" class="ql-img-inline-formula " alt="&#76;" title="Rendered by QuickLaTeX.com" height="14" width="14" style="vertical-align: 0px;"/> is the diagonal matrix whose non-zero elements are the corresponding eigenvalues.</p>
<p>This means that we can represent the covariance matrix as a function of its eigenvectors and eigenvalues:<br />
<a name="id2430180844"></a>
<p class="ql-center-displayed-equation" style="line-height: 20px;"><span class="ql-right-eqno"> (15) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-1bd7a6edabf351786ae510e2c02d1663_l3.png" height="20" width="117" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#92;&#83;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#86;&#32;&#92;&#44;&#32;&#76;&#32;&#92;&#44;&#32;&#86;&#94;&#123;&#45;&#49;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Equation (<a href="#id2430180844">15</a>) is called the eigendecomposition of the covariance matrix and can be obtained using a <a title="Singular Value Decomposition" href="https://en.wikipedia.org/wiki/Singular_value_decomposition" target="_blank">Singular Value Decomposition</a> algorithm. Whereas the eigenvectors represent the directions of the largest variance of the data, the eigenvalues represent the magnitude of this variance in those directions. In other words, <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-1f1ceff6690e6ea05bc7802220277816_l3.png" class="ql-img-inline-formula " alt="&#86;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> represents a rotation matrix, while <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-8235da3a0beb2b3fd48aef3af7ba37fa_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#113;&#114;&#116;&#123;&#76;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="32" style="vertical-align: -3px;"/> represents a scaling matrix. The covariance matrix can thus be decomposed further as:<br />
<a name="id2743526996"></a>
<p class="ql-center-displayed-equation" style="line-height: 20px;"><span class="ql-right-eqno"> (16) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-23df767e6fb3e95725feacf9467b019e_l3.png" height="20" width="133" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#92;&#83;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#82;&#32;&#92;&#44;&#32;&#83;&#32;&#92;&#44;&#32;&#83;&#32;&#92;&#44;&#32;&#82;&#94;&#123;&#45;&#49;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-7c0435dd691dcbce6e1b3121ba27bbd6_l3.png" class="ql-img-inline-formula " alt="&#82;&#61;&#86;" title="Rendered by QuickLaTeX.com" height="14" width="61" style="vertical-align: 0px;"/> is a rotation matrix and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3262ef230355c0fef4406d0637062a28_l3.png" class="ql-img-inline-formula " alt="&#83;&#61;&#92;&#115;&#113;&#114;&#116;&#123;&#76;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="74" style="vertical-align: -3px;"/> is a scaling matrix.</p>
<p>In equation (<a href="#id1585768567">6</a>) we defined a linear transformation <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-35bf2c5b24b044c78d4ac3ecff5b2078_l3.png" class="ql-img-inline-formula " alt="&#84;&#61;&#82;&#32;&#92;&#44;&#32;&#83;" title="Rendered by QuickLaTeX.com" height="14" width="77" style="vertical-align: 0px;"/>. Since <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-7f83dd23b1b356198dd90895630ebcef_l3.png" class="ql-img-inline-formula " alt="&#83;" title="Rendered by QuickLaTeX.com" height="14" width="13" style="vertical-align: 0px;"/> is a diagonal scaling matrix, <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e6305c54d65d420123b47b07e403a536_l3.png" class="ql-img-inline-formula " alt="&#83;&#32;&#61;&#32;&#83;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="63" style="vertical-align: 0px;"/>. Furthermore, since <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-026035461a80f8e10b18e494d1116782_l3.png" class="ql-img-inline-formula " alt="&#82;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> is an orthogonal matrix, <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-945fcf37014dbf658e49128ad721040e_l3.png" class="ql-img-inline-formula " alt="&#82;&#94;&#123;&#45;&#49;&#125;&#32;&#61;&#32;&#82;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="90" style="vertical-align: 0px;"/>. Therefore, <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-205b466d7f5da5d6cff27d6859693391_l3.png" class="ql-img-inline-formula " alt="&#84;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#32;&#61;&#32;&#40;&#82;&#32;&#92;&#44;&#32;&#83;&#41;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#32;&#61;&#32;&#83;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#32;&#92;&#44;&#32;&#82;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#32;&#61;&#32;&#83;&#32;&#92;&#44;&#32;&#82;&#94;&#123;&#45;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="25" width="275" style="vertical-align: -6px;"/>. The covariance matrix can thus be written as:<br />
<a name="id3282722977"></a>
<p class="ql-center-displayed-equation" style="line-height: 24px;"><span class="ql-right-eqno"> (17) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5889c4c6b55d1c90107dd9fc09195d1c_l3.png" height="24" width="212" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#92;&#83;&#105;&#103;&#109;&#97;&#32;&#61;&#32;&#82;&#32;&#92;&#44;&#32;&#83;&#32;&#92;&#44;&#32;&#83;&#32;&#92;&#44;&#32;&#82;&#94;&#123;&#45;&#49;&#125;&#32;&#61;&#32;&#84;&#32;&#92;&#44;&#32;&#84;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#44; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>In other words, if we apply the linear transformation defined by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-35bf2c5b24b044c78d4ac3ecff5b2078_l3.png" class="ql-img-inline-formula " alt="&#84;&#61;&#82;&#32;&#92;&#44;&#32;&#83;" title="Rendered by QuickLaTeX.com" height="14" width="77" style="vertical-align: 0px;"/> to the original white data <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6fe012cfdbc6f342dbd886ff568ed4ab_l3.png" class="ql-img-inline-formula " alt="&#68;" title="Rendered by QuickLaTeX.com" height="14" width="17" style="vertical-align: 0px;"/> shown by figure 7, we obtain the rotated and scaled data <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-69e87a5558d2fcd98b5a9d1292a4345e_l3.png" class="ql-img-inline-formula " alt="&#68;&#39;" title="Rendered by QuickLaTeX.com" height="17" width="23" style="vertical-align: 0px;"/> with covariance matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c518de6c373241128e4f4bbb640476a1_l3.png" class="ql-img-inline-formula " alt="&#84;&#32;&#92;&#44;&#32;&#84;&#94;&#123;&#92;&#105;&#110;&#116;&#101;&#114;&#99;&#97;&#108;&#125;&#32;&#61;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#39;&#32;&#61;&#32;&#82;&#32;&#92;&#44;&#32;&#83;&#32;&#92;&#44;&#32;&#83;&#32;&#92;&#44;&#32;&#82;&#94;&#123;&#45;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="19" width="211" style="vertical-align: 0px;"/>. This is illustrated by figure 10:</p>
<div id="attachment_407" style="width: 950px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/lineartrans.png"><img class="size-full wp-image-407 " style="margin: 0px;" title="The covariance matrix represents a linear transformation of the original data" alt="The covariance matrix represents a linear transformation of the original data" src="http://www.visiondummy.com/wp-content/uploads/2014/04/lineartrans.png" width="940" height="451" /></a><p class="wp-caption-text"><b>Figure 10.</b> The covariance matrix represents a linear transformation of the original data.</p></div>
<p>The colored arrows in figure 10 represent the eigenvectors. The largest eigenvector, i.e. the eigenvector with the largest corresponding eigenvalue, always points in the direction of the largest variance of the data and thereby defines its orientation. Subsequent eigenvectors are always orthogonal to the largest eigenvector due to the orthogonality of rotation matrices.</p>
<h2>Conclusion</h2>
<p>In this article we showed that the covariance matrix of observed data is directly related to a linear transformation of white, uncorrelated data. This linear transformation is completely defined by the eigenvectors and eigenvalues of the data. While the eigenvectors represent the rotation matrix, the eigenvalues correspond to the square of the scaling factor in each dimension.</p>
<p><strong>If you&#8217;re new to this blog, don&#8217;t forget to subscribe, or <a href="https://twitter.com/vincent_spruyt" title="Follow me on Twitter!" target="_blank">follow me on twitter</a>!</strong><br />


<!-- Form created by Optin Forms plugin by Codeleon: create beautiful optin forms with ease! -->
<!-- http://codeleon.com/products/optin-forms/ -->
<div id="optinforms-form5-container" ><form method="post" target="_blank" action="http://visiondummy.us10.list-manage.com/subscribe/post?u=c435905e10ead915f3917d694&id=bbdfb33a9f"><div id="optinforms-form5" style="background:#ffffff;"><div id="optinforms-form5-container-left"><div id="optinforms-form5-title" style="font-family:News Cycle; font-size:24px; line-height:24px; color:#fd4326">JOIN MY NEWSLETTER</div><!--optinforms-form5-title--><input type="text" id="optinforms-form5-name-field" name="FNAME" placeholder="Enter Your Name" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="text" id="optinforms-form5-email-field" name="EMAIL" placeholder="Enter Your Email" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="submit" name="submit" id="optinforms-form5-button" value="SUBSCRIBE" style="font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#fd4326" /></div><!--optinforms-form5-container-left--><div id="optinforms-form5-container-right"><div id="optinforms-form5-subtitle" style="font-family:Georgia; font-size:16px; color:#444444">Receive my newsletter to get notified when new articles and code snippets become available on my blog!</div><!--optinforms-form5-subtitle--><div id="optinforms-form5-disclaimer" style="font-family:Georgia, Times New Roman, Times, serif; font-size:14px; color:#727272">We all hate spam. Your email address will not be sold or shared with anyone else.</div><!--optinforms-form5-disclaimer--></div><!--optinforms-form5-container-right--><div class="clear"></div></div><!--optinforms-form5--><div class="clear"></div></form></div><!--optinforms-form5-container--><div class="clear"></div>
<!-- / Optin Forms -->

<style type='text/css'></style></p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/04/geometric-interpretation-covariance-matrix/">A geometric interpretation of the covariance matrix</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.visiondummy.com/2014/04/geometric-interpretation-covariance-matrix/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>How to draw a covariance error ellipse?</title>
		<link>https://www.visiondummy.com/2014/04/draw-error-ellipse-representing-covariance-matrix/</link>
		<comments>https://www.visiondummy.com/2014/04/draw-error-ellipse-representing-covariance-matrix/#comments</comments>
		<pubDate>Thu, 03 Apr 2014 16:42:10 +0000</pubDate>
		<dc:creator><![CDATA[Vincent Spruyt]]></dc:creator>
				<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Chi-Square distribution]]></category>
		<category><![CDATA[Confidence Ellipse]]></category>
		<category><![CDATA[Confidence Interval]]></category>
		<category><![CDATA[Error ellipse]]></category>
		<category><![CDATA[Matlab]]></category>

		<guid isPermaLink="false">http://www.visiondummy.com/?p=288</guid>
		<description><![CDATA[<p>In this post, I will show how to draw an error ellipse, a.k.a. confidence ellipse, for 2D normally distributed data. The error ellipse represents an iso-contour of the Gaussian distribution, and allows you to visualize a 2D confidence interval. The following figure shows a 95% confidence ellipse for a set of 2D normally distributed data [...]</p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/04/draw-error-ellipse-representing-covariance-matrix/">How to draw a covariance error ellipse?</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Introduction</h2>
<p>In this post, I will show how to draw an error ellipse, a.k.a. confidence ellipse, for 2D normally distributed data. The error ellipse represents an iso-contour of the Gaussian distribution, and allows you to visualize a 2D confidence interval. The following figure shows a 95% confidence ellipse for a set of 2D normally distributed data samples. This confidence ellipse defines the region that contains 95% of all samples that can be drawn from the underlying Gaussian distribution.</p>
<div id="attachment_291" style="width: 381px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse1.png"><img class="size-full wp-image-291 " style="margin: 0px;" title="Error elipse" alt="Error ellipse" src="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse1.png" width="371" height="366" /></a><p class="wp-caption-text"><b>Figure 1.</b> 2D confidence ellipse for normally distributed data</p></div>
<p>In the next sections we will discuss how to obtain confidence ellipses for different confidence values (e.g. 99% confidence interval), and we will show how to plot these ellipses using Matlab or C++ code.</p>
<h2>Axis-aligned confidence ellipses</h2>
<p>Before deriving a general methodology to obtain an error ellipse, let&#8217;s have a look at the special case where the major axis of the ellipse is aligned with the X-axis, as shown by the following figure:</p>
<div id="attachment_294" style="width: 387px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse_axisaligned.png"><img class="size-full wp-image-294 " style="margin: 0px;" title="Confidence ellipse" alt="Confidence ellipse" src="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse_axisaligned.png" width="377" height="366" /></a><p class="wp-caption-text"><b>Figure 2.</b> Confidence ellipse for uncorrelated Gaussian data</p></div>
<p>The above figure illustrates that the angle of the ellipse is determined by the covariance of the data. In this case, the covariance is zero, such that the data is uncorrelated, resulting in an axis-aligned error ellipse.</p>
<table style="width: 40%;">
<caption><b>Table 1.</b><b></b> Covariance matrix of the data shown in Figure 2</caption>
<tbody>
<tr>
<td>8.4213</td>
<td>0</td>
</tr>
<tr>
<td>0</td>
<td>0.9387</td>
</tr>
</tbody>
</table>
<p>Furthermore, it is clear that the magnitudes of the ellipse axes depend on the <a title="Why divide the sample variance by N-1?" href="http://www.visiondummy.com/2014/03/divide-variance-n-1/" target="_blank">variance</a> of the data. In our case, the largest variance is in the direction of the X-axis, whereas the smallest variance lies in the direction of the Y-axis.</p>
<p>In general, the equation of an axis-aligned ellipse with a major axis of length <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-114c887a638080e42379627755bea35c_l3.png" class="ql-img-inline-formula " alt="&#50;&#97;" title="Rendered by QuickLaTeX.com" height="15" width="21" style="vertical-align: 0px;"/> and a minor axis of length <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-ce5a354033b63af80b370b364b6ea30f_l3.png" class="ql-img-inline-formula " alt="&#50;&#98;" title="Rendered by QuickLaTeX.com" height="15" width="19" style="vertical-align: 0px;"/>, centered at the origin, is defined by the following equation:</p>
<p class="ql-center-displayed-equation" style="line-height: 43px;"><span class="ql-right-eqno"> (1) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6850b78a0311e2035fc2fa6e6495aea5_l3.png" height="43" width="161" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#32;&#120;&#32;&#125;&#32;&#123;&#32;&#97;&#32;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#32;&#121;&#32;&#125;&#32;&#123;&#32;&#98;&#32;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#32;&#61;&#32;&#49; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>In our case, the length of the axes are defined by the standard deviations <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e46681c2f6f854fa4dc3c745549a1ee3_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#120;" title="Rendered by QuickLaTeX.com" height="12" width="21" style="vertical-align: -3px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5c4c0c8d35cf7a1cb2958466ec04703c_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#121;" title="Rendered by QuickLaTeX.com" height="15" width="21" style="vertical-align: -6px;"/> of the data such that the equation of the error ellipse becomes:<br />
<a name="id2631188439"></a>
<p class="ql-center-displayed-equation" style="line-height: 56px;"><span class="ql-right-eqno"> (2) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-656e7d98ea1acbbe34c29195714a84af_l3.png" height="56" width="192" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#32;&#120;&#32;&#125;&#32;&#123;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#120;&#32;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#32;&#121;&#32;&#125;&#32;&#123;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#121;&#32;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#32;&#61;&#32;&#115; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6ac8b2d308970b24dda8f9063f56d28_l3.png" class="ql-img-inline-formula " alt="&#115;" title="Rendered by QuickLaTeX.com" height="9" width="8" style="vertical-align: 0px;"/> defines the scale of the ellipse and could be any arbitrary number (e.g. s=1). The question is now how to choose <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6ac8b2d308970b24dda8f9063f56d28_l3.png" class="ql-img-inline-formula " alt="&#115;" title="Rendered by QuickLaTeX.com" height="9" width="8" style="vertical-align: 0px;"/>, such that the scale of the resulting ellipse represents a chosen confidence level (e.g. a 95% confidence level corresponds to s=5.991).</p>
<p>Our 2D data is sampled from a multivariate Gaussian with zero covariance. This means that both the x-values and the y-values are normally distributed too. Therefore, the left hand side of equation (<a href="#id2631188439">2</a>) actually represents the sum of squares of independent normally distributed data samples. The sum of squared Gaussian data points is known to be distributed according to a so called <a title="Chi-Square distribution" href="https://en.wikipedia.org/wiki/Chi-squared_distribution" target="_blank">Chi-Square distribution</a>. A Chi-Square distribution is defined in terms of &#8216;degrees of freedom&#8217;, which represent the number of unknowns. In our case there are two unknowns, and therefore two degrees of freedom.</p>
<p>Therefore, we can easily obtain the probability that the above sum, and thus <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6ac8b2d308970b24dda8f9063f56d28_l3.png" class="ql-img-inline-formula " alt="&#115;" title="Rendered by QuickLaTeX.com" height="9" width="8" style="vertical-align: 0px;"/> equals a specific value by calculating the Chi-Square likelihood. In fact, since we are interested in a confidence interval, we are looking for the probability that <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6ac8b2d308970b24dda8f9063f56d28_l3.png" class="ql-img-inline-formula " alt="&#115;" title="Rendered by QuickLaTeX.com" height="9" width="8" style="vertical-align: 0px;"/> is less then or equal to a specific value which can easily be obtained using the cumulative Chi-Square distribution. As statisticians are lazy people, we usually don&#8217;t try to calculate this probability, but simply look it up in a probability table: <a title="Chi-Square probability table" href="https://people.richland.edu/james/lecture/m170/tbl-chi.html" target="_blank">https://people.richland.edu/james/lecture/m170/tbl-chi.html</a>.</p>
<p>For example, using this probability table we can easily find that, in the 2-degrees of freedom case:</p>
<p class="ql-center-displayed-equation" style="line-height: 23px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e29659250cca77e3164bab2cc48a73fd_l3.png" height="23" width="287" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#80;&#40;&#115;&#32;&#60;&#32;&#53;&#46;&#57;&#57;&#49;&#41;&#32;&#61;&#32;&#49;&#45;&#48;&#46;&#48;&#53;&#32;&#61;&#32;&#48;&#46;&#57;&#53; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Therefore, a 95% confidence interval corresponds to s=5.991. In other words, 95% of the data will fall inside the ellipse defined as:</p>
<p class="ql-center-displayed-equation" style="line-height: 56px;"><span class="ql-right-eqno"> (3) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-2eec7893f6348d4dce5f005a5ee00338_l3.png" height="56" width="231" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#32;&#120;&#32;&#125;&#32;&#123;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#120;&#32;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#32;&#121;&#32;&#125;&#32;&#123;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#121;&#32;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#32;&#61;&#32;&#53;&#46;&#57;&#57;&#49; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Similarly, a 99% confidence interval corresponds to s=9.210 and a 90% confidence interval corresponds to s=4.605.</p>
<p>The error ellipse show by figure 2 can therefore be drawn as an ellipse with a major axis length equal to <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-31abae3b75123c073ad6a6e4d4c118a7_l3.png" class="ql-img-inline-formula " alt="&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#120;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#53;&#46;&#57;&#57;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="97" style="vertical-align: -4px;"/> and the minor axis length to <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b9b8bf9a4f958430d7d298658d35b32b_l3.png" class="ql-img-inline-formula " alt="&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#121;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#53;&#46;&#57;&#57;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="24" width="97" style="vertical-align: -6px;"/>.</p>
<h2>Arbitrary confidence ellipses</h2>
<p>In cases where the data is not uncorrelated, such that a covariance exists, the resulting error ellipse will not be axis aligned. In this case, the reasoning of the above paragraph only holds if we temporarily define a new coordinate system such that the ellipse becomes axis-aligned, and then rotate the resulting ellipse afterwards.</p>
<p>In other words, whereas we calculated the variances <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e46681c2f6f854fa4dc3c745549a1ee3_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#120;" title="Rendered by QuickLaTeX.com" height="12" width="21" style="vertical-align: -3px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5c4c0c8d35cf7a1cb2958466ec04703c_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#121;" title="Rendered by QuickLaTeX.com" height="15" width="21" style="vertical-align: -6px;"/> parallel to the x-axis and y-axis earlier, we now need to calculate these variances parallel to what will become the major and minor axis of the confidence ellipse. The directions in which these variances need to be calculated are illustrated by a pink and a green arrow in figure 1.</p>
<div id="attachment_291" style="width: 381px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse1.png"><img class="size-full wp-image-291 " style="margin: 0px;" title="Error elipse" alt="Error ellipse" src="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse1.png" width="371" height="366" /></a><p class="wp-caption-text"><b>Figure 1.</b> 2D confidence ellipse for normally distributed data</p></div>
<p>These directions are actually the directions in which the data varies the most, and are defined by the covariance matrix. The covariance matrix can be considered as a matrix that linearly transformed some original data to obtain the currently observed data. In a previous article about <a title="What are eigenvectors and eigenvalues?" href="http://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/" target="_blank">eigenvectors and eigenvalues</a> we showed that the direction vectors along such a linear transformation are the eigenvectors of the transformation matrix. Indeed, the vectors shown by pink and green arrows in figure 1, are the eigenvectors of the covariance matrix of the data, whereas the length of the vectors corresponds to the eigenvalues.</p>
<div id="amzn-assoc-ad-b3cb92d7-7679-4d6e-9628-99f6459b00ca"></div>
<p><script async src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&#038;adInstanceId=b3cb92d7-7679-4d6e-9628-99f6459b00ca"></script><br />
The eigenvalues therefore represent the spread of the data in the direction of the eigenvectors. In other words, the eigenvalues represent the variance of the data in the direction of the eigenvectors. In the case of axis aligned error ellipses, i.e. when the covariance equals zero, the eigenvalues equal the variances of the covariance matrix and the eigenvectors are equal to the definition of the x-axis and y-axis. In the case of arbitrary correlated data, the eigenvectors represent the direction of the largest spread of the data, whereas the eigenvalues define how large this spread really is.</p>
<p>Thus, the 95% confidence ellipse can be defined similarly to the axis-aligned case, with the major axis of length <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-7b3725c66b1e67b1c3fbd8a245f30f72_l3.png" class="ql-img-inline-formula " alt="&#50;&#92;&#115;&#113;&#114;&#116;&#123;&#53;&#46;&#57;&#57;&#49;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="97" style="vertical-align: -5px;"/> and the minor axis of length <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-f3e7e21b4b145fbea61d5bd543d8cd22_l3.png" class="ql-img-inline-formula " alt="&#50;&#92;&#115;&#113;&#114;&#116;&#123;&#53;&#46;&#57;&#57;&#49;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="97" style="vertical-align: -5px;"/>, where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d28b7f27106b804ac9311012dd46d840_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="18" width="18" style="vertical-align: -4px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a90de865b721b1827da7f6e7155ccb3f_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="17" width="19" style="vertical-align: -3px;"/> represent the eigenvalues of the covariance matrix.</p>
<p>To obtain the orientation of the ellipse, we simply calculate the angle of the largest eigenvector towards the x-axis:</p>
<p class="ql-center-displayed-equation" style="line-height: 52px;"><span class="ql-right-eqno"> (4) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d7a007de26db486da1f5fb18a3293e2b_l3.png" height="52" width="157" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#97;&#108;&#112;&#104;&#97;&#32;&#61;&#32;&#92;&#97;&#114;&#99;&#116;&#97;&#110;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#118;&#125;&#95;&#49;&#40;&#121;&#41;&#125;&#123;&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#118;&#125;&#95;&#49;&#40;&#120;&#41;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-8571972b1a5be238454cbaecd3353721_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#118;&#125;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="15" width="20" style="vertical-align: -4px;"/> is the eigenvector of the covariance matrix that corresponds to the largest eigenvalue.</p>
<p>Based on the minor and major axis lengths and the angle <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-8970b282c5cfe9620d567cfec85d40d1_l3.png" class="ql-img-inline-formula " alt="&#92;&#97;&#108;&#112;&#104;&#97;" title="Rendered by QuickLaTeX.com" height="9" width="13" style="vertical-align: 0px;"/> between the major axis and the x-axis, it becomes trivial to plot the confidence ellipse. Figure 3 shows error ellipses for several confidence values:</p>
<div id="attachment_310" style="width: 387px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse_isocontours.png"><img class="size-full wp-image-310 " style="margin: 0px;" title="Error ellipses" alt="Error ellipses" src="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse_isocontours.png" width="377" height="366" /></a><p class="wp-caption-text">Confidence ellipses for normally distributed data</p></div>
<h2>Source Code</h2>
<p><a href="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse.m">Matlab source code</a><br />
<a href="http://www.visiondummy.com/wp-content/uploads/2014/04/error_ellipse.cpp">C++ source code (uses OpenCV)</a></p>
<h2>Conclusion</h2>
<p>In this article we showed how to obtain the error ellipse for 2D normally distributed data, according to a chosen confidence value. This is often useful when visualizing or analyzing data and will be of interest in a future article about <a href="http://www.visiondummy.com/2014/05/feature-extraction-using-pca/" title="Feature extraction using PCA">PCA</a>.</p>
<p>Furthermore, source code samples were provided for Matlab and C++.</p>
<p><strong>If you&#8217;re new to this blog, don&#8217;t forget to subscribe, or <a href="https://twitter.com/vincent_spruyt" title="Follow me on Twitter!" target="_blank">follow me on twitter</a>!</strong><br />


<!-- Form created by Optin Forms plugin by Codeleon: create beautiful optin forms with ease! -->
<!-- http://codeleon.com/products/optin-forms/ -->
<div id="optinforms-form5-container" ><form method="post" target="_blank" action="http://visiondummy.us10.list-manage.com/subscribe/post?u=c435905e10ead915f3917d694&id=bbdfb33a9f"><div id="optinforms-form5" style="background:#ffffff;"><div id="optinforms-form5-container-left"><div id="optinforms-form5-title" style="font-family:News Cycle; font-size:24px; line-height:24px; color:#fd4326">JOIN MY NEWSLETTER</div><!--optinforms-form5-title--><input type="text" id="optinforms-form5-name-field" name="FNAME" placeholder="Enter Your Name" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="text" id="optinforms-form5-email-field" name="EMAIL" placeholder="Enter Your Email" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="submit" name="submit" id="optinforms-form5-button" value="SUBSCRIBE" style="font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#fd4326" /></div><!--optinforms-form5-container-left--><div id="optinforms-form5-container-right"><div id="optinforms-form5-subtitle" style="font-family:Georgia; font-size:16px; color:#444444">Receive my newsletter to get notified when new articles and code snippets become available on my blog!</div><!--optinforms-form5-subtitle--><div id="optinforms-form5-disclaimer" style="font-family:Georgia, Times New Roman, Times, serif; font-size:14px; color:#727272">We all hate spam. Your email address will not be sold or shared with anyone else.</div><!--optinforms-form5-disclaimer--></div><!--optinforms-form5-container-right--><div class="clear"></div></div><!--optinforms-form5--><div class="clear"></div></form></div><!--optinforms-form5-container--><div class="clear"></div>
<!-- / Optin Forms -->

<style type='text/css'></style></p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/04/draw-error-ellipse-representing-covariance-matrix/">How to draw a covariance error ellipse?</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.visiondummy.com/2014/04/draw-error-ellipse-representing-covariance-matrix/feed/</wfw:commentRss>
		<slash:comments>62</slash:comments>
		</item>
		<item>
		<title>Why divide the sample variance by N-1?</title>
		<link>https://www.visiondummy.com/2014/03/divide-variance-n-1/</link>
		<comments>https://www.visiondummy.com/2014/03/divide-variance-n-1/#comments</comments>
		<pubDate>Fri, 07 Mar 2014 15:29:22 +0000</pubDate>
		<dc:creator><![CDATA[Vincent Spruyt]]></dc:creator>
				<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Gaussian distribution]]></category>
		<category><![CDATA[maximum likelihood]]></category>
		<category><![CDATA[normal distribution]]></category>
		<category><![CDATA[parameter estimation]]></category>
		<category><![CDATA[Variance]]></category>

		<guid isPermaLink="false">http://www.visiondummy.com/?p=196</guid>
		<description><![CDATA[<p>In this article, we will derive the well known formulas for calculating the mean and the variance of normally distributed data, in order to answer the question in the article&#8217;s title. However, for readers who are not interested in the &#8216;why&#8217; of this question but only in the &#8216;when&#8217;, the answer is quite simple: If [...]</p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/03/divide-variance-n-1/">Why divide the sample variance by N-1?</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Introduction</h2>
<blockquote><p>In this article, we will derive the well known formulas for calculating the mean and the variance of normally distributed data, in order to answer the question in the article&#8217;s title. However, for readers who are not interested in the &#8216;why&#8217; of this question but only in the &#8216;when&#8217;, the answer is quite simple: </p>
<p>If you have to estimate both the mean and the variance of the data (which is typically the case), then divide by N-1, such that the variance is obtained as:</p>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b71ee358cbe3bce7178102acf00312ed_l3.png" height="64" width="225" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#45;&#49;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>If, on the other hand, the mean of the true population is known such that only the variance needs to be estimated, then divide by N, such that the variance is obtained as:</p>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e452d9b764db8e7082601fe586c341f9_l3.png" height="64" width="189" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Whereas the former is what you will typically need, an example of the latter would be the estimation of the spread of white Gaussian noise. Since the mean of white Gaussian noise is known to be zero, only the variance needs to be estimated in this case.
</p></blockquote>
<p>If data is normally distributed we can completely characterize it by its mean <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> and its variance <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/>. The variance is the square of the standard deviation <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-85530ce651284e1df6c244bc68a7517b_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="9" width="12" style="vertical-align: 0px;"/> which represents the average deviation of each data point to the mean. In other words, the variance represents the spread of the data. For normally distributed data, 68.3% of the observations will have a value between <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b09a1874966ca228371143d8d400483a_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;&#45;&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="13" width="50" style="vertical-align: -4px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-10c65b44b34fbef99f2a050d2b2b76ce_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;&#43;&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="17" width="50" style="vertical-align: -4px;"/>. This is illustrated by the following figure which shows a Gaussian density function with mean <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e4c470125e4a0216335bcfd31e9d8598_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="19" width="62" style="vertical-align: -4px;"/> and variance <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6036fa400d9226296f3e40bcd9df9ce4_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#51;&#94;&#50;&#32;&#61;&#32;&#57;" title="Rendered by QuickLaTeX.com" height="19" width="108" style="vertical-align: 0px;"/>:</p>
<div id="attachment_213" style="width: 524px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/03/gaussiandensity.png" target="_blank"><img class="size-full wp-image-213 " style="border: 0px; margin-top: 0px; margin-bottom: 0px;" title="Normal distribution" alt="Gaussian density" src="http://www.visiondummy.com/wp-content/uploads/2014/03/gaussiandensity.png" width="514" height="396" /></a><p class="wp-caption-text"><b>Figure 1.</b> Gaussian density function. For normally distributed data, 68% of the samples fall within the interval defined by the mean plus and minus the standard deviation.</p></div>
<p>Usually we do not have access to the complete population of the data. In the above example, we would typically have a few observations at our disposal but we do not have access to all possible observations that define the x-axis of the plot. For example, we might have the following set of observations:</p>
<table>
<caption>Table 1</caption>
<thead>
<tr>
<th>Observation ID</th>
<th>Observed Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Observation 1</td>
<td>10</td>
</tr>
<tr>
<td>Observation 2</td>
<td>12</td>
</tr>
<tr>
<td>Observation 3</td>
<td>7</td>
</tr>
<tr>
<td>Observation 4</td>
<td>5</td>
</tr>
<tr>
<td>Observation 5</td>
<td>11</td>
</tr>
</tbody>
</table>
<p>If we now calculate the empirical mean by summing up all values and dividing by the number of observations, we have:</p>
<p class="ql-center-displayed-equation" style="line-height: 44px;"><span class="ql-right-eqno"> (1) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-93cdaf0af7092ce66c87d8d86d6889a0_l3.png" height="44" width="276" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#117;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#48;&#43;&#49;&#50;&#43;&#55;&#43;&#53;&#43;&#49;&#49;&#125;&#123;&#53;&#125;&#32;&#61;&#32;&#57;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Usually we assume that the empirical mean is close to the actually unknown mean of the distribution, and thus assume that the observed data is sampled from a Gaussian distribution with mean <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c91ef41194f6d2b026becce4b6129330_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;&#61;&#57;" title="Rendered by QuickLaTeX.com" height="19" width="51" style="vertical-align: -4px;"/>. In this example, the actual mean of the distribution is 10, so the empirical mean indeed is close to the actual mean.</p>
<p>The variance of the data is calculated as follows:<br />
<a name="id2864676703"></a>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (2) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6cb8ee3cecf7a9bfc0108deb88674d63_l3.png" height="64" width="815" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#45;&#49;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#49;&#48;&#45;&#57;&#41;&#94;&#50;&#43;&#40;&#49;&#50;&#45;&#57;&#41;&#94;&#50;&#43;&#40;&#55;&#45;&#57;&#41;&#94;&#50;&#43;&#40;&#53;&#45;&#57;&#41;&#94;&#50;&#43;&#40;&#49;&#49;&#45;&#57;&#41;&#94;&#50;&#125;&#123;&#52;&#125;&#41;&#32;&#61;&#32;&#56;&#46;&#53;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Again, we usually assume that this empirical variance is close to the real and unknown variance of underlying distribution. In this example, the real variance was 9, so indeed the empirical variance is close to the real variance.</p>
<p>The question at hand is now why the formulas used to calculate the empirical mean and the empirical variance are correct. In fact, another often used formula to calculate the variance, is defined as follows:<br />
<a name="id2627899374"></a>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (3) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-f3be72f6a3797e962c5c4fe30064ec63_l3.png" height="64" width="779" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#49;&#48;&#45;&#57;&#41;&#94;&#50;&#43;&#40;&#49;&#50;&#45;&#57;&#41;&#94;&#50;&#43;&#40;&#55;&#45;&#57;&#41;&#94;&#50;&#43;&#40;&#53;&#45;&#57;&#41;&#94;&#50;&#43;&#40;&#49;&#49;&#45;&#57;&#41;&#94;&#50;&#125;&#123;&#53;&#125;&#41;&#32;&#61;&#32;&#54;&#46;&#56;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>The only difference between equation (<a href="#id2864676703">2</a>) and (<a href="#id2627899374">3</a>) is that the former divides by N-1, whereas the latter divides by N. Both formulas are actually correct, but when to use which one depends on the situation.</p>
<p>In the following sections, we will completely derive the formulas that best approximate the unknown variance and mean of a normal distribution, given a few samples from this distribution. We will show in which cases to divide the variance by N and in which cases to normalize by N-1.</p>
<p>A formula that approximates a parameter (mean or variance) is called an estimator. In the following, we will denote the real and unknown parameters of the distribution by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c512e7f37dd7722dae70ad8ce0b65b1a_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="13" style="vertical-align: -4px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-316084d39bdf36196d84853facf1192d_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/>. The estimators, e.g. the empirical average and empirical variance, are denoted as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/>.</p>
<p>To find the optimal estimators, we first need an analytical expression for the likelihood of observing a specific data point <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-53efd0fb9b7cb01074ee7ba13b237495_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#105;" title="Rendered by QuickLaTeX.com" height="12" width="17" style="vertical-align: -3px;"/>, given the fact that the population is normally distributed with a given mean <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> and standard deviation <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-85530ce651284e1df6c244bc68a7517b_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="9" width="12" style="vertical-align: 0px;"/>. A normal distribution with known parameters is usually denoted as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-8e5ac4519df4be65c5db9dd39bab68e3_l3.png" class="ql-img-inline-formula " alt="&#78;&#40;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;" title="Rendered by QuickLaTeX.com" height="25" width="78" style="vertical-align: -6px;"/>. The likelihood function is then:<br />
<a name="id2562325792"></a>
<p class="ql-center-displayed-equation" style="line-height: 84px;"><span class="ql-right-eqno"> (4) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-13e197e9e845578df19aa3cbb88b37e6_l3.png" height="84" width="339" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#38;&#120;&#95;&#105;&#32;&#92;&#115;&#105;&#109;&#32;&#78;&#40;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#32;&#92;&#92; &#38;&#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#80;&#40;&#120;&#95;&#105;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#50;&#32;&#92;&#112;&#105;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#125;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>To calculate the mean and variance, we obviously need more than one sample from this distribution. In the following, let vector <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c88d070c0ab87fae3f8da66bf22870dc_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#61;&#40;&#120;&#95;&#49;&#44;&#32;&#120;&#95;&#50;&#44;&#46;&#46;&#46;&#32;&#120;&#95;&#78;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="162" style="vertical-align: -6px;"/> be a vector that contains all the available samples (e.g. all the values from the example in table 1). If all these samples are statistically independent, we can write their joint likelihood function as the sum of all individual likelihoods:<br />
<a name="id537882371"></a>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (5) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-7d39352b3945c4ce0751f8b0cc6f0307_l3.png" height="64" width="864" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#32;&#61;&#32;&#80;&#40;&#120;&#95;&#49;&#44;&#32;&#120;&#95;&#50;&#44;&#32;&#46;&#46;&#46;&#44;&#32;&#120;&#95;&#78;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#32;&#61;&#32;&#80;&#40;&#120;&#95;&#49;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#80;&#40;&#120;&#95;&#50;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#46;&#46;&#46;&#80;&#40;&#120;&#95;&#78;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#32;&#61;&#32;&#92;&#112;&#114;&#111;&#100;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#80;&#40;&#120;&#95;&#105;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Plugging equation (<a href="#id2562325792">4</a>) into equation (<a href="#id537882371">5</a>) then yields an analytical expression for this joint probability density function:<br />
<a name="id1068849321"></a>
<p class="ql-center-displayed-equation" style="line-height: 127px;"><span class="ql-right-eqno"> (6) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-926af367d877ca0e8a57cd4df8137ad0_l3.png" height="127" width="363" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#32;&#38;&#61;&#32;&#92;&#112;&#114;&#111;&#100;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#50;&#32;&#92;&#112;&#105;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#125;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#125;&#92;&#92; &#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#40;&#50;&#32;&#92;&#112;&#105;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#94;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#125;&#125;&#125;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Equation (<a href="#id1068849321">6</a>) will be important in the next sections and will be used to derive the well known expressions for the estimators of the mean and the variance of a Gaussian distribution.</p>
<h2>Minimum variance, unbiased estimators</h2>
<p>To determine if an estimator is a &#8216;good&#8217; estimator, we first need to define what a &#8216;good&#8217; estimator really is. The goodness of an estimator depends on two measures, namely its bias and its variance (yes, we will talk about the variance of the mean-estimator and the variance of the variance-estimator). Both measures are briefly discussed in this section.</p>
<h3>Parameter bias</h3>
<p>Imagine that we could obtain different (disjoint) subsets of the complete population. In analogy to our previous example, imagine that, apart from the data in Table 1, we also have a Table 2 and a Table 3 with different observations. Then a good estimator for the mean, would be an estimator that on average would be equal to the real mean. Although we can live with the idea that the empirical mean from one subset of data is not equal to the real mean like in our example, a good estimator should make sure that the average of the estimated means from all subsets is equal to the real mean. This constraint is expressed mathematically by stating that the Expected Value of the estimator should equal the real parameter value:<br />
<a name="id2404251598"></a>
<p class="ql-center-displayed-equation" style="line-height: 59px;"><span class="ql-right-eqno"> (7) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b680d42fd3ce7fee8c4f6517ddd92817_l3.png" height="59" width="99" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#32; &#38;&#69;&#091;&#92;&#109;&#117;&#093;&#32;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;&#92;&#92; &#38;&#69;&#091;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#093;&#32;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>If the above conditions hold, then the estimators are called &#8216;unbiased estimators&#8217;. If the conditions do not hold, the estimators are said to be &#8216;biased&#8217;, since on average they will either underestimate or overestimate the true value of the parameter.</p>
<h3>Parameter variance</h3>
<p>Unbiased estimators guarantee that on average they yield an estimate that equals the real parameter. However, this does not mean that each estimate is a good estimate. For instance, if the real mean is 10, an unbiased estimator could estimate the mean as 50 on one population subset and as -30 on another subset. The expected value of the estimate would then indeed be 10, which equals the real parameter, but the quality of the estimator clearly also depends on the spread of each estimate. An estimator that yields the estimates (10, 15, 5, 12, 8) for five different subsets of the population is unbiased just like an estimator that yields the estimates (50, -30, 100, -90, 10). However, all estimates from the first estimator are closer to the true value than those from the second estimator.</p>
<p>Therefore, a good estimator not only has a low bias, but also yields a low variance. This variance is expressed as the mean squared error of the estimator:</p>
<p class="ql-center-displayed-equation" style="line-height: 60px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6b784d7989b829ef1bc2a7fc555316b1_l3.png" height="60" width="207" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#38;&#86;&#97;&#114;&#40;&#92;&#109;&#117;&#41;&#32;&#61;&#32;&#69;&#091;&#40;&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#093;&#92;&#92; &#38;&#86;&#97;&#114;&#40;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#32;&#61;&#32;&#69;&#091;&#40;&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#32;&#45;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#41;&#94;&#50;&#093; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>A good estimator is therefore is a low bias, low variance estimator. The optimal estimator, if such estimator exists, is then the one that has no bias and a variance that is lower than any other possible estimator. Such an estimator is called the minimum variance, unbiased (MVU) estimator. In the next section, we will derive the analytical expressions for the mean and the variance estimators of a Gaussian distribution. We will show that the MVU estimator for the variance of a normal distribution requires us to divide the variance by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9c99ad944abf4b8313cf07a473add4bf_l3.png" class="ql-img-inline-formula " alt="&#78;" title="Rendered by QuickLaTeX.com" height="14" width="19" style="vertical-align: 0px;"/> under certain assumptions, and requires us to divide by N-1 if these assumptions do not hold.</p>
<h2>Maximum Likelihood estimation</h2>
<p>Although numerous techniques can be used to obtain an estimator of the parameters based on a subset of the population data, the simplest of all is probably the <a href="https://en.wikipedia.org/wiki/Maximum_likelihood" title="Maximum Likelihood parameter estimation" target="_blank">maximum likelihood</a> approach.</p>
<p>The probability of observing <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3259770f914fdba71119b990d1e392b1_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: 0px;"/> was defined by equation (<a href="#id1068849321">6</a>) as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-f5d934e4d19f4e74dff71f3bffcd6d13_l3.png" class="ql-img-inline-formula " alt="&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;" title="Rendered by QuickLaTeX.com" height="25" width="97" style="vertical-align: -6px;"/>. If we fix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/> in this function, while letting <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3259770f914fdba71119b990d1e392b1_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: 0px;"/> vary, we obtain the Gaussian distribution as plotted by figure 1. However, we could also choose a fixed <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3259770f914fdba71119b990d1e392b1_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: 0px;"/> and let <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> and/or <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-85530ce651284e1df6c244bc68a7517b_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;" title="Rendered by QuickLaTeX.com" height="9" width="12" style="vertical-align: 0px;"/> vary. For example, we can choose <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-4d5c8f390529667b71cd7c46cdd6c277_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#61;&#40;&#49;&#48;&#44;&#32;&#49;&#50;&#44;&#32;&#55;&#44;&#32;&#53;&#44;&#32;&#49;&#49;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="178" style="vertical-align: -6px;"/> like in our previous example. We also choose a fixed <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e4c470125e4a0216335bcfd31e9d8598_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="19" width="62" style="vertical-align: -4px;"/>, and we let <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/> vary. Figure 2 shows the plot of each different value of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/> for the distribution with the proposed fixed <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3259770f914fdba71119b990d1e392b1_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: 0px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/>:</p>
<div id="attachment_228" style="width: 531px" class="wp-caption aligncenter"><a href="http://www.visiondummy.com/wp-content/uploads/2014/03/likelihood.png" target="_blank"><img class="size-full wp-image-228 " style="border: 0px; margin-top: 0px; margin-bottom: 0px;" title="Maximum likelihood parameter estimation" alt="Maximum likelihood parameter estimation" src="http://www.visiondummy.com/wp-content/uploads/2014/03/likelihood.png" width="521" height="353" /></a><p class="wp-caption-text"><b>Figure 2.</b> This plot shows the likelihood of observing fixed data <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3259770f914fdba71119b990d1e392b1_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: 0px;"/> if the data is normally distributed with a chosen, fixed <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e4c470125e4a0216335bcfd31e9d8598_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="19" width="62" style="vertical-align: -4px;"/>, plotted against various values of a varying <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/>.</p></div>
<p>In the above figure, we calculated the likelihood <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-39a57241f312b4d4adabcb4dc16ab89c_l3.png" class="ql-img-inline-formula " alt="&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;" title="Rendered by QuickLaTeX.com" height="25" width="75" style="vertical-align: -6px;"/> by varying <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/> for a fixed <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e4c470125e4a0216335bcfd31e9d8598_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="19" width="62" style="vertical-align: -4px;"/>. Each point in the resulting curve represents the likelihood that observation <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3259770f914fdba71119b990d1e392b1_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="14" style="vertical-align: 0px;"/> is a sample from a Gaussian distribution with parameter <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/>. The parameter value that corresponds to the highest likelihood is then most likely the parameter that defines the distribution our data originated from. Therefore, we can determine the optimal <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/> by finding the maximum in this likelihood curve. In this example, the maximum is at <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-725c8c5efec0f736e6fa0bae31824e68_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#55;&#46;&#56;" title="Rendered by QuickLaTeX.com" height="19" width="77" style="vertical-align: 0px;"/>, such that the standard deviation is <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-70a131e580457c1bdd39e2ab70ce7458_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#113;&#114;&#116;&#123;&#40;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#125;&#32;&#61;&#32;&#50;&#46;&#56;" title="Rendered by QuickLaTeX.com" height="26" width="112" style="vertical-align: -7px;"/>. Indeed if we would calculate the variance in the traditional way, with a given <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e4c470125e4a0216335bcfd31e9d8598_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;&#61;&#49;&#48;" title="Rendered by QuickLaTeX.com" height="19" width="62" style="vertical-align: -4px;"/>, we would find that it is equal to 7.8:</p>
<p class="ql-center-displayed-equation" style="line-height: 80px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-fb4310439ded385ec585952507bea854_l3.png" height="80" width="649" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#102;&#114;&#97;&#99;&#123;&#40;&#49;&#48;&#45;&#49;&#48;&#41;&#94;&#50;&#43;&#40;&#49;&#50;&#45;&#49;&#48;&#41;&#94;&#50;&#43;&#40;&#55;&#45;&#49;&#48;&#41;&#94;&#50;&#43;&#40;&#53;&#45;&#49;&#48;&#41;&#94;&#50;&#43;&#40;&#49;&#49;&#45;&#49;&#48;&#41;&#94;&#50;&#125;&#123;&#53;&#125;&#32;&#61;&#32;&#55;&#46;&#56;&#36;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Therefore, the formula to compute the variance based on the sample data is simply derived by finding the peak of the maximum likelihood function. Furthermore, instead of fixing <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/>, we let both <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/> vary at the same time. Finding both estimators then corresponds to finding the maximum in a two-dimensional likelihood function. </p>
<p>To find the maximum of a function, we simply set its derivative to zero. If we want to find the maximum of a function with two variables, we calculate the partial derivative towards each of these variables and set both to zero. In the following, let <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-575a50c6f57029bea2006e25a69252f6_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;&#95;&#123;&#77;&#76;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="41" style="vertical-align: -4px;"/> be the optimal estimator for the population mean as obtained using the maximum likelihood method, and let <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-eb6463768d479743a8d3430d9be8466b_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#94;&#50;&#95;&#123;&#77;&#76;&#125;" title="Rendered by QuickLaTeX.com" height="25" width="40" style="vertical-align: -6px;"/> be the optimal estimator for the variance. To maximize the likelihood function we simply calculate its (partial) derivatives and set them to zero as follows:</p>
<p class="ql-center-displayed-equation" style="line-height: 96px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a0a3d0627d97ef7f1cf8564a07bd5687_l3.png" height="96" width="243" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#38;&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;&#95;&#123;&#77;&#76;&#125;&#32;&#61;&#32;&#92;&#97;&#114;&#103;&#92;&#109;&#97;&#120;&#95;&#92;&#109;&#117;&#32;&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#92;&#92; &#38;&#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#109;&#117;&#125;&#32;&#61;&#32;&#48; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>and</p>
<p class="ql-center-displayed-equation" style="line-height: 92px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-fe4239309f85fd70e651745698862cce_l3.png" height="92" width="243" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#38;&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#94;&#50;&#95;&#123;&#77;&#76;&#125;&#32;&#61;&#32;&#92;&#97;&#114;&#103;&#92;&#109;&#97;&#120;&#95;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#32;&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#92;&#92; &#38;&#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#109;&#117;&#44;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#32;&#61;&#32;&#48; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>In the following paragraphs we will use this technique to obtain the MVU estimators of both <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c512e7f37dd7722dae70ad8ce0b65b1a_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="13" style="vertical-align: -4px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-45a34e3f79eaef56839787842616c14f_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="12" style="vertical-align: 0px;"/>. We consider two cases: </p>
<p>The first case assumes that the true mean of the distribution <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c512e7f37dd7722dae70ad8ce0b65b1a_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="13" style="vertical-align: -4px;"/> is known. Therefore, we only need to estimate the variance and the problem then corresponds to finding the maximum in a one-dimensional likelihood function, parameterized by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/>. Although this situation does not occur often in practice, it definitely has practical applications. For instance, if we know that a signal (e.g. the color value of a pixel in an image) should have a specific value, but the signal has been polluted by white noise (Gaussian noise with zero mean), then the mean of the distribution is known and we only need to estimate the variance.</p>
<p>The second case deals with the situation where both the true mean and the true variance are unknown. This is the case you would encounter most and where you would obtain an estimate of the mean and the variance based on your sample data.</p>
<p>In the next paragraphs we will show that each case results in a different MVU estimator. More specific, the first case requires the variance estimator to be normalized by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9c99ad944abf4b8313cf07a473add4bf_l3.png" class="ql-img-inline-formula " alt="&#78;" title="Rendered by QuickLaTeX.com" height="14" width="19" style="vertical-align: 0px;"/> to be MVU, whereas the second case requires division by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-925c7ae0f336743293a05a9648ad49fc_l3.png" class="ql-img-inline-formula " alt="&#78;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="54" style="vertical-align: -1px;"/> to be MVU.</p>
<h2>Estimating the variance if the mean is known</h2>
<p></p>
<h3>Parameter estimation</h3>
<p>If the true mean of the distribution is known, then the likelihood function is only parameterized on <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6b04db92b43df79158c3b4da55bd6b8_l3.png" class="ql-img-inline-formula " alt="&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="21" style="vertical-align: 0px;"/>. Obtaining the maximum likelihood estimator then corresponds to solving:</p>
<p class="ql-center-displayed-equation" style="line-height: 35px;"><span class="ql-right-eqno"> (8) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-78b3e9d80a838323cd91bd22166b3ab6_l3.png" height="35" width="221" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#38;&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#94;&#50;&#95;&#123;&#77;&#76;&#125;&#32;&#61;&#32;&#92;&#97;&#114;&#103;&#92;&#109;&#97;&#120;&#95;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#32;&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>However, calculating the derivative of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b4908c0f2e737f9d0987be626cb7f67f_l3.png" class="ql-img-inline-formula " alt="&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;" title="Rendered by QuickLaTeX.com" height="25" width="75" style="vertical-align: -6px;"/>, defined by equation (<a href="#id1068849321">6</a>) is rather involved due to the exponent in the function. In fact, it is much easier to maximize the log-likelihood function instead of the likelihood function itself. Since the logarithm is a monotonous function, the maximum will be the same. Therefore, we solve the following problem instead:</p>
<p class="ql-center-displayed-equation" style="line-height: 35px;"><span class="ql-right-eqno"> (9) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e898d4c88f94f227f301e99598e5d986_l3.png" height="35" width="269" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#38;&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#94;&#50;&#95;&#123;&#77;&#76;&#125;&#32;&#61;&#32;&#92;&#97;&#114;&#103;&#92;&#109;&#97;&#120;&#95;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#92;&#108;&#111;&#103;&#40;&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>In the following we set <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-cfbf6bbef9c845f09e0ce729cdcdeb18_l3.png" class="ql-img-inline-formula " alt="&#115;&#61;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="58" style="vertical-align: 0px;"/> to obtain a simpler notation. To find the maximum of the log-likelihood function, we simply calculate the derivative of the logarithm of equation (<a href="#id1068849321">6</a>) and set it to zero:</p>
<p class="ql-center-displayed-equation" style="line-height: 611px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6cf0750b6e14f2ef6731cc917a7f276b_l3.png" height="611" width="672" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#38;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#108;&#111;&#103;&#40;&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#41;&#41;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#108;&#111;&#103;&#40;&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#115;&#41;&#41;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#115;&#125;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#115;&#125;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#40;&#50;&#32;&#92;&#112;&#105;&#32;&#115;&#41;&#94;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#125;&#125;&#125;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#115;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#115;&#125;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#40;&#50;&#32;&#92;&#112;&#105;&#41;&#94;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#125;&#125;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#43;&#32;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#115;&#125;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#40;&#115;&#125;&#41;&#94;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#125;&#125;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#115;&#125;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#115;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#115;&#125;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#40;&#115;&#41;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#125;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#115;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#115;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#115;&#125;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#115;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#115;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#115;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#115;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#115;&#94;&#50;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#115;&#94;&#50;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#32;&#40;&#45;&#115;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#115;&#94;&#50;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#32;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#45;&#32;&#115;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>It is clear that if <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-747f3ccef9adc6ce37a6b5d5c73649a0_l3.png" class="ql-img-inline-formula " alt="&#78;&#32;&#62;&#32;&#48;" title="Rendered by QuickLaTeX.com" height="15" width="57" style="vertical-align: 0px;"/>, then the only possible solution to the above is:<br />
<a name="id2920392421"></a>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (10) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a77825eff4d2c1f67deb1819b63a3a3d_l3.png" height="64" width="232" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#115;&#32;&#61;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Note that this maximum likelihood estimator for <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-45a34e3f79eaef56839787842616c14f_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="12" style="vertical-align: 0px;"/> is indeed the traditional formula to calculate the variance of normal data. The normalization factor is <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9cdb7c0cf3359e82c3e2195879f2968f_l3.png" class="ql-img-inline-formula " alt="&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;" title="Rendered by QuickLaTeX.com" height="26" width="15" style="vertical-align: -7px;"/>.</p>
<p>However, the maximum likelihood method does not guarantee to deliver an unbiased estimator. On the other hand, if the obtained estimator is unbiased, then the maximum likelihood method does guarantee that the estimator is also minimum variance and thus MVU. Therefore, we need to check if the estimator in equation (<a href="#id2920392421">10</a>) is unbiassed.</p>
<h3>Performance evaluation</h3>
<p>To check if the estimator defined by equation (<a href="#id2920392421">10</a>) is unbiassed, we need to check if the condition of equation (<a href="#id2404251598">7</a>) holds, and thus if</p>
<p class="ql-center-displayed-equation" style="line-height: 22px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3547d7388448bd150487e33b1eebbb0f_l3.png" height="22" width="81" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#69;&#091;&#115;&#093;&#32;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#115;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>To do this, we plug equation (<a href="#id2920392421">10</a>) into <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-49fa7edb2e51079b7417a5df1bbc970b_l3.png" class="ql-img-inline-formula " alt="&#69;&#091;&#115;&#093;" title="Rendered by QuickLaTeX.com" height="22" width="37" style="vertical-align: -6px;"/> and write:</p>
<p class="ql-center-displayed-equation" style="line-height: 215px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-8d2b98eefa222881e6ec5bef1a6e3c1d_l3.png" height="215" width="721" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#69;&#091;&#115;&#093;&#32;&#38;&#61;&#32;&#69;&#32;&#92;&#108;&#101;&#102;&#116;&#091;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#093;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#69;&#32;&#92;&#108;&#101;&#102;&#116;&#091;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#093;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#69;&#32;&#92;&#108;&#101;&#102;&#116;&#091;&#120;&#95;&#105;&#94;&#50;&#32;&#45;&#32;&#50;&#120;&#95;&#105;&#32;&#92;&#109;&#117;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#093;&#92;&#92; &#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#78;&#32;&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#32;&#45;&#50;&#78;&#32;&#92;&#109;&#117;&#32;&#69;&#091;&#120;&#95;&#105;&#093;&#32;&#43;&#32;&#78;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#92; &#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#78;&#32;&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#32;&#45;&#50;&#78;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#43;&#32;&#78;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#92; &#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#78;&#32;&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#32;&#45;&#78;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Furthermore, an <a href="https://en.wikipedia.org/wiki/Variance#Definition" title="Properties of sample variance" target="_blank">important property of variance</a> is that the true variance <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c61bd503e2bb58e96a8df31c019ea7ed_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#115;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="9" style="vertical-align: 0px;"/> can be written as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-dbae4a612899d98fdb2355700d1b1f61_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#115;&#125;&#32;&#61;&#32;&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#32;&#45;&#32;&#69;&#091;&#120;&#95;&#105;&#093;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="25" width="167" style="vertical-align: -6px;"/> such that <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-f94e61718bf0e12e23886e6681706987_l3.png" class="ql-img-inline-formula " alt="&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#32;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#115;&#125;&#32;&#43;&#32;&#69;&#091;&#120;&#95;&#105;&#093;&#94;&#50;&#32;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#115;&#125;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="25" width="254" style="vertical-align: -6px;"/>. Using this property in the above equation yields:</p>
<p class="ql-center-displayed-equation" style="line-height: 170px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e2fb81365c1bace2e3d216b7ee597c72_l3.png" height="170" width="273" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#69;&#091;&#115;&#093;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#78;&#32;&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#32;&#45;&#78;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#92; &#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#78;&#32;&#92;&#104;&#97;&#116;&#123;&#115;&#125;&#32;&#43;&#32;&#78;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#78;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#92;&#92; &#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#78;&#32;&#92;&#104;&#97;&#116;&#123;&#115;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#92;&#92; &#38;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#115;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Since <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-32b0df96556d73f37dc5d54ace10d443_l3.png" class="ql-img-inline-formula " alt="&#69;&#091;&#115;&#093;&#61;&#92;&#104;&#97;&#116;&#123;&#115;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="76" style="vertical-align: -6px;"/>, the condition shown by equation (<a href="#id2404251598">7</a>) holds, and therefore the obtained estimator for the variance <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c61bd503e2bb58e96a8df31c019ea7ed_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#115;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="9" style="vertical-align: 0px;"/> of the data is unbiassed. Furthermore, because the maximum likelihood method guarantees that an unbiased estimator is also minimum variance (MVU), this means that no other estimator exists that can do better than the one obtained here.<br />
Therefore, we have to divide by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9c99ad944abf4b8313cf07a473add4bf_l3.png" class="ql-img-inline-formula " alt="&#78;" title="Rendered by QuickLaTeX.com" height="14" width="19" style="vertical-align: 0px;"/> instead of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-925c7ae0f336743293a05a9648ad49fc_l3.png" class="ql-img-inline-formula " alt="&#78;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="54" style="vertical-align: -1px;"/> while calculating the variance of normally distributed data, if the true mean of the underlying distribution is known.</p>
<h2>Estimating the variance if the mean is unknown</h2>
<p></p>
<h3>Parameter estimation</h3>
<p>In the previous section, the true mean of the distribution was known, such that we only had to find an estimator for the variance of the data. However, if the true mean is not known, then an estimator has to be found for the mean too. Furthermore, this mean estimate is used by the variance estimator. As a result, we will show that the earlier obtained estimator for the variance is no longer unbiassed. Furthermore, we will show that we can &#8216;unbias&#8217; the estimator in this case by dividing by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-925c7ae0f336743293a05a9648ad49fc_l3.png" class="ql-img-inline-formula " alt="&#78;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="54" style="vertical-align: -1px;"/> instead of by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9c99ad944abf4b8313cf07a473add4bf_l3.png" class="ql-img-inline-formula " alt="&#78;" title="Rendered by QuickLaTeX.com" height="14" width="19" style="vertical-align: 0px;"/>, which slightly increases the variance of the estimator.</p>
<p>As before, we use the maximum likelihood method to obtain the estimators based on the log-likelihood function. We first find the ML estimator for <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c512e7f37dd7722dae70ad8ce0b65b1a_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="13" style="vertical-align: -4px;"/>:</p>
<p class="ql-center-displayed-equation" style="line-height: 561px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-737f44b072ebb31f8b668d05126fcc85_l3.png" height="561" width="488" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#38;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#108;&#111;&#103;&#40;&#80;&#40;&#92;&#118;&#101;&#99;&#123;&#120;&#125;&#59;&#32;&#115;&#44;&#32;&#92;&#109;&#117;&#41;&#41;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#109;&#117;&#125;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#109;&#117;&#125;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#40;&#50;&#32;&#92;&#112;&#105;&#32;&#115;&#41;&#94;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#125;&#125;&#125;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#115;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#109;&#117;&#125;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#40;&#50;&#32;&#92;&#112;&#105;&#41;&#94;&#123;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#50;&#125;&#125;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#109;&#117;&#125;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#115;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#109;&#117;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#115;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#115;&#125;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#125;&#123;&#92;&#112;&#97;&#114;&#116;&#105;&#97;&#108;&#32;&#92;&#109;&#117;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#115;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#45;&#50;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#115;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#38;&#92;&#76;&#101;&#102;&#116;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#115;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#41;&#32;&#45;&#32;&#92;&#109;&#117;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#48;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>If <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-e7342596c7df33f919df021025164271_l3.png" class="ql-img-inline-formula " alt="&#78;&#62;&#48;" title="Rendered by QuickLaTeX.com" height="15" width="57" style="vertical-align: 0px;"/>, then it is clear that the above equation only has a solution if:</p>
<p class="ql-center-displayed-equation" style="line-height: 64px;"><span class="ql-right-eqno"> (11) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-106f4ec1669abe6480270dfc69d9e22e_l3.png" height="64" width="139" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#117;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Note that indeed this is the well known formula to calculate the mean of a distribution. Although we all knew this formula, we now proved that it is the maximum likelihood estimator for the true and unknown mean <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c512e7f37dd7722dae70ad8ce0b65b1a_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="13" style="vertical-align: -4px;"/> of a normal distribution. For now, we will just assume that the estimator that we found earlier for the variance <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c61bd503e2bb58e96a8df31c019ea7ed_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#115;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="9" style="vertical-align: 0px;"/>, defined by equation (<a href="#id2920392421">10</a>), is still the MVU variance estimator. In the next section however, we will show that this estimator is no longer unbiased now.</p>
<h3>Performance evaluation</h3>
<p>To check if the estimator <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> for the true mean <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c512e7f37dd7722dae70ad8ce0b65b1a_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="13" style="vertical-align: -4px;"/> is unbiassed, we have to make sure that the condition of equation (<a href="#id2404251598">7</a>) holds:</p>
<p class="ql-center-displayed-equation" style="line-height: 65px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-76f691aa17482e81c9d29ac5161d991c_l3.png" height="65" width="591" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#69;&#091;&#92;&#109;&#117;&#093;&#32;&#61;&#32;&#69;&#32;&#92;&#108;&#101;&#102;&#116;&#091;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#41;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#093;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#69;&#091;&#120;&#95;&#105;&#093;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#78;&#32;&#69;&#091;&#120;&#95;&#105;&#093;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#78;&#32;&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;&#32;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;&#46;&#32; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Since <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-70917373d2fdaadc6f2c4c2a0ab9e575_l3.png" class="ql-img-inline-formula " alt="&#69;&#091;&#92;&#109;&#117;&#093;&#32;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="82" style="vertical-align: -6px;"/>, this means that the obtained estimator for the mean of the distribution is unbiassed. Since the maximum likelihood method guarantees to deliver the minimum variance estimator if the estimator is unbiassed, we proved that <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> is the MVU estimator of the mean.</p>
<p>To check if the earlier found estimator <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6ac8b2d308970b24dda8f9063f56d28_l3.png" class="ql-img-inline-formula " alt="&#115;" title="Rendered by QuickLaTeX.com" height="9" width="8" style="vertical-align: 0px;"/> for the variance <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c61bd503e2bb58e96a8df31c019ea7ed_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#115;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="9" style="vertical-align: 0px;"/> is still unbiassed if it is based on the empirical mean <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> instead of the true mean <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c512e7f37dd7722dae70ad8ce0b65b1a_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#92;&#109;&#117;&#125;" title="Rendered by QuickLaTeX.com" height="20" width="13" style="vertical-align: -4px;"/>, we simply plug the obtained estimator <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b651e573373603e1a528b436ca082146_l3.png" class="ql-img-inline-formula " alt="&#92;&#109;&#117;" title="Rendered by QuickLaTeX.com" height="13" width="13" style="vertical-align: -4px;"/> into the earlier derived estimator <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6ac8b2d308970b24dda8f9063f56d28_l3.png" class="ql-img-inline-formula " alt="&#115;" title="Rendered by QuickLaTeX.com" height="9" width="8" style="vertical-align: 0px;"/> of equation (<a href="#id2920392421">10</a>):</p>
<p class="ql-center-displayed-equation" style="line-height: 451px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-8804df142d23349705e2b2bae64d5378_l3.png" height="451" width="450" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#115;&#32;&#38;&#61;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#92;&#92; &#38;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#41;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#92;&#92; &#38;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#92;&#108;&#101;&#102;&#116;&#091;&#120;&#95;&#105;&#94;&#50;&#32;&#45;&#32;&#50;&#32;&#120;&#95;&#105;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#41;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#40;&#120;&#95;&#105;&#41;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#093;&#92;&#92; &#38;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#94;&#50;&#125;&#123;&#78;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#125;&#123;&#78;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#92;&#92; &#38;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#94;&#50;&#125;&#123;&#78;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#43;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#125;&#123;&#78;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#92;&#92; &#38;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#94;&#50;&#125;&#123;&#78;&#125;&#32;&#45;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#125;&#123;&#78;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>To check if the estimator is still unbiased, we now need to check again if the condition of equation (<a href="#id2404251598">7</a>) holds:</p>
<p class="ql-center-displayed-equation" style="line-height: 132px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-7acd92c866aa7af2c56a2477e32f0797_l3.png" height="132" width="332" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#69;&#091;&#115;&#093;&#32;&#38;&#61;&#32;&#69;&#32;&#92;&#108;&#101;&#102;&#116;&#091;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#94;&#50;&#125;&#123;&#78;&#125;&#32;&#45;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#125;&#123;&#78;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#32;&#093;&#32;&#92;&#92; &#38;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#125;&#123;&#78;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#69;&#091;&#40;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#41;&#94;&#50;&#093;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>As mentioned in the previous section, an important property of variance is that the true variance <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c61bd503e2bb58e96a8df31c019ea7ed_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#115;&#125;" title="Rendered by QuickLaTeX.com" height="16" width="9" style="vertical-align: 0px;"/> can be written as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-dbae4a612899d98fdb2355700d1b1f61_l3.png" class="ql-img-inline-formula " alt="&#92;&#104;&#97;&#116;&#123;&#115;&#125;&#32;&#61;&#32;&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#32;&#45;&#32;&#69;&#091;&#120;&#95;&#105;&#093;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="25" width="167" style="vertical-align: -6px;"/> such that <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-f94e61718bf0e12e23886e6681706987_l3.png" class="ql-img-inline-formula " alt="&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#32;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#115;&#125;&#32;&#43;&#32;&#69;&#091;&#120;&#95;&#105;&#093;&#94;&#50;&#32;&#61;&#32;&#92;&#104;&#97;&#116;&#123;&#115;&#125;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;" title="Rendered by QuickLaTeX.com" height="25" width="254" style="vertical-align: -6px;"/>. Using this property in the above equation yields:</p>
<p class="ql-center-displayed-equation" style="line-height: 664px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-322edfb0546fa23a9df81283b7593cfe_l3.png" height="664" width="461" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#69;&#091;&#115;&#093;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#69;&#091;&#120;&#95;&#105;&#94;&#50;&#093;&#125;&#123;&#78;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#69;&#091;&#40;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#41;&#94;&#50;&#093;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#69;&#091;&#40;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#41;&#94;&#50;&#093;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#69;&#091;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#94;&#50;&#32;&#43;&#32;&#92;&#115;&#117;&#109;&#95;&#105;&#94;&#78;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#106;&#92;&#110;&#101;&#113;&#32;&#105;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#32;&#120;&#95;&#106;&#093;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#69;&#091;&#78;&#40;&#115;&#43;&#92;&#109;&#117;&#94;&#50;&#41;&#32;&#43;&#32;&#92;&#115;&#117;&#109;&#95;&#105;&#94;&#78;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#106;&#92;&#110;&#101;&#113;&#32;&#105;&#125;&#94;&#78;&#32;&#120;&#95;&#105;&#32;&#120;&#95;&#106;&#093;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#40;&#115;&#43;&#92;&#109;&#117;&#94;&#50;&#41;&#32;&#43;&#32;&#92;&#115;&#117;&#109;&#95;&#105;&#94;&#78;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#106;&#92;&#110;&#101;&#113;&#32;&#105;&#125;&#94;&#78;&#32;&#69;&#091;&#120;&#95;&#105;&#093;&#32;&#69;&#091;&#120;&#95;&#106;&#093;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#40;&#115;&#43;&#92;&#109;&#117;&#94;&#50;&#41;&#32;&#43;&#32;&#78;&#40;&#78;&#45;&#49;&#41;&#92;&#109;&#117;&#94;&#50;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#40;&#115;&#43;&#92;&#109;&#117;&#94;&#50;&#41;&#32;&#43;&#32;&#78;&#94;&#50;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#78;&#92;&#109;&#117;&#94;&#50;&#125;&#123;&#78;&#94;&#50;&#125;&#32;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#43;&#92;&#109;&#117;&#94;&#50;&#32;&#43;&#32;&#78;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#92;&#109;&#117;&#94;&#50;&#125;&#123;&#78;&#125;&#32;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#43;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#125;&#123;&#78;&#125;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#117;&#94;&#50;&#125;&#123;&#78;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#94;&#50;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#117;&#94;&#50;&#125;&#123;&#78;&#125;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#125;&#123;&#78;&#125;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#49;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#92;&#92; &#38;&#61;&#32;&#115;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#45;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Since clearly <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-cc6be2d8817706c0fef2174da8991cef_l3.png" class="ql-img-inline-formula " alt="&#69;&#091;&#115;&#093;&#32;&#92;&#110;&#101;&#113;&#32;&#92;&#104;&#97;&#116;&#123;&#115;&#125;" title="Rendered by QuickLaTeX.com" height="22" width="76" style="vertical-align: -6px;"/>, this shows that estimator for the variance of the distribution is no longer unbiassed. In fact, this estimator on average underestimates the true variance with a factor <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-b87bd07dbff56e48e05c0d2a484ecf6c_l3.png" class="ql-img-inline-formula " alt="&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#45;&#49;&#125;&#123;&#78;&#125;" title="Rendered by QuickLaTeX.com" height="26" width="36" style="vertical-align: -7px;"/>. As the number of samples approaches infinity (<img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-2015147e44f4276a70f82734d593d68b_l3.png" class="ql-img-inline-formula " alt="&#78;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#105;&#110;&#102;&#116;&#121;" title="Rendered by QuickLaTeX.com" height="15" width="72" style="vertical-align: -1px;"/>), this bias converges to zero. For small sample sets however, the bias is signification and should be eliminated.</p>
<h3>Fixing the bias</h3>
<p>Since the bias is merely a factor, we can eliminate it by scaling the biased estimator <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d6ac8b2d308970b24dda8f9063f56d28_l3.png" class="ql-img-inline-formula " alt="&#115;" title="Rendered by QuickLaTeX.com" height="9" width="8" style="vertical-align: 0px;"/> defined by equation (<a href="#id2920392421">10</a>) by the inverse of the bias. We therefore define a new, unbiased estimate <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-cde2d30e919a8c5cc22c204302b5b072_l3.png" class="ql-img-inline-formula " alt="&#115;&#92;&#112;&#114;&#105;&#109;&#101;" title="Rendered by QuickLaTeX.com" height="12" width="15" style="vertical-align: 0px;"/> as follows:</p>
<p class="ql-center-displayed-equation" style="line-height: 276px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-8dc4c450d916fcf9e4aacaf9feab5596_l3.png" height="276" width="298" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#115;&#92;&#112;&#114;&#105;&#109;&#101;&#32;&#38;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#32;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#45;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#32;&#41;&#94;&#123;&#45;&#49;&#125;&#32;&#115;&#92;&#92; &#115;&#92;&#112;&#114;&#105;&#109;&#101;&#32;&#38;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#32;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#45;&#49;&#125;&#123;&#78;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#32;&#41;&#94;&#123;&#45;&#49;&#125;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#92;&#92; &#115;&#92;&#112;&#114;&#105;&#109;&#101;&#32;&#38;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#32;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#78;&#125;&#123;&#78;&#45;&#49;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#32;&#41;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#92;&#92; &#115;&#92;&#112;&#114;&#105;&#109;&#101;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#45;&#49;&#125;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#78;&#40;&#120;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#117;&#41;&#94;&#50;&#92;&#92; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>This estimator is now unbiassed and indeed resembles the traditional formula to calculate the variance, where we divide by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-925c7ae0f336743293a05a9648ad49fc_l3.png" class="ql-img-inline-formula " alt="&#78;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="54" style="vertical-align: -1px;"/> instead of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9c99ad944abf4b8313cf07a473add4bf_l3.png" class="ql-img-inline-formula " alt="&#78;" title="Rendered by QuickLaTeX.com" height="14" width="19" style="vertical-align: 0px;"/>. However, note that the resulting estimator is no longer the minimum variance estimator, but it is the estimator with the minimum variance amongst all unbiased estimators. If we divide by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9c99ad944abf4b8313cf07a473add4bf_l3.png" class="ql-img-inline-formula " alt="&#78;" title="Rendered by QuickLaTeX.com" height="14" width="19" style="vertical-align: 0px;"/>, then the estimator is biassed, and if we divide by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-925c7ae0f336743293a05a9648ad49fc_l3.png" class="ql-img-inline-formula " alt="&#78;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="54" style="vertical-align: -1px;"/>, the estimator is not the minimum variance estimator. However, in general having a biased estimator is much worse than having a slightly higher variance estimator. Therefore, if the mean of the population is unknown, division by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-925c7ae0f336743293a05a9648ad49fc_l3.png" class="ql-img-inline-formula " alt="&#78;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="16" width="54" style="vertical-align: -1px;"/> should be used instead of division by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9c99ad944abf4b8313cf07a473add4bf_l3.png" class="ql-img-inline-formula " alt="&#78;" title="Rendered by QuickLaTeX.com" height="14" width="19" style="vertical-align: 0px;"/>.</p>
<h2>Conclusion</h2>
<p>In this article, we showed where the usual formulas for calculating the mean and the variance of normally distributed data come from. Furthermore, we have proven that the normalization factor in the variance estimator formula should be <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9cdb7c0cf3359e82c3e2195879f2968f_l3.png" class="ql-img-inline-formula " alt="&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#125;" title="Rendered by QuickLaTeX.com" height="26" width="15" style="vertical-align: -7px;"/> if the true mean of the population is known, and should be <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-241aefc6c8df226dd84fb30cf7a96586_l3.png" class="ql-img-inline-formula " alt="&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#78;&#45;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="27" width="36" style="vertical-align: -8px;"/> if the mean itself also has to be estimated.</p>
<p><strong>If you&#8217;re new to this blog, don&#8217;t forget to subscribe, or <a href="https://twitter.com/vincent_spruyt" title="Follow me on Twitter!" target="_blank">follow me on twitter</a>!</strong><br />


<!-- Form created by Optin Forms plugin by Codeleon: create beautiful optin forms with ease! -->
<!-- http://codeleon.com/products/optin-forms/ -->
<div id="optinforms-form5-container" ><form method="post" target="_blank" action="http://visiondummy.us10.list-manage.com/subscribe/post?u=c435905e10ead915f3917d694&id=bbdfb33a9f"><div id="optinforms-form5" style="background:#ffffff;"><div id="optinforms-form5-container-left"><div id="optinforms-form5-title" style="font-family:News Cycle; font-size:24px; line-height:24px; color:#fd4326">JOIN MY NEWSLETTER</div><!--optinforms-form5-title--><input type="text" id="optinforms-form5-name-field" name="FNAME" placeholder="Enter Your Name" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="text" id="optinforms-form5-email-field" name="EMAIL" placeholder="Enter Your Email" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="submit" name="submit" id="optinforms-form5-button" value="SUBSCRIBE" style="font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#fd4326" /></div><!--optinforms-form5-container-left--><div id="optinforms-form5-container-right"><div id="optinforms-form5-subtitle" style="font-family:Georgia; font-size:16px; color:#444444">Receive my newsletter to get notified when new articles and code snippets become available on my blog!</div><!--optinforms-form5-subtitle--><div id="optinforms-form5-disclaimer" style="font-family:Georgia, Times New Roman, Times, serif; font-size:14px; color:#727272">We all hate spam. Your email address will not be sold or shared with anyone else.</div><!--optinforms-form5-disclaimer--></div><!--optinforms-form5-container-right--><div class="clear"></div></div><!--optinforms-form5--><div class="clear"></div></form></div><!--optinforms-form5-container--><div class="clear"></div>
<!-- / Optin Forms -->

<style type='text/css'></style></p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/03/divide-variance-n-1/">Why divide the sample variance by N-1?</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.visiondummy.com/2014/03/divide-variance-n-1/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>What are eigenvectors and eigenvalues?</title>
		<link>https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/</link>
		<comments>https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/#comments</comments>
		<pubDate>Wed, 05 Mar 2014 14:44:53 +0000</pubDate>
		<dc:creator><![CDATA[Vincent Spruyt]]></dc:creator>
				<category><![CDATA[Linear algebra]]></category>
		<category><![CDATA[Eigenfaces]]></category>
		<category><![CDATA[Eigenvalues]]></category>
		<category><![CDATA[Eigenvectors]]></category>
		<category><![CDATA[PCA]]></category>

		<guid isPermaLink="false">http://www.visiondummy.com/?p=111</guid>
		<description><![CDATA[<p>Eigenvectors and eigenvalues have many important applications in computer vision and machine learning in general. Well known examples are PCA (Principal Component Analysis) for dimensionality reduction or EigenFaces for face recognition. An interesting use of eigenvectors and eigenvalues is also illustrated in my post about error ellipses. Furthermore, eigendecomposition forms the base of the geometric [...]</p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/">What are eigenvectors and eigenvalues?</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Eigenvectors and eigenvalues have many important applications in computer vision and machine learning in general. Well known examples are <a href="http://www.visiondummy.com/2014/05/feature-extraction-using-pca/" title="Feature extraction using PCA" target="_blank">PCA (Principal Component Analysis)</a> for dimensionality reduction or <a href="http://www.visiondummy.com/2014/05/feature-extraction-using-pca/#A_practical_PCA_application_Eigenfaces" title="Eigenfaces" target="_blank">EigenFaces</a> for face recognition. An interesting use of eigenvectors and eigenvalues is also illustrated in my post about <a href="http://www.visiondummy.com/2014/04/draw-error-ellipse-representing-covariance-matrix/" title="How to draw a covariance error ellipse?" target="_blank">error ellipses</a>. Furthermore, eigendecomposition forms the base of the geometric interpretation of covariance matrices, discussed in an <a href="http://www.visiondummy.com/2014/04/geometric-interpretation-covariance-matrix/" title="A geometric interpretation of the covariance matrix" target="_blank">more recent post</a>. In this article, I will provide a gentle introduction into this mathematical concept, and will show how to manually obtain the eigendecomposition of a 2D square matrix.</p>
<p>An eigenvector is a vector whose direction remains unchanged when a linear transformation is applied to it. Consider the image below in which three vectors are shown. The green square is only drawn to illustrate the linear transformation that is applied to each of these three vectors.</p>
<div id="attachment_128" style="width: 525px" class="wp-caption aligncenter"><a title="Eigenvectors image" href="http://www.visiondummy.com/wp-content/uploads/2014/03/eigenvectors.png" target="_blank"><img class="size-full wp-image-128   " style="border: 0px; margin-top: 0px; margin-bottom: 0px;" title="eigenvectors" alt="eigenvectors" src="http://www.visiondummy.com/wp-content/uploads/2014/03/eigenvectors.png" width="515" height="217" /></a><p class="wp-caption-text">Eigenvectors (red) do not change direction when a linear transformation (e.g. scaling) is applied to them. Other vectors (yellow) do.</p></div>
<p>The transformation in this case is a simple scaling with factor 2 in the horizontal direction and factor 0.5 in the vertical direction, such that the transformation matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> is defined as:</p>
<p align="center"><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-7c07ea3c8536c266a96b8d3c430fda32_l3.png" class="ql-img-inline-formula " alt="&#65;&#61;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#50;&#32;&#38;&#32;&#48;&#32;&#92;&#92;&#32;&#48;&#32;&#38;&#32;&#48;&#46;&#53;&#32;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;" title="Rendered by QuickLaTeX.com" height="51" width="118" style="vertical-align: -20px;"/>.</p>
<p>A vector <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-0fd80e210150f4e468bd01b12d868319_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#61;&#40;&#120;&#44;&#121;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="87" style="vertical-align: -6px;"/> is then scaled by applying this transformation as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-344d807687f932bcc396d5fafeb311bd_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#92;&#112;&#114;&#105;&#109;&#101;&#32;&#61;&#32;&#65;&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="74" style="vertical-align: 0px;"/>. The above figure shows that the direction of some vectors (shown in red) is not affected by this linear transformation. These vectors are called eigenvectors of the transformation, and uniquely define the square matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/>. This unique, deterministic relation is exactly the reason that those vectors are called &#8216;eigenvectors&#8217; (Eigen means &#8216;specific&#8217; in German).</p>
<p>In general, the eigenvector <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> of a matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> is the vector for which the following holds:<br />
<a name="id3583665669"></a>
<p class="ql-center-displayed-equation" style="line-height: 15px;"><span class="ql-right-eqno"> (1) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-eb4c71b958e218b53b61c59878cbcc8e_l3.png" height="15" width="80" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#65;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#61;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/> is a scalar value called the &#8216;eigenvalue&#8217;. This means that the linear transformation <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> on vector <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> is completely defined by <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/>.</p>
<p>We can rewrite equation (<a href="#id3583665669">1</a>) as follows:<br />
<a name="id1398496403"></a>
<p class="ql-center-displayed-equation" style="line-height: 53px;"><span class="ql-right-eqno"> (2) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-ada6ad586377a11090e2a2216fd97c4c_l3.png" height="53" width="162" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#65;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#61;&#32;&#48;&#32;&#92;&#92;&#32; &#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#92;&#118;&#101;&#99;&#123;&#118;&#125;&#32;&#40;&#65;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#73;&#41;&#32;&#61;&#32;&#48;&#44; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>where <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-957d73b755a44351e97c684d0dd6a81a_l3.png" class="ql-img-inline-formula " alt="&#73;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/> is the identity matrix of the same dimensions as <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/>.</p>
<p>However, assuming that <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-5663d3adf90e26dd70e1f371e6cd6eba_l3.png" class="ql-img-inline-formula " alt="&#92;&#118;&#101;&#99;&#123;&#118;&#125;" title="Rendered by QuickLaTeX.com" height="15" width="13" style="vertical-align: 0px;"/> is not the null-vector, equation (<a href="#id1398496403">2</a>) can only be defined if <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-94d0d60442ecf418b07344bc1ca1d563_l3.png" class="ql-img-inline-formula " alt="&#40;&#65;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#73;&#41;" title="Rendered by QuickLaTeX.com" height="23" width="78" style="vertical-align: -6px;"/> is not invertible. If a square matrix is not invertible, that means that its <a href="https://nl.wikipedia.org/wiki/Determinant" title="Matrix determinant calculation" target="_blank">determinant </a>must equal zero. Therefore, to find the eigenvectors of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/>, we simply have to solve the following equation:<br />
<a name="id1043422129"></a>
<p class="ql-center-displayed-equation" style="line-height: 23px;"><span class="ql-right-eqno"> (3) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d59a2059f63d030aee053e6d6b498960_l3.png" height="23" width="160" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#68;&#101;&#116;&#40;&#65;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#73;&#41;&#32;&#61;&#32;&#48;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>In the following sections we will determine the eigenvectors and eigenvalues of a matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/>, by solving equation (<a href="#id1043422129">3</a>). Matrix <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> in this example, is defined by:<br />
<a name="id3888381481"></a>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (4) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-c29b8a316e5fd2c00ddce343ed09a3a7_l3.png" height="51" width="115" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#65;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#50;&#32;&#38;&#32;&#51;&#32;&#92;&#92;&#32;&#50;&#32;&#38;&#32;&#49;&#32;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<h2>Calculating the eigenvalues</h2>
<p>To determine the eigenvalues for this example, we substitute <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3fae06210cb4529155c990d8d9838d68_l3.png" class="ql-img-inline-formula " alt="&#65;" title="Rendered by QuickLaTeX.com" height="14" width="16" style="vertical-align: 0px;"/> in equation (<a href="#id1043422129">3</a>) by equation (<a href="#id3888381481">4</a>) and obtain:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (5) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a0a1263af5ed765bcd4294cd1fb7bcb0_l3.png" height="51" width="230" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#68;&#101;&#116;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#50;&#45;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#38;&#51;&#92;&#92;&#50;&#38;&#49;&#45;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#92;&#101;&#110;&#100;&#123;&#112;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#61;&#48;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Calculating the determinant gives:</p>
<p class="ql-center-displayed-equation" style="line-height: 86px;"><span class="ql-right-eqno"> (6) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3c17ec7b6bfbb228d31d1f39cb0ec80b_l3.png" height="86" width="239" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#38;&#40;&#50;&#45;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#41;&#40;&#49;&#45;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#41;&#32;&#45;&#32;&#54;&#32;&#61;&#32;&#48;&#92;&#92; &#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#38;&#50;&#32;&#45;&#32;&#50;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#94;&#50;&#32;&#45;&#54;&#32;&#61;&#32;&#48;&#92;&#92; &#92;&#82;&#105;&#103;&#104;&#116;&#97;&#114;&#114;&#111;&#119;&#32;&#38;&#123;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#125;&#94;&#50;&#32;&#45;&#32;&#51;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#45;&#52;&#32;&#61;&#32;&#48;&#46; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>To solve this quadratic equation in <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/>, we find the discriminant:</p>
<p class="ql-center-displayed-equation" style="line-height: 26px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9cfddc6a52bc02141e6aaabf8e7cb89b_l3.png" height="26" width="472" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#68;&#32;&#61;&#32;&#98;&#94;&#50;&#32;&#45;&#52;&#97;&#99;&#32;&#61;&#32;&#40;&#45;&#51;&#41;&#94;&#50;&#32;&#45;&#52;&#42;&#49;&#42;&#40;&#45;&#52;&#41;&#32;&#61;&#32;&#57;&#43;&#49;&#54;&#32;&#61;&#32;&#50;&#53;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Since the discriminant is strictly positive, this means that two different values for <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-50bc2c4701f0a0dd472fdd7dad5c47d9_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;" title="Rendered by QuickLaTeX.com" height="14" width="11" style="vertical-align: 0px;"/> exist:<br />
<a name="id2474539270"></a>
<p class="ql-center-displayed-equation" style="line-height: 104px;"><span class="ql-right-eqno"> (7) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-37219092f3070d9cef6dac1fc00d1cfe_l3.png" height="104" width="280" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;&#32; &#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#95;&#49;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#45;&#98;&#32;&#45;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#68;&#125;&#125;&#123;&#50;&#97;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#45;&#53;&#125;&#123;&#50;&#125;&#32;&#61;&#32;&#45;&#49;&#44;&#92;&#92; &#92;&#108;&#97;&#109;&#98;&#100;&#97;&#32;&#95;&#50;&#32;&#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#45;&#98;&#32;&#43;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#68;&#125;&#125;&#123;&#50;&#97;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#43;&#53;&#125;&#123;&#50;&#125;&#32;&#61;&#32;&#52;&#46; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>We have now determined the two eigenvalues <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d28b7f27106b804ac9311012dd46d840_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="18" width="18" style="vertical-align: -4px;"/> and <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a90de865b721b1827da7f6e7155ccb3f_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#50;" title="Rendered by QuickLaTeX.com" height="17" width="19" style="vertical-align: -3px;"/>. Note that a square matrix of size <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-27211e8b64d0af6bb1c7c805a18af057_l3.png" class="ql-img-inline-formula " alt="&#78;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#78;" title="Rendered by QuickLaTeX.com" height="14" width="64" style="vertical-align: 0px;"/> always has exactly <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-9c99ad944abf4b8313cf07a473add4bf_l3.png" class="ql-img-inline-formula " alt="&#78;" title="Rendered by QuickLaTeX.com" height="14" width="19" style="vertical-align: 0px;"/> eigenvalues, each with a corresponding eigenvector. The eigenvalue specifies the size of the eigenvector.</p>
<h2>Calculating the first eigenvector</h2>
<p>We can now determine the eigenvectors by plugging the eigenvalues from equation (<a href="#id2474539270">7</a>) into equation (<a href="#id3583665669">1</a>) that originally defined the problem. The eigenvectors are then found by solving this system of equations.</p>
<p>We first do this for eigenvalue <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-d28b7f27106b804ac9311012dd46d840_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#49;" title="Rendered by QuickLaTeX.com" height="18" width="18" style="vertical-align: -4px;"/>, in order to find the corresponding first eigenvector:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> &nbsp; </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-51fb701d729dba46cfec30d0118b0ec6_l3.png" height="51" width="231" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#50;&#38;&#51;&#92;&#92;&#50;&#38;&#49;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#120;&#95;&#123;&#49;&#49;&#125;&#92;&#92;&#120;&#95;&#123;&#49;&#50;&#125;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#45;&#49;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#120;&#95;&#123;&#49;&#49;&#125;&#92;&#92;&#120;&#95;&#123;&#49;&#50;&#125;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Since this is simply the matrix notation for a system of equations, we can write it in its equivalent form:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (8) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3eb2108a126b2454d9a129a952d00f6b_l3.png" height="51" width="200" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#92;&#108;&#101;&#102;&#116;&#92;&#123; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#108;&#114;&#125; &#50;&#120;&#95;&#123;&#49;&#49;&#125;&#32;&#43;&#32;&#51;&#120;&#95;&#123;&#49;&#50;&#125;&#32;&#61;&#32;&#45;&#120;&#95;&#123;&#49;&#49;&#125;&#92;&#92; &#50;&#120;&#95;&#123;&#49;&#49;&#125;&#32;&#43;&#32;&#120;&#95;&#123;&#49;&#50;&#125;&#32;&#61;&#32;&#45;&#120;&#95;&#123;&#49;&#50;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125; &#92;&#114;&#105;&#103;&#104;&#116;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>and solve the first equation as a function of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6d4ff917b6f3318e7e751d763f714ea0_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="28" style="vertical-align: -4px;"/>, resulting in:<br />
<a name="id2280642976"></a>
<p class="ql-center-displayed-equation" style="line-height: 13px;"><span class="ql-right-eqno"> (9) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-26c85379d54fa989997f8f646a31a747_l3.png" height="13" width="108" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#120;&#95;&#123;&#49;&#49;&#125;&#32;&#61;&#32;&#45;&#120;&#95;&#123;&#49;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Since an eigenvector simply represents an orientation (the corresponding eigenvalue represents the magnitude), all scalar multiples of the eigenvector are vectors that are parallel to this eigenvector, and are therefore equivalent (If we would normalize the vectors, they would all be equal). Thus, instead of further solving the above system of equations, we can freely chose a real value for either <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6bfc99a3e13267a369fcf851315468ad_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="27" style="vertical-align: -4px;"/> or <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-6d4ff917b6f3318e7e751d763f714ea0_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#50;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="28" style="vertical-align: -4px;"/>, and determine the other one by using equation (<a href="#id2280642976">9</a>).</p>
<p>For this example, we arbitrarily choose <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-eae7bb719d85b520859b4efcdb2423f3_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#50;&#125;&#32;&#61;&#32;&#49;" title="Rendered by QuickLaTeX.com" height="19" width="66" style="vertical-align: -4px;"/>, such that <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-71e71de9bed7d8d8c8b2268d53e98c33_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#49;&#49;&#125;&#61;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="19" width="82" style="vertical-align: -4px;"/>. Therefore, the eigenvector that corresponds to eigenvalue <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-1b6489b3ba211bcae4e11ed33cd40d75_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#49;&#32;&#61;&#32;&#45;&#49;" title="Rendered by QuickLaTeX.com" height="19" width="73" style="vertical-align: -4px;"/> is</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (10) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-750ab155a0cb7a251a9a730f899fa4e6_l3.png" height="51" width="105" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#118;&#101;&#99;&#123;&#118;&#125;&#95;&#49;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#45;&#49;&#32;&#92;&#92;&#32;&#49;&#32;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<h2>Calculating the second eigenvector</h2>
<p>Calculations for the second eigenvector are similar to those needed for the first eigenvector;<br />
We now substitute eigenvalue <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-0eb3579cfe7e895b8986141810327dcf_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#50;&#61;&#52;" title="Rendered by QuickLaTeX.com" height="18" width="58" style="vertical-align: -3px;"/> into equation (<a href="#id3583665669">1</a>), yielding:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (11) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-4405b5dcc9364e191550b259ee786731_l3.png" height="51" width="231" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#50;&#38;&#51;&#92;&#92;&#50;&#38;&#49;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#120;&#95;&#123;&#50;&#49;&#125;&#92;&#92;&#120;&#95;&#123;&#50;&#50;&#125;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#61;&#32;&#52;&#32;&#42;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#120;&#95;&#123;&#50;&#49;&#125;&#92;&#92;&#120;&#95;&#123;&#50;&#50;&#125;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Written as a system of equations, this is equivalent to:</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (12) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-1b3e60a4a1f4deb124f3057544909434_l3.png" height="51" width="195" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#92;&#108;&#101;&#102;&#116;&#92;&#123; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#114;&#114;&#97;&#121;&#125;&#123;&#108;&#114;&#125; &#50;&#120;&#95;&#123;&#50;&#49;&#125;&#32;&#43;&#32;&#51;&#120;&#95;&#123;&#50;&#50;&#125;&#32;&#61;&#32;&#52;&#120;&#95;&#123;&#50;&#49;&#125;&#92;&#92; &#50;&#120;&#95;&#123;&#50;&#49;&#125;&#32;&#43;&#32;&#120;&#95;&#123;&#50;&#50;&#125;&#32;&#61;&#32;&#52;&#120;&#95;&#123;&#50;&#50;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#114;&#114;&#97;&#121;&#125; &#92;&#114;&#105;&#103;&#104;&#116;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>Solving the first equation as a function of <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-413ecbc275b9fdd5f2b4d8ea66360485_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#50;&#49;&#125;" title="Rendered by QuickLaTeX.com" height="13" width="27" style="vertical-align: -4px;"/> resuls in: </p>
<p class="ql-center-displayed-equation" style="line-height: 44px;"><span class="ql-right-eqno"> (13) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-3080c6b78e3d7b7cb8ea390a77d4c950_l3.png" height="44" width="100" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#120;&#95;&#123;&#50;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#125;&#123;&#50;&#125;&#120;&#95;&#123;&#50;&#49;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<p>We then arbitrarily choose <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-f7a14402224c1d1440ed8ef030362f24_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#50;&#49;&#125;&#61;&#50;" title="Rendered by QuickLaTeX.com" height="19" width="67" style="vertical-align: -4px;"/>, and find <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-37b1bac871a4279c4a118181ba22808b_l3.png" class="ql-img-inline-formula " alt="&#120;&#95;&#123;&#50;&#50;&#125;&#61;&#51;" title="Rendered by QuickLaTeX.com" height="18" width="67" style="vertical-align: -3px;"/>. Therefore, the eigenvector that corresponds to eigenvalue <img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-a8e1382a3ac364fffbadd637d326da6a_l3.png" class="ql-img-inline-formula " alt="&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#50;&#32;&#61;&#32;&#52;" title="Rendered by QuickLaTeX.com" height="18" width="58" style="vertical-align: -3px;"/> is</p>
<p class="ql-center-displayed-equation" style="line-height: 51px;"><span class="ql-right-eqno"> (14) </span><span class="ql-left-eqno"> &nbsp; </span><img src="https://www.visiondummy.com/wp-content/ql-cache/quicklatex.com-388e29a06781d5b817855b294db4ae09_l3.png" height="51" width="89" class="ql-img-displayed-equation " alt="&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#118;&#101;&#99;&#123;&#118;&#125;&#95;&#50;&#32;&#61;&#32;&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#32;&#51;&#32;&#92;&#92;&#32;&#50;&#32;&#92;&#101;&#110;&#100;&#123;&#98;&#109;&#97;&#116;&#114;&#105;&#120;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;" title="Rendered by QuickLaTeX.com"/></p>
<h2>Conclusion</h2>
<p>In this article we reviewed the theoretical concepts of eigenvectors and eigenvalues. These concepts are of great importance in many techniques used in computer vision and machine learning, such as dimensionality reduction by means of PCA, or face recognition by means of EigenFaces.</p>
<p><strong>If you&#8217;re new to this blog, don&#8217;t forget to subscribe, or <a href="https://twitter.com/vincent_spruyt" title="Follow me on Twitter!" target="_blank">follow me on twitter</a>!</strong><br />


<!-- Form created by Optin Forms plugin by Codeleon: create beautiful optin forms with ease! -->
<!-- http://codeleon.com/products/optin-forms/ -->
<div id="optinforms-form5-container" ><form method="post" target="_blank" action="http://visiondummy.us10.list-manage.com/subscribe/post?u=c435905e10ead915f3917d694&id=bbdfb33a9f"><div id="optinforms-form5" style="background:#ffffff;"><div id="optinforms-form5-container-left"><div id="optinforms-form5-title" style="font-family:News Cycle; font-size:24px; line-height:24px; color:#fd4326">JOIN MY NEWSLETTER</div><!--optinforms-form5-title--><input type="text" id="optinforms-form5-name-field" name="FNAME" placeholder="Enter Your Name" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="text" id="optinforms-form5-email-field" name="EMAIL" placeholder="Enter Your Email" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000" /><input type="submit" name="submit" id="optinforms-form5-button" value="SUBSCRIBE" style="font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#fd4326" /></div><!--optinforms-form5-container-left--><div id="optinforms-form5-container-right"><div id="optinforms-form5-subtitle" style="font-family:Georgia; font-size:16px; color:#444444">Receive my newsletter to get notified when new articles and code snippets become available on my blog!</div><!--optinforms-form5-subtitle--><div id="optinforms-form5-disclaimer" style="font-family:Georgia, Times New Roman, Times, serif; font-size:14px; color:#727272">We all hate spam. Your email address will not be sold or shared with anyone else.</div><!--optinforms-form5-disclaimer--></div><!--optinforms-form5-container-right--><div class="clear"></div></div><!--optinforms-form5--><div class="clear"></div></form></div><!--optinforms-form5-container--><div class="clear"></div>
<!-- / Optin Forms -->

<style type='text/css'></style></p>
<p>The post <a rel="nofollow" href="https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/">What are eigenvectors and eigenvalues?</a> appeared first on <a rel="nofollow" href="https://www.visiondummy.com">Computer vision for dummies</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk: enhanced
Database Caching using disk
Object Caching 1187/1235 objects using disk

 Served from: www.visiondummy.com @ 2026-04-15 07:42:20 by W3 Total Cache -->