Basic time series with R
|
|
- Amy Farmer
- 6 years ago
- Views:
Transcription
1 Basic time series with R version 0.03, 15 January 2012 Georgi N. Boshnakov 1 Introduction These notes show how to do some basic time series computations with R. If you are taking my time series course, I would advise you to read and keep a copy of my notes Hints about R along with this document. It goes without saying that you need to try the examples yourself. It is relatively easy to explore the concepts you learn in R since it contains many ready-to-use time series for exploration and the help pages of most R functions provide ready-to-try examples. 2 Time series data A time series is more than the vector of the data values. Each observation is associated with a date/time. Each object in R has a class and the basic class for time series objects is ts. A classic example is the series AirPassengers, see its help page for details. You may get a table of the data values, nicely formatted by year and month, by typing the name of the series, AirPassengers. This is fine and useful when you wish to check that the series is what you expect it to be. However, it is hardly ever necessary to include such printouts in reports. Graphs and appropriate summaries are preferable since they are more informative and easier to interpret. You may check the class of AirPassengers as follows: > class(airpassengers) [1] "ts" Do not type >, R prints it to show that it is expecting your next command. The functions start and end give the time of the first and last observations, respectively. The function frequency gives the number of observations in one time unit (e.g., 12 for monthly observations, 4 for quarterly). For example, > start(airpassengers) # year and month of the first value [1] > end(airpassengers) # year and month of the last value [1] > frequency(airpassengers) # number of "seasons" (here: months) [1] 12 The data is monthly, so the lag between successive observations is 1 month. in this case The dataset AirPassengers has been set up so that the unit of time is 1 year (frequency=12). The function deltat uses this time unit to compute the lag by the formula t = 1/frequency). So, > deltat(airpassengers) # 1/12 1
2 [1] Bear this in mind when looking at graphs. The functions time and cycle create time series of the times at which the observations in a time series are taken and their seasons, respectively, while window can be used to take some part of a time series (e.g. the January observations for all years). For example, > ap1 <- window(airpassengers,start=c(1955,1)) # Jan 1955 to end > ap2 <- window(airpassengers,end=c(1955,1)) # start to Jan 1955 > ap3 <- window(airpassengers,start=c(1953,4),end=c(1958,11)) # Apr 1953 to Nov 1958 See the help page of window for more information. 2.1 Creating your own time series If your data is in a vector, then you can turn it into a time series with the help of the function ts. For the sake of example, let us convert AirPassengers to a vector > x <- as.vector(airpassengers) and pretend that we have entered the data ourselves in the vector x. Note that x does not contain the time information (start date, etc), compare the plots of the the time series Airpassengers (Figure 1) and the vector x (Figure 2) to see that the functions in R (plot in this case) take notice of this. These graphs where obtained with the commands > plot(airpassengers) > plot(x) AirPassengers x Time Index Figure 1: Airline time series Figure 2: Airline passengers data as a vector The command > y <- ts(x) will create a ts object, y, with time running as 1, 2,.... seasonality use the start and frequency arguments as in To give the starting date and the > y <- ts(x, frequency=12, start=c(1949,1) ) (start=c(1949,1) specifies first month of 1949). Now plot(y) will produce the graph in Fig. 1. 2
3 3 Autocorrelations and tests Autocorrelations, partial autocorrelations, and crosscorrelations are calculated by acf, pacf, and ccf, respectively. A graph is produced as a byproduct of the computation by these functions since that is what we usually need. For example, > acf(airpassengers) > pacf(airpassengers) To save the results for further use, use assignment as usual, e.g. > apacf <- acf(airpassengers) > appacf <- pacf(airpassengers) If the time series contains missing values use the argument na.action, as in > acf(presidents, na.action = na.pass) (presidents is a time series which happens to contain missing values.) The sample autocorrelations of AirPassengers are shown in Figure 3 and the sample partial autocorrelations in Figure 4. Series AirPassengers Series AirPassengers ACF Partial ACF Lag Lag Figure 3: Airline data Figure 4: Pacf of airline passengers data Study the graphs and take note of the following features. The acf starts from lag 0 but the pacf starts from lag 1. We tend to forget this difference. The lags on the x axis are not labeled with the usual consecutive integers. This is so because R tries to be helpful and takes the unit time for lags to be 1 year (12 months). The time between two successive months is equal to 1/ year. Here is a confirmation (in order to get a smaller amount of output we compute acf up to lag 5 only). > ap <- acf(airpassengers,lag.max=5) > ap Autocorrelations of series 'AirPassengers', by lag The first row in this printout gives the lags, while the corresponding autocorrelations are in the second row. 3
4 4 Portmanteau tests The basic Ljung-Box test can be performed with the function Box.test, e.g. > x1 <- ts(rnorm(100)) # simulated trajectory of IID(0,1) noise > Box.test(x1,lag=5,type="Ljung-Box") Box-Ljung test data: x1 X-squared = , df = 5, p-value = If the time series tested represents residuals from a fitted model, then the degrees of freedom of the test statistic may need correction. For example if x1 represented the residuals from a fitted AR(3) model, then the actual degrees of freedom need to be reduced by 3. This is specified by the parameter fitdf. > Box.test(x1,lag=5,type="Ljung-Box",fitdf=3) Box-Ljung test data: x1 X-squared = , df = 2, p-value = DIY time series computations in R R has a large collection of functions for time series computations which you would normally use in your analyses. For learning purposes however it is often more instructive to do computations from first principles, usually directly implementing formulae given in class or in textbooks. I call such computations DIY (do it yourself). The examples here are with R but most DIY computations in time series can be done easily using any tool with mathematical abilities. You may need to consult Hints about R, mentioned at the beginning of this document, before reading on. A random sample from distribution can be obtained with a single command, say > w <- rnorm(100, mean=0, sd=1) # a trajectory of IID(0,1) Gaussian noise. The following few lines compute the sample autocovariance of w for lag k = 10 using the standard textbook formula. > n <- length(w) > k <- 10 > wbar <- mean(w) > gk <- 0 > for(i in (k+1):n){ gk <- gk + (w[i]- wbar)*(w[i-k]-wbar) } > gk <- gk/n > gk [1] To get a vector of sample autocovariances for lags 0,..., 10 enclose the above in a second loop, > n <- length(w); kmax <- 10; wbar <- mean(w); > g0k <- numeric(kmax+1) # vector for the result. > for(k in 0:kmax){ + gk <- 0 + for(i in (k+1):n){ 4
5 + gk <- gk + (w[i]- wbar)*(w[i-k]-wbar) + g0k[k+1] <- gk/n > g0k [1] [6] [11] Note that indices start from 1 in R, γ k is stored in g0k[k+1]. Autocorrelations can be obtained by dividing by γ 0. > g0k/g0k[1] [1] [6] [11] You can check the DIY calculations using the function acf. > print(acf(w,10)) Autocorrelations of series 'w', by lag If you are comfortable with vector calculations, many computations become, essentially, oneliners, e.g. > n <- length(w); k <- 10; wbar <- mean(w) > sum( (w[(k+1):n]-wbar)*(w[1:(n-k)]-wbar) )/n [1] A simple model for a time series is X t = ε t + θε t 1 for all t, where {ε t } is iid noise. X t is said to be an MA(1) process. A realization (trajectory) of an MA(1) process can be simulated by direct transcription of this formula into R. For example, assuming θ = 0.7, > theta <- 0.7 > n <- 101 > eps <- rnorm(n, mean=0, sd=1) # first generate iid noise > x <- numeric(n) # create a zero vector > for(i in 2:n){ + x[i] <- eps[i] + theta*eps[i-1] > x <- x[-1] # drop x[1] since it cannot be set (eps[0] is not available) > plot(ts(x)) Vector arithmetic provides a shorter and more transparent code. > theta <- 0.7 > n <- 101 > eps <- rnorm(n, mean=0, sd=1) > x <- eps[2:n] + theta * eps[1:(n-1)] 5
Introduction to R for Time Series Analysis Lecture Notes 2
Introduction to R for Time Series Analysis Lecture Notes 2 1.0 OVERVIEW OF R R is a widely used environment for statistical analysis. The striking difference between R and most other statistical software
More informationR practice. Eric Gilleland. 20th May 2015
R practice Eric Gilleland 20th May 2015 1 Preliminaries 1. The data set RedRiverPortRoyalTN.dat can be obtained from http://www.ral.ucar.edu/staff/ericg. Read these data into R using the read.table function
More informationIntro to ARMA models. FISH 507 Applied Time Series Analysis. Mark Scheuerell 15 Jan 2019
Intro to ARMA models FISH 507 Applied Time Series Analysis Mark Scheuerell 15 Jan 2019 Topics for today Review White noise Random walks Autoregressive (AR) models Moving average (MA) models Autoregressive
More informationAaron Daniel Chia Huang Licai Huang Medhavi Sikaria Signal Processing: Forecasting and Modeling
Aaron Daniel Chia Huang Licai Huang Medhavi Sikaria Signal Processing: Forecasting and Modeling Abstract Forecasting future events and statistics is problematic because the data set is a stochastic, rather
More informationSection 4.1: Time Series I. Jared S. Murray The University of Texas at Austin McCombs School of Business
Section 4.1: Time Series I Jared S. Murray The University of Texas at Austin McCombs School of Business 1 Time Series Data and Dependence Time-series data are simply a collection of observations gathered
More informationModelling trend: Part 1
Modelling trend: Part 1 Beáta Stehlíková Exponential smoothing Exponential smoothing We have the data x 1,... x n and we want to (1) smooth them and (2) make predictions Firstly we assume that there is
More informationThe goal of this handout is to allow you to install R on a Windows-based PC and to deal with some of the issues that can (will) come up.
Fall 2010 Handout on Using R Page: 1 The goal of this handout is to allow you to install R on a Windows-based PC and to deal with some of the issues that can (will) come up. 1. Installing R First off,
More informationPackage sarima. October 16, 2017
Type Package Package sarima October 16, 2017 Title Simulation and Prediction with Seasonal ARIMA Models Version 0.5-2 Date 2017-10-12 Author Maintainer Functions, classes
More informationpredict and Friends: Common Methods for Predictive Models in R , Spring 2015 Handout No. 1, 25 January 2015
predict and Friends: Common Methods for Predictive Models in R 36-402, Spring 2015 Handout No. 1, 25 January 2015 R has lots of functions for working with different sort of predictive models. This handout
More informationEXST 7014, Lab 1: Review of R Programming Basics and Simple Linear Regression
EXST 7014, Lab 1: Review of R Programming Basics and Simple Linear Regression OBJECTIVES 1. Prepare a scatter plot of the dependent variable on the independent variable 2. Do a simple linear regression
More informationPackage clustering.sc.dp
Type Package Package clustering.sc.dp May 4, 2015 Title Optimal Distance-Based Clustering for Multidimensional Data with Sequential Constraint Version 1.0 Date 2015-04-28 Author Tibor Szkaliczki [aut,
More informationGW - WINKS SDA Windows KwikStat Statistical Data Analysis for Time Series Programs. Getting Started Guide
GW - WINKS SDA Windows KwikStat Statistical Data Analysis for Time Series Programs Getting Started Guide. An Overview of GW-WINKS Time Series Programs GW WINKS is an add-on component of the WINKS SDA Statistical
More informationExcel Functions & Tables
Excel Functions & Tables SPRING 2016 Spring 2016 CS130 - EXCEL FUNCTIONS & TABLES 1 Review of Functions Quick Mathematics Review As it turns out, some of the most important mathematics for this course
More informationVideo Traffic Modeling Using Seasonal ARIMA Models
Video Traffic Modeling Using Seasonal ARIMA Models Abdel-Karim Al-Tamimi and Raj Jain Washington University in Saint Louis Saint Louis, MO 63130 Jain@cse.wustl.edu These slides are available on-line at:
More informationPackage bdots. March 12, 2018
Type Package Title Bootstrapped Differences of Time Series Version 0.1.19 Date 2018-03-05 Package bdots March 12, 2018 Author Michael Seedorff, Jacob Oleson, Grant Brown, Joseph Cavanaugh, and Bob McMurray
More informationDay #1. Determining an exponential function from a table Ex #1: Write an exponential function to model the given data.
Algebra I Name Unit #2: Sequences & Exponential Functions Lesson #7: Determining an Exponential Function from a Table or Graph Period Date Day #1 Ok, so we spent a lot of time focusing on exponential growth
More information# R script for Applied Time Series Analysis for Ecologists # Day 1 # 24 March # written by Mark Scheuerell
# R script for Applied Time Series Analysis for Ecologists # Day 1 # 24 March 2014 # written by Mark Scheuerell #------------------------- # load required libraries #------------------------- require("tseries")
More informationWeek 7: The normal distribution and sample means
Week 7: The normal distribution and sample means Goals Visualize properties of the normal distribution. Learning the Tools Understand the Central Limit Theorem. Calculate sampling properties of sample
More informationReview of JDemetra+ revisions plug-in
Review of JDemetra+ revisions plug-in Jennifer Davies and Duncan Elliott, Office for National Statistics March 28, 2018 1 Introduction This provides a review of the JDemetra+revisions plug-in written by
More informationEE 301 Signals & Systems I MATLAB Tutorial with Questions
EE 301 Signals & Systems I MATLAB Tutorial with Questions Under the content of the course EE-301, this semester, some MATLAB questions will be assigned in addition to the usual theoretical questions. This
More informationAdaptive spline autoregression threshold method in forecasting Mitsubishi car sales volume at PT Srikandi Diamond Motors
IOP Conference Series: Materials Science and Engineering PAPER OPEN ACCESS Adaptive spline autoregression threshold method in forecasting Mitsubishi car sales volume at PT Srikandi Diamond Motors To cite
More information2.830J / 6.780J / ESD.63J Control of Manufacturing Processes (SMA 6303) Spring 2008
MIT OpenCourseWare http://ocw.mit.edu.83j / 6.78J / ESD.63J Control of Manufacturing Processes (SMA 633) Spring 8 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
More informationSYS 6021 Linear Statistical Models
SYS 6021 Linear Statistical Models Project 2 Spam Filters Jinghe Zhang Summary The spambase data and time indexed counts of spams and hams are studied to develop accurate spam filters. Static models are
More informationA Knitr Demo. Charles J. Geyer. February 8, 2017
A Knitr Demo Charles J. Geyer February 8, 2017 1 Licence This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License http://creativecommons.org/licenses/by-sa/4.0/.
More informationMultimedia Computing: Algorithms, Systems, and Applications: Edge Detection
Multimedia Computing: Algorithms, Systems, and Applications: Edge Detection By Dr. Yu Cao Department of Computer Science The University of Massachusetts Lowell Lowell, MA 01854, USA Part of the slides
More informationStat 565. Trend And Decompositions. Charlotte Wickham. stat565.cwick.co.nz. Jan
Stat 565 Trend And Decompositions Jan 12 2016 Charlotte Wickham stat565.cwick.co.nz Announcements Tomorrow only: Office hour 2-3pm not 1-2pm Your turn Brainstorm: How could we get a feel for the long term
More informationFormal Definition of Computation. Formal Definition of Computation p.1/28
Formal Definition of Computation Formal Definition of Computation p.1/28 Computation model The model of computation considered so far is the work performed by a finite automaton Formal Definition of Computation
More informationGraphical Tools for Exploring and Analyzing Data From ARIMA Time Series Models
Statistics Preprints Statistics 3-29-1999 Graphical Tools for Exploring and Analyzing Data From ARIMA Time Series Models William Q. Meeker Iowa State University, wqmeeker@iastate.edu Follow this and additional
More informationExperiment 1 CH Fall 2004 INTRODUCTION TO SPREADSHEETS
Experiment 1 CH 222 - Fall 2004 INTRODUCTION TO SPREADSHEETS Introduction Spreadsheets are valuable tools utilized in a variety of fields. They can be used for tasks as simple as adding or subtracting
More informationThe Unix Environment for Programming (COMP433)
The Unix Environment for Programming (COMP433) Student's Practical Manual Dr. Mohamed Ben Laroussi Aissa m.issa@unizwa.edu.om Room 11 I- 13 Spring 2017 1 Textbook Topic # Topic Page 1 Introduction 2 3
More information1 All of this was put in tables to make it easier to control the layout and format.
Page 1 of 6 1 All of this was put in tables to make it easier to control the layout and format. Click on StatDisk icon on the Desktop or Click Start, Programs, and StatDisk to Open the StatDisk program.
More informationProgramming Exercise 1: Linear Regression
Programming Exercise 1: Linear Regression Machine Learning Introduction In this exercise, you will implement linear regression and get to see it work on data. Before starting on this programming exercise,
More informationHere is Kellogg s custom menu for their core statistics class, which can be loaded by typing the do statement shown in the command window at the very
Here is Kellogg s custom menu for their core statistics class, which can be loaded by typing the do statement shown in the command window at the very bottom of the screen: 4 The univariate statistics command
More informationLAB 2: DATA FILTERING AND NOISE REDUCTION
NAME: LAB TIME: LAB 2: DATA FILTERING AND NOISE REDUCTION In this exercise, you will use Microsoft Excel to generate several synthetic data sets based on a simplified model of daily high temperatures in
More informationGetting Started With R
Installation. Getting Started With R The R software package can be obtained free from www.r-project.org. To install R on a Windows machine go to this web address; in the left margin under Download, select
More informationECONOMICS 452 TIME SERIES WITH STATA
1 ECONOMICS 452 01 Introduction TIME SERIES WITH STATA This manual is intended for the first half of the Economics 452 course and introduces some of the time series capabilities in Stata 8 I will be writing
More informationRecall the expression for the minimum significant difference (w) used in the Tukey fixed-range method for means separation:
Topic 11. Unbalanced Designs [ST&D section 9.6, page 219; chapter 18] 11.1 Definition of missing data Accidents often result in loss of data. Crops are destroyed in some plots, plants and animals die,
More informationThe Time Series Forecasting System Charles Hallahan, Economic Research Service/USDA, Washington, DC
The Time Series Forecasting System Charles Hallahan, Economic Research Service/USDA, Washington, DC INTRODUCTION The Time Series Forecasting System (TSFS) is a component of SAS/ETS that provides a menu-based
More informationLecture 3 - Object-oriented programming and statistical programming examples
Lecture 3 - Object-oriented programming and statistical programming examples Björn Andersson (w/ Ronnie Pingel) Department of Statistics, Uppsala University February 1, 2013 Table of Contents 1 Some notes
More informationTo move cells, the pointer should be a north-south-eastwest facing arrow
Appendix B Microsoft Excel Primer Oftentimes in physics, we collect lots of data and have to analyze it. Doing this analysis (which consists mostly of performing the same operations on lots of different
More informationPROGRAM EFFICIENCY & COMPLEXITY ANALYSIS
Lecture 03-04 PROGRAM EFFICIENCY & COMPLEXITY ANALYSIS By: Dr. Zahoor Jan 1 ALGORITHM DEFINITION A finite set of statements that guarantees an optimal solution in finite interval of time 2 GOOD ALGORITHMS?
More information4b: Making an auxiliary table for calculating the standard deviation
In the book we discussed the use of an auxiliary table to calculate variance and standard deviation (Table 4.3). Such a table gives much more insight in the underlying calculations than the simple number
More informationLOOPS. Repetition using the while statement
1 LOOPS Loops are an extremely useful feature in any programming language. They allow you to direct the computer to execute certain statements more than once. In Python, there are two kinds of loops: while
More informationIBM SPSS Forecasting 24 IBM
IBM SPSS Forecasting 24 IBM Note Before using this information and the product it supports, read the information in Notices on page 59. Product Information This edition applies to ersion 24, release 0,
More informationGRETL FOR TODDLERS!! CONTENTS. 1. Access to the econometric software A new data set: An existent data set: 3
GRETL FOR TODDLERS!! JAVIER FERNÁNDEZ-MACHO CONTENTS 1. Access to the econometric software 3 2. Loading and saving data: the File menu 3 2.1. A new data set: 3 2.2. An existent data set: 3 2.3. Importing
More informationTransform data - Compute Variables
Transform data - Compute Variables Contents TRANSFORM DATA - COMPUTE VARIABLES... 1 Recode Variables... 3 Transform data - Compute Variables With MAXQDA Stats you can perform calculations on a selected
More informationPackage ggseas. June 12, 2018
Package ggseas June 12, 2018 Title 'stats' for Seasonal Adjustment on the Fly with 'ggplot2' Version 0.5.4 Maintainer Peter Ellis Provides 'ggplot2' 'stats' that estimate
More informationCSE100 Principles of Programming with C++
1 Instructions You may work in pairs (that is, as a group of two) with a partner on this lab project if you wish or you may work alone. If you work with a partner, only submit one lab project with both
More informationON SELECTION OF PERIODIC KERNELS PARAMETERS IN TIME SERIES PREDICTION
ON SELECTION OF PERIODIC KERNELS PARAMETERS IN TIME SERIES PREDICTION Marcin Michalak Institute of Informatics, Silesian University of Technology, ul. Akademicka 16, 44-100 Gliwice, Poland Marcin.Michalak@polsl.pl
More informationRegression on the trees data with R
> trees Girth Height Volume 1 8.3 70 10.3 2 8.6 65 10.3 3 8.8 63 10.2 4 10.5 72 16.4 5 10.7 81 18.8 6 10.8 83 19.7 7 11.0 66 15.6 8 11.0 75 18.2 9 11.1 80 22.6 10 11.2 75 19.9 11 11.3 79 24.2 12 11.4 76
More informationDOWNLOAD PDF MICROSOFT EXCEL ALL FORMULAS LIST WITH EXAMPLES
Chapter 1 : Examples of commonly used formulas - Office Support A collection of useful Excel formulas for sums and counts, dates and times, text manipularion, conditional formatting, percentages, Excel
More informationExamples, examples: Outline
Examples, examples: Outline Overview of todays exercises Basic scripting Importing data Working with temporal data Working with missing data Interpolation in 1D Some time series analysis Linear regression
More informationCSI33 Data Structures
Outline Department of Mathematics and Computer Science Bronx Community College September 6, 2017 Outline Outline 1 Chapter 2: Data Abstraction Outline Chapter 2: Data Abstraction 1 Chapter 2: Data Abstraction
More informationMatlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin
Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming using familiar mathematical notation The name Matlab stands
More informationHints about R. version 1.16, 20 January Georgi Boshnakov
Hints about R version 1.16, 20 January 2017 Georgi Boshnakov 1 Introduction R is a powerful system for data analysis. It is easily available to download R, go to the R Project site (just Google R and the
More information3. EXCEL FORMULAS & TABLES
Winter 2019 CS130 - Excel Formulas & Tables 1 3. EXCEL FORMULAS & TABLES Winter 2019 Winter 2019 CS130 - Excel Formulas & Tables 2 Cell References Absolute reference - refer to cells by their fixed position.
More informationTime series. VCEcoverage. Area of study. Units 3 & 4 Data analysis
Time series 4 VCEcoverage Area of study Units & 4 Data analysis In this cha chapter 4A Time series and trend lines 4B Fitting trend lines: the 2-mean and -median methods 4C Least-squares trend lines 4D
More information1 Pencil and Paper stuff
Spring 2008 - Stat C141/ Bioeng C141 - Statistics for Bioinformatics Course Website: http://www.stat.berkeley.edu/users/hhuang/141c-2008.html Section Website: http://www.stat.berkeley.edu/users/mgoldman
More information[spa-temp.inf] Spatial-temporal information
[spa-temp.inf] Spatial-temporal information VI Table of Contents for Spatial-temporal information I. Spatial-temporal information........................................... VI - 1 A. Cohort-survival method.........................................
More informationMaintaining Mathematical Proficiency
NBHCA SUMMER WORK FOR ALGEBRA 1 HONORS AND GEOMETRY HONORS Name 1 Add or subtract. 1. 1 3. 0 1 3. 5 4. 4 7 5. Find two pairs of integers whose sum is 6. 6. In a city, the record monthly high temperature
More informationSurvey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9
Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Contents 1 Introduction to Using Excel Spreadsheets 2 1.1 A Serious Note About Data Security.................................... 2 1.2
More informationProblem Set 4: Streams and Lazy Evaluation
Due Friday, March 24 Computer Science (1)21b (Spring Term, 2017) Structure and Interpretation of Computer Programs Problem Set 4: Streams and Lazy Evaluation Reading Assignment: Chapter 3, Section 3.5.
More informationAssignment 2. Unsupervised & Probabilistic Learning. Maneesh Sahani Due: Monday Nov 5, 2018
Assignment 2 Unsupervised & Probabilistic Learning Maneesh Sahani Due: Monday Nov 5, 2018 Note: Assignments are due at 11:00 AM (the start of lecture) on the date above. he usual College late assignments
More information1 Introduction to Using Excel Spreadsheets
Survey of Math: Excel Spreadsheet Guide (for Excel 2007) Page 1 of 6 1 Introduction to Using Excel Spreadsheets This section of the guide is based on the file (a faux grade sheet created for messing with)
More informationAn introduction to interpolation and splines
An introduction to interpolation and splines Kenneth H. Carpenter, EECE KSU November 22, 1999 revised November 20, 2001, April 24, 2002, April 14, 2004 1 Introduction Suppose one wishes to draw a curve
More informationGrace days can not be used for this assignment
CS513 Spring 19 Prof. Ron Matlab Assignment #0 Prepared by Narfi Stefansson Due January 30, 2019 Grace days can not be used for this assignment The Matlab assignments are not intended to be complete tutorials,
More informationIntro. Scheme Basics. scm> 5 5. scm>
Intro Let s take some time to talk about LISP. It stands for LISt Processing a way of coding using only lists! It sounds pretty radical, and it is. There are lots of cool things to know about LISP; if
More informationSerial Correlation and Heteroscedasticity in Time series Regressions. Econometric (EC3090) - Week 11 Agustín Bénétrix
Serial Correlation and Heteroscedasticity in Time series Regressions Econometric (EC3090) - Week 11 Agustín Bénétrix 1 Properties of OLS with serially correlated errors OLS still unbiased and consistent
More informationEdge detection. Convert a 2D image into a set of curves. Extracts salient features of the scene More compact than pixels
Edge Detection Edge detection Convert a 2D image into a set of curves Extracts salient features of the scene More compact than pixels Origin of Edges surface normal discontinuity depth discontinuity surface
More information18.02 Multivariable Calculus Fall 2007
MIT OpenCourseWare http://ocw.mit.edu 18.02 Multivariable Calculus Fall 2007 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 18.02 Problem Set 4 Due Thursday
More informationFunctions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators:
Page1 Functions in Excel Formulas (functions) are equations that perform calculations on values in your spreadsheet. A formula always starts with an equal sign (=). Example: =5+2*7 This formula multiples
More informationTime Series Data Analysis on Agriculture Food Production
, pp.520-525 http://dx.doi.org/10.14257/astl.2017.147.73 Time Series Data Analysis on Agriculture Food Production A.V.S. Pavan Kumar 1 and R. Bhramaramba 2 1 Research Scholar, Department of Computer Science
More informationPractice in R. 1 Sivan s practice. 2 Hetroskadasticity. January 28, (pdf version)
Practice in R January 28, 2010 (pdf version) 1 Sivan s practice Her practice file should be (here), or check the web for a more useful pointer. 2 Hetroskadasticity ˆ Let s make some hetroskadastic data:
More informationEstimating R 0 : Solutions
Estimating R 0 : Solutions John M. Drake and Pejman Rohani Exercise 1. Show how this result could have been obtained graphically without the rearranged equation. Here we use the influenza data discussed
More informationSpeeding Up the ARDL Estimation Command:
Speeding Up the ARDL Estimation Command: A Case Study in Efficient Programming in Stata and Mata Sebastian Kripfganz 1 Daniel C. Schneider 2 1 University of Exeter 2 Max Planck Institute for Demographic
More informationAlgebra II: Strand 5. Power, Polynomial, and Rational Functions; Topic 3. Rational Functions; Task 5.3.2
1 TASK 5.3.2: FUNCTIONS AND THEIR QUOTIENTS Solutions 1. Graph the following functions and their quotient. (Hint: Put Function 1 in Y1=, Function 2 in Y2=, then make Y3= Y1/Y2. Change the graph style for
More informationPackage batchmeans. R topics documented: July 4, Version Date
Package batchmeans July 4, 2016 Version 1.0-3 Date 2016-07-03 Title Consistent Batch Means Estimation of Monte Carlo Standard Errors Author Murali Haran and John Hughes
More informationhp calculators HP 35s Using Algebraic Mode Calculation modes Functions of a single number in algebraic A simple example in algebraic
Calculation modes Functions of a single number in algebraic A simple example in algebraic Arithmetic calculations with two numbers Another example - the area of a piece of carpet Algebraic mode in detail
More informationModelling and simulation of seismic reflectivity
Modelling reflectivity Modelling and simulation of seismic reflectivity Rita Aggarwala, Michael P. Lamoureux, and Gary F. Margrave ABSTRACT We decompose the reflectivity series obtained from a seismic
More informationUnit 5: Estimating with Confidence
Unit 5: Estimating with Confidence Section 8.3 The Practice of Statistics, 4 th edition For AP* STARNES, YATES, MOORE Unit 5 Estimating with Confidence 8.1 8.2 8.3 Confidence Intervals: The Basics Estimating
More informationExcel Functions & Tables
Excel Functions & Tables Fall 2014 Fall 2014 CS130 - Excel Functions & Tables 1 Review of Functions Quick Mathematics Review As it turns out, some of the most important mathematics for this course revolves
More informationCS101 Lecture 04: Binary Arithmetic
CS101 Lecture 04: Binary Arithmetic Binary Number Addition Two s complement encoding Briefly: real number representation Aaron Stevens (azs@bu.edu) 25 January 2013 What You ll Learn Today Counting in binary
More informationSPSS Basics for Probability Distributions
Built-in Statistical Functions in SPSS Begin by defining some variables in the Variable View of a data file, save this file as Probability_Distributions.sav and save the corresponding output file as Probability_Distributions.spo.
More informationIntroduction to EViews. Manuel Leonard F. Albis UP School of Statistics
Introduction to EViews Manuel Leonard F. Albis UP School of Statistics EViews EViews provides sophisticated data analysis, regression, and forecasting tools on Windows-based computers. Areas where EViews
More informationMonte Carlo Analysis
Monte Carlo Analysis Andrew Q. Philips* February 7, 27 *Ph.D Candidate, Department of Political Science, Texas A&M University, 2 Allen Building, 4348 TAMU, College Station, TX 77843-4348. aphilips@pols.tamu.edu.
More informationExercise 2.23 Villanova MAT 8406 September 7, 2015
Exercise 2.23 Villanova MAT 8406 September 7, 2015 Step 1: Understand the Question Consider the simple linear regression model y = 50 + 10x + ε where ε is NID(0, 16). Suppose that n = 20 pairs of observations
More informationSome issues with R It is command-driven, and learning to use it to its full extent takes some time and effort. The documentation is comprehensive,
R To R is Human R is a computing environment specially made for doing statistics/econometrics. It is becoming the standard for advanced dealing with empirical data, also in finance. Good parts It is freely
More informationDr. V. Alhanaqtah. Econometrics. Graded assignment
Laboratory assignment 7. AUTOCORRELATION Step 1. Install and activate necessary packages. Copy and paste in R Studio the following commands: install.packages("lubridate") install.packages("sandwich") install.packages("lmtest")
More informationPackage mtsdi. January 23, 2018
Version 0.3.5 Date 2018-01-02 Package mtsdi January 23, 2018 Author Washington Junger and Antonio Ponce de Leon Maintainer Washington Junger
More informationGraphical Analysis of Data using Microsoft Excel [2016 Version]
Graphical Analysis of Data using Microsoft Excel [2016 Version] Introduction In several upcoming labs, a primary goal will be to determine the mathematical relationship between two variable physical parameters.
More informationLinkage analysis with paramlink Session I: Introduction and pedigree drawing
Linkage analysis with paramlink Session I: Introduction and pedigree drawing In this session we will introduce R, and in particular the package paramlink. This package provides a complete environment for
More informationAreas of Planar Regions WORK SHEETS 1
Activity 1. Areas of Planar Regions WORK SHEETS 1 In Figure 1 select two points in the first quadrant at integer coordinates. Label the point with the larger x-value P 1 and the other P 2. Select P 2 so
More informationLastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.
Welcome to Basic Excel, presented by STEM Gateway as part of the Essential Academic Skills Enhancement, or EASE, workshop series. Before we begin, I want to make sure we are clear that this is by no means
More informationFurther Maths Notes. Common Mistakes. Read the bold words in the exam! Always check data entry. Write equations in terms of variables
Further Maths Notes Common Mistakes Read the bold words in the exam! Always check data entry Remember to interpret data with the multipliers specified (e.g. in thousands) Write equations in terms of variables
More informationExcel 2016: Part 2 Functions/Formulas/Charts
Excel 2016: Part 2 Functions/Formulas/Charts Updated: March 2018 Copy cost: $1.30 Getting Started This class requires a basic understanding of Microsoft Excel skills. Please take our introductory class,
More informationIn Homework 1, you determined the inverse dynamics model of the spinbot robot to be
Robot Learning Winter Semester 22/3, Homework 2 Prof. Dr. J. Peters, M.Eng. O. Kroemer, M. Sc. H. van Hoof Due date: Wed 6 Jan. 23 Note: Please fill in the solution on this sheet but add sheets for the
More informationJMC 2015 Teacher s notes Recap table
JMC 2015 Teacher s notes Recap table JMC 2015 1 Number / Adding and subtracting integers Number / Negative numbers JMC 2015 2 Measuring / Time units JMC 2015 3 Number / Estimating Number / Properties of
More informationUnit 2-2: Writing and Graphing Quadratics NOTE PACKET. 12. I can use the discriminant to determine the number and type of solutions/zeros.
Unit 2-2: Writing and Graphing Quadratics NOTE PACKET Name: Period Learning Targets: Unit 2-1 12. I can use the discriminant to determine the number and type of solutions/zeros. 1. I can identify a function
More informationComputer Experiments: Space Filling Design and Gaussian Process Modeling
Computer Experiments: Space Filling Design and Gaussian Process Modeling Best Practice Authored by: Cory Natoli Sarah Burke, Ph.D. 30 March 2018 The goal of the STAT COE is to assist in developing rigorous,
More informationUsing Excel This is only a brief overview that highlights some of the useful points in a spreadsheet program.
Using Excel 2007 This is only a brief overview that highlights some of the useful points in a spreadsheet program. 1. Input of data - Generally you should attempt to put the independent variable on the
More information