Lecture 10: creating animations in R

Slides:



Advertisements
Similar presentations
EGR Ch. 8 Part 1 and 2 Spring 2009 Slide 1 Fundamental Sampling Distributions  Introduction to random sampling and statistical inference  Populations.
Advertisements

Ka-fu Wong © 2003 Chap 8- 1 Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
ELEC 303 – Random Signals Lecture 18 – Statistics, Confidence Intervals Dr. Farinaz Koushanfar ECE Dept., Rice University Nov 10, 2009.
Slide 9- 1 Copyright © 2010 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Business Statistics First Edition.
Section 5.7 Suppose X 1, X 2, …, X n is a random sample from a Bernoulli distribution with success probability p. Then Y = X 1 + X 2 + … + X n has a distribution.
Copyright © 2008 Pearson Education, Inc. Chapter 11 Probability and Calculus Copyright © 2008 Pearson Education, Inc.
Statistics Lecture 20. Last Day…completed 5.1 Today Parts of Section 5.3 and 5.4.
Continuous Random Variables Chap. 12. COMP 5340/6340 Continuous Random Variables2 Preamble Continuous probability distribution are not related to specific.
Standard Normal Distribution
Lesson #17 Sampling Distributions. The mean of a sampling distribution is called the expected value of the statistic. The standard deviation of a sampling.
The moment generating function of random variable X is given by Moment generating function.
Tefko Saracevic, Rutgers University 1 How to print slides from a PowerPoint presentation 1. You can print a presentation while you are online OR you can.
Section 5.6 Important Theorem in the Text: The Central Limit TheoremTheorem (a) Let X 1, X 2, …, X n be a random sample from a U(–2, 3) distribution.
Chapter 11: Random Sampling and Sampling Distributions
The Central Limit Theorem For simple random samples from any population with finite mean and variance, as n becomes increasingly large, the sampling distribution.
Normal and Sampling Distributions A normal distribution is uniquely determined by its mean, , and variance,  2 The random variable Z = (X-  /  is.
Continuous Probability Distribution  A continuous random variables (RV) has infinitely many possible outcomes  Probability is conveyed for a range of.
Standard error of estimate & Confidence interval.
Sampling Distributions  A statistic is random in value … it changes from sample to sample.  The probability distribution of a statistic is called a sampling.
MTH 161: Introduction To Statistics
QBM117 Business Statistics Probability and Probability Distributions Continuous Probability Distributions 1.
Sampling and sampling distibutions. Sampling from a finite and an infinite population Simple random sample (finite population) – Population size N, sample.
Section 9.3 Distribution of Sample Means AP Statistics February 5, 2010 Berkley High School.
Sampling Distribution of the Sample Mean. Example a Let X denote the lifetime of a battery Suppose the distribution of battery battery lifetimes has 
Chapter 21 Basic Statistics.
Sampling and Sample Size Part 1 Cally Ardington. Course Overview 1.What is Evaluation? 2.Outcomes, Impact, and Indicators 3.Why Randomise? 4.How to Randomise?
Financial Mathematics. In finance, a hedge is an investment that is taken out specifically to reduce or cancel out the risk in another investment.financerisk.
Distribution of the Sample Means
Statistics Workshop Tutorial 5 Sampling Distribution The Central Limit Theorem.
Chapter 7 Sampling and Sampling Distributions ©. Simple Random Sample simple random sample Suppose that we want to select a sample of n objects from a.
Biostatistics Unit 5 – Samples. Sampling distributions Sampling distributions are important in the understanding of statistical inference. Probability.
Chapter 7: Introduction to Sampling Distributions Section 2: The Central Limit Theorem.
Section 6-5 The Central Limit Theorem. THE CENTRAL LIMIT THEOREM Given: 1.The random variable x has a distribution (which may or may not be normal) with.
Simulation Example: Generate a distribution for the random variate: What is the approximate probability that you will draw X ≤ 1.5?
Sampling Error SAMPLING ERROR-SINGLE MEAN The difference between a value (a statistic) computed from a sample and the corresponding value (a parameter)
Random Sampling Approximations of E(X), p.m.f, and p.d.f.
Chapter 5 Joint Probability Distributions and Random Samples  Jointly Distributed Random Variables.2 - Expected Values, Covariance, and Correlation.3.
Topic 6: The distribution of the sample mean and linear combinations of random variables CEE 11 Spring 2002 Dr. Amelia Regan These notes draw liberally.
1 Sampling distributions The probability distribution of a statistic is called a sampling distribution. : the sampling distribution of the mean.
INTRODUCTORY STATISTICS Chapter 7 THE CENTRAL LIMIT THEOREM PowerPoint Image Slideshow.
Normal Normal Distributions  Family of distributions, all with the same general shape.  Symmetric about the mean  The y-coordinate (height) specified.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Central Limit Theorem Let X 1, X 2, …, X n be n independent, identically distributed random variables with mean  and standard deviation . For large n:
Example Random samples of size n =2 are drawn from a finite population that consists of the numbers 2, 4, 6 and 8 without replacement. a-) Calculate the.
FUTURE SELF-PROJECT Beginning Social Communication Middle School: Lesson Five.
Scientific method The process by which scientists, collectively and over time, endeavor to construct an accurate (that is, reliable, consistent and non-arbitrary)representation.
Ch5.4 Central Limit Theorem
Chapter 5 Confidence Interval
Keller: Stats for Mgmt & Econ, 7th Ed Sampling Distributions
Sample Mean Distributions
Project Management Simulation, U-Distribution
Handout THQ #5 at end of class.
STAT 5372: Experimental Statistics
Review of Hypothesis Testing
Ensuring Success through Assessment – Involve Students
Lecture Slides Elementary Statistics Twelfth Edition
Lecture Slides Elementary Statistics Twelfth Edition
Two-way analysis of variance (ANOVA)
Project Planning Simulation
Sampling Distributions
CHAPTER 15 SUMMARY Chapter Specifics
9.3 Sample Means.
Sampling Distribution of the Mean
Section Means and Variances of Random Variables
Tour of NCL Website Modified by R. Grotjahn
Central Limit Theorem: Sampling Distribution.
Sampling Distribution of a Sample Proportion
Sample Means Section 9.3.
Review of Hypothesis Testing
Scientific method The process by which scientists, collectively and over time, endeavor to construct an accurate (that is, reliable, consistent and non-arbitrary)representation.
Presentation transcript:

Lecture 10: creating animations in R Trevor A. Branch tbranch@uw.edu Beautiful graphics in R, FISH554 SAFS, University of Washington

Note This lecture: Brief overview of animation peer review of figures class evaluations animation Brief overview of animation Therefore extra R code examples, handout text, and PowerPoint slides for self-study

http://hedonometer.org/index.html

http://hedonometer.org/index.html?from=2008-09-10&to=2015-03-06

Hans Rosling 200 countries and 200 years in four minutes http://www.youtube.com/watch?v=jbkSRLYSojo

Animation Takes longer to understand data Not necessarily a better way to convey data But more engaging More multi-dimensional Fisher D (2010) pp 329-352 in Data visualization: looking at data through the eyes of experts

Central limit theorem These are animated gifs created in R “ the mean of a sufficiently large number of independent random variables, each with finite mean and variance, will be approximately normally distributed” 4000 draws of 3 numbers from U[0,100] distribution of means plotted 4000 draws of 10 numbers from U[0,100] distribution of means plotted These are animated gifs created in R

Observed fishery catch patterns—summer Scientific fishery observers monitor in-season catch to ensure catch<TAC 2008 2010 Observed fishery catch patterns—summer Slide courtesy of Jim Ianelli. Made using ImageMagick and gifsicle from a command prompt (type “cmd” in search) with these commands: convert -density 92 -delay 100 -rotate 90 @roefiles.dat roe_an.gif where rowfiles.dat just an ascii file listing postscript images to be put into roe_an.gif. The gifsicle command (compresses) was: gifsicle --colors 256 -b -O2 roe_an.gif 2011 2009 Created by Jim Ianelli, NOAA

Created by Cole Monnahan, QERM Data: International Whaling Commission

Rosling postscript http://www.gapminder.org/videos/hans-rosling-ted-talk-2007-seemingly-impossible-is-possible/ 16:50

Exercise 1: 1000 means from a Poisson(lambda=1) distribution means of 1,2,3,…,100 samples