<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6054539933273498689</id><updated>2026-08-29T15:12:27.711-07:00</updated><category term="Codecademy"/><category term="Javascript"/><category term="Codeyear"/><category term="Python"/><category term="Ruby"/><category term="jQuery"/><category term="LearnStreet"/><category term="CSS"/><category term="Sample solution"/><category term="HTML"/><category term="Learn R"/><category term="Learn C#"/><category term="Medical Questions"/><category term="SQL"/><category term="PHP"/><category term="Codeschool"/><category term="FreeCodeCamp"/><category term="Codefights"/><category term="Java"/><category term="Learn Statistics With Python"/><category term="Math"/><category term="Area"/><category term="Answers to Problems"/><category term="Math Problems"/><category term="Projects"/><category term="R programming"/><category term="online calculator"/><category term="Git"/><category term="APIs"/><category term="Driving Exam Questions"/><category term="Driving Exam Review"/><category term="Angular.js"/><category term="Learn Phaser"/><category term="Code Garage"/><category term="Resistance"/><category term="Backbone.js"/><category term="JSX"/><category term="React"/><category term="Ammeter"/><category term="Thevenin"/><category term="Capacitor"/><category term="Current"/><category term="DataCamp"/><category term="Intro to Python for Finance"/><category term="Norton"/><category term="Power"/><category term="SkyDrive"/><category term="Source Transformation"/><category term="Sylvester"/><category term="Voltage"/><category term="Voltmeter"/><category term="Admittance"/><category term="Critical Damping"/><category term="Current Waveform"/><category term="Efficiency"/><category term="Frequency"/><category term="Impedance"/><category term="Independent Sources"/><category term="Inductor"/><category term="Matrix"/><category term="Maximum Power Transfer"/><category term="Mesh Analysis"/><category term="Overdamped"/><category term="Power Dissipation"/><category term="Responses"/><category term="Series Resistor"/><category term="Shunt Resistor"/><category term="Sum of Primes"/><category term="Superposition"/><category term="Tau"/><category term="Underdamped"/><category term="Voltage Divider Principle"/><category term="Voltage Source"/><category term="Voltage Waveform"/><category term="circumference"/><category term="node.js"/><category term="AC"/><category term="Bootstrap"/><category term="Capcitor"/><category term="Current Divider Principle"/><category term="Current Source"/><category term="Docker"/><category term="Electromagnet"/><category term="Fibonacci numbers"/><category term="KCL"/><category term="KVL"/><category term="Matrix Determinant Calculator"/><category term="Matrix Inverse Calculator"/><category term="Meter"/><category term="Nodal Analysis"/><category term="Objective C"/><category term="Open Circuit"/><category term="Parallel RLC"/><category term="Parse.com"/><category term="Power Transfer"/><category term="Prime Numbers"/><category term="Series RLC"/><category term="Short Circuit"/><category term="Solution to n equations with n unknowns"/><category term="Source Free RC Circuit"/><category term="Source Free RL Circuit"/><category term="Triangles"/><category term="Twitter Bootstrap"/><category term="Visual Studio"/><category term="Vote Counter"/><category term="Vote Tallying"/><category term="Wattmeter"/><category term="Windows shortcuts"/><category term="simulataneous linear equations"/><title type='text'>Questions and Answers</title><subtitle type='html'>Problems and Solutions</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Bert</name><uri>http://www.blogger.com/profile/16086330016388429620</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_kgtZjurFQ6xzOzMbDMjqnVeOwx6BnULTyoxUCslMz5FI2vi0sBGy6bmiBpRhhhRS77nuB4f5lPC1X4RQn7IcohyFfxtKfGN6It8Lyf4WbDKLxuINC4RAtnC04sgq4A/s220/NorbertMercado150px.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2124</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-7947638134508223110</id><published>2019-09-09T05:37:00.001-07:00</published><updated>2019-09-09T08:38:08.886-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn Phaser"/><title type='text'>Codecademy Learn Phaser: Keyboard Events 10/12</title><content type='html'>//Sample Solution&lt;br /&gt;
const gameState = {}&lt;br /&gt;
&lt;br /&gt;
function preload() {&lt;br /&gt;
&amp;nbsp; this.load.image(&#39;codey&#39;, &#39;https://s3.amazonaws.com/codecademy-content/courses/learn-phaser/codey.png&#39;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function create() {&lt;br /&gt;
&amp;nbsp; gameState.codey = this.add.sprite(150, 200, &#39;codey&#39;)&lt;br /&gt;
&amp;nbsp; // Set cursor keys here!&lt;br /&gt;
&amp;nbsp; gameState.cursors = this.input.keyboard.createCursorKeys();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function update() {&lt;br /&gt;
&amp;nbsp; // Update based on keypress here!&lt;br /&gt;
&amp;nbsp; if(gameState.cursors.right.isDown){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gameState.codey.x += 5&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; if(gameState.cursors.left.isDown){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gameState.codey.x -= 5&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; if(gameState.cursors.up.isDown){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gameState.codey.y -= 5&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; if(gameState.cursors.down.isDown){&lt;br /&gt;
&amp;nbsp; &amp;nbsp; gameState.codey.y += 5&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const config = {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;type: Phaser.AUTO,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;width: 400,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;height: 500,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;backgroundColor: &quot;#5f2a55&quot;,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scene: {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; preload,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; create,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; update&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const game = new Phaser.Game(config)</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/7947638134508223110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-input.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/7947638134508223110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/7947638134508223110'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-input.html' title='Codecademy Learn Phaser: Keyboard Events 10/12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-1162194397987899526</id><published>2019-09-09T02:59:00.000-07:00</published><updated>2019-09-09T02:59:05.333-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn Phaser"/><title type='text'>Codecademy Learn Phaser: Basics Storing State 8/12</title><content type='html'>//Sample Solution&lt;br /&gt;
const gameState = {};&lt;br /&gt;
&lt;br /&gt;
function create() {&lt;br /&gt;
&amp;nbsp; gameState.circle = this.add.circle(40, 100, 20, 0xff9999)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function update() {&lt;br /&gt;
&amp;nbsp; gameState.circle.y += 1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const config = {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;type: Phaser.AUTO,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;width: 450,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;height: 600,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;backgroundColor: &quot;#99ff99&quot;,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scene: {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; create,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; update&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const game = new Phaser.Game(config)</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/1162194397987899526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-storing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/1162194397987899526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/1162194397987899526'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-storing.html' title='Codecademy Learn Phaser: Basics Storing State 8/12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-543798165589753472</id><published>2019-09-09T02:50:00.002-07:00</published><updated>2019-09-09T02:50:59.677-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn Phaser"/><title type='text'>Codecademy Learn Phaser: Basics Move Your Bodies 7/12</title><content type='html'>//Sample Solution&lt;br /&gt;
let codey;&lt;br /&gt;
&lt;br /&gt;
function preload() {&lt;br /&gt;
&amp;nbsp; this.load.image(&#39;codey&#39;, &#39;https://s3.amazonaws.com/codecademy-content/courses/learn-phaser/codey.png&#39;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function create() {&lt;br /&gt;
&amp;nbsp; codey = this.add.sprite(30, 200, &#39;codey&#39;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Create your update() function here&lt;br /&gt;
function update() {&lt;br /&gt;
&amp;nbsp; codey.x += 1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const config = {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;type: Phaser.AUTO,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;width: 400,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;height: 400,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;backgroundColor: &quot;#5f2a55&quot;,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scene: {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; preload,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; create,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; // Include update here!&lt;br /&gt;
&amp;nbsp; &amp;nbsp; update&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const game = new Phaser.Game(config)</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/543798165589753472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-move.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/543798165589753472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/543798165589753472'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-move.html' title='Codecademy Learn Phaser: Basics Move Your Bodies 7/12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-3386564592240223144</id><published>2019-09-09T02:46:00.000-07:00</published><updated>2019-09-09T02:46:08.753-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn Phaser"/><title type='text'>Codecademy Learn Phaser: Basics Start Making A Scene 6/12</title><content type='html'>//Sample Solution&lt;br /&gt;
// Create a create() function here:&lt;br /&gt;
function create() {&lt;br /&gt;
&amp;nbsp; this.add.text(100,170,&quot;Spaze Invaydurs&quot;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const config = {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;type: Phaser.AUTO,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;width: 450,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;height: 600,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;backgroundColor: &quot;#a0a0dd&quot;,&lt;br /&gt;
&amp;nbsp; // Add in the scene information in the config here:&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scene: {&lt;br /&gt;
&amp;nbsp; &lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;create&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const game = new Phaser.Game(config)</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/3386564592240223144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-start.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/3386564592240223144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/3386564592240223144'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-start.html' title='Codecademy Learn Phaser: Basics Start Making A Scene 6/12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-6172248114870663333</id><published>2019-09-09T02:39:00.002-07:00</published><updated>2019-09-09T02:39:56.136-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn Phaser"/><title type='text'>Codecademy Learn Phaser: Basics Create A Config 5/12</title><content type='html'>//Sample Solution&lt;br /&gt;
const config = {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;width: 450,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;height: 600,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;backgroundColor: &quot;#0000ff&quot;,&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const game = new Phaser.Game(config)</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/6172248114870663333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-create.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6172248114870663333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6172248114870663333'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-create.html' title='Codecademy Learn Phaser: Basics Create A Config 5/12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-6153502488275731852</id><published>2019-09-09T02:34:00.002-07:00</published><updated>2019-09-09T02:34:42.116-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn Phaser"/><title type='text'>Codecademy Learn Phaser: Basics Draw A Background Image 4/12</title><content type='html'>//Sample Solution&lt;br /&gt;
function preload() {&lt;br /&gt;
&amp;nbsp; // Load in the background image here!&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;this.load.image(&#39;sky&#39;,&#39;https://s3.amazonaws.com/codecademy-content/courses/learn-phaser/sky.jpg&#39;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function create() {&lt;br /&gt;
&amp;nbsp; // Put the background image in the scene here!&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;this.add.image(200,200,&#39;sky&#39;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const config = {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;type: Phaser.AUTO,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;width: 450,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;height: 600,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;backgroundColor: &quot;#5f2a55&quot;,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scene: {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; create,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; preload&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const game = new Phaser.Game(config)</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/6153502488275731852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-draw_77.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6153502488275731852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6153502488275731852'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-draw_77.html' title='Codecademy Learn Phaser: Basics Draw A Background Image 4/12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-4697986716937045836</id><published>2019-09-09T02:29:00.002-07:00</published><updated>2019-09-09T02:29:31.550-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn Phaser"/><title type='text'>Codecademy Learn Phaser: Basics Draw A Sprite 3/12</title><content type='html'>//Sample Solution&lt;br /&gt;
function preload() {&lt;br /&gt;
&amp;nbsp; // Load in the sprite here!&lt;br /&gt;
this.load.image(&#39;codey&#39;,&#39;https://s3.amazonaws.com/codecademy-content/courses/learn-phaser/codey.png&#39;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function create() {&lt;br /&gt;
&amp;nbsp; // Create a sprite game object here!&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;this.add.sprite(40,50,&#39;codey&#39;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const config = {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;type: Phaser.AUTO,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;width: 450,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;height: 600,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;backgroundColor: &quot;#5f2a55&quot;,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scene: {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; create,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; preload&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const game = new Phaser.Game(config)</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/4697986716937045836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-draw_9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/4697986716937045836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/4697986716937045836'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-draw_9.html' title='Codecademy Learn Phaser: Basics Draw A Sprite 3/12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-1578313029913392096</id><published>2019-09-09T02:20:00.002-07:00</published><updated>2019-09-09T02:20:48.980-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn Phaser"/><title type='text'>Codecademy Learn Phaser: Basics Draw A Circle 2/12</title><content type='html'>//Sample Solution&lt;br /&gt;
function create() {&lt;br /&gt;
&amp;nbsp; let circle1 = this.add.circle(50, 100, 90, 0xFFF070);&lt;br /&gt;
&amp;nbsp; let circle2 = this.add.circle(95, 300, 80, 0xFF0000);&lt;br /&gt;
&amp;nbsp; let circle3 = this.add.circle(200, 200, 100, 0x9F00D0);&lt;br /&gt;
&amp;nbsp; let circle4 = this.add.circle(300, 400, 10, 0x00E030);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; // Add in a circle here!&lt;br /&gt;
&amp;nbsp; let circle5 = this.add.circle(450, 600, 240, 0xFFFFFF);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const config = {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;type: Phaser.AUTO,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;width: 450,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;height: 600,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scene: {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; create&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const game = new Phaser.Game(config)</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/1578313029913392096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-draw.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/1578313029913392096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/1578313029913392096'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-draw.html' title='Codecademy Learn Phaser: Basics Draw A Circle 2/12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-4024754010918063040</id><published>2019-09-09T02:15:00.002-07:00</published><updated>2019-09-09T02:15:59.107-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn Phaser"/><title type='text'>Codecademy Learn Phaser: Basics Hello World 1/12</title><content type='html'>//Sample Solution&lt;br /&gt;
function create() {&lt;br /&gt;
&amp;nbsp; // Change &quot;Codey&#39;s Adventures\n&amp;nbsp; in Code World&quot; to the name of your game&lt;br /&gt;
&amp;nbsp; this.add.text(50, 100, &quot;Nathan&#39;s Nation&quot;, { font: &quot;40px Times New Roman&quot;, fill: &quot;#ffa0d0&quot;});&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; // Change &quot;by Codecademy&quot; to your name!&lt;br /&gt;
&amp;nbsp; this.add.text(130, 300, &quot;by nathan&quot;, { font: &quot;20px Times New Roman&quot;, fill: &quot;#ffa0d0&quot;});&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
const config = {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;type: Phaser.AUTO,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;width: 450,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;height: 600,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;backgroundColor: &quot;#5f2a55&quot;,&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;scene: {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; create&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
const game = new Phaser.Game(config);</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/4024754010918063040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-hello.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/4024754010918063040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/4024754010918063040'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-learn-phaser-basics-hello.html' title='Codecademy Learn Phaser: Basics Hello World 1/12'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-2792023835660233814</id><published>2019-09-09T02:02:00.003-07:00</published><updated>2019-09-09T02:02:33.404-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R ANOVA 13/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r message = FALSE}&lt;br /&gt;
# load data&lt;br /&gt;
load(&quot;dist_one.Rda&quot;)&lt;br /&gt;
load(&quot;dist_two.Rda&quot;)&lt;br /&gt;
load(&quot;dist_three.Rda&quot;)&lt;br /&gt;
load(&quot;dist_four.Rda&quot;)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# plot histograms and define not_normal here:&lt;br /&gt;
hist(dist_one)&lt;br /&gt;
hist(dist_two)&lt;br /&gt;
hist(dist_three)&lt;br /&gt;
hist(dist_four)&lt;br /&gt;
not_normal &amp;lt;- 4&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# define ratio here:&lt;br /&gt;
ratio &amp;lt;- sd(dist_two)/sd(dist_three)&lt;br /&gt;
ratio&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/2792023835660233814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_55.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/2792023835660233814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/2792023835660233814'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_55.html' title='Codecademy Hypothesis Testing With R ANOVA 13/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-4269363202966556095</id><published>2019-09-09T01:56:00.000-07:00</published><updated>2019-09-09T01:56:02.049-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R ANOVA 12/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r message = FALSE}&lt;br /&gt;
# load libraries&lt;br /&gt;
library(tidyr)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r message = FALSE}&lt;br /&gt;
# load data&lt;br /&gt;
load(&quot;stores.Rda&quot;)&lt;br /&gt;
load(&quot;stores_new.Rda&quot;)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# inspect stores here:&lt;br /&gt;
stores&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# perform anova on stores here:&lt;br /&gt;
results = aov(sales ~ store, data = stores)&lt;br /&gt;
summary(results)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# perform anova on stores_new here:&lt;br /&gt;
results_new = aov(sales ~ store, data = stores_new)&lt;br /&gt;
summary(results_new)&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/4269363202966556095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_63.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/4269363202966556095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/4269363202966556095'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_63.html' title='Codecademy Hypothesis Testing With R ANOVA 12/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-6960626439985561255</id><published>2019-09-09T01:39:00.002-07:00</published><updated>2019-09-09T01:39:58.452-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R Dangers of Multiple T-Tests 11/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r message = FALSE}&lt;br /&gt;
# load data&lt;br /&gt;
load(&quot;store_a.Rda&quot;)&lt;br /&gt;
load(&quot;store_b.Rda&quot;)&lt;br /&gt;
load(&quot;store_c.Rda&quot;)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate means here:&lt;br /&gt;
store_a_mean &amp;lt;- mean(store_a)&lt;br /&gt;
store_a_mean&lt;br /&gt;
store_b_mean &amp;lt;- mean(store_b)&lt;br /&gt;
store_b_mean&lt;br /&gt;
store_c_mean &amp;lt;- mean(store_c)&lt;br /&gt;
store_c_mean&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate standard deviations here:&lt;br /&gt;
store_a_sd &amp;lt;- sd(store_a)&lt;br /&gt;
store_a_sd&lt;br /&gt;
store_b_sd &amp;lt;- sd(store_b)&lt;br /&gt;
store_b_sd&lt;br /&gt;
store_c_sd &amp;lt;- sd(store_c)&lt;br /&gt;
store_c_sd&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# perform two sample t-test here:&lt;br /&gt;
a_b_results &amp;lt;- t.test(store_a,store_b)&lt;br /&gt;
a_b_results&lt;br /&gt;
a_c_results &amp;lt;- t.test(store_a,store_c)&lt;br /&gt;
a_c_results&lt;br /&gt;
b_c_results &amp;lt;- t.test(store_b,store_c)&lt;br /&gt;
b_c_results&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate error_prob here:&lt;br /&gt;
error_prob &amp;lt;- (1-(0.95**3))&lt;br /&gt;
error_prob&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/6960626439985561255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6960626439985561255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6960626439985561255'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_10.html' title='Codecademy Hypothesis Testing With R Dangers of Multiple T-Tests 11/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-2419264387348623120</id><published>2019-09-09T01:22:00.002-07:00</published><updated>2019-09-09T01:22:42.141-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R Two-Sample T-Test 10/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r message = FALSE}&lt;br /&gt;
# load data&lt;br /&gt;
load(&quot;week_1.Rda&quot;)&lt;br /&gt;
week_1&lt;br /&gt;
load(&quot;week_2.Rda&quot;)&lt;br /&gt;
week_2&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate week_1_mean and week_2_mean here:&lt;br /&gt;
week_1_mean &amp;lt;- mean(week_1)&lt;br /&gt;
week_1_mean&lt;br /&gt;
week_2_mean &amp;lt;- mean(week_2)&lt;br /&gt;
week_2_mean&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate week_1_sd and week_2_sd here:&lt;br /&gt;
week_1_sd &amp;lt;- sd(week_1)&lt;br /&gt;
week_1_sd&lt;br /&gt;
week_2_sd &amp;lt;- sd(week_2)&lt;br /&gt;
week_2_sd&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# run two sample t-test here:&lt;br /&gt;
results &amp;lt;- t.test(week_1,week_2)&lt;br /&gt;
results&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/2419264387348623120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/2419264387348623120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/2419264387348623120'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_30.html' title='Codecademy Hypothesis Testing With R Two-Sample T-Test 10/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-6699632088513158179</id><published>2019-09-09T01:16:00.002-07:00</published><updated>2019-09-09T01:16:52.153-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R One-Sample T-Test 9/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r message = FALSE}&lt;br /&gt;
# load and view data&lt;br /&gt;
load(&quot;ages.Rda&quot;)&lt;br /&gt;
ages&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate ages_mean here:&lt;br /&gt;
ages_mean &amp;lt;- mean(ages)&lt;br /&gt;
ages_mean&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# perform t-test here:&lt;br /&gt;
results &amp;lt;- t.test(ages,mu=30)&lt;br /&gt;
results&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/6699632088513158179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6699632088513158179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6699632088513158179'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_14.html' title='Codecademy Hypothesis Testing With R One-Sample T-Test 9/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-2043244558551992287</id><published>2019-09-09T01:10:00.000-07:00</published><updated>2019-09-09T01:10:13.828-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R Significance Level 8/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# update reject_hypothesis here:&lt;br /&gt;
# all p-values below the threshold will result in # # rejecting the null hypothesis&lt;br /&gt;
# p-value threshold industry = 0.05&lt;br /&gt;
# hypothesis test actual p-value = 0.1 &amp;gt; 0.05&lt;br /&gt;
# since p-value is larger than the threshold, we # accept the null hypothesis&lt;br /&gt;
reject_hypothesis &amp;lt;- FALSE&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/2043244558551992287/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_53.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/2043244558551992287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/2043244558551992287'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_53.html' title='Codecademy Hypothesis Testing With R Significance Level 8/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-866925754801683349</id><published>2019-09-09T01:03:00.002-07:00</published><updated>2019-09-09T01:03:47.494-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R P-Values 7/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# possible interpretations&lt;br /&gt;
st_1 &amp;lt;- &quot;There is a 20% chance that the difference in average weight of green and red apples is due to random sampling.&quot;&lt;br /&gt;
st_2 &amp;lt;- &quot;There is a 20% chance that green and red apples have the same average weight.&quot;&lt;br /&gt;
st_3 &amp;lt;- &quot;There is a 20% chance red apples weigh more than green apples.&quot;&lt;br /&gt;
st_4 &amp;lt;- &quot;There is a 20% chance green apples weigh more than green apples.&quot;&lt;br /&gt;
&lt;br /&gt;
# update the value of interpretation here:&lt;br /&gt;
interpretation &amp;lt;- &quot;st_1&quot;&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/866925754801683349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r-p.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/866925754801683349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/866925754801683349'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r-p.html' title='Codecademy Hypothesis Testing With R P-Values 7/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-425059576796312569</id><published>2019-09-09T00:58:00.000-07:00</published><updated>2019-09-09T00:58:10.631-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R Type I and Type II Errors 6/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# the true positives and negatives:&lt;br /&gt;
actual_positive &amp;lt;- c(2, 5, 6, 7, 8, 10, 18, 21, 24, 25, 29, 30, 32, 33, 38, 39, 42, 44, 45, 47)&lt;br /&gt;
actual_negative &amp;lt;- c(1, 3, 4, 9, 11, 12, 13, 14, 15, 16, 17, 19, 20, 22, 23, 26, 27, 28, 31, 34, 35, 36, 37, 40, 41, 43, 46, 48, 49)&lt;br /&gt;
&lt;br /&gt;
# the positives and negatives we determine by running the experiment:&lt;br /&gt;
experimental_positive &amp;lt;- c(2, 4, 5, 7, 8, 9, 10, 11, 13, 15, 16, 17, 18, 19, 20, 21, 22, 24, 26, 27, 28, 32, 35, 36, 38, 39, 40, 45, 46, 49)&lt;br /&gt;
experimental_negative &amp;lt;- c(1, 3, 6, 12, 14, 23, 25, 29, 30, 31, 33, 34, 37, 41, 42, 43, 44, 47, 48)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# define type_i_errors and type_ii_errors here:&lt;br /&gt;
type_i_errors = intersect(experimental_positive,actual_negative)&lt;br /&gt;
type_i_errors&lt;br /&gt;
type_ii_errors =&lt;br /&gt;
intersect(experimental_negative,actual_positive)&lt;br /&gt;
type_ii_errors&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/425059576796312569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_77.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/425059576796312569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/425059576796312569'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_77.html' title='Codecademy Hypothesis Testing With R Type I and Type II Errors 6/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-3397057171124828862</id><published>2019-09-09T00:46:00.002-07:00</published><updated>2019-09-09T00:46:51.732-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R Designing an Experiment 5/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# load data&lt;br /&gt;
load(&quot;retriever_lengths.Rda&quot;)&lt;br /&gt;
load(&quot;doodle_lengths.Rda&quot;)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate mean_retriever_l and mean_doodle_l here:&lt;br /&gt;
mean_retriever_l = mean(retriever_lengths)&lt;br /&gt;
mean_doodle_l = mean(doodle_lengths)&lt;br /&gt;
mean_retriever_l&lt;br /&gt;
mean_doodle_l&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate mean_difference here:&lt;br /&gt;
mean_difference = mean_retriever_l - mean_doodle_l&lt;br /&gt;
mean_difference&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# statements:&lt;br /&gt;
st_1 &amp;lt;- &quot;The average length of Golden Retrievers is 2.5 inches longer than the average length of Goldendoodles.&quot;&lt;br /&gt;
st_2 &amp;lt;- &quot;The average length of Golden Retrievers is the same as the average length of Goldendoodles.&quot;&lt;br /&gt;
&lt;br /&gt;
# update null_hypo here:&lt;br /&gt;
null_hypo &amp;lt;- &quot;st_2&quot;&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/3397057171124828862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_9.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/3397057171124828862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/3397057171124828862'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_9.html' title='Codecademy Hypothesis Testing With R Designing an Experiment 5/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-6710256794850535785</id><published>2019-09-07T22:16:00.000-07:00</published><updated>2019-09-07T22:16:02.187-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R Hypothesis Formulation 4/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# experiment 1&lt;br /&gt;
hypo_a &amp;lt;- &quot;DeePressurize lowers blood pressure in patients.&quot;&lt;br /&gt;
hypo_b &amp;lt;- &quot;DeePressurize has no effect on blood pressure in patients.&quot;&lt;br /&gt;
null_hypo_1 &amp;lt;- &quot;hypo_b&quot;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# experiment 2&lt;br /&gt;
hypo_c &amp;lt;- &quot;The new profile layout has no effect on number of matches with other users.&quot;&lt;br /&gt;
hypo_d &amp;lt;- &quot;The new profile layout results in more matches with other users than the original layout.&quot;&lt;br /&gt;
null_hypo_2 &amp;lt;- &quot;hypo_c&quot;&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/6710256794850535785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6710256794850535785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/6710256794850535785'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r_7.html' title='Codecademy Hypothesis Testing With R Hypothesis Formulation 4/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-8701678672531435395</id><published>2019-09-07T22:07:00.002-07:00</published><updated>2019-09-07T22:07:41.644-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Hypothesis Testing With R Sample Mean and Population Mean - I 2/14</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Hypothesis Testing in R&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# generate random population&lt;br /&gt;
population &amp;lt;- rnorm(300, mean=65, sd=3.5)&lt;br /&gt;
&lt;br /&gt;
# calculate population mean here:&lt;br /&gt;
population_mean &amp;lt;- mean(population)&lt;br /&gt;
population_mean&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# generate sample 1&lt;br /&gt;
sample_1 &amp;lt;- sample(population, size=30)&lt;br /&gt;
sample_1&lt;br /&gt;
&lt;br /&gt;
# calculate sample 1 mean&lt;br /&gt;
sample_1_mean &amp;lt;- mean(sample_1)&lt;br /&gt;
sample_1_mean&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# generate samples 2,3,4 and 5&lt;br /&gt;
sample_2 &amp;lt;- sample(population, size=30)&lt;br /&gt;
sample_3 &amp;lt;- sample(population, size=30)&lt;br /&gt;
sample_4 &amp;lt;- sample(population, size=30)&lt;br /&gt;
sample_5 &amp;lt;- sample(population, size=30)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate sample means here:&lt;br /&gt;
sample_2_mean &amp;lt;- mean(sample_2)&lt;br /&gt;
sample_2_mean&lt;br /&gt;
sample_3_mean &amp;lt;- mean(sample_3)&lt;br /&gt;
sample_3_mean&lt;br /&gt;
sample_4_mean &amp;lt;- mean(sample_4)&lt;br /&gt;
sample_4_mean&lt;br /&gt;
sample_5_mean &amp;lt;- mean(sample_5)&lt;br /&gt;
sample_5_mean&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/8701678672531435395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/8701678672531435395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/8701678672531435395'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-hypothesis-testing-with-r.html' title='Codecademy Hypothesis Testing With R Sample Mean and Population Mean - I 2/14'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-443613180849623935</id><published>2019-09-07T14:05:00.000-07:00</published><updated>2019-09-07T14:05:00.346-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Interquartile Range IQR in R 3/4</title><content type='html'>Codecademy Interquartile Range IQR in R 3/4&lt;br /&gt;
#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Interquartile Range&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# load song data&lt;br /&gt;
load(&quot;songs.Rda&quot;)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# create the variable interquartile_range here&lt;br /&gt;
interquartile_range = IQR(songs)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# ignore the code below here:&lt;br /&gt;
&lt;br /&gt;
tryCatch(print(paste(&quot;The IQR of the dataset is&quot;,interquartile_range)), error=function(e) {print(&quot;You haven&#39;t defined interquartile_range yet&quot;)})&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/443613180849623935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-interquartile-range-iqr-in-r.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/443613180849623935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/443613180849623935'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-interquartile-range-iqr-in-r.html' title='Codecademy Interquartile Range IQR in R 3/4'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-2939058439151448878</id><published>2019-09-07T13:58:00.002-07:00</published><updated>2019-09-07T13:58:34.262-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Interquartile Range Quartiles 2/4</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Interquartile Range&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# load song data&lt;br /&gt;
load(&quot;songs.Rda&quot;)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# find the first quartile&lt;br /&gt;
q1 &amp;lt;- quantile(songs,0.25)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate the third quartile here:&lt;br /&gt;
q3 &amp;lt;- quantile(songs,0.75)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# calculate the interquartile range here:&lt;br /&gt;
interquartile_range &amp;lt;- q3 - q1&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# ignore the code below here:&lt;br /&gt;
&lt;br /&gt;
tryCatch(print(paste(&quot;The first quartile of the dataset is&quot;,q1)), error=function(e) {print(&quot;You haven&#39;t defined q1 yet&quot;)})&lt;br /&gt;
&lt;br /&gt;
tryCatch(print(paste(&quot;The third quartile of the dataset is&quot;,q3)), error=function(e) {print(&quot;You haven&#39;t defined q3 yet&quot;)})&lt;br /&gt;
&lt;br /&gt;
tryCatch(print(paste(&quot;The IQR of the dataset is&quot;,interquartile_range)), error=function(e) {print(&quot;You haven&#39;t defined interquartile_range yet&quot;)})&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/2939058439151448878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-interquartile-range.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/2939058439151448878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/2939058439151448878'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-interquartile-range.html' title='Codecademy Interquartile Range Quartiles 2/4'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-3927286338136756928</id><published>2019-09-07T13:55:00.000-07:00</published><updated>2019-09-07T13:55:22.396-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Interquartile Range Range Review 1/4</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Interquartile Range&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r message=FALSE, warning=FALSE}&lt;br /&gt;
# load libraries&lt;br /&gt;
library(ggplot2)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# load song data&lt;br /&gt;
load(&quot;songs.Rda&quot;)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# find maximum and minimum song lengths&lt;br /&gt;
maximum &amp;lt;- max(songs)&lt;br /&gt;
minimum &amp;lt;- min(songs)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# create variable song_range here:&lt;br /&gt;
song_range &amp;lt;- maximum - minimum&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r message=FALSE, echo=FALSE}&lt;br /&gt;
# plot histogram&lt;br /&gt;
hist &amp;lt;- qplot(songs,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; geom=&quot;histogram&quot;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; main = &#39;Histogram of Song Lengths&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xlab = &#39;Song Length (Seconds)&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ylab = &#39;Count&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fill=I(&quot;blue&quot;),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; col=I(&quot;red&quot;),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alpha=I(.2))&lt;br /&gt;
hist&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# ignore the code below here:&lt;br /&gt;
&lt;br /&gt;
tryCatch(print(paste(&quot;The range of the dataset is&quot;,song_range)), error=function(e) {print(&quot;You haven&#39;t defined the variable song_range yet&quot;)})&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/3927286338136756928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-interquartile-range-range.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/3927286338136756928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/3927286338136756928'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-interquartile-range-range.html' title='Codecademy Interquartile Range Range Review 1/4'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-1169447136295093031</id><published>2019-09-06T12:36:00.000-07:00</published><updated>2019-09-06T12:36:03.718-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Quantiles Common Quantiles 4/5</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Quantiles&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# load song data&lt;br /&gt;
load(&quot;songs.Rda&quot;)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# define percentile and answer here:&lt;br /&gt;
percentile &amp;lt;- quantile(songs,0.32)&lt;br /&gt;
answer &amp;lt;- &quot;below&quot;&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# ignore the code below here:&lt;br /&gt;
&lt;br /&gt;
tryCatch(print(paste(&quot;Your percentile is&quot;,percentile)), error=function(e) {print(&quot;You haven&#39;t defined percentile&quot;)})&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/1169447136295093031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-quantiles-common-quantiles-45.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/1169447136295093031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/1169447136295093031'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-quantiles-common-quantiles-45.html' title='Codecademy Quantiles Common Quantiles 4/5'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6054539933273498689.post-1874958455786713294</id><published>2019-09-06T12:32:00.002-07:00</published><updated>2019-09-06T12:32:55.723-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codecademy"/><category scheme="http://www.blogger.com/atom/ns#" term="Learn R"/><title type='text'>Codecademy Quantiles Many Quantiles 3/5</title><content type='html'>#Sample Solution&lt;br /&gt;
---&lt;br /&gt;
title: &quot;Quantiles&quot;&lt;br /&gt;
output: html_notebook&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# load song data&lt;br /&gt;
load(&quot;songs.Rda&quot;)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# define quartiles and deciles here:&lt;br /&gt;
quartiles &amp;lt;- quantile(songs, c(0.25, 0.5, 0.75))&lt;br /&gt;
decile_array &amp;lt;- c()&lt;br /&gt;
for(k in 1:9){&lt;br /&gt;
&amp;nbsp; decile_array[k]&amp;lt;-k/10&lt;br /&gt;
}&lt;br /&gt;
decile_array&lt;br /&gt;
deciles &amp;lt;- quantile(songs, decile_array)&lt;br /&gt;
deciles&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# define tenth here:&lt;br /&gt;
tenth &amp;lt;- 3&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```{r}&lt;br /&gt;
# ignore the code below here:&lt;br /&gt;
&lt;br /&gt;
tryCatch(print(paste(c(&quot;The quartiles are&quot;,quartiles,collapse=&quot; &quot;))), error=function(e) {print(&quot;You haven&#39;t defined quartiles.&quot;)})&lt;br /&gt;
&lt;br /&gt;
tryCatch(print(paste(c(&quot;The deciles are&quot;,deciles,collapse=&quot; &quot;))), error=function(e) {print(&quot;You haven&#39;t defined deciles.&quot;)})&lt;br /&gt;
```</content><link rel='replies' type='application/atom+xml' href='http://questionsans.blogspot.com/feeds/1874958455786713294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-quantiles-many-quantiles-35.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/1874958455786713294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6054539933273498689/posts/default/1874958455786713294'/><link rel='alternate' type='text/html' href='http://questionsans.blogspot.com/2019/09/codecademy-quantiles-many-quantiles-35.html' title='Codecademy Quantiles Many Quantiles 3/5'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>