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

<channel>
	<title>random variable &#8211; Problems in Mathematics</title>
	<atom:link href="https://yutsumura.com/tag/random-variable/feed/" rel="self" type="application/rss+xml" />
	<link>https://yutsumura.com</link>
	<description></description>
	<lastBuildDate>Mon, 03 Feb 2020 01:46:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3.4</generator>

<image>
	<url>https://i2.wp.com/yutsumura.com/wp-content/uploads/2016/12/cropped-question-logo.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>random variable &#8211; Problems in Mathematics</title>
	<link>https://yutsumura.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">114989322</site>	<item>
		<title>Probability that Three Pieces Form a Triangle</title>
		<link>https://yutsumura.com/probability-that-three-pieces-form-a-triangle/</link>
				<comments>https://yutsumura.com/probability-that-three-pieces-form-a-triangle/#respond</comments>
				<pubDate>Mon, 03 Feb 2020 01:46:20 +0000</pubDate>
		<dc:creator><![CDATA[Yu]]></dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[conditional probability]]></category>
		<category><![CDATA[form a triangle]]></category>
		<category><![CDATA[joint density function]]></category>
		<category><![CDATA[probability]]></category>
		<category><![CDATA[random variable]]></category>
		<category><![CDATA[uniform distribution]]></category>

		<guid isPermaLink="false">https://yutsumura.com/?p=7240</guid>
				<description><![CDATA[<p>We have a stick of a unit length. Two points on the stick will be selected randomly (uniformly along the length of the stick) and independently. Then we break the stick at these two&#46;&#46;&#46;</p>
<p>The post <a href="https://yutsumura.com/probability-that-three-pieces-form-a-triangle/" target="_blank">Probability that Three Pieces Form a Triangle</a> first appeared on <a href="https://yutsumura.com/" target="_blank">Problems in Mathematics</a>.</p>]]></description>
								<content:encoded><![CDATA[<h2> Problem 754</h2>
<p>We have a stick of a unit length. Two points on the stick will be selected randomly (uniformly along the length of the stick) and independently. Then we break the stick at these two points so that we get three pieces of the stick. What is the probability that these three pieces form a triangle?</p>
<p><span id="more-7240"></span></p>
<h2>Solution.</h2>
<p>		Let us call the left end of the stick the origin. Let $X$ be the length from the origin to the first selected point. Let $Y$ be the length from the origin to the second selected point. </p>
<p>		Note that when $X=Y$, we have only two pieces and they cannot form a triangle, so we assume $X \neq Y$.<br />
		We first assume that $X < Y$.
		Then after breaking the stick, we have three pieces of length $X$, $Y-X$, and $1-Y$, respectively.
		
		
		<img src="https://i1.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces0.jpg?resize=600%2C600&#038;ssl=1" alt="probability to form a triangle" width="600" height="600" class="alignnone size-full wp-image-7236" srcset="https://i1.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces0.jpg?w=600&amp;ssl=1 600w, https://i1.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces0.jpg?resize=300%2C300&amp;ssl=1 300w, https://i1.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces0.jpg?resize=150%2C150&amp;ssl=1 150w, https://i1.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces0.jpg?resize=160%2C160&amp;ssl=1 160w, https://i1.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces0.jpg?resize=320%2C320&amp;ssl=1 320w" sizes="(max-width: 600px) 100vw, 600px" data-recalc-dims="1" /></p>
<hr />
<p>		Now, let us consider a condition so that three segments of length $a$, $b$, and $c$ form a triangle in general. It is necessary and sufficient that the sum of the lengths of any two segments is bigger than the length of the rest to form a triangle.<br />
		Namely, we must satisfy all of the following inequalities.<br />
		\begin{align*}<br />
			a + b &#038;> c\\<br />
			b + c &#038;> a\\<br />
			c + a &#038;> b.<br />
		\end{align*}</p>
<hr />
<p>		Applying this condition to the current situation, we must have<br />
		\begin{align*}<br />
		X + (Y-X) &#038;> 1-Y\\<br />
		(Y-X) + (1-Y) &#038; > X\\<br />
		(1- Y) + X &#038;> Y &#8211; X.<br />
		\end{align*}<br />
		Simplifying these, we obtain<br />
		\begin{align*}<br />
		Y &#038;> \frac{1}{2}\\<br />
		X &#038;< \frac{1}{2}\\
		Y &#038;< X + \frac{1}{2}.	
		\end{align*}
		
		The region in the unit square satisfying these inequality is depicted in the figure below (orange region).
		
		
		<img src="https://i0.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces1.jpg?resize=600%2C600&#038;ssl=1" alt="probability to form a triangle" width="600" height="600" class="alignnone size-full wp-image-7237" srcset="https://i0.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces1.jpg?w=600&amp;ssl=1 600w, https://i0.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces1.jpg?resize=300%2C300&amp;ssl=1 300w, https://i0.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces1.jpg?resize=150%2C150&amp;ssl=1 150w, https://i0.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces1.jpg?resize=160%2C160&amp;ssl=1 160w, https://i0.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces1.jpg?resize=320%2C320&amp;ssl=1 320w" sizes="(max-width: 600px) 100vw, 600px" data-recalc-dims="1" /></p>
<p>		Note that the joint density function of $X$ and $Y$ are uniformly distributed on the unit square. Thus, the probability that three pieces form a triangle under the assumption $X < Y$ is given by the area of the orange triangular region, which is $1/8$. Note that by symmetry, the case $X > Y$ gives the same probability. Hence, the desired probability is<br />
		\begin{align*}<br />
			&#038;P(\text{form a triangle}) \\<br />
			&#038;= P(\text{form a triangle} \mid X < Y) + P(\text{form a triangle} \mid X > Y)\\<br />
			&#038;\frac{1}{8}+\frac{1}{8} = \frac{1}{4}.<br />
		\end{align*}</p>
<hr />
<p>		Alternatively, we can find the probability for the case $X > Y$ as follows. By symmetry argument, we simply need to exchange $X$ and $Y$ and obtain the conditions<br />
		\begin{align*}<br />
		X &#038;> \frac{1}{2}\\<br />
		Y &#038;< \frac{1}{2}\\
		X &#038;< Y + \frac{1}{2}.	
		\end{align*}
		The blue region below shows the area surrounded by these inequalities. The area of this blue region is $1/8$. Thus, the total area is $1/8 + 1/8 = 1/4$ as before.
		
		
		<img src="https://i2.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces2.jpg?resize=600%2C600&#038;ssl=1" alt="probability to form a triangle" width="600" height="600" class="alignnone size-full wp-image-7238" srcset="https://i2.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces2.jpg?w=600&amp;ssl=1 600w, https://i2.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces2.jpg?resize=300%2C300&amp;ssl=1 300w, https://i2.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces2.jpg?resize=150%2C150&amp;ssl=1 150w, https://i2.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces2.jpg?resize=160%2C160&amp;ssl=1 160w, https://i2.wp.com/yutsumura.com/wp-content/uploads/2020/02/Three-pieces2.jpg?resize=320%2C320&amp;ssl=1 320w" sizes="(max-width: 600px) 100vw, 600px" data-recalc-dims="1" /></p>
<button class="simplefavorite-button has-count" data-postid="7240" data-siteid="1" data-groupid="1" data-favoritecount="5" style="">Click here if solved <i class="sf-icon-star-empty"></i><span class="simplefavorite-button-count" style="">5</span></button><p>The post <a href="https://yutsumura.com/probability-that-three-pieces-form-a-triangle/" target="_blank">Probability that Three Pieces Form a Triangle</a> first appeared on <a href="https://yutsumura.com/" target="_blank">Problems in Mathematics</a>.</p>]]></content:encoded>
							<wfw:commentRss>https://yutsumura.com/probability-that-three-pieces-form-a-triangle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
						<post-id xmlns="com-wordpress:feed-additions:1">7240</post-id>	</item>
		<item>
		<title>Linearity of Expectations E(X+Y) = E(X) + E(Y)</title>
		<link>https://yutsumura.com/linearity-of-expectations-exy-ex-ey/</link>
				<comments>https://yutsumura.com/linearity-of-expectations-exy-ex-ey/#respond</comments>
				<pubDate>Mon, 20 Jan 2020 05:26:41 +0000</pubDate>
		<dc:creator><![CDATA[Yu]]></dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[discrete random variable]]></category>
		<category><![CDATA[expectation]]></category>
		<category><![CDATA[expected value]]></category>
		<category><![CDATA[joint probability mass function]]></category>
		<category><![CDATA[probability]]></category>
		<category><![CDATA[random variable]]></category>

		<guid isPermaLink="false">https://yutsumura.com/?p=7186</guid>
				<description><![CDATA[<p>Let $X, Y$ be discrete random variables. Prove the linearity of expectations described as \[E(X+Y) = E(X) + E(Y).\] Solution. The joint probability mass function of the discrete random variables $X$ and $Y$ is&#46;&#46;&#46;</p>
<p>The post <a href="https://yutsumura.com/linearity-of-expectations-exy-ex-ey/" target="_blank">Linearity of Expectations E(X+Y) = E(X) + E(Y)</a> first appeared on <a href="https://yutsumura.com/" target="_blank">Problems in Mathematics</a>.</p>]]></description>
								<content:encoded><![CDATA[<h2> Problem 743</h2>
<p>Let $X, Y$ be discrete random variables. Prove the linearity of expectations described as<br />
		\[E(X+Y) = E(X) + E(Y).\]
<p><span id="more-7186"></span></p>
<h2>Solution.</h2>
<p>	The joint probability mass function of the discrete random variables $X$ and $Y$ is defined by<br />
	\[p(x, y) = P(X=x, Y=y).\]
	Note that the probability mass function of $X$ can be obtained from $p(x, y)$ by<br />
	\begin{align*}<br />
		p_X(x) &#038;= P(X=x)\\<br />
		&#038; = \sum_{y} p(x, y).<br />
	\end{align*}<br />
	Similarly, the probability mass function of $Y$ is expressed as<br />
	\[p_Y(y) = \sum_{x} p(x, y).\]
<p>	Using these equalities and the definition of expectations, we can compute $E(X+Y)$ as follows.</p>
<p>		\begin{align*}<br />
		E(X+Y) &#038;= \sum_{x} \sum_{y} (x+y) p(x, y)\\<br />
		&#038;= \sum_{x} \sum_{y}\left(x p(x, y) + y p(x, y)\right)\\<br />
		&#038;= \sum_{x} \sum_{y} x p(x, y) + \sum_{x} \sum_{y} y p(x, y)\\<br />
		&#038;= \sum_x x \sum_y p(x,y) + \sum_y y \sum_x p(x,y)\\<br />
		&#038;= \sum x p_X(x) + \sum_y y p_Y(y)\\<br />
		&#038;= E(X) + E(Y)<br />
		\end{align*}</p>
<p>		This proves the desired linearity of expectations $E(X+Y) = E(X) +E(Y)$.</p>
<button class="simplefavorite-button has-count" data-postid="7186" data-siteid="1" data-groupid="1" data-favoritecount="4" style="">Click here if solved <i class="sf-icon-star-empty"></i><span class="simplefavorite-button-count" style="">4</span></button><p>The post <a href="https://yutsumura.com/linearity-of-expectations-exy-ex-ey/" target="_blank">Linearity of Expectations E(X+Y) = E(X) + E(Y)</a> first appeared on <a href="https://yutsumura.com/" target="_blank">Problems in Mathematics</a>.</p>]]></content:encoded>
							<wfw:commentRss>https://yutsumura.com/linearity-of-expectations-exy-ex-ey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
						<post-id xmlns="com-wordpress:feed-additions:1">7186</post-id>	</item>
	</channel>
</rss>
