STAT Week 7. Advanced R Graphics and ggplot2. Advanced R Graphics. ggplot2. February 22, 2018

Size: px
Start display at page:

Download "STAT Week 7. Advanced R Graphics and ggplot2. Advanced R Graphics. ggplot2. February 22, 2018"

Transcription

1 and and February 22, 2018

2 and

3 NCAA Basketball data and We will use data from the NCAA basketball tournament from url <- ' hoops <- read.csv(url,stringsasfactors = FALSE) hoops.2011 <- filter(hoops, Season >= 2011) head(hoops.2011) ## Season Daynum Wteam Wscore Lteam Lscore Wloc Numot Wfgm Wfga Wfgm3 Wfga3 ## N ## N ## N ## N ## N ## N ## Wftm Wfta Wor Wdr Wast Wto Wstl Wblk Wpf Lfgm Lfga Lfgm3 Lfga3 Lftm Lfta ## ## ## ## ## ## ## Lor Ldr Last Lto Lstl Lblk Lpf ## ## ## ## ## ##

4 Compute annual averages and points <- hoops.2011 %>% group_by(season) %>% summarise(win.points = mean(wscore), Lose.Points = mean(lscore), Win.3Pt = mean(wfgm3), Lose.3pt = mean(lfgm3)) head(points) ## # A tibble: 6 x 5 ## Season Win.Points Lose.Points Win.3Pt Lose.3pt ## <int> <dbl> <dbl> <dbl> <dbl> ## ## ## ## ## ##

5 Plot types and Average Points Scored by Losing Teams in NCAA Tournament Average Points Scored Season

6 Plot types and plot(points$lose.points~points$season,ylim=c(0,max(points$lose.points)), ylab='average Points Scored', xlab='season', main='average Points Scored by Losing Teams \n in NCAA Tournament', cex.lab=.8, cex.main =

7 Plot types and Average Points Scored by Losing Teams in NCAA Tournament Average Points Scored Season

8 Plot types and plot(points$lose.points~points$season,ylim=c(0,max(points$lose.points)), ylab='average Points Scored', xlab='season', type='h',lwd=3, main='average Points Scored by Losing Teams \n in NCAA Tournament',cex.lab=.8, cex.main =.

9 Lines and Average Points Scored by Losing Teams in NCAA Tournament Average Points Scored Season

10 Lines and plot(points$lose.points~points$season,ylim=c(0,max(points$lose.points)), ylab='average Points Scored', xlab='season', type='n', main='average Points Scored by Losing Teams \n in NCAA Tournament',cex.lab=.8, cex.main =. lines(points$lose.points~points$season,col='red',lwd=1) lines(points$win.points~points$season,col='blue',lwd=1,lty=2)

11 Lines and Legends and Average Points Scored in NCAA Tournament Average Points Scored Winning Team Losing Team Season

12 Lines and Legends and plot(points$lose.points~points$season,ylim=c(0,max(points$win.points)), ylab='average Points Scored', xlab='season', type='n', main='average Points Scored in NCAA Tournament',cex.lab=.8, cex.main =.8) lines(points$lose.points~points$season,col='red',lwd=1) lines(points$win.points~points$season,col='blue',lwd=1,lty=2) legend('bottomright',legend=c('winning Team','Losing Team'),col=c('blue','red'), lwd=c(1,1), lty=c(2,1), cex =.7)

13 Points and Average Points Scored in NCAA Tournament Average Points Scored Average Winning Team Average Losing Team Individual Winning Team Season

14 Points and plot(points$lose.points~points$season,ylim=c(0,max(points$win.points)), ylab='average Points Scored', xlab='season', type='l', lwd=1,col='red', main='average Points Scored in NCAA Tournament',cex.lab=.8, cex.main =.8) lines(points$win.points~points$season,col='blue',lwd=1,lty=2) points(hoops.2011$wscore~hoops.2011$season,pch=16,col=rgb(0,0,.5,.1)) legend('bottomright',legend=c('average Winning Team','Average Losing Team', 'Individual Winning lwd=c(1,1,na), lty=c(2,1,na), pch=c(na,na,16), cex=.7)

15 Annotation and Average Points Scored in NCAA Tournament Average Points Scored Shot Clock Shortened Average Winning Team Average Losing Team Individual Winning Team Season

16 Annotation and plot(points$lose.points~points$season,ylim=c(0,max(points$win.points)), ylab='average Points Scored', xlab='season', type='l', lwd=1,col='red', main='average Points Scored in NCAA Tournament', cex.lab=.8, cex.main =.8) lines(points$win.points~points$season,col='blue',lwd=1,lty=2) points(hoops.2011$wscore~hoops.2011$season,pch=16,col=rgb(0,0,.5,.1)) text(2015,40,'shot Clock Shortened', cex=.6) arrows(x0=2015, y0=42, x1=2016, y1=70, length=0.1, lwd=2) legend('bottomright',legend=c('average Winning Team','Average Losing Team', 'Individual Winning lwd=c(1,1,na), lty=c(2,1,na), pch=c(na,na,16), cex=.6)

17 Axes and Average Points Scored in NCAA Tournament Average Points Scored Average Winning Team Average Losing Team Season

18 Axes and plot(points$lose.points~points$season,ylim=c(0,max(points$win.points)), axes=f, ylab='average Points Scored', xlab='season', type='b',pch=16, lwd=1,col='red', main='average Points Scored in NCAA Tournament', cex.main=.75, cex.lab=.75) lines(points$win.points~points$season,col='blue',lwd=1,lty=2,type='b',pch=17) legend('bottomright',legend=c('average Winning Team','Average Losing Team'),col=c('blue','red'), lwd=1, lty=c(2,1),pch=c(17,16), cex=.7)

19 Axes and Average Points Scored in NCAA Tournament Average Points Scored Average Winning Team Average Losing Team Season

20 Axes and plot(points$lose.points~points$season,ylim=c(0,max(points$win.points)), axes=f, ylab='average Points Scored', xlab='season', type='b',pch=16, lwd=1,col='red', main='average Points Scored in NCAA Tournament', cex.main=.75, cex.lab=.75) lines(points$win.points~points$season,col='blue',lwd=3,lty=2,type='b',pch=17) legend('bottomleft',legend=c('average Winning Team','Average Losing Team'),col=c('blue','red'), lwd=1, lty=c(2,1),pch=c(17,16), cex=.7) axis(4) axis(1, at = 2011:2016,labels=c('10-11','11-12','12-13','13-14','14-15','15-16'))

21 Axes and Average Points Scored in NCAA Tournament Average Points Scored Average Winning Team Average Losing Team Season

22 Axes and plot(points$lose.points~points$season,ylim=c(0,max(points$win.points)), axes=f, ylab='average Points Scored', xlab='season', type='b',pch=16, lwd=1,col='red', main='average Points Scored in NCAA Tournament', cex.main=.75, cex.lab=.75) lines(points$win.points~points$season,col='blue',lwd=3,lty=2,type='b',pch=17) legend('bottomleft',legend=c('average Winning Team','Average Losing Team'),col=c('blue','red'), lwd=1, lty=c(2,1),pch=c(17,16), cex=.7) axis(4) axis(1, at = 2011:2016,labels=c('10-11','11-12','12-13','13-14','14-15','15-16')) box()

23 Superimposed Plots and plot(density(hoops.2011$wscore),xlab='points',ylab='', main='histogram and superimposed density hist(hoops.2011$wscore,add=t,probability = T) histogram and superimposed density curve for points scored by winning team points

24 Expression and plot(density(hoops.2011$wscore),ylab=expression(beta[2]),xlab='', main='examples with Expression',axes=F, type='n') box() text(70,.023, expression(sum(theta[i]^2, i=1, n)),cex=2) Examples with Expression 1 β 2 n θi 2

25 R-Markdown Captions and Captions in R Markdown caption in R header Figure 1: Write caption here

26 Exercise: Advanced Plotting and Use the Seattle Housing Data Set datasets/seattlehousing.csv to create an interesting graphic, include informative titles, labels, and add an annotation.

27 Solution: Advanced Plotting and Houses Sold in Seattle Most homes sell for less than one million Sales Price (million $)

28 Solution: Advanced Plotting and Seattle.in <- read.csv( ' stringsasfactors = F) hist(seattle.in$price,prob=t,breaks="fd", ylab='', col='forestgreen', xlab='sales Price (million $)', main='houses Sold in Seattle', axes=f) axis(1, at = c(0,500000, , , , , ), labels =c('0','.5','1','2.5','4','5.5','7')) arrows(x0= , y0=1.5e-6, x1= , y1=.5e-6, length=0.1, lwd=2) text( ,1.8e-6,'most homes sell for \n less than one million',cex=.8)

29 and

30 Overview and Why? Advantages of consistent underlying grammar of graphics (Wilkinson, 2005) plot specification at a high level of abstraction very flexible theme system for polishing plot appearance

31 Grammar of and The basic idea: independently specify plot building blocks and combine them to create just about any kind of graphical display you want. Building blocks of a graph include: data aesthetic mapping geometric object statistical transformations scales coordinate system position adjustments faceting

32 VS Base and Compared to base graphics, is more verbose for simple / canned graphics is less verbose for complex / custom graphics does not have methods (data should always be in a data.frame) uses a different system for adding plot elements

33 Aesthetic Mapping and Aesthetics are things that you can see. Examples include: position (i.e., on the x and y axes) color ( outside color) fill ( inside color) shape (of points) linetype size Aesthetic mappings are set with the aes() function.

34 Geometic Objects (geom) and Geometric objects are the actual marks we put on a plot. Examples include: points (geom_point) lines (geom_line) boxplot (geom_boxplot) A plot must have at least one geom; there is no upper limit. You can add a geom to a plot using the + operator

35 Graphical Primitives/ ggplot and graph.a <- ggplot(data = hoops.2011, aes(lfgm,wfgm)) graph.a Wfgm Lfgm

36 Adding Geoms: geom_point() and graph.a + geom_point() Wfgm Lfgm

37 Adding Geoms: geom_smooth() and graph.a + geom_point() + geom_smooth(method = 'loess') Wfgm Lfgm

38 Adding Geoms: geom_rug() and graph.a + geom_point() + geom_smooth(method = 'loess') + geom_rug() Wfgm Lfgm

39 Adding Geoms: geom_density2d() and graph.a + geom_point() + geom_smooth(method = 'loess') + geom_rug() + geom_density2d() Wfgm Lfgm

40 Adding Geoms: geom_jitter() and graph.a + geom_rug() + geom_density2d() + geom_jitter() Wfgm Lfgm

41 Adding Geoms: labs() and graph.a + geom_rug() + geom_density2d() + geom_jitter() + labs(x='losing Team Field Goals Made', y = 'Winning Team Field Goals Made') Winning Team Field Goals Made Losing Team Field Goals Made

42 Scales: xlim() and ylim() and graph.a + geom_rug() + geom_density2d() + geom_jitter() + labs(x='losing Team Field Goals Made', y = 'Winning Team Field Goals Made') + xlim(c(0,max(hoops.2011$wfgm))) + ylim(c(0,max(hoops.2011$wfgm))) Winning Team Field Goals Made Losing Team Field Goals Made

43 Themes and graph.a + geom_point() + theme_bw() + labs(x='losing Team Field Goals Made', y = 'Winning Team F Winning Team Field Goals Made Losing Team Field Goals Made

44 More about aes and graph.a + geom_jitter(col = 'firebrick4') Wfgm Lfgm

45 More about aes and graph.a + geom_jitter(aes(col = as.factor(season)))

46 More about aes and graph.a + geom_jitter(aes(col = as.factor(season))) Wfgm as.factor(season) Lfgm

47 More about aes and graph.a + geom_jitter(aes(col = as.factor(season)), size=3,alpha=.4) Wfgm 40 as.factor(season) Lfgm

48 More about aes and graph.a + geom_jitter(aes(shape = as.factor(season),col=wscore), size=3,alpha=.4) Wfgm Lfgm Wscore

49 Faceting and graph.a + facet_wrap(~season)

50 Faceting and graph.a + facet_wrap(~season) + geom_jitter(alpha=.5, aes(color=wfgm3)) Wfgm Lfgm Wfgm

51 Maps and library(maps) usa <- map_data("usa") usa.map <- ggplot() + geom_polygon(data = usa, aes(x=long, y = lat, group = group)) + coord_fixed(1.3) usa.map lat long

52 Maps and labs <- data.frame(long = c( , , , , ), stringsasfactors = FALSE, lat = c( , , , , ), names = c("bozeman, MT", "Golden, CO", "Blacksburg, VA",'Decorah, IA', "Davis, CA") ) usa.map + geom_point(data = labs, aes(x = long, y = lat), color = "yellow", size = 4) + annotate(geom='text', y=44,x=-111,label='bozeman,mt',col='white') Bozeman,MT lat long

53 More Maps: ggmap and library(ggmap) ## Google Maps API Terms of Service: ## Please cite ggmap if you use it: see citation("ggmap") for details. mymap <- get_map(location = c(lon = ,lat = ), source = "google", maptype = "terrain", crop = FALSE, zoom = 7) ## Source : # plot map yellowstone.map <- ggmap(mymap)

54 More Maps: ggmap STAT 408 and yellowstone.map 46 lat lon 108

55 Exercise: and Now use to create an interesting graph using the Seattle Housing data set.

56 Solution: and Seattle Housing Sales: Price vs. Square Footage Living Space zipcode Sales Price (million dollars) Housing price depends on zipcode Living Space (square foot)

57 Solution: and library() Seattle.in$zipcode <- as.factor(seattle.in$zipcode) graph.a <- ggplot(data = Seattle.in, aes(sqft_living,price)) graph.a + geom_jitter(aes(col = zipcode)) + theme(plot.title = element_text(size=20))+ geom_smooth(method='loess')+ ggtitle('seattle Housing Sales: Price vs. Square Footage Living Space') + ylab('sales Price (million dollars)') + xlab('living Space (square foot)')+ scale_y_continuous(breaks=c(seq(0, ,by= )), labels=as.character(0:7)) + annotate('text',3500, , label = 'Housing price depends on zipcode') + annotate("rect", xmin = 0, xmax = 7250, ymin = , ymax = , alpha =.6) + geom_segment(aes(x=3500, xend=3500, y= , yend= ), arrow = arrow(length = unit(0.5, "cm")))

58 Solution: map STAT 408 and ## Source : ## Source : Location of Housing Sales in Seattle, WA 48.5 price 48.0 lat 2e e+06 6e lon 121

59 Solution: map and mymap <- get_map(location = 'Seattle', source = "google", maptype = "terrain", crop = FALSE, zoom = 8) Seattle.map <- ggmap(mymap) Seattle.map + geom_point(data=seattle.in, aes(x=long, y=lat, size=price), alpha=.25) + labs(title = 'Location of Housing Sales in Seattle, WA') + theme(plot.title = element_text(si

El Cerrito Sporting Goods Ira Sharenow January 7, 2019

El Cerrito Sporting Goods Ira Sharenow January 7, 2019 El Cerrito Sporting Goods Ira Sharenow January 7, 2019 R Markdown The goal of the analysis is to determine if any of the salespersons are performing exceptionally well or exceptionally poorly. In particular,

More information

A Shallow Dive into Deep Sea Data Sarah Solie and Arielle Fogel 7/18/2018

A Shallow Dive into Deep Sea Data Sarah Solie and Arielle Fogel 7/18/2018 A Shallow Dive into Deep Sea Data Sarah Solie and Arielle Fogel 7/18/2018 Introduction The datasets This data expedition will utilize the World Ocean Atlas (WOA) database to explore two deep sea physical

More information

Predicting the NCAA Men s Basketball Tournament with Machine Learning

Predicting the NCAA Men s Basketball Tournament with Machine Learning Predicting the NCAA Men s Basketball Tournament with Machine Learning Andrew Levandoski and Jonathan Lobo CS 2750: Machine Learning Dr. Kovashka 25 April 2017 Abstract As the popularity of the NCAA Men

More information

an introduction to R for epidemiologists

an introduction to R for epidemiologists an introduction to R for epidemiologists graphics Charles DiMaggio, PhD, MPH, PA-C New York University Department of Surgery and Population Health NYU-Bellevue Division of Trauma and Surgical Critical

More information

Describing a journey made by an object is very boring if you just use words. As with much of science, graphs are more revealing.

Describing a journey made by an object is very boring if you just use words. As with much of science, graphs are more revealing. Distance vs. Time Describing a journey made by an object is very boring if you just use words. As with much of science, graphs are more revealing. Plotting distance against time can tell you a lot about

More information

Sample Final Exam MAT 128/SOC 251, Spring 2018

Sample Final Exam MAT 128/SOC 251, Spring 2018 Sample Final Exam MAT 128/SOC 251, Spring 2018 Name: Each question is worth 10 points. You are allowed one 8 1/2 x 11 sheet of paper with hand-written notes on both sides. 1. The CSV file citieshistpop.csv

More information

Statistical Analyses on Roger Federer s Performances in 2013 and 2014 James Kong,

Statistical Analyses on Roger Federer s Performances in 2013 and 2014 James Kong, Statistical Analyses on Roger Federer s Performances in 2013 and 2014 James Kong, kong.james@berkeley.edu Introduction Tennis has become a global sport and I am a big fan of tennis. Since I played college

More information

Getting Ready. How far do you think you could ride in a day? How do you think the speed of your ride would change during the course of the day?

Getting Ready. How far do you think you could ride in a day? How do you think the speed of your ride would change during the course of the day? Transparency 1.1A Getting Ready How far do you think you could ride in a day? How do you think the speed of your ride would change during the course of the day? What conditions would affect the speed and

More information

BASEBALL SALARIES: DO YOU GET WHAT YOU PAY FOR? Comparing two or more distributions by parallel box plots

BASEBALL SALARIES: DO YOU GET WHAT YOU PAY FOR? Comparing two or more distributions by parallel box plots Name BASEBALL SALARIES: DO YOU GET WHAT YOU PAY FOR? Comparing two or more distributions by parallel box plots The American League East had three excellent teams in the years 2008 2010. Here are the combined

More information

Reproducible Research: Peer Assessment 1

Reproducible Research: Peer Assessment 1 Introduction Reproducible Research: Peer Assessment 1 It is now possible to collect a large amount of data about personal movement using activity monitoring devices such as a Fitbit, Nike Fuelband, or

More information

CONCEPTUAL PHYSICS LAB

CONCEPTUAL PHYSICS LAB PURPOSE The purpose of this lab is to determine the density of an unknown solid by direct calculation and by graphing mass vs. volume for several samples of the solid. INTRODUCTION Which is heavier, a

More information

Model Selection Erwan Le Pennec Fall 2015

Model Selection Erwan Le Pennec Fall 2015 Model Selection Erwan Le Pennec Fall 2015 library("dplyr") library("ggplot2") library("ggfortify") library("reshape2") Model Selection We will now use another classical dataset birthwt which corresponds

More information

Diameter in cm. Bubble Number. Bubble Number Diameter in cm

Diameter in cm. Bubble Number. Bubble Number Diameter in cm Bubble lab Data Sheet Blow bubbles and measure the diameter to the nearest whole centimeter. Record in the tables below. Try to blow different sized bubbles. Name: Bubble Number Diameter in cm Bubble Number

More information

Activity: the race to beat Ruth

Activity: the race to beat Ruth Activity: the race to beat Ruth Background In baseball, a pitcher from the fielding team throws a ball at a batter from the batting team, who attempts to hit the ball with a stick. If she hits the ball,

More information

Box-and-Whisker Plots

Box-and-Whisker Plots Name: Date: Page 1 of 7 Box-and-Whisker Plots A box-and-whisker plot is a convenient way to display the five-number summary. To draw a box-and-whisker plot: a. Mark the minimum, maximum, median, Q 1, and

More information

Lab 13: Hydrostatic Force Dam It

Lab 13: Hydrostatic Force Dam It Activity Overview: Students will use pressure probes to model the hydrostatic force on a dam and calculate the total force exerted on it. Materials TI-Nspire CAS handheld Vernier Gas Pressure Sensor 1.5

More information

Year 10 Term 2 Homework

Year 10 Term 2 Homework Yimin Math Centre Year 10 Term 2 Homework Student Name: Grade: Date: Score: Table of contents 6 Year 10 Term 2 Week 6 Homework 1 6.1 Data analysis and evaluation............................... 1 6.1.1

More information

Quadratic Word Problems

Quadratic Word Problems Quadratic Word Problems Normally, the graph is a maximum ( x 2 /opens down) because of the real life scenarios that create parabolas. The equation of the quadratic will be given. We will only be using

More information

Objectives. Materials

Objectives. Materials . Objectives Activity 1 To investigate the relationship between temperature and the number of cricket chirps To find the x value of a function, given the y value To find the y value of a function, given

More information

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 6. Wenbing Zhao. Department of Electrical and Computer Engineering

EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 6. Wenbing Zhao. Department of Electrical and Computer Engineering EEC 686/785 Modeling & Performance Evaluation of Computer Systems Lecture 6 Department of Electrical and Computer Engineering Cleveland State University wenbing@ieee.org Outline 2 Review of lecture 5 The

More information

Outline. Terminology. EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 6. Steps in Capacity Planning and Management

Outline. Terminology. EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Lecture 6. Steps in Capacity Planning and Management EEC 686/785 Modeling & Performance Evaluation of Computer Systems Lecture 6 Department of Electrical and Computer Engineering Cleveland State University wenbing@ieee.org Outline Review of lecture 5 The

More information

Study Guide and Intervention

Study Guide and Intervention Study Guide and Intervention Normal and Skewed Distributions A continuous probability distribution is represented by a curve. Types of Continuous Distributions Normal Positively Skewed Negatively Skewed

More information

Box-and-Whisker Plots

Box-and-Whisker Plots Name: Date: Page 1 of 6 Box-and-Whisker Plots A box-and-whisker plot is a convenient way to display the five-number summary. To draw a box-and-whisker plot: a. Mark the minimum, maximum, median, Q 1, and

More information

Unit 6 Day 2 Notes Central Tendency from a Histogram; Box Plots

Unit 6 Day 2 Notes Central Tendency from a Histogram; Box Plots AFM Unit 6 Day 2 Notes Central Tendency from a Histogram; Box Plots Name Date To find the mean, median and mode from a histogram, you first need to know how many data points were used. Use the frequency

More information

Lab 1. Adiabatic and reversible compression of a gas

Lab 1. Adiabatic and reversible compression of a gas Lab 1. Adiabatic and reversible compression of a gas Introduction The initial and final states of an adiabatic and reversible volume change of an ideal gas can be determined by the First Law of Thermodynamics

More information

Data Science Final Project

Data Science Final Project Data Science Final Project Hunter Johns Introduction At its most basic, basketball features two objectives for each team to work towards: score as many times as possible, and limit the opposing team's

More information

Unit 6, Lesson 1: Organizing Data

Unit 6, Lesson 1: Organizing Data Unit 6, Lesson 1: Organizing Data 1. Here is data on the number of cases of whooping cough from 1939 to 1955. a. Make a new table that orders the data by year. year number of cases 1941 222,202 1950 120,718

More information

(Lab Interface BLM) Acceleration

(Lab Interface BLM) Acceleration Purpose In this activity, you will study the concepts of acceleration and velocity. To carry out this investigation, you will use a motion sensor and a cart on a track (or a ball on a track, if a cart

More information

MTB 02 Intermediate Minitab

MTB 02 Intermediate Minitab MTB 02 Intermediate Minitab This module will cover: Advanced graphing Changing data types Value Order Making similar graphs Zooming worksheet Brushing Multi-graphs: By variables Interactively upgrading

More information

BASKETBALL PREDICTION ANALYSIS OF MARCH MADNESS GAMES CHRIS TSENG YIBO WANG

BASKETBALL PREDICTION ANALYSIS OF MARCH MADNESS GAMES CHRIS TSENG YIBO WANG BASKETBALL PREDICTION ANALYSIS OF MARCH MADNESS GAMES CHRIS TSENG YIBO WANG GOAL OF PROJECT The goal is to predict the winners between college men s basketball teams competing in the 2018 (NCAA) s March

More information

D u. n k MATH ACTIVITIES FOR STUDENTS

D u. n k MATH ACTIVITIES FOR STUDENTS Slaml a m D u n k MATH ACTIVITIES FOR STUDENTS Standards For MATHEMATICS 1. Students develop number sense and use numbers and number relationships in problem-solving situations and communicate the reasoning

More information

Reshaping data in R. Duncan Golicher. December 9, 2008

Reshaping data in R. Duncan Golicher. December 9, 2008 Reshaping data in R Duncan Golicher December 9, 2008 One of the most frustrating and time consuming parts of statistical analysis is shuffling data into a format for analysis. No one enjoys changing data

More information

Solutionbank S1 Edexcel AS and A Level Modular Mathematics

Solutionbank S1 Edexcel AS and A Level Modular Mathematics Page 1 of 1 Exercise A, Question 1 A group of thirty college students was asked how many DVDs they had in their collection. The results are as follows. 12 25 34 17 12 18 29 34 45 6 15 9 25 23 29 22 20

More information

Where are you right now? How fast are you moving? To answer these questions precisely, you

Where are you right now? How fast are you moving? To answer these questions precisely, you 4.1 Position, Speed, and Velocity Where are you right now? How fast are you moving? To answer these questions precisely, you need to use the concepts of position, speed, and velocity. These ideas apply

More information

Math 146 Statistics for the Health Sciences Additional Exercises on Chapter 2

Math 146 Statistics for the Health Sciences Additional Exercises on Chapter 2 Math 146 Statistics for the Health Sciences Additional Exercises on Chapter 2 Student Name: Solve the problem. 1) Scott Tarnowski owns a pet grooming shop. His prices for grooming dogs are based on the

More information

Motion Graphing Packet

Motion Graphing Packet Name: Motion Graphing Packet This packet covers two types of motion graphs Distance vs. Time Graphs Velocity vs. Time Graphs Describing the motion of an object is occasionally hard to do with words. Sometimes

More information

Torrild - WindSIM Case study

Torrild - WindSIM Case study Torrild - WindSIM Case study Note: This study differs from the other case studies in format, while here another model; WindSIM is tested as alternative to the WAsP model. Therefore this case should be

More information

Analyzing Baseball Data with R

Analyzing Baseball Data with R Analyzing Baseball Data with R A Senior Project Presented to The Faculty of the Statistics Department California Polytechnic State University, San Luis Obispo In Partial Fulfillment of the Requirements

More information

IHS AP Statistics Chapter 2 Modeling Distributions of Data MP1

IHS AP Statistics Chapter 2 Modeling Distributions of Data MP1 IHS AP Statistics Chapter 2 Modeling Distributions of Data MP1 Monday Tuesday Wednesday Thursday Friday August 22 A Day 23 B Day 24 A Day 25 B Day 26 A Day Ch1 Exploring Data Class Introduction Getting

More information

POTENTIAL ENERGY BOUNCE BALL LAB

POTENTIAL ENERGY BOUNCE BALL LAB Energy cannot be created or destroyed. Stored energy is called potential energy, and the energy of motion is called kinetic energy. Potential energy changes as the height of an object changes due to gravity;

More information

Math 4. Unit 1: Conic Sections Lesson 1.1: What Is a Conic Section?

Math 4. Unit 1: Conic Sections Lesson 1.1: What Is a Conic Section? Unit 1: Conic Sections Lesson 1.1: What Is a Conic Section? 1.1.1: Study - What is a Conic Section? Duration: 50 min 1.1.2: Quiz - What is a Conic Section? Duration: 25 min / 18 Lesson 1.2: Geometry of

More information

Descriptive Statistics Project Is there a home field advantage in major league baseball?

Descriptive Statistics Project Is there a home field advantage in major league baseball? Descriptive Statistics Project Is there a home field advantage in major league baseball? DUE at the start of class on date posted on website (in the first 5 minutes of class) There may be other due dates

More information

Averages. October 19, Discussion item: When we talk about an average, what exactly do we mean? When are they useful?

Averages. October 19, Discussion item: When we talk about an average, what exactly do we mean? When are they useful? Averages October 19, 2005 Discussion item: When we talk about an average, what exactly do we mean? When are they useful? 1 The Arithmetic Mean When we talk about an average, we can mean different things

More information

Package macleish. January 3, 2018

Package macleish. January 3, 2018 Type Package Title Retrieve Data from MacLeish Field Station Version 0.3.2 Date 2018-01-03 Package macleish January 3, 2018 Download data from the Ada and Archibald MacLeish Field Station in Whately, MA.

More information

Google Earth Introduction Lab

Google Earth Introduction Lab Google Earth Introduction Lab - If your computer has Google Earth installed already, skip to Part 2 Part 1: Download: Going to this URL will allow you to download the 5.0 version of Google Earth. http://earth.google.com/

More information

WMS 8.4 Tutorial Hydraulics and Floodplain Modeling HY-8 Modeling Wizard Learn how to model a culvert using HY-8 and WMS

WMS 8.4 Tutorial Hydraulics and Floodplain Modeling HY-8 Modeling Wizard Learn how to model a culvert using HY-8 and WMS v. 8.4 WMS 8.4 Tutorial Hydraulics and Floodplain Modeling HY-8 Modeling Wizard Learn how to model a culvert using HY-8 and WMS Objectives Define a conceptual schematic of the roadway, invert, and downstream

More information

Calculating Probabilities with the Normal distribution. David Gerard

Calculating Probabilities with the Normal distribution. David Gerard Calculating Probabilities with the Normal distribution David Gerard 2017-09-18 1 Learning Objectives Standardizing Variables Normal probability calculations. Section 3.1 of DBC 2 Standardizing Variables

More information

Cricket Visualization Tool

Cricket Visualization Tool CS675 Project Cricket Visualization Tool Muralidharan Dhanakoti 1. Abstract Mitigated by rapid advances in ball tracking systems, cricket visualization systems have emerged as an indispensable tool for

More information

CC Investigation 1: Graphing Proportions

CC Investigation 1: Graphing Proportions CC Investigation 1: Graphing Proportions DOMAIN: Ratios and Proportional Relationships Problem 1.1 During the first basketball game of the season, Karl made 3 of his 5 free-throw attempts. Karl then made

More information

Statistical Studies: Analyzing Data III.B Student Activity Sheet 6: Analyzing Graphical Displays

Statistical Studies: Analyzing Data III.B Student Activity Sheet 6: Analyzing Graphical Displays The Phoenix Mercury of the Women s National Basketball League had 14 players on the roster for the 2008 season. The players and their average points per game (PPG) are shown below. Player Diana Taurasi

More information

Statistical Studies: Analyzing Data III.B Student Activity Sheet 6: Analyzing Graphical Displays

Statistical Studies: Analyzing Data III.B Student Activity Sheet 6: Analyzing Graphical Displays The Phoenix Mercury of the Women s National Basketball League had 14 players on the roster for the 2008 season. The players and their average points per game (PPG) are shown below. Player Diana Taurasi

More information

Tying Knots. Approximate time: 1-2 days depending on time spent on calculator instructions.

Tying Knots. Approximate time: 1-2 days depending on time spent on calculator instructions. Tying Knots Objective: Students will find a linear model to fit data. Students will compare and interpret different slopes and intercepts in a context. Students will discuss domain and range: as discrete

More information

Graphing the Quadratic Functions

Graphing the Quadratic Functions Graphing the Quadratic Functions Class Level: 10 th Grade Objectives: Fonksiyonun katsayılarındaki değişimin fonksiyonun grafiği üzerine etkisi bilgi ve iletişim teknolojilerinden yararlanılarak incelenir.

More information

CHAPTER 1 Exploring Data

CHAPTER 1 Exploring Data CHAPTER 1 Exploring Data 1.2 Displaying Quantitative Data with Graphs The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers Displaying Quantitative Data

More information

Quantitative Literacy: Thinking Between the Lines

Quantitative Literacy: Thinking Between the Lines Quantitative Literacy: Thinking Between the Lines Crauder, Noell, Evans, Johnson Chapter 6: Statistics 2013 W. H. Freeman and Company 1 Chapter 6: Statistics Lesson Plan Data summary and presentation:

More information

Name Student Activity

Name Student Activity Open the TI-Nspire document Boyles_Law.tns. In this activity, you will use a Gas Pressure Sensor to measure the pressure of an air sample inside a syringe. Using graphs, you will apply your results to

More information

FISH 415 LIMNOLOGY UI Moscow

FISH 415 LIMNOLOGY UI Moscow Sampling Equipment Lab FISH 415 LIMNOLOGY UI Moscow Purpose: - to familiarize you with limnological sampling equipment - to use some of the equipment to obtain profiles of temperature, dissolved oxygen,

More information

BEFORE YOU OPEN ANY FILES:

BEFORE YOU OPEN ANY FILES: Dive Analysis Lab *If you are using a school computer bring a USB drive to class to save your work and the files for the lab. *If you are using your own computer, make sure to download the data and files

More information

Lab 5: Descriptive Statistics

Lab 5: Descriptive Statistics Page 1 Technical Math II Lab 5: Descriptive Stats Lab 5: Descriptive Statistics Purpose: To gain experience in the descriptive statistical analysis of a large (173 scores) data set. You should do most

More information

An Indian Journal FULL PAPER ABSTRACT KEYWORDS. Trade Science Inc.

An Indian Journal FULL PAPER ABSTRACT KEYWORDS. Trade Science Inc. [Type text] [Type text] [Type text] ISSN : 0974-7435 Volume 10 Issue 9 BioTechnology 2014 An Indian Journal FULL PAPER BTAIJ, 10(9), 2014 [4222-4227] Evaluation on test of table tennis equipment based

More information

Lesson 18: There Is Only One Line Passing Through a Given Point with a Given Slope

Lesson 18: There Is Only One Line Passing Through a Given Point with a Given Slope There Is Only One Line Passing Through a Given Point with a Given Slope Classwork Opening Exercise Examine each of the graphs and their equations. Identify the coordinates of the point where the line intersects

More information

Operating Manual. BACVis. Manual BACVis. for. Sensors and MilliGascounter. Rev

Operating Manual. BACVis. Manual BACVis. for. Sensors and MilliGascounter. Rev Operating Manual BACVis Manual BACVis for Sensors and MilliGascounter Rev.150728001 Contents 1 ABOUT THIS DOCUMENT... 2 1.1 Function... 2 1.2 Target group... 2 1.3 Symbols used... 2 2 SYSTEM REQUIREMENTS...

More information

U.S. Army Engineer Institute for Water Resources

U.S. Army Engineer Institute for Water Resources Sea Level Change Curve Calculator (2014.88) (DRAFT) U.S. Army Engineer Institute for Water Resources Table of Contents 1. INTRODUCTION... 2 1.1 BACKGROUND... 2 1.1.1 INFORMATION QUALITY ACT... 2 1.2 OVERVIEW...

More information

Bivariate Data. Frequency Table Line Plot Box and Whisker Plot

Bivariate Data. Frequency Table Line Plot Box and Whisker Plot U04 D02 Univariate Data Frequency Table Line Plot Box and Whisker Plot Univariate Data Bivariate Data involving a single variable does not deal with causes or relationships the major purpose of univariate

More information

STT 315 Section /19/2014

STT 315 Section /19/2014 Name: PID: A STT 315 Section 101 05/19/2014 Quiz 1A 50 minutes 1. A survey by an electric company contains questions on the following: Age of household head, Gender of household head and use of electric

More information

Chapter 2: Modeling Distributions of Data

Chapter 2: Modeling Distributions of Data Chapter 2: Modeling Distributions of Data Section 2.1 The Practice of Statistics, 4 th edition - For AP* STARNES, YATES, MOORE Chapter 2 Modeling Distributions of Data 2.1 2.2 Normal Distributions Section

More information

5.1. Data Displays Batter Up. My Notes ACTIVITY

5.1. Data Displays Batter Up. My Notes ACTIVITY SUGGESTED LEARNING STRATEGIES: Activating Prior Knowledge, Marking the Text, Group Presentation, Interactive Word Wall Henry Hank Aaron and Harmon Killebrew are among the alltime leaders in home runs in

More information

Energy Output. Outline. Characterizing Wind Variability. Characterizing Wind Variability 3/7/2015. for Wind Power Management

Energy Output. Outline. Characterizing Wind Variability. Characterizing Wind Variability 3/7/2015. for Wind Power Management Energy Output for Wind Power Management Spring 215 Variability in wind Distribution plotting Mean power of the wind Betz' law Power density Power curves The power coefficient Calculator guide The power

More information

For a tennis ball brand to be approved for tournament play

For a tennis ball brand to be approved for tournament play L A B 12 ANALYZING A BOUNCING TENNIS BALL Infinite Series For a tennis ball brand to be approved for tournament play by the United States Tennis Association (USTA), it must satisfy several specifications.

More information

GEOPHYSICAL RESEARCH LETTERS

GEOPHYSICAL RESEARCH LETTERS GEOPHYSICAL RESEARCH LETTERS Supporting Information for Observation of deep water microseisms in the North Atlantic Ocean using tide modulations Éric Beucler, 1 Antoine Mocquet, 1 Martin Schimmel, 2 Sébastien

More information

Chapter 12 Practice Test

Chapter 12 Practice Test Chapter 12 Practice Test 1. Which of the following is not one of the conditions that must be satisfied in order to perform inference about the slope of a least-squares regression line? (a) For each value

More information

Ozobot Bit Classroom Application: Boyle s Law Simulation

Ozobot Bit Classroom Application: Boyle s Law Simulation OZO AP P EAM TR T S BO RO VE D Ozobot Bit Classroom Application: Boyle s Law Simulation Created by Richard Born Associate Professor Emeritus Northern Illinois University richb@rborn.org Topics Chemistry,

More information

Statistical Theory, Conditional Probability Vaibhav Walvekar

Statistical Theory, Conditional Probability Vaibhav Walvekar Statistical Theory, Conditional Probability Vaibhav Walvekar # Load some helpful libraries library(tidyverse) If a baseball team scores X runs, what is the probability it will win the game? Baseball is

More information

DATA VISUALIZATION WITH GGPLOT2. Bar Plots

DATA VISUALIZATION WITH GGPLOT2. Bar Plots DATA VISUALIZATION WITH GGPLOT2 Bar Plots Chapter Content Common pitfalls Best way to represent data Bar plot Two types Absolute values Distribution Mammalian sleep > str(sleep) 'data.frame': 76 obs. of

More information

The University of Hong Kong Department of Physics Experimental Physics Laboratory

The University of Hong Kong Department of Physics Experimental Physics Laboratory The University of Hong Kong Department of Physics Experimental Physics Laboratory PHYS2260 Heat and Waves 2260-1 LABORATORY MANUAL Experiment 1: Adiabatic Gas Law Part A. Ideal Gas Law Equipment Required:

More information

It is often said in sports that records are made to be

It is often said in sports that records are made to be L A B 2 THE LIMIT OF SWIMMING SPEED Finding Limits It is often said in sports that records are made to be broken. This saying suggests there is no limit to athletic performance. In some sports, such as

More information

STAT 625: 2000 Olympic Diving Exploration

STAT 625: 2000 Olympic Diving Exploration Corey S Brier, Department of Statistics, Yale University 1 STAT 625: 2000 Olympic Diving Exploration Corey S Brier Yale University Abstract This document contains a preliminary investigation of data from

More information

ClubHub. User s Guide

ClubHub. User s Guide ClubHub User s Guide Table of Contents Setup... Initial Club Setup...7 Changing Clubs...5 Settings...8 My Clubs... Turn On/Off Sounds...9 Play Round Mode...0 List View...8 Social Sharing...0 Viewing D

More information

Forecasting and Visualisation. Time series in R

Forecasting and Visualisation. Time series in R Time Series in R: Forecasting and Visualisation Time series in R 29 May 2017 1 Outline 1 ts objects 2 Time plots 3 Lab session 1 4 Seasonal plots 5 Seasonal or cyclic? 6 Lag plots and autocorrelation 7

More information

COMMUNITY RELATIONS DEPARTMENT

COMMUNITY RELATIONS DEPARTMENT Warm Ups OVERVIEW It is important that athletes do warm up exercises before they play a game or begin a practice session. Likewise, it is important that students do warm up exercises before the day s lesson

More information

EXPERIMENT 1 BASIC LABORATORY TECHNIQUES AND TREATMENT OF DATA MEASUREMENTS

EXPERIMENT 1 BASIC LABORATORY TECHNIQUES AND TREATMENT OF DATA MEASUREMENTS EXPERIMENT 1 BASIC LABORATORY TECHNIQUES AND TREATMENT OF DATA MEASUREMENTS Introduction In the following experiment you will be required to use a Bunsen burner, balance, a pipet, graduated cylinder, flask,

More information

! Problem Solving Students will use past Olympic statistics and mathematics to predict the most recent Olympic statistics.

! Problem Solving Students will use past Olympic statistics and mathematics to predict the most recent Olympic statistics. Title: Running Into Statistics Brief Overview: Since the 1996 Olympics took place close to home, they were a major topic of discussion all over the region. Students have traditionally been interested in

More information

Ticket s Please. At the start of the show, Heidi asked everyone for their tickets.

Ticket s Please. At the start of the show, Heidi asked everyone for their tickets. Ticket s Please At the start of the show, Heidi asked everyone for their tickets. Each ticket was $5. How many students are in your grade? How would you go about finding that out? How much would it cost

More information

Background Information. Project Instructions. Problem Statement. EXAM REVIEW PROJECT Microsoft Excel Review Baseball Hall of Fame Problem

Background Information. Project Instructions. Problem Statement. EXAM REVIEW PROJECT Microsoft Excel Review Baseball Hall of Fame Problem Background Information Every year, the National Baseball Hall of Fame conducts an election to select new inductees from candidates nationally recognized for their talent or association with the sport of

More information

Skills Key Words. Task. Key words. Write a definition for each of the key words listed below. Hypothesis. Variable. Prediction. Method.

Skills Key Words. Task. Key words. Write a definition for each of the key words listed below. Hypothesis. Variable. Prediction. Method. KS3 Science Skills Skills Key Words Write a definition for each of the key words listed below Key words Hypothesis Variable Prediction Method Hazard Precision Accuracy Repeatability Reproducibility Anomaly

More information

For example, the velocity at t = 10 is given by the gradient of the curve at t = 10, 10 t

For example, the velocity at t = 10 is given by the gradient of the curve at t = 10, 10 t R15 INTERPRET THE GRADIENT AT A POINT ON A CURVE AS THE INSTANTANEOUS RATE OF CHANGE; APPLY THE CONCEPTS OF AVERAGE AND INSTANTANEOUS RATE OF CHANGE (GRADIENTS OF CHORDS AND TANGENTS) IN NUMERICAL, ALGEBRAIC

More information

Set the Sails! 3. You will study patterns on the graphs and tables and make generalizations about the transformations presented.

Set the Sails! 3. You will study patterns on the graphs and tables and make generalizations about the transformations presented. The sails on a sailboat are set according to the direction of the wind and the bearing. When one jibes or tacks, the main sail is moved from one side of the boat to the opposite about the mast. As the

More information

MoLE Gas Laws Activities

MoLE Gas Laws Activities MoLE Gas Laws Activities To begin this assignment you must be able to log on to the Internet using Internet Explorer (Microsoft) 4.5 or higher. If you do not have the current version of the browser, go

More information

Life Support Team Mission Day Instructions

Life Support Team Mission Day Instructions Life Support Team Mission Day Instructions Overview The Environmental Control and Life Support System (ECLS) on the space station maintains the astronauts' environment. It makes sure that the atmospheric

More information

Driv e accu racy. Green s in regul ation

Driv e accu racy. Green s in regul ation LEARNING ACTIVITIES FOR PART II COMPILED Statistical and Measurement Concepts We are providing a database from selected characteristics of golfers on the PGA Tour. Data are for 3 of the players, based

More information

Opleiding Informatica

Opleiding Informatica Opleiding Informatica Determining Good Tactics for a Football Game using Raw Positional Data Davey Verhoef Supervisors: Arno Knobbe Rens Meerhoff BACHELOR THESIS Leiden Institute of Advanced Computer Science

More information

5th Grade Decimal Concepts

5th Grade Decimal Concepts Slide 1 / 192 Slide 2 / 192 5th Grade Decimal Concepts 2015-11-16 www.njctl.org Slide 3 / 192 Table of Contents What is a Decimal? Click on a topic to go to that section. Identify Place Values Read and

More information

5th Grade. Slide 1 / 192. Slide 2 / 192. Slide 3 / 192. Decimal Concepts. Table of Contents

5th Grade. Slide 1 / 192. Slide 2 / 192. Slide 3 / 192. Decimal Concepts. Table of Contents Slide 1 / 192 Slide 2 / 192 5th Grade Decimal Concepts 2015-11-16 www.njctl.org Table of Contents Slide 3 / 192 What is a Decimal? Click on a topic to go to that section. Identify Place Values Read and

More information

Shedding Light on Motion Episode 4: Graphing Motion

Shedding Light on Motion Episode 4: Graphing Motion Shedding Light on Motion Episode 4: Graphing Motion In a 100-metre sprint, when do athletes reach their highest speed? When do they accelerate at the highest rate and at what point, if any, do they stop

More information

Reminders. Homework scores will be up by tomorrow morning. Please me and the TAs with any grading questions by tomorrow at 5pm

Reminders. Homework scores will be up by tomorrow morning. Please  me and the TAs with any grading questions by tomorrow at 5pm Reminders Homework scores will be up by tomorrow morning Please email me and the TAs with any grading questions by tomorrow at 5pm 1 Chapter 12: Describing Distributions with Numbers Aaron Zimmerman STAT

More information

AREA - Find the area of each figure. 1.) 2.) 3.) 4.)

AREA - Find the area of each figure. 1.) 2.) 3.) 4.) Name: Date: Period: Quarter 3 Study Guide - Geometry and Statistics AREA - Find the area of each figure. 1.) 2.) 3.) 4.) 5.) What is the area of a parallelogram with a base of 28 mm, side length 20 mm,

More information

Mathematics Department. A BLOCK MATHEMATICAL LITERACY TRIALS EXAMINATION Paper 1 29 th AUGUST 2016

Mathematics Department. A BLOCK MATHEMATICAL LITERACY TRIALS EXAMINATION Paper 1 29 th AUGUST 2016 Mathematics Department A BLOCK MATHEMATICAL LITERACY TRIALS EXAMINATION Paper 1 29 th AUGUST 2016 Examiner: Miss L. Hardie Moderator: Mr A. van Wyk Time: 3 hours Marks: 150 PLEASE READ THE INSTRUCTIONS

More information

Name Student Activity

Name Student Activity Introduction If you went to a pet store and bought a hamster for a pet, you probably would expect it to remain rather small for its entire life. You would feed your hamster every day and make sure it had

More information

Graphing Activities This lab was created by Mr. Buckley from Edward Knox High School. Credit is given for this original activity to Mr. Buckley.

Graphing Activities This lab was created by Mr. Buckley from Edward Knox High School. Credit is given for this original activity to Mr. Buckley. Name: Date Completed: Class: Teacher: Graphing Activities This lab was created by Mr. Buckley from Edward Knox High School. Credit is given for this original activity to Mr. Buckley. Introduction Graphing

More information

0-13 Representing Data

0-13 Representing Data 1. SURVEYS Alana surveyed several students to find the number of hours of sleep they typically get each night. The results are shown in the table. Make a bar graph of the data. Draw a histogram to represent

More information