<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts on n4735 n0735</title><link>https://kaminate.github.io/posts/</link><description>Recent content in Posts on n4735 n0735</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 11 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://kaminate.github.io/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>Probability Part II</title><link>https://kaminate.github.io/posts/probability-part-2/</link><pubDate>Sun, 11 Oct 2026 00:00:00 +0000</pubDate><guid>https://kaminate.github.io/posts/probability-part-2/</guid><description>&lt;p&gt;$$
\gdef\dx{\mathrm{d}x}
\gdef\dm{\mathrm{d}m}
\gdef\dr{\mathrm{d}r}
$$&lt;/p&gt;
&lt;p&gt;$\gdef\dx{\mathrm{d}x}$
$\gdef\dm{\mathrm{d}m}$
$\gdef\dr{\mathrm{d}r}$&lt;/p&gt;
&lt;h2 id="intro"&gt;Intro&lt;/h2&gt;
&lt;p&gt;Last time, in &lt;a href="https://kaminate.github.io/posts/probability-part-1/"&gt;Part I&lt;/a&gt;, we covered the basic concepts leading up to &lt;strong&gt;random variables&lt;/strong&gt; and their distributions. In this post, things will start to get cracking as we build up to the &lt;strong&gt;law of the unconscious statistician&lt;/strong&gt;, the &lt;strong&gt;law of large numbers&lt;/strong&gt;, and &lt;strong&gt;Monte Carlo integration&lt;/strong&gt;. Along the way, we&amp;rsquo;ll introduce the following terms:&lt;/p&gt;
&lt;br&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Term&lt;/th&gt;
&lt;th style="text-align: center"&gt;Notation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Expected Value of $X$ under distribution $p$&lt;/td&gt;
&lt;td style="text-align: center"&gt;$\mathbb{E}_p[X]$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Variance of $X$ under distribution $p$&lt;/td&gt;
&lt;td style="text-align: center"&gt;$\mathbb{V}_p[X]$&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="expected-value"&gt;Expected Value&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;expected value&lt;/strong&gt; $\mathbb{E}_p[X]$ of a &lt;strong&gt;random variable&lt;/strong&gt; $X$ with distribution $p$ is the probability-weighted average of its possible values. Intuitively, it represents the average value we would observe over many &lt;em&gt;independent&lt;/em&gt; repetitions of the same experiment.&lt;/p&gt;</description></item><item><title>Probability Part I</title><link>https://kaminate.github.io/posts/probability-part-1/</link><pubDate>Sun, 27 Sep 2026 00:00:00 +0000</pubDate><guid>https://kaminate.github.io/posts/probability-part-1/</guid><description>&lt;h2 id="intro"&gt;Intro&lt;/h2&gt;
&lt;p&gt;Computer graphics often involves estimating complicated lighting integrals using Monte Carlo integration. This requires a background in random numbers and probability. By the end of this post you should understand the basics of probability, including the following terms and notations:&lt;/p&gt;
&lt;br&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Term&lt;/th&gt;
&lt;th style="text-align: center"&gt;Notation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Outcome&lt;/td&gt;
&lt;td style="text-align: center"&gt;$s$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Set of Outcomes&lt;/td&gt;
&lt;td style="text-align: center"&gt;$S$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Event&lt;/td&gt;
&lt;td style="text-align: center"&gt;$A$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Event Space&lt;/td&gt;
&lt;td style="text-align: center"&gt;$\mathcal{S}$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Probability Measure&lt;/td&gt;
&lt;td style="text-align: center"&gt;$\mathbb{P}$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sample Space&lt;/td&gt;
&lt;td style="text-align: center"&gt;$(S, \mathcal{S})$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Probability Space&lt;/td&gt;
&lt;td style="text-align: center"&gt;$(S, \mathcal{S}, \mathbb{P})$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Random Variable&lt;/td&gt;
&lt;td style="text-align: center"&gt;$X$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Probability Distribution of $X$&lt;/td&gt;
&lt;td style="text-align: center"&gt;$\mathbb{P}_X$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Probability Mass Function (PMF)&lt;/td&gt;
&lt;td style="text-align: center"&gt;$p_X$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cumulative Distribution Function (CDF)&lt;/td&gt;
&lt;td style="text-align: center"&gt;$F_X$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Probability Density Function (PDF)&lt;/td&gt;
&lt;td style="text-align: center"&gt;$f_X$&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="example-rolling-a-die"&gt;Example: Rolling a die&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s roll a fair six-sided die.&lt;/p&gt;</description></item><item><title>Tangent Plane</title><link>https://kaminate.github.io/posts/tangent-plane/</link><pubDate>Mon, 01 Nov 2021 00:00:00 +0000</pubDate><guid>https://kaminate.github.io/posts/tangent-plane/</guid><description>&lt;p&gt;&lt;img alt="alt text" loading="lazy" src="https://kaminate.github.io/posts/tangent-plane/tangent_plane.png"&gt;&lt;/p&gt;
&lt;h2 id="explicit-vs-implicit-surface"&gt;Explicit vs Implicit Surface&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s say that you have a surface given by $z=f(x,y)$.&lt;/p&gt;
&lt;p&gt;You want to find the tangent plane to that surface at a given point $p_0 = (x_0, y_0, z_0)$. There are two tangent plane equations to choose from.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;explicit&lt;/strong&gt; equation
&lt;div class="equation leqno" &gt;$$
z = f(x_0, y_0) &amp;#43; f_x(x_0, y_0)(x-x_0) &amp;#43; f_y(x_0,y_0)(y-y_0)
$$
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;Or the &lt;strong&gt;implicit&lt;/strong&gt; equation&lt;/p&gt;
&lt;p&gt;$$
0 = \nabla f \cdot (p - p_0 )
$$
where $p = (x, y, z)$&lt;/p&gt;</description></item></channel></rss>