Why knitr? Very first steps in knitr Reviewing knitr ATM.Rnw Further exercises. PhD Workshop Series in

Size: px
Start display at page:

Download "Why knitr? Very first steps in knitr Reviewing knitr ATM.Rnw Further exercises. PhD Workshop Series in"

Transcription

1 PhD Workshop Series in Statistics and Applied Data Science (DSP.005) part two knitr Ass.-Prof. Dr. Arbeitsgruppe Stochastik/Statistik Fachbereich Mathematik Universität Salzburg Salzburg, December 2016

2 Aim of the game Starting point Very common situation (in research and in the economy): An elaborate report including graphics, tables and text has been produced (using Excel, Word, Powerpoint etc.) New data arrives, often on a weekly/monthly basis, or new data is added to an existing dataset The same report is needed for the new/updated data Do all calculations again, prepare all the tables and graphics again, and reproduce the report? Apart from wasting time and money, which other problems occur? Copy and paste is dangerous... Small (copy and paste) mistakes can have far-reaching consequences Can you assure to execute exactly the same manual data analysis steps as last time (Excel, etc.)? Reproducible results?

3 Aim of the game A possible solution - knitr Combine the power and flexibility of R with the typesetting capabilities of LaTeX R-Studio (user-interface for R) supports knitr R, R-Studio and LaTeX are freeware and run on all standard platforms! Let knitr do all the calculations, generate the graphics and tables and include numbers into the text Invest time in the first creation of the report - save time in all subsequent runs Use the saved time for more important and less annoying things than copy and paste (which robots can do much better than we)...

4 Very first steps in knitr Plan for today: Get knitr running on your laptops Run a minimal example Understand the basic building blocks of knitr Try to understand a pre-prepared knitr report Adjust/Manipulate/Extend the pre-prepared knitr report knitr has to be learned hands-on! Download and install the necessary software: (Basic) Miktex, Texmaker, R, R-Studio (in this order)

5 Very first steps in knitr Each knitr-file has the extension.rnw Each knitr-file consists of two building blocks: 1. LaTeX code 2. R-Code There are two types of R-Code: 1. chunks, i.e. code as separate paragraph (produce tables, graphics, etc.) Each chunk starts with <<some options>>= and ends 2. inline code, using the command Sexpr Knowing (basic) LaTeX and R is enough - the rest is combining blocks We start with a first minimal example demonstrating the LaTeX & R structure

6 Very first steps in knitr 1 \ d o c u m e n t c l a s s { a r t i c l e } 2 \ begin {document} <<h i s t o, f i g. width =10, f i g. h e i g h t =6, f i g. cap= Histogram, echo=false >>= 6 x< rnorm ( 1 0 0, 0, 1 ) 7 h i s t ( x, p r o b a b i l i t y = TRUE, c o l= l i g h t b l u e ) 9 10 The e s t i m a t e s f o r $\mu$ and $\ sigma $ a r e g i v e n by $\ o v e r l i n e {x} n=\ Sexpr {mean ( x ) }$ 11 and $ s ˆ2 n=\sexpr { sd ( x ) }$, whereby $n=\sexpr { l e n g t h ( x ) }$ \end{document} knitr mini.rnw Which part is LaTeX, which part is R?

7 Very first steps in knitr Download the file knitr mini.rnw from save it in a new folder, and open it with R-Studio A button Compile PDF appears (if not, something is not installed properly) Clicking it has the following effect knitr translates the R-Codes into standard LaTeX code and produces a.tex-file Plots produced are, by default, saved as pdfs in a folder named figure the.tex file is then compiled (pdflatex) and a final pdf is produced All files are saved in the folder where the knitr-file is located

8 Very first steps in knitr Histogram of x Density x Figure 1: Histogram The estimates for µ and σ are given by xn = and s 2 n = , whereby n = 100.

9 Very first steps in knitr Learning by doing - two exercises Exercise 1: Manipulate/Extend knitr mini.rnw in such a way that the resulting pdf looks like knitr mini extended.pdf Hint: par(mfrow = c(2,1)) can be used to have two plots in one graphic Exercise 2: Download the file knitr ATM.Rnw from save it in a new folder, and open it with R-Studio Install all R-packages loaded at the beginning of the first chunk and press Compile pdf Work through the.rnw and find out what the Code does Replace the ggplot-graphics by analogous graphics using the standard boxplot command Extend the report such that the output looks like knitr ATM extended.pdf

10 Reviewing knitr ATM.Rnw 1 %example l o a d s t h e ATM data s e t, a g g r e g a t e s and p r o d u c e s a s m a l l summary 2 %i n s t a l l R packages and ( b a s i c ) miktex f i r s t 3 4 %Block 1 : b a s i c LaTeX s e t t i n g s 5 6 \ d o c u m e n t c l a s s [ 1 2 pt ] { a r t i c l e } 7 \ usepackage {amsmath} 8 \ u sepackage { g r a p h i c x } 9 \ u sepackage { h y p e r r e f } 10 \ usepackage { eurosym } 11 \ u sepackage { c o l o r } 12 \ u sepackage { f l o a t } 13 \ s e t l e n g t h {\ t e x t h e i g h t }{650 pt } 14 \ s e t l e n g t h {\ t e x t w i d t h }{480 pt } 15 \ h o f f s e t = 15mm \ begin {document} knitr ATM/knitR ATM.Rnw

11 Reviewing knitr ATM.Rnw 1 2 %Block 2 : b a s i c R s e t u p : l o a d a l l r e q u i r e d packages 3 <<setup, i n c l u d e=false, cache=false>>= 4 l i b r a r y ( k n i t r ) 5 l i b r a r y ( g g p l o t 2 ) 6 l i b r a r y ( doby ) 7 l i b r a r y ( g r i d E x t r a ) 8 l i b r a r y ( RColorBrewer ) 9 l i b r a r y ( x t a b l e ) 10 Sys. s e t l o c a l e ( LC TIME, E n g l i s h ) #s e t E n g l i s h 11 # s e t g l o b a l chunk o p t i o n s 12 o p t s chunk $ s e t ( f i g. path= f i g u r e / g r a p h i c, f i g. a l i g n= c e n t e r, f i g. pos=! ht, echo=false, warning = FALSE) 13 #g l o b a l o p t i o n s f o r produced f i g u r e s ( name o f f i g u r e s, a u t o m a t i c c e n t e r i n g, e t c. ) 14 #echo=false : don t i n c l u d e R Code i n output, 15 #warning=false : p r i n t warning i n c o n s o l e but not i n pdf 16 #f i g. pos =! ht : p l a c e i t h e r e i n t h e doc 17 a< Sys. time ( ) knitr ATM/knitR ATM.Rnw

12 Reviewing knitr ATM.Rnw 1 \ t i t l e {\ v s p a c e{ 4cm} ATM w i t h d r a w a l s \ f o o t n o t e { This r e p o r t was c r e a t e d on \ Sexpr {a}}} 2 \ a u t h o r {Wolfgang T r u t s c h n i g } 3 %The f o o t n o t e p r i n t s t h e a c u t a l time c a l c u l a t e d i n t h e chunk above 4 5 \ m a k e t i t l e 6 7 \ s e c t i o n { Quick o v e r v i e w } knitr ATM/knitR ATM.Rnw

13 Reviewing knitr ATM.Rnw 1 <<r e s u l t s = a s i s >>= 2 #Download ATM. t x t and i n c l u d e t a b l e o f f i r s t s i x rows i n o u t p u t 3 A< r e a d. t a b l e ( h t t p : //www. t r u t s c h n i g. n e t / D a t e n s a t z. t x t, head=true) 4 A$ymd< as. Date (A$ymd) 5 A$month< as. numeric ( s u b s t r (A$ymd, 6, 7 ) ) 6 A$ y e a r< s u b s t r (A$ymd, 1, 4 ) 7 beg< min (A$ymd) ; end< max (A$ymd) 8 mis< nrow ( s u b s e t (A, i s. na (A$sum out )==1)) 9 H< s u b s e t (A,A$ h o l i d a y ==1) 10 V< s u b s e t (A,A$ h o l i d a y ==0.5) 11 B< A [ 1 : 6, 1 : 5 ] 12 B$ymd< as. c h a r a c t e r (B$ymd) 13 p r i n t ( x t a b l e (B, l a b e l = taba, c a p t i o n= F i r s t s i x l i n e s o f t h e d a t a s e t ), s i z e = f o o t n o t e s i z e, i n c l u d e. rownames=false) 14 #NB: x t a b l e p r e p a r e s t a b l e o u t p ut f o r LaTeX knitr ATM/knitR ATM.Rnw

14 Reviewing knitr ATM.Rnw 1 The d a t a s e t ( s e e Table \ r e f { taba }) c o n t a i n s d a i l y withdrawn amounts i n t h e p e r i o d from \ Sexpr {beg} t i l l \ Sexpr {end} (\ Sexpr { mis } e n t r i e s a r e m i s s i n g ). 2 We e x p e c t weekdays and h o l i d a y s to have a s t r o n g i n f l u e n c e on withdrawn amounts and, a d d i t i o n a l l y, to s e e an impact o f t h e f i n a n c i a l c r i s i s s t a r t i n g w i t h autumn F i g u r e \ r e f { f i g : b o x p l o t }, F i g u r e \ r e f { f i g : b o x p l o t monthly } as w e l l as Table \ r e f { tabb } c o n f i r m t h i s s u s p i c i o n. knitr ATM/knitR ATM.Rnw

15 Reviewing knitr ATM.Rnw 1 <<b o x p l o t, f i g. width =13, f i g. h e i g h t =6, f i g. cap=p a s t e ( B o x p l o t p e r day o f week and year, t h e medians a r e a l s o p r i n t e d i n Table \\ r e f { tabb } )>>= 2 #s i z e o f t h e p l o t ( width and h e i g h t ) i n i n c h e s, NB: d e f a u l t o u t p u t width i s \ t e x t w i d t h 3 p < g g p l o t ( data=a, a e s ( x=f a c t o r ( nr weekday ), y=sum out, f i l l =f a c t o r ( nr weekday ) ) ) 4 p < p + geom b o x p l o t ( o u t l i e r. s i z e =0) 5 p < p + f a c e t wrap ( y e a r ) 6 p < p + x l a b ( weekday ) 7 p < p + s c a l e f i l l d i s c r e t e ( name = Weekday ) 8 p < p + geom p o i n t ( data=h, c o l o u r= r e d, s i z e =1.5) 9 p < p + geom p o i n t ( data=v, c o l o u r= b l u e, s i z e =1.5) 10 p < p + theme bw ( ) 11 p 12 #NB: l a b e l o f f i g u r e i s a u t o m a t i c a l l y g e n e r a t e d as f i g : b o x p l o t knitr ATM/knitR ATM.Rnw

16 Reviewing knitr ATM.Rnw 1 <<r e s u l t s= a s i s >>= 2 medna< f u n c t i o n ( x ) {median ( x [ i s. na ( x ) ==0])} 3 # l i t t l e f u n c t i o n c a l c u l a t i n g t h e median ( i g n o r i n g m i s s i n g v a l u e s ) 4 BB< summaryby ( data=a, sum out nr weekday, FUN=c ( medna ) ) 5 #c a l c u l a t e meadian withdrawn amount per weekday 6 WD< A [ 1 : 7, 2 : 3 ] 7 BB< merge (BB,WD) 8 names (BB) [ 2 ]< sum out 9 BB$sum out< round (BB$sum out ) knitr ATM/knitR ATM.Rnw

17 Reviewing knitr ATM.Rnw 1 C o n s i n d e r i n g a l l y e a r s t o g e t h e r t h e median withdrawn amount i s \ Sexpr {BB$sum out [ 1 ] } \ e u r o {} on Mondays, \ Sexpr {BB$sum out [ 2 ] } \ euro {} on Tuesdays, \ Sexpr {BB$sum out [ 3 ] } \ euro {} on Wednesdays, 2 \ Sexpr {BB$sum out [ 4 ] } \ e u r o {} on Thursdays, \ Sexpr {BB$sum out [ 5 ] } \ e u r o {} on F r i d a y s, \ Sexpr {BB$sum out [ 6 ] } \ e u r o {} on S a t u r d a y s, and \ Sexpr {BB$sum out [ 7 ] } \ e u r o {} on Sundays. knitr ATM/knitR ATM.Rnw

18 Reviewing knitr ATM.Rnw 1 <<r e s u l t s= a s i s >>= 2 AA< summaryby ( data=a, sum out year+nr weekday, FUN=c ( medna ) ) 3 WD< A [ 1 : 7, 2 : 3 ] 4 AA< merge (AA,WD) 5 AA< AA[ o r d e r (AA$ nr weekday,aa$ y e a r ), ] 6 names (AA) [ 3 ]< sum out 7 AA< s u b s e t (AA, s e l e c t=c ( weekday, year, sum out ) ) 8 p r i n t ( x t a b l e (AA, l a b e l= tabb, c a p t i o n= Median withdrawn amount p e r y e a r and day o f week ), s i z e= s c r i p t s i z e, i n c l u d e. rownames=false) knitr ATM/knitR ATM.Rnw

19 Reviewing knitr ATM.Rnw 1 <<b o x p l o t monthly, f i g. width =13, f i g. h e i g h t =6, f i g. cap= B o x p l o t p e r month, t h e impact o f t h e f i n a n c i a l c r i s i s s t a r t i n g w i t h autumn 2008 >>= 2 B< A 3 B$ y e a r< as. f a c t o r (A$ y e a r ) 4 B$month< as. f a c t o r (A$month ) 5 f a r b e n< c ( gray50, magenta, g r e e n ) 6 p < g g p l o t ( data=b, a e s ( x=month, y=sum out ) ) 7 p < p + geom b o x p l o t ( a e s ( f i l l =y e a r ), o u t l i e r. s i z e =0) 8 p < p + s c a l e f i l l manual ( v a l u e s=f a r b e n ) 9 p < p + geom j i t t e r ( c o l o u r= gray30 ) 10 p < p + theme bw ( ) 11 p \end{document} knitr ATM/knitR ATM.Rnw

20 A small simulation study using knitr: GPS bias? Ten students of geoinformatics want to test GPS-based distance measurements They (consecutively) record the GPS-coordinates of (the outer track of) the 100m starting line in an athletics stadium close by, then (consecutively) walk along the outer track till the finishing line, and again record the GPS-coordinates. Each of them repeats this procedure 50 times For each of the 500 pairs they calculate the distance in meters Given the sample size of n = 500 they expect the mean distance to be pretty close to 100m (why?). All the bigger the surprise when the mean distance turns out to be roughly 102m What went wrong - just bad luck?

21 A small simulation study using knitr: GPS bias? x y

22 A small simulation study using knitr: GPS bias? x y

23 A small simulation study using knitr: GPS bias? What went wrong - just bad luck? We answer the question by means of simulations W.l.o.g. we assume that the starting point S and the end point Z have the following exact coordinates: S = (0, 0), Z = (100, 0) S, Z will denote the measured coordinates; F = (X 1, Y 1 ) denotes the measurement error in S, G = (X 2, Y 2 ) the measurement error in Z. In other words S = S + (X 1, Y 1 ) = (X 1, Y 1 ) Z = Z + (X 2, Y 2 ) = (100 + X 2, Y 2 ) The measured distance therefore given by S Z 2 = (100 + X 2 X 1 ) 2 + (Y 2 Y 1 ) 2 To simplify matters we assume that the errors follow a normal distribution, i.e. X 1, X 2, Y 2, Y 2 N (0, σ 2 ). Consider the case σ 2 = 15

24 A small simulation study using knitr: GPS bias? We simulate (or more) distance measurements (maybe 500 was not big enough) Use the code R-Code GPS.R auf to do the simulations We really get 102,2 as mean distance, i.e. a bias of 2,2. Exercise 3: Extend knitr GPS.Rnw to a report like knitr GPS extended.rnw Include a possible explanation of the observed GPS-bias

(Elementary) Regression Methods & Computational Statistics ( )

(Elementary) Regression Methods & Computational Statistics ( ) (Elementary) Regression Methods & Computational Statistics (405.952) Ass.-Prof. Dr. Arbeitsgruppe Stochastik/Statistik Fachbereich Mathematik Universität Salzburg www.trutschnig.net Salzburg, October 2017

More information

Joy Allen. March 12, 2015

Joy Allen. March 12, 2015 LATEX Newcastle University March 12, 2015 Why use L A TEX? Extremely useful tool for writing scientific papers, presentations and PhD Thesis which are heavily laden with mathematics You get lovely pretty

More information

How to make a presentation with L A TEX?

How to make a presentation with L A TEX? How to make a presentation with L A TEX? Department of computer science King Saud University November 23, 2015 1 / 49 Contents 1 to L A TEX 2 2 / 49 to L A TEX L A TEX( pronounced /"la:tex/, /"la:tek/,

More information

L A TEXtutorial. The very basics for typesetting research papers. Dr. Robin Roche. February 23, 2018

L A TEXtutorial. The very basics for typesetting research papers. Dr. Robin Roche. February 23, 2018 L A TEXtutorial The very basics for typesetting research papers Dr. Robin Roche February 23, 2018 Dr. Robin Roche LATEXtutorial February 23, 2018 1 / 11 What is L A TEX? L A TEX(pronounced latek ) is a

More information

CE 365K Exercise 1: GIS Basemap for Design Project Spring 2014 Hydraulic Engineering Design

CE 365K Exercise 1: GIS Basemap for Design Project Spring 2014 Hydraulic Engineering Design CE 365K Exercise 1: GIS Basemap for Design Project Spring 2014 Hydraulic Engineering Design The purpose of this exercise is for you to construct a basemap in ArcGIS for your design project. You may execute

More information

Description of the ED library Basic Atoms

Description of the ED library Basic Atoms Description of the ED library Basic Atoms Simulation Software / Description of the ED library BASIC ATOMS Enterprise Dynamics Copyright 2010 Incontrol Simulation Software B.V. All rights reserved Papendorpseweg

More information

Experimental Physics I & II "Junior Lab" Fall Spring 2008

Experimental Physics I & II Junior Lab Fall Spring 2008 MIT OpenCourseWare http://ocw.mit.edu 8.13-14 Experimental Physics I & II "Junior Lab" Fall 2007 - Spring 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More information

An introduction to plotting data

An introduction to plotting data An introduction to plotting data Eric D. Black California Institute of Technology v2.0 1 Introduction Plotting data is one of the essential skills every scientist must have. We use it on a near-daily basis

More information

VELA. Getting started with the VELA Versatile Laboratory Aid. Paul Vernon

VELA. Getting started with the VELA Versatile Laboratory Aid. Paul Vernon VELA Getting started with the VELA Versatile Laboratory Aid Paul Vernon Contents Preface... 3 Setting up and using VELA... 4 Introduction... 4 Setting VELA up... 5 Programming VELA... 6 Uses of the Programs...

More information

The Rain in Spain - Tableau Public Workbook

The Rain in Spain - Tableau Public Workbook The Rain in Spain - Tableau Public Workbook This guide will take you through the steps required to visualize how the rain falls in Spain with Tableau public. (All pics from Mac version of Tableau) Workbook

More information

Exercise 4 Estimating the effects of sea level rise on coastlines by reclassification

Exercise 4 Estimating the effects of sea level rise on coastlines by reclassification Exercise 4 Estimating the effects of sea level rise on coastlines by reclassification Due: Thursday February 1; at the start of class Goal: Get familiar with symbolizing and making time-series maps of

More information

In order to save time, the following data files have already been preloaded to the computer (most likely under c:\odmc2012\data\)

In order to save time, the following data files have already been preloaded to the computer (most likely under c:\odmc2012\data\) ODMC2012 QGIS Ex1 Schools and Public Transport In this exercise, users will learn how to a) map the location of secondary schools in and around the Southampton area; b) overlay the school location map

More information

SME 864 Mark Urban-Lurain

SME 864 Mark Urban-Lurain SME 864 Mark Urban-Lurain 1 Import data from non-excel sources Probe Software Web sites Other sources Organize data Structure file for analysis Clean values Analyze Summarize Statistics Graph 2 Get files

More information

Introduction to RStudio

Introduction to RStudio Introduction to RStudio Carl Tony Fakhry Jie Chen April 4, 2015 Introduction R is a powerful language and environment for statistical computing and graphics. R is freeware and there is lot of help available

More information

Confidence intervals

Confidence intervals Confidence intervals We now want to take what we ve learned about sampling distributions and standard errors and construct confidence intervals. What are confidence intervals? Simply an interval for which

More information

LAB 2 - ONE DIMENSIONAL MOTION

LAB 2 - ONE DIMENSIONAL MOTION Name Date Partners L02-1 LAB 2 - ONE DIMENSIONAL MOTION OBJECTIVES Slow and steady wins the race. Aesop s fable: The Hare and the Tortoise To learn how to use a motion detector and gain more familiarity

More information

CAAM420: Week 3 Wednesday Notes

CAAM420: Week 3 Wednesday Notes CAAM420: Week 3 Wednesday Notes Justin DeVito 09/11/13 1 Overview of Homework 3 For an example function declaration: int rand ( ) int - return type rand - function name () - argument list (which can be

More information

User Manual Software IT-Precipitation

User Manual Software IT-Precipitation CAPRAIT- 1 Precipitation IT-Precipitation Precipitation data analyzer V1.0.0 AUTHOR (S): Natalia León Laura López Juan Velandia PUBLICATION DATE: 24/05/2018 VERSION: 1.0.0 Copyright Copyright 2018 UNIVERSIDAD

More information

Lecture 9. November 1, 2018 Lab 5 Analysis

Lecture 9. November 1, 2018 Lab 5 Analysis Lecture 9 November 1, 2018 Lab 5 Analysis News Lab 2 Handed back with solution; mean: 92.1, std dev: 5.5 Lab 3 Handed back next week (I hope). Lab 4 Due November 1 (today) News Lab 5 (Transiting Exoplanets)

More information

LAB Exercise #4 - Answers The Traction Vector and Stress Tensor. Introduction. Format of lab. Preparation reading

LAB Exercise #4 - Answers The Traction Vector and Stress Tensor. Introduction. Format of lab. Preparation reading LAB Exercise #4 - Answers The Traction Vector and Stress Tensor Due: Thursday, 26 February 2009 (Special Thanks to D.D. Pollard who pioneered this exercise in 1991) Introduction Stress concentrations in

More information

Task 1: Open ArcMap and activate the Spatial Analyst extension.

Task 1: Open ArcMap and activate the Spatial Analyst extension. Exercise 10 Spatial Analyst The following steps describe the general process that you will follow to complete the exercise. Specific steps will be provided later in the step-by-step instructions component

More information

Motion II. Goals and Introduction

Motion II. Goals and Introduction Motion II Goals and Introduction As you have probably already seen in lecture or homework, and if you ve performed the experiment Motion I, it is important to develop a strong understanding of how to model

More information

Leslie matrices and Markov chains.

Leslie matrices and Markov chains. Leslie matrices and Markov chains. Example. Suppose a certain species of insect can be divided into 2 classes, eggs and adults. 10% of eggs survive for 1 week to become adults, each adult yields an average

More information

Athena Visual Software, Inc. 1

Athena Visual Software, Inc. 1 Athena Visual Studio Visual Kinetics Tutorial VisualKinetics is an integrated tool within the Athena Visual Studio software environment, which allows scientists and engineers to simulate the dynamic behavior

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel Objective: Students will gain familiarity with using Excel to record data, display data properly, use built-in formulae to do calculations, and plot and fit data with linear functions.

More information

Unstable Laser Emission Vignette for the Data Set laser of the R package hyperspec

Unstable Laser Emission Vignette for the Data Set laser of the R package hyperspec Unstable Laser Emission Vignette for the Data Set laser of the R package hyperspec Claudia Beleites DIA Raman Spectroscopy Group, University of Trieste/Italy (2005 2008) Spectroscopy

More information

Displaying Latitude & Longitude Data (XY Data) in ArcGIS

Displaying Latitude & Longitude Data (XY Data) in ArcGIS Displaying Latitude & Longitude Data (XY Data) in ArcGIS Created by Barbara Parmenter and updated on 2/15/2018 If you have a table of data that has longitude and latitude, or XY coordinates, you can view

More information

ECEN 651: Microprogrammed Control of Digital Systems Department of Electrical and Computer Engineering Texas A&M University

ECEN 651: Microprogrammed Control of Digital Systems Department of Electrical and Computer Engineering Texas A&M University ECEN 651: Microprogrammed Control of Digital Systems Department of Electrical and Computer Engineering Texas A&M University Prof. Mi Lu TA: Ehsan Rohani Laboratory Exercise #4 MIPS Assembly and Simulation

More information

Freedom from Powerpoint

Freedom from Powerpoint Freedom from Powerpoint An introduction to creating clear, structured, & efficient presentations & notes for conferences and lectures with L A TEX 2εand Beamer Simon Angus School of Economics 11 October,

More information

Data Structures & Database Queries in GIS

Data Structures & Database Queries in GIS Data Structures & Database Queries in GIS Objective In this lab we will show you how to use ArcGIS for analysis of digital elevation models (DEM s), in relationship to Rocky Mountain bighorn sheep (Ovis

More information

Cosmic Ray Detector Software

Cosmic Ray Detector Software Cosmic Ray Detector Software Studying cosmic rays has never been easier Matthew Jones Purdue University 2012 QuarkNet Summer Workshop 1 Brief History First cosmic ray detector built at Purdue in about

More information

[DOC] GIS TRANING OPERATION MANUAL EBOOK

[DOC] GIS TRANING OPERATION MANUAL EBOOK 23 December, 2017 [DOC] GIS TRANING OPERATION MANUAL EBOOK Document Filetype: PDF 157.53 KB 0 [DOC] GIS TRANING OPERATION MANUAL EBOOK Learn GIS for free online from these university and institution. GIS

More information

(Elementary) Regression Methods & Computational Statistics ( ) Part IV: Hypothesis Testing and Confidence Intervals (cont.)

(Elementary) Regression Methods & Computational Statistics ( ) Part IV: Hypothesis Testing and Confidence Intervals (cont.) (Elementary) Regression Methods & Computational Statistics (405.95) Part IV: Hypothesis Testing and Confidence Intervals (cont.) Assoz. Prof. Dr. Arbeitsgruppe Stochastik/Statistik Fachbereich Mathematik

More information

Global Atmospheric Circulation Patterns Analyzing TRMM data Background Objectives: Overview of Tasks must read Turn in Step 1.

Global Atmospheric Circulation Patterns Analyzing TRMM data Background Objectives: Overview of Tasks must read Turn in Step 1. Global Atmospheric Circulation Patterns Analyzing TRMM data Eugenio Arima arima@hws.edu Hobart and William Smith Colleges Department of Environmental Studies Background: Have you ever wondered why rainforests

More information

GRADE 1 SUPPLEMENT. Set C3 Geometry: 2-D Shapes Around Us Calendar Pattern. Includes. Skills & Concepts. November Calendar Pattern C3.

GRADE 1 SUPPLEMENT. Set C3 Geometry: 2-D Shapes Around Us Calendar Pattern. Includes. Skills & Concepts. November Calendar Pattern C3. GRADE 1 SUPPLEMENT Set C3 Geometry: 2-D Shapes Around Us Calendar Pattern Includes November Calendar Pattern C3.1 Skills & Concepts H identify, name, and describe two-dimensional geometric shapes, regardless

More information

Chemical reaction networks and diffusion

Chemical reaction networks and diffusion FYTN05 Computer Assignment 2 Chemical reaction networks and diffusion Supervisor: Adriaan Merlevede Office: K336-337, E-mail: adriaan@thep.lu.se 1 Introduction This exercise focuses on understanding and

More information

GRADE 1 SUPPLEMENT. Set C3 Geometry: 2-D Shapes Around Us Calendar Pattern. Includes. Skills & Concepts. November Calendar Pattern C3.

GRADE 1 SUPPLEMENT. Set C3 Geometry: 2-D Shapes Around Us Calendar Pattern. Includes. Skills & Concepts. November Calendar Pattern C3. GRADE 1 SUPPLEMENT Set C3 Geometry: 2-D Shapes Around Us Calendar Pattern Includes November Calendar Pattern C3.1 Skills & Concepts H identify, name, and describe 2-D geometric shapes, regardless of orientation,

More information

Definition: Absolute Value The absolute value of a number is the distance that the number is from zero. The absolute value of x is written x.

Definition: Absolute Value The absolute value of a number is the distance that the number is from zero. The absolute value of x is written x. R. Absolute Values We begin this section by recalling the following definition. Definition: Absolute Value The absolute value of a number is the distance that the number is from zero. The absolute value

More information

Post-Algebra II, Pre-Precalculus Summer Packet

Post-Algebra II, Pre-Precalculus Summer Packet Post-Algebra II, Pre-Precalculus Summer Packet (Concepts epected to be understood upon entering Precalculus course) Name Grade Level School Teacher In order to be successful in a Precalculus course at

More information

Introduction to ggplot2. ggplot2 is (in my opinion) one of the best documented packages in R. The full documentation for it can be found here:

Introduction to ggplot2. ggplot2 is (in my opinion) one of the best documented packages in R. The full documentation for it can be found here: Introduction to ggplot2 This practical introduces a slightly different method of creating plots in R using the ggplot2 package. The package is an implementation of Leland Wilkinson's Grammar of Graphics-

More information

Gridded Ambient Air Pollutant Concentrations for Southern California, User Notes authored by Beau MacDonald, 11/28/2017

Gridded Ambient Air Pollutant Concentrations for Southern California, User Notes authored by Beau MacDonald, 11/28/2017 Gridded Ambient Air Pollutant Concentrations for Southern California, 1995-2014 User Notes authored by Beau, 11/28/2017 METADATA: Each raster file contains data for one pollutant (NO2, O3, PM2.5, and PM10)

More information

Coulomb s Law Mini-Lab

Coulomb s Law Mini-Lab Setup Name Per Date Coulomb s Law Mini-Lab On a fresh piece of notebook paper, write the above title, name, date, and period. Be sure to put all headings, Roman numerals and regular numbers on your paper.

More information

What is Crater Number Density?

What is Crater Number Density? Ronald Wilhelm & Jennifer Wilhelm, University of Kentucky 2008 What is Crater Number Density? REAL Curriculum Crater Number Density Today we will learn some math that is necessary in order to learn important

More information

Experiment 0 ~ Introduction to Statistics and Excel Tutorial. Introduction to Statistics, Error and Measurement

Experiment 0 ~ Introduction to Statistics and Excel Tutorial. Introduction to Statistics, Error and Measurement Experiment 0 ~ Introduction to Statistics and Excel Tutorial Many of you already went through the introduction to laboratory practice and excel tutorial in Physics 1011. For that reason, we aren t going

More information

Data Reduction - Optical / NIR Imaging. Chian-Chou Chen Ph319

Data Reduction - Optical / NIR Imaging. Chian-Chou Chen Ph319 Data Reduction - Optical / NIR Imaging Chian-Chou Chen (T.C.) @ Ph319 Images at different wavelengths... Images at different wavelengths... However, the raw data are always not as pretty Why? The total

More information

Mathematica Project 3

Mathematica Project 3 Mathematica Project 3 Name: Section: Date: On your class s Sakai site, your instructor has placed 5 Mathematica notebooks. Please use the following table to determine which file you should select based

More information

Course Review. Kin 304W Week 14: April 9, 2013

Course Review. Kin 304W Week 14: April 9, 2013 Course Review Kin 304W Week 14: April 9, 2013 1 Today s Outline Format of Kin 304W Final Exam Course Review Hand back marked Project Part II 2 Kin 304W Final Exam Saturday, Thursday, April 18, 3:30-6:30

More information

CSC165. Larry Zhang, September 23, 2014

CSC165. Larry Zhang, September 23, 2014 CSC165 Larry Zhang, September 23, 2014 Tutorial classrooms T0101, Tuesday 9:10am~10:30am: BA3102 A-F (Jason/Jason) BA3116 G-L (Eleni/Eleni) BA2185 M-T (Madina/Madina) BA2175 V-Z (Siamak/Siamak) T0201:

More information

Class Introduction and Overview; Review of ANOVA, Regression, and Psychological Measurement

Class Introduction and Overview; Review of ANOVA, Regression, and Psychological Measurement Class Introduction and Overview; Review of ANOVA, Regression, and Psychological Measurement Introduction to Structural Equation Modeling Lecture #1 January 11, 2012 ERSH 8750: Lecture 1 Today s Class Introduction

More information

Assignment 4: Object creation

Assignment 4: Object creation Assignment 4: Object creation ETH Zurich Hand-out: 13 November 2006 Due: 21 November 2006 Copyright FarWorks, Inc. Gary Larson 1 Summary Today you are going to create a stand-alone program. How to create

More information

GIS Workshop UCLS_Fall Forum 2014 Sowmya Selvarajan, PhD TABLE OF CONTENTS

GIS Workshop UCLS_Fall Forum 2014 Sowmya Selvarajan, PhD TABLE OF CONTENTS TABLE OF CONTENTS TITLE PAGE NO. 1. ArcGIS Basics I 2 a. Open and Save a Map Document 2 b. Work with Map Layers 2 c. Navigate in a Map Document 4 d. Measure Distances 4 2. ArcGIS Basics II 5 a. Work with

More information

Mean, Median, Mode, and Range

Mean, Median, Mode, and Range Mean, Median, Mode, and Range Mean, median, and mode are measures of central tendency; they measure the center of data. Range is a measure of dispersion; it measures the spread of data. The mean of a data

More information

Mini-project 2 (really) due today! Turn in a printout of your work at the end of the class

Mini-project 2 (really) due today! Turn in a printout of your work at the end of the class Administrivia Mini-project 2 (really) due today Turn in a printout of your work at the end of the class Project presentations April 23 (Thursday next week) and 28 (Tuesday the week after) Order will be

More information

B page 1(7) ENTRANCE EXAMINATION FOR THE TECHNICAL CURRICULUM

B page 1(7) ENTRANCE EXAMINATION FOR THE TECHNICAL CURRICULUM B page 1(7) Instructions 7.6.2002 ENTRANCE EXAMINATION FOR THE TECHNICAL CURRICULUM Mathematics, logical deduction and physics/chemistry For problems that include calculations the result of the calculation

More information

Chapter 10 Study Guide The Mole Section 10 1

Chapter 10 Study Guide The Mole Section 10 1 Chapter 10 Study Guide The Mole Section 10 1 Measuring Matter The electron configuration of hydrogen is like that of Group 1 metals. 4. Study Guide - Chapter 10 The Mole Section 10.1 Measuring Matter 1.

More information

Using the EartH2Observe data portal to analyse drought indicators. Lesson 4: Using Python Notebook to access and process data

Using the EartH2Observe data portal to analyse drought indicators. Lesson 4: Using Python Notebook to access and process data Using the EartH2Observe data portal to analyse drought indicators Lesson 4: Using Python Notebook to access and process data Preface In this fourth lesson you will again work with the Water Cycle Integrator

More information

Moving into the information age: From records to Google Earth

Moving into the information age: From records to Google Earth Moving into the information age: From records to Google Earth David R. R. Smith Psychology, School of Life Sciences, University of Hull e-mail: davidsmith.butterflies@gmail.com Introduction Many of us

More information

Experiment 1 Solutions: Equipotential Lines and Electric Fields

Experiment 1 Solutions: Equipotential Lines and Electric Fields MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Experiment 1 Solutions: Equipotential Lines and Electric Fields IN-LAB ACTIVITIES EXPERIMENTAL SETUP 1. Download the LabView file from the

More information

DISCRETE RANDOM VARIABLES EXCEL LAB #3

DISCRETE RANDOM VARIABLES EXCEL LAB #3 DISCRETE RANDOM VARIABLES EXCEL LAB #3 ECON/BUSN 180: Quantitative Methods for Economics and Business Department of Economics and Business Lake Forest College Lake Forest, IL 60045 Copyright, 2011 Overview

More information

ENV Laboratory 1: Quadrant Sampling

ENV Laboratory 1: Quadrant Sampling Name: Date: Introduction Quite often when conducting experiments it is impossible to measure every individual, object or species that exists. We will explore some methods to estimate the number of objects/species/individuals

More information

Introduction to Statistics and R

Introduction to Statistics and R Introduction to Statistics and R Mayo-Illinois Computational Genomics Workshop (2018) Ruoqing Zhu, Ph.D. Department of Statistics, UIUC rqzhu@illinois.edu June 18, 2018 Abstract This document is a supplimentary

More information

How many states. Record high temperature

How many states. Record high temperature Record high temperature How many states Class Midpoint Label 94.5 99.5 94.5-99.5 0 97 99.5 104.5 99.5-104.5 2 102 102 104.5 109.5 104.5-109.5 8 107 107 109.5 114.5 109.5-114.5 18 112 112 114.5 119.5 114.5-119.5

More information

Designing a Quilt with GIMP 2011

Designing a Quilt with GIMP 2011 Planning your quilt and want to see what it will look like in the fabric you just got from your LQS? You don t need to purchase a super expensive program. Try this and the best part it s FREE!!! *** Please

More information

Lab Exercise 6 CS 2334

Lab Exercise 6 CS 2334 Lab Exercise 6 CS 2334 September 28, 2017 Introduction In this lab, you will experiment with using inheritance in Java through the use of abstract classes and interfaces. You will implement a set of classes

More information

Experiment A12 Monte Carlo Night! Procedure

Experiment A12 Monte Carlo Night! Procedure Experiment A12 Monte Carlo Night! Procedure Deliverables: checked lab notebook, printed plots with captions Overview In the real world, you will never measure the exact same number every single time. Rather,

More information

EOSC 110 Reading Week Activity, February Visible Geology: Building structural geology skills by exploring 3D models online

EOSC 110 Reading Week Activity, February Visible Geology: Building structural geology skills by exploring 3D models online EOSC 110 Reading Week Activity, February 2015. Visible Geology: Building structural geology skills by exploring 3D models online Geological maps show where rocks of different ages occur on the Earth s

More information

Assignments for Algebra 1 Unit 4: Linear Functions and Correlation

Assignments for Algebra 1 Unit 4: Linear Functions and Correlation Name: Assignments for Algebra 1 Unit 4: Linear Functions and Correlation Day Date Assignment (Due the next class meeting) Thursday 10/25/12 (A) Monday 10/29/12 (B) 4.1 Worksheet Tuesday 10/30/12 (A) Wednesday

More information

Life Cycle of Stars. Photometry of star clusters with SalsaJ. Authors: Daniel Duggan & Sarah Roberts

Life Cycle of Stars. Photometry of star clusters with SalsaJ. Authors: Daniel Duggan & Sarah Roberts Photometry of star clusters with SalsaJ Authors: Daniel Duggan & Sarah Roberts Photometry of star clusters with SalsaJ Introduction Photometry is the measurement of the intensity or brightness of an astronomical

More information

Lab 1: Measurement and Uncertainty

Lab 1: Measurement and Uncertainty 3 Lab 1: Measurement and Uncertainty I. Before you come to lab... A. Read through the handout on the course website, Chapters 1-2 from Taylor, An Introduction to Error Analysis. These chapters will introduce

More information

AMS 132: Discussion Section 2

AMS 132: Discussion Section 2 Prof. David Draper Department of Applied Mathematics and Statistics University of California, Santa Cruz AMS 132: Discussion Section 2 All computer operations in this course will be described for the Windows

More information

User Manuel. EurotaxForecast. Version Latest changes ( )

User Manuel. EurotaxForecast. Version Latest changes ( ) User Manuel EurotaxForecast Version 1.23.0771- Latest changes (19.07.2003) Contents Preface 5 Welcome to Eurotax Forecast...5 Using this manual 6 How to use this manual?...6 Program overview 7 General

More information

A GUI FOR EVOLVE ZAMS

A GUI FOR EVOLVE ZAMS A GUI FOR EVOLVE ZAMS D. R. Schlegel Computer Science Department Here the early work on a new user interface for the Evolve ZAMS stellar evolution code is presented. The initial goal of this project is

More information

Understanding 1D Motion

Understanding 1D Motion Understanding 1D Motion OBJECTIVE Analyze the motion of a student walking across the room. Predict, sketch, and test position vs. time kinematics graphs. Predict, sketch, and test velocity vs. time kinematics

More information

Experiment 1: The Same or Not The Same?

Experiment 1: The Same or Not The Same? Experiment 1: The Same or Not The Same? Learning Goals After you finish this lab, you will be able to: 1. Use Logger Pro to collect data and calculate statistics (mean and standard deviation). 2. Explain

More information

Spatial Analysis using Vector GIS THE GOAL: PREPARATION:

Spatial Analysis using Vector GIS THE GOAL: PREPARATION: PLAN 512 GIS FOR PLANNERS Department of Urban and Environmental Planning University of Virginia Fall 2006 Prof. David L. Phillips Spatial Analysis using Vector GIS THE GOAL: This tutorial explores some

More information

Calibration Routine. Store in HDD. Switch "Program Control" Ref 1/ Ref 2 Manual Automatic

Calibration Routine. Store in HDD. Switch Program Control Ref 1/ Ref 2 Manual Automatic 4.2 IMPLEMENTATION LABVIEW 4.2.1 LabVIEW features LabVIEW (short for Laboratory Virtual Instrument Engineering Workbench) originally released for the Apple Macintosh in 1986. It is a highly productive

More information

Note that we are looking at the true mean, μ, not y. The problem for us is that we need to find the endpoints of our interval (a, b).

Note that we are looking at the true mean, μ, not y. The problem for us is that we need to find the endpoints of our interval (a, b). Confidence Intervals 1) What are confidence intervals? Simply, an interval for which we have a certain confidence. For example, we are 90% certain that an interval contains the true value of something

More information

Guidance for Writing Lab Reports for PHYS 233:

Guidance for Writing Lab Reports for PHYS 233: Guidance for Writing Lab Reports for PHYS 233: The following pages have a sample lab report that is a model of what we expect for each of your lab reports in PHYS 233. It is written for a lab experiment

More information

Sampling Distributions of the Sample Mean Pocket Pennies

Sampling Distributions of the Sample Mean Pocket Pennies You will need 25 pennies collected from recent day-today change Some of the distributions of data that you have studied have had a roughly normal shape, but many others were not normal at all. What kind

More information

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations Lab 2 Worksheet Problems Problem : Geometry and Linear Equations Linear algebra is, first and foremost, the study of systems of linear equations. You are going to encounter linear systems frequently in

More information

Density Bundle Contents

Density Bundle Contents Density Bundle Contents Click the items in the list below to jump to that part of the PDF. Unit Bundle Directions... 2 Printing Orientation... 6 Foldable: Density... 7 Foldable: Density Observed in Objects...11

More information

Manual of Logical Style (fresh version 2018)

Manual of Logical Style (fresh version 2018) Manual of Logical Style (fresh version 2018) Randall Holmes 9/5/2018 1 Introduction This is a fresh version of a document I have been working on with my classes at various levels for years. The idea that

More information

Readings and Exercises

Readings and Exercises Nebraska Wesleyan University Math 4800: Research Experience Section 1 Spring 02016 Readings and Exercises Tuesday, January 19 Section 1 Exercise 1 Section 2 Exercise 1, 4ce Thursday, January 21 Section

More information

Mnova Software for Analyzing Reaction Monitoring NMR Spectra

Mnova Software for Analyzing Reaction Monitoring NMR Spectra Mnova Software for Analyzing Reaction Monitoring NMR Spectra Version 10 Chen Peng, PhD, VP of Business Development, US & China Mestrelab Research SL San Diego, CA, USA chen.peng@mestrelab.com 858.736.4563

More information

Biology 559R: Introduction to Phylogenetic Comparative Methods Topics for this week:

Biology 559R: Introduction to Phylogenetic Comparative Methods Topics for this week: Biology 559R: Introduction to Phylogenetic Comparative Methods Topics for this week: Course general information About the course Course objectives Comparative methods: An overview R as language: uses and

More information

Seasonal Adjustment using X-13ARIMA-SEATS

Seasonal Adjustment using X-13ARIMA-SEATS Seasonal Adjustment using X-13ARIMA-SEATS Revised: 10/9/2017 Summary... 1 Data Input... 3 Limitations... 4 Analysis Options... 5 Tables and Graphs... 6 Analysis Summary... 7 Data Table... 9 Trend-Cycle

More information

Lab 1 Uniform Motion - Graphing and Analyzing Motion

Lab 1 Uniform Motion - Graphing and Analyzing Motion Lab 1 Uniform Motion - Graphing and Analyzing Motion Objectives: < To observe the distance-time relation for motion at constant velocity. < To make a straight line fit to the distance-time data. < To interpret

More information

fishr Vignette - Age-Length Keys to Assign Age from Lengths

fishr Vignette - Age-Length Keys to Assign Age from Lengths fishr Vignette - Age-Length Keys to Assign Age from Lengths Dr. Derek Ogle, Northland College December 16, 2013 The assessment of ages for a large number of fish is very time-consuming, whereas measuring

More information

Virtual Beach Making Nowcast Predictions

Virtual Beach Making Nowcast Predictions Virtual Beach 3.0.6 Making Nowcast Predictions In this module you will learn how to: A. Create a real-time connection to Web data services through EnDDaT B. Download real-time data to make a Nowcast prediction

More information

Experiment A11 Chaotic Double Pendulum Procedure

Experiment A11 Chaotic Double Pendulum Procedure AME 21216: Lab I Fall 2017 Experiment A11 Chaotic Double Pendulum Procedure Deliverables: Checked lab notebook, plots with captions Background Measuring and controlling the angular position and velocity

More information

How to Create Stream Networks using DEM and TauDEM

How to Create Stream Networks using DEM and TauDEM How to Create Stream Networks using DEM and TauDEM Take note: These procedures do not describe all steps. Knowledge of ArcGIS, DEMs, and TauDEM is required. TauDEM software ( http://hydrology.neng.usu.edu/taudem/

More information

CHEM Chapter 1

CHEM Chapter 1 CHEM 1110 Chapter 1 Chapter 1 OVERVIEW What s science? What s chemistry? Science and numbers Measurements Unit conversion States of matter Density & specific gravity Describing energy Heat and its transfer

More information

Simulating Future Climate Change Using A Global Climate Model

Simulating Future Climate Change Using A Global Climate Model Simulating Future Climate Change Using A Global Climate Model Introduction: (EzGCM: Web-based Version) The objective of this abridged EzGCM exercise is for you to become familiar with the steps involved

More information

Lightcloud Application

Lightcloud Application Controlling Your Lightcloud System Lightcloud Application Lightcloud Application Navigating the Application Devices Device Settings Organize Control Energy Scenes Schedules Demand Response Power Up State

More information

Urban Canopy Tool User Guide `bo`

Urban Canopy Tool User Guide `bo` Urban Canopy Tool User Guide `bo` ADMS Urban Canopy Tool User Guide Version 2.0 June 2014 Cambridge Environmental Research Consultants Ltd. 3, King s Parade Cambridge CB2 1SJ UK Telephone: +44 (0)1223

More information

Statistical Analysis of Data

Statistical Analysis of Data Statistical Analysis of Data Goals and Introduction In this experiment, we will work to calculate, understand, and evaluate statistical measures of a set of data. In most cases, when taking data, there

More information

Your work from these three exercises will be due Thursday, March 2 at class time.

Your work from these three exercises will be due Thursday, March 2 at class time. GEO231_week5_2012 GEO231, February 23, 2012 Today s class will consist of three separate parts: 1) Introduction to working with a compass 2) Continued work with spreadsheets 3) Introduction to surfer software

More information

Imaging with the 70AT and the Meade electronic eyepiece CCD imager By Ted Wilbur 2/4/02

Imaging with the 70AT and the Meade electronic eyepiece CCD imager By Ted Wilbur 2/4/02 Imaging with the 70AT and the Meade electronic eyepiece CCD imager By Ted Wilbur 2/4/02 Background: Follow-up 3/10/02: Process improvements and comments in red - TW I took up the hobby of astronomy in

More information

NINE CHOICE SERIAL REACTION TIME TASK

NINE CHOICE SERIAL REACTION TIME TASK instrumentation and software for research NINE CHOICE SERIAL REACTION TIME TASK MED-STATE NOTATION PROCEDURE SOF-700RA-8 USER S MANUAL DOC-025 Rev. 1.3 Copyright 2013 All Rights Reserved MED Associates

More information

FIT100 Spring 01. Project 2. Astrological Toys

FIT100 Spring 01. Project 2. Astrological Toys FIT100 Spring 01 Project 2 Astrological Toys In this project you will write a series of Windows applications that look up and display astrological signs and dates. The applications that will make up the

More information