Cornell College
STA 364 Spring 2025 Block 5
Dr. Tyler George
West 311
stats-tgeorge.github.io/STA364_TSApps/
Let’s open it up!
It is my intent that students from all diverse backgrounds and perspectives be well-served by this course, that students’ learning needs be addressed both in and out of class, and that the diversity that the students bring to this class be viewed as a resource, strength and benefit.
Only work that is clearly assigned as team work should be completed collaboratively.
Some labs/activities will be completed in groups. You should work with each other during, and sometimes outside of class, to complete the labs.
Homework must be submitted individually. You may not directly share answers / code with others, however you are welcome to discuss the problems in general and ask for advice.
Exams must be completed individually. You may not discuss any aspect of the exam with peers. If you have questions, email me, especially if you get stuck on an usual problem (not a coding error).
I are aware that a huge volume of code is available on the web, and many tasks may have solutions posted.
Unless explicitly stated otherwise, this course’s policy is that may make use of any online resources (e.g. RStudio Community, StackOverflow, etc.) but you must explicitly cite where you obtained any code you directly use or use as inspiration in your solution(s). Often on exams, I will require you use code provided in class.
Any recycled code that is discovered and is not explicitly cited will be treated as plagiarism, regardless of source
You do not need to cite code I provide in class or in the notes.
Complete all the preparation work before class (readings).
Ask questions.
Do the readings.
Do the labs/activities.
Do the Homework
Don’t procrastinate! There is no time for falling behind on the block!
Packages: Fundamental units of reproducible R code, including reusable R functions, the documentation that describes how to use them, and sample data1
As of March 14th, 2024, there are 20,582 R packages available on CRAN (the Comprehensive R Archive Network)2
We’re going to work with a small (but important) subset of these!
Option 1:
Sit back and enjoy the show!
Option 2:
install.packages()
function and loaded with the library
function, once per session:$
:Option 1:
Sit back and enjoy the show!
Option 2:
Important
The environment of your Quarto document is separate from the Console!
Remember this, and expect it to bite you a few times as you’re learning to work with Quarto!
Questions - how do we measure ``easiest’’? - what makes something easy/difficult to forecast?
Something is easier to forecast if:
“He who sees the past as surprise-free is bound to have a future full of surprises.’’(Amos Tversky)
Problem: Want forecasts of each of hundreds of items. Series can be stationary, trended or seasonal. They currently have a large forecasting program written in-house but it doesn’t seem to produce sensible forecasts. They want me to fix it.
Additional information
Methods currently used
FORECAST
function in MS-Excel!Client: One of Australia’s largest car fleet companies
Problem: how to forecast resale value of vehicles? How should this affect leasing and sales policies?
Not the real data! Or is it?
Problem: how to forecast passenger traffic on major routes?
Dr. Mine Çetinkaya-Rundel