<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://quantsoftware.gatech.edu/index.php?action=history&amp;feed=atom&amp;title=Summer_2019_Project_1%3A_Martingale</id>
	<title>Summer 2019 Project 1: Martingale - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://quantsoftware.gatech.edu/index.php?action=history&amp;feed=atom&amp;title=Summer_2019_Project_1%3A_Martingale"/>
	<link rel="alternate" type="text/html" href="http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;action=history"/>
	<updated>2026-04-15T02:47:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3167&amp;oldid=prev</id>
		<title>Greg: /* Tasks */</title>
		<link rel="alternate" type="text/html" href="http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3167&amp;oldid=prev"/>
		<updated>2019-05-14T04:51:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tasks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:51, 14 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot; &gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Get the template code for this project&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Get the template code for this project&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This project is available here: [[File:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;19spring_martingale&lt;/del&gt;.zip]]. Download and extract its contents into the base directory (ML4T_2019Spring). Once you&amp;#039;ve done this, you should see the following directory structure:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This project is available here: [[File:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;19summer_martingale&lt;/ins&gt;.zip]]. Download and extract its contents into the base directory (ML4T_2019Spring). Once you&amp;#039;ve done this, you should see the following directory structure:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;ML4T_2019Spring/&amp;lt;/tt&amp;gt;: Root directory for course&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt&amp;gt;ML4T_2019Spring/&amp;lt;/tt&amp;gt;: Root directory for course&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &amp;lt;tt&amp;gt;data/&amp;lt;/tt&amp;gt;: Location of data&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;** &amp;lt;tt&amp;gt;data/&amp;lt;/tt&amp;gt;: Location of data&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Greg</name></author>
		
	</entry>
	<entry>
		<id>http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3156&amp;oldid=prev</id>
		<title>Ssung40: /* Rubric */</title>
		<link rel="alternate" type="text/html" href="http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3156&amp;oldid=prev"/>
		<updated>2019-05-09T07:46:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Rubric&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:46, 9 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l95&quot; &gt;Line 95:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 95:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Are the questions answered correctly? (Up to -5 points for each incorrect answer)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Are the questions answered correctly? (Up to -5 points for each incorrect answer)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Is the reasoning for each question correct and supported by the evidence? (Up to -5 points for each if incorrect)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Is the reasoning for each question correct and supported by the evidence? (Up to -5 points for each if incorrect)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Are each of the charts provided and correct and include &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;a &lt;/del&gt;legend? (Up to -8 points for each if incorrect)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Are each of the charts provided and correct and include &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;labeled axis and &lt;/ins&gt;legend? (Up to -8 points for each if incorrect)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Code&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Code&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ssung40</name></author>
		
	</entry>
	<entry>
		<id>http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3155&amp;oldid=prev</id>
		<title>Ssung40: /* Contents of the report */</title>
		<link rel="alternate" type="text/html" href="http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3155&amp;oldid=prev"/>
		<updated>2019-05-09T07:44:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Contents of the report&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:44, 9 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l76&quot; &gt;Line 76:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, estimate the probability of winning $80 within 1000 sequential bets.  Explain your reasoning.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, estimate the probability of winning $80 within 1000 sequential bets.  Explain your reasoning.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning. Go here to learn about expected value: https://en.wikipedia.org/wiki/Expected_value&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning. Go here to learn about expected value: https://en.wikipedia.org/wiki/Expected_value&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, does the standard deviation reach a maximum value then stabilize as the number of sequential bets increases?  Explain why it does (or does not).&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, does the standard deviation reach a maximum value then stabilize &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or converge &lt;/ins&gt;as the number of sequential bets increases?  Explain why it does (or does not).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, estimate the probability of winning $80 within 1000 sequential bets.  Explain your reasoning using the experiment. (not based on plots)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, estimate the probability of winning $80 within 1000 sequential bets.  Explain your reasoning using the experiment. (not based on plots)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning. (not based on plots)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning. (not based on plots)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, does the standard deviation reach a maximum value then stabilize as the number of sequential bets increases?  Explain why it does (or does not).&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, does the standard deviation reach a maximum value then stabilize &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or converge &lt;/ins&gt;as the number of sequential bets increases?  Explain why it does (or does not).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Include figures 1 through 5.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Include figures 1 through 5.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ssung40</name></author>
		
	</entry>
	<entry>
		<id>http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3154&amp;oldid=prev</id>
		<title>Ssung40: /* Rubric */</title>
		<link rel="alternate" type="text/html" href="http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3154&amp;oldid=prev"/>
		<updated>2019-05-09T07:43:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Rubric&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:43, 9 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l95&quot; &gt;Line 95:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 95:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Are the questions answered correctly? (Up to -5 points for each incorrect answer)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Are the questions answered correctly? (Up to -5 points for each incorrect answer)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Is the reasoning for each question correct and supported by the evidence? (Up to -5 points for each if incorrect)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Is the reasoning for each question correct and supported by the evidence? (Up to -5 points for each if incorrect)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Are each of the charts provided and correct? (Up to -8 points for each if incorrect)&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Are each of the charts provided and correct &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and include a legend&lt;/ins&gt;? (Up to -8 points for each if incorrect)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Code&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Code&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ssung40</name></author>
		
	</entry>
	<entry>
		<id>http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3153&amp;oldid=prev</id>
		<title>Ssung40: /* Contents of the report */</title>
		<link rel="alternate" type="text/html" href="http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3153&amp;oldid=prev"/>
		<updated>2019-05-09T07:41:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Contents of the report&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:41, 9 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l77&quot; &gt;Line 77:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 77:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning. Go here to learn about expected value: https://en.wikipedia.org/wiki/Expected_value&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning. Go here to learn about expected value: https://en.wikipedia.org/wiki/Expected_value&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, does the standard deviation reach a maximum value then stabilize as the number of sequential bets increases?  Explain why it does (or does not).&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 1, does the standard deviation reach a maximum value then stabilize as the number of sequential bets increases?  Explain why it does (or does not).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, estimate the probability of winning $80 within 1000 sequential bets.  Explain your reasoning.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, estimate the probability of winning $80 within 1000 sequential bets.  Explain your reasoning &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;using the experiment&lt;/ins&gt;. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(not based on plots)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(not based on plots)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, does the standard deviation reach a maximum value then stabilize as the number of sequential bets increases?  Explain why it does (or does not).&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# In Experiment 2, does the standard deviation reach a maximum value then stabilize as the number of sequential bets increases?  Explain why it does (or does not).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Include figures 1 through 5.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Include figures 1 through 5.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ssung40</name></author>
		
	</entry>
	<entry>
		<id>http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3152&amp;oldid=prev</id>
		<title>Ssung40: /* Tasks */</title>
		<link rel="alternate" type="text/html" href="http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3152&amp;oldid=prev"/>
		<updated>2019-05-09T07:39:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tasks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:39, 9 May 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l65&quot; &gt;Line 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Experiment 2: A more realistic gambling simulator&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Experiment 2: A more realistic gambling simulator&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may have noticed that the strategy actually works pretty well, maybe better than you expected.  One reason for this is that we were allowing the gambler to use an unlimited bank roll.  In this experiment we&amp;#039;re going to make things more realistic by giving the gambler a $256 bank roll.  If he or she runs out of money, bzzt, that&amp;#039;s it.  Repeat the experiments above with this new condition.  Note that once the player has lost all of their money (i.e., episode_winnings &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;= &lt;/del&gt;-256) stop betting and fill that number (-256) forward.  An important corner case to be sure you handle is the situation where the next bet should be $N, but you only have $M (where M&amp;lt;N).  Make sure you only bet $M.  Here are the two charts to create:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You may have noticed that the strategy actually works pretty well, maybe better than you expected.  One reason for this is that we were allowing the gambler to use an unlimited bank roll.  In this experiment we&amp;#039;re going to make things more realistic by giving the gambler a $256 bank roll.  If he or she runs out of money, bzzt, that&amp;#039;s it.  Repeat the experiments above with this new condition.  Note that once the player has lost all of their money (i.e., episode_winnings &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;reaches &lt;/ins&gt;-256) stop betting and fill that number (-256) forward.  An important corner case to be sure you handle is the situation where the next bet should be $N, but you only have $M (where M&amp;lt;N).  Make sure you only bet $M.  Here are the two charts to create:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Figure 4: Run your realistic simulator 1000 times.  Plot the mean value of winnings for each spin using the same axis bounds as Figure 1.  Add an additional line above and below the mean at mean+standard deviation, and mean-standard deviation of the winnings at each point.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Figure 4: Run your realistic simulator 1000 times.  Plot the mean value of winnings for each spin using the same axis bounds as Figure 1.  Add an additional line above and below the mean at mean+standard deviation, and mean-standard deviation of the winnings at each point.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Figure 5: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Repeat &lt;/del&gt;the same &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;experiment as in &lt;/del&gt;Figure 4, but use the median instead of the mean.  Be sure to include the standard deviation lines above and below the median as well.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Figure 5: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Use &lt;/ins&gt;the same &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;data you used for &lt;/ins&gt;Figure 4, but use the median instead of the mean.  Be sure to include the standard deviation lines above and below the median as well.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Contents of the report==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Contents of the report==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ssung40</name></author>
		
	</entry>
	<entry>
		<id>http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3141&amp;oldid=prev</id>
		<title>David.joyner: Created page with &quot;==Revisions==  This assignment is subject to change up until 3 weeks prior to the due date. We do not anticipate changes; any changes will be logged in this section.  ==Overvi...&quot;</title>
		<link rel="alternate" type="text/html" href="http://quantsoftware.gatech.edu/index.php?title=Summer_2019_Project_1:_Martingale&amp;diff=3141&amp;oldid=prev"/>
		<updated>2019-05-09T02:08:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Revisions==  This assignment is subject to change up until 3 weeks prior to the due date. We do not anticipate changes; any changes will be logged in this section.  ==Overvi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Revisions==&lt;br /&gt;
&lt;br /&gt;
This assignment is subject to change up until 3 weeks prior to the due date. We do not anticipate changes; any changes will be logged in this section.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
The purpose of this assignment is to get you started programming in Python right away and to help provide you some initial feel for risk, probability and &amp;quot;betting.&amp;quot;  Purchasing a stock is, after all, a bet that the stock will increase in value.&lt;br /&gt;
&lt;br /&gt;
In this project you will evaluate the actual betting strategy that Professor Balch uses at roulette when he goes to Las Vegas. Here it is:&lt;br /&gt;
* episode_winnings = $0&lt;br /&gt;
* while episode_winnings &amp;lt; $80:&lt;br /&gt;
** won = False&lt;br /&gt;
** bet_amount = $1&lt;br /&gt;
** while not won&lt;br /&gt;
*** wager bet_amount on black&lt;br /&gt;
*** won = result of roulette wheel spin&lt;br /&gt;
*** if won == True:&lt;br /&gt;
**** episode_winnings = episode_winnings  + bet_amount&lt;br /&gt;
*** else:&lt;br /&gt;
**** episode_winnings = episode_winnings - bet_amount&lt;br /&gt;
**** bet_amount = bet_amount * 2&lt;br /&gt;
&lt;br /&gt;
Here are some details regarding how roulette betting works: Betting on black (or red) is considered an &amp;quot;even money&amp;quot; bet.  That means that if you bet N chips and win, you keep your N chips and you win another N chips.  If you bet N chips and you lose then those N chips are lost.  The odds of winning or losing depend on whether you&amp;#039;re betting at an American wheel or a European wheel. For this project we will be assuming an &amp;#039;&amp;#039;&amp;#039;American wheel&amp;#039;&amp;#039;&amp;#039;. You can learn more about roulette and betting here: https://en.wikipedia.org/wiki/Roulette&lt;br /&gt;
&lt;br /&gt;
==Tasks==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Set up your development environment&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
First, if you haven&amp;#039;t yet set up your software environment, follow the instructions here: [[ML4T_Software_Setup]].  The base directory structure is used for all projects in the class, including supporting data and software are will be set up correctly when you follow those instructions. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Get the template code for this project&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This project is available here: [[File:19spring_martingale.zip]]. Download and extract its contents into the base directory (ML4T_2019Spring). Once you&amp;#039;ve done this, you should see the following directory structure:&lt;br /&gt;
* &amp;lt;tt&amp;gt;ML4T_2019Spring/&amp;lt;/tt&amp;gt;: Root directory for course&lt;br /&gt;
** &amp;lt;tt&amp;gt;data/&amp;lt;/tt&amp;gt;: Location of data&lt;br /&gt;
** &amp;lt;tt&amp;gt;grading/&amp;lt;/tt&amp;gt;: Grading libraries used by the individual grading scripts for each assignment.&lt;br /&gt;
** &amp;lt;tt&amp;gt;util.py&amp;lt;/tt&amp;gt;: Common utility library. This is the &amp;lt;b&amp;gt;only&amp;lt;/b&amp;gt; allowed way to read in stock data. Only use the API methods provided here to read in stock data. Do NOT modify this file. For grading, we will use our own unmodified version.&lt;br /&gt;
** README.md&lt;br /&gt;
** &amp;lt;tt&amp;gt;martingale/&amp;lt;/tt&amp;gt;: Root directory for this project&lt;br /&gt;
*** &amp;lt;tt&amp;gt;martingale.py&amp;lt;/tt&amp;gt;: Main project file to use as a template for your code.&lt;br /&gt;
&lt;br /&gt;
You should change only &amp;lt;tt&amp;gt;martingale.py&amp;lt;/tt&amp;gt;.  All of your code should be in that one file.  Do not create additional files.  It should always remain in and run from the directory &amp;lt;tt&amp;gt;ML4T_2019Spring/martingale/&amp;lt;/tt&amp;gt;.  Leave the copyright information at the top intact.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Insert your GT User ID and GT ID number&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Revise the code functions &amp;lt;TT&amp;gt;author()&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;gtid()&amp;lt;/tt&amp;gt; to correctly include your GT User ID and 9 digit GT ID respectively.  Your GT User ID should be something like &amp;lt;tt&amp;gt;tbalch78&amp;lt;/tt&amp;gt; and your GTID is a 9 digit number.  You should also update this information the comments section at the top.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Build a simple gambling simulator&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Revise the code in &amp;lt;tt&amp;gt;martingale.py&amp;lt;/tt&amp;gt; to simulate 1000 successive bets on spins of the roulette wheel using the betting scheme outlined above.  You should test for the results of the betting events by making successive calls to the &amp;lt;tt&amp;gt;get_spin_result(win_prob)&amp;lt;/tt&amp;gt; function.  Note that you&amp;#039;ll have to update the &amp;lt;tt&amp;gt;win_prob&amp;lt;/tt&amp;gt; parameter according to the correct probability of winning.  You can figure that out by thinking about how roulette works (see wikipedia link above).&lt;br /&gt;
&lt;br /&gt;
Track your winnings by storing them in a numpy array. You might call that array &amp;lt;tt&amp;gt;winnings&amp;lt;/tt&amp;gt; where &amp;lt;tt&amp;gt;winnings[0]&amp;lt;/tt&amp;gt; should be set to 0 (just before the first spin).  &amp;lt;tt&amp;gt;winnings[1]&amp;lt;/tt&amp;gt; should reflect the total winnings after the first spin and so on. For a particular episode if you ever hit $80 in winnings, stop betting and just fill the data forward with the value 80.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Experiment 1: Explore the strategy and make some charts&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Now we want you to run some experiments to determine how well the betting strategy works.  The approach we&amp;#039;re going to take is called Monte Carlo simulation where the idea is to run a simulator over and over again with randomized inputs and to assess the results in aggregate.  Skip to the &amp;quot;report&amp;quot; section below to which specific properties of the strategy we want you to evaluate. &lt;br /&gt;
&lt;br /&gt;
For the following charts, and for all charts in this class you should use python&amp;#039;s matplotlib library.  Your submitted project should include all of the code necessary to generate the charts listed in your report.  You should configure your code to write the figures to .png files.  Do not allow your code to create a window that displays images.  If it does you will receive a penalty.&lt;br /&gt;
&lt;br /&gt;
* Figure 1: Run your simple simulator 10 times and track the winnings, starting from 0 each time.  Plot all 10 runs on one chart using &amp;lt;tt&amp;gt;matplotlib&amp;lt;/tt&amp;gt; functions.  The horizontal (X) axis should range from 0 to 300, the vertical (Y) axis should range from -256 to +100.  Note that we will not be surprised if some of the plot lines are not visible because they exceed the vertical or horizontal scales.&lt;br /&gt;
* Figure 2: Run your simple simulator 1000 times.  Plot the mean value of winnings for each spin using the same axis bounds as Figure 1.  Add an additional line above and below the mean at mean+standard deviation, and mean-standard deviation of the winnings at each point.&lt;br /&gt;
* Figure 3: Use the same data you used for Figure 2, but plot the median instead of the mean.  Be sure to include the standard deviation lines above and below the median as well.&lt;br /&gt;
&lt;br /&gt;
For all of the above charts and experiments, if and when the target $80 winnings is reached, stop betting and allow the $80 value to persist from spin to spin.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Experiment 2: A more realistic gambling simulator&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You may have noticed that the strategy actually works pretty well, maybe better than you expected.  One reason for this is that we were allowing the gambler to use an unlimited bank roll.  In this experiment we&amp;#039;re going to make things more realistic by giving the gambler a $256 bank roll.  If he or she runs out of money, bzzt, that&amp;#039;s it.  Repeat the experiments above with this new condition.  Note that once the player has lost all of their money (i.e., episode_winnings = -256) stop betting and fill that number (-256) forward.  An important corner case to be sure you handle is the situation where the next bet should be $N, but you only have $M (where M&amp;lt;N).  Make sure you only bet $M.  Here are the two charts to create:&lt;br /&gt;
&lt;br /&gt;
* Figure 4: Run your realistic simulator 1000 times.  Plot the mean value of winnings for each spin using the same axis bounds as Figure 1.  Add an additional line above and below the mean at mean+standard deviation, and mean-standard deviation of the winnings at each point.&lt;br /&gt;
* Figure 5: Repeat the same experiment as in Figure 4, but use the median instead of the mean.  Be sure to include the standard deviation lines above and below the median as well.&lt;br /&gt;
&lt;br /&gt;
==Contents of the report==&lt;br /&gt;
&lt;br /&gt;
Please address each of these points/questions in your report, to be submitted as &amp;lt;tt&amp;gt;report.pdf&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# In Experiment 1, estimate the probability of winning $80 within 1000 sequential bets.  Explain your reasoning.&lt;br /&gt;
# In Experiment 1, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning. Go here to learn about expected value: https://en.wikipedia.org/wiki/Expected_value&lt;br /&gt;
# In Experiment 1, does the standard deviation reach a maximum value then stabilize as the number of sequential bets increases?  Explain why it does (or does not).&lt;br /&gt;
# In Experiment 2, estimate the probability of winning $80 within 1000 sequential bets.  Explain your reasoning.&lt;br /&gt;
# In Experiment 2, what is the estimated expected value of our winnings after 1000 sequential bets? Explain your reasoning. &lt;br /&gt;
# In Experiment 2, does the standard deviation reach a maximum value then stabilize as the number of sequential bets increases?  Explain why it does (or does not).&lt;br /&gt;
# Include figures 1 through 5.&lt;br /&gt;
&lt;br /&gt;
==What to turn in==&lt;br /&gt;
&lt;br /&gt;
Submit the following files (only) via Canvas before the deadline:&lt;br /&gt;
* Your report as &amp;lt;tt&amp;gt;report.pdf&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Your code as &amp;lt;tt&amp;gt;martingale.py&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do not submit any other files. Note that your charts should be included in the report, not submitted as separate files.  Also note that if we run your submitted code, it should generate all 5 figures as png files. Not submitting a report will result in a 0 for the assignment.&lt;br /&gt;
&lt;br /&gt;
==Rubric==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Report&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Are the questions answered correctly? (Up to -5 points for each incorrect answer)&lt;br /&gt;
* Is the reasoning for each question correct and supported by the evidence? (Up to -5 points for each if incorrect)&lt;br /&gt;
* Are each of the charts provided and correct? (Up to -8 points for each if incorrect)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Code&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Does the code run without crashing? (-10 points if not)&lt;br /&gt;
* Does the code generate appropriate charts written to png files? (-10 points each up to a max of -20 if not)&lt;br /&gt;
* Does the implemented code reflect the project requirements? (Up to -10 points if not)&lt;br /&gt;
&lt;br /&gt;
==Required, Allowed &amp;amp; Prohibited==&lt;br /&gt;
&lt;br /&gt;
Required:&lt;br /&gt;
* Your project must be coded in Python 2.7.x.&lt;br /&gt;
* This requirement is not enforced for this first project, but will be for future projects. &amp;lt;s&amp;gt;Your code must run on one of the university-provided computers (e.g. buffet02.cc.gatech.edu).&amp;lt;/s&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Allowed:&lt;br /&gt;
* Your code may use standard Python libraries (except os).&lt;br /&gt;
* You may use the NumPy, SciPy, matplotlib and Pandas libraries.  Be sure you are using the correct versions.&lt;br /&gt;
* Code provided by the instructor, or allowed by the instructor to be shared.&lt;br /&gt;
&lt;br /&gt;
Prohibited:&lt;br /&gt;
* Any use of global variables.&lt;br /&gt;
* Any libraries not listed in the &amp;quot;allowed&amp;quot; section above.&lt;br /&gt;
* Use of Python&amp;#039;s os module.&lt;br /&gt;
* Any code you did not write yourself (except for the 5 line rule in the &amp;quot;allowed&amp;quot; section).&lt;br /&gt;
* Knights who say &amp;quot;neeee.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Legacy versions==&lt;/div&gt;</summary>
		<author><name>David.joyner</name></author>
		
	</entry>
</feed>