Data over Space and Time

Data over Space and Time (36-740)

Fall 2026, Mini 1

Cosma Shalizi
Tuesdays and Thursdays, 11:00--12:20, Gates Hall 4102 (in the middle of the spiral staircase)

Overview

This course is a survey of methods for spatial, temporal, and spatio-temporal statistics, with an emphasis on tools which can be applied in all three domains. The first part of the course will focus on linear predictors and covariance functions (which are inter-related), and the second on approximate methods for non-linear models, including resampling. Assignments will be a mix of theory and computational analysis of real data.

Prereqs

There are no formal pre-requisites, but students are assumed to have a good grasp of probability and mathematical statistics, at the level of Wasserman's All of Statistics, Casella and Berger, or Davison, and comfort working with vectors and matrices, including eigendecompositions. You should also be comfortable with at least one system for numerical statistical computing, either R or the appropriate parts of Python.

If you are unsure of whether you have the right background, please ask.

740 vs. 620

740 is for students in the Ph.D. program in statistics; MS. students, and students from other departments, should register for 620. The assignments will be somewhat different for the two classes.

Goals and Learning Outcomes

(Accreditation officials look here)

The goal of this class is to train you in using statistical models and methods to analyze interdependent data spread out over space, time, or both, using the models as data summaries, as predictive instruments, and as tools for scientific inference. We will build on the theory of statistical inference for independent data taught in earlier statistics courses, and complement the theory and applications of the linear model. After taking the class, when you're faced with a new temporal, spatial, or spatio-temporal data-analysis problem, you should be able to (1) describe the statistical challenges the problem presents, (2) select appropriate methods, (3) use statistical software to implement those methods, (4) critically evaluate the resulting statistical models, and (5) communicate the results of your analyses to collaborators and to non-statisticians.

Course Mechanics

Lectures

Lectures will amplify the readings, provide examples and demos, answer questions, and generally discuss the material. You will find lectures more rewarding if you do the readings beforehand, rather than after (or during).

Do not record lectures. Exceptions to this will be made only for students with written accommodation plans, authorized by CMU's Office of Disability Resources, requiring recordings.

(The value of class meetings lies precisely in your chance to ask questions, discuss, and generally interact. Recordings interfere with this in two ways:

  1. They tempt you to skip class and/or to zone out and/or try to multi-task during it. (Nobody is really any good at multi-tasking.) Even if you do watch the recording later, you will not learn as much from it as if you had attended in the first place.
  2. People are understandably reluctant to participate when they know they're being recorded. (It's only too easy to manipulate recordings to make anyone seem dumb and/or obnoxious.) Maybe this doesn't bother you; it doesn't bother me, much, because I'm protected by academic freedom and by tenure, but a good proportion of your classmates won't participate if they're being recorded, and that diminishes the value of the class for everyone.
Recording someone without their permission is illegal in Pennsylvania, and more importantly is unethical everywhere, so don't make your own recordings of the class.)

Taking notes during class is strongly encouraged; taking notes forces you to think about what you are hearing and how to organize it, which helps you understand and remember the content.

Office Hours

Times TBD; office hours will be held in my actual office, Baker Hall 229C.

If you cannot make the regular office hours, or have concerns you'd rather discuss privately (e.g., grades), please e-mail me to make an appointment.

Textbooks

There is no required textbook, but the following are recommended:
Gidon Eshel, Spatiotemporal Data Analysis (Princeton, New Jersey: Princeton University Press, 2011, ISBN 978-0-691-12891-7)
Full text available (as PDFs of chapters) through JSTOR.
Bärbel Finkenstädt, Leonhard Held and Valerie Isham (eds.), Statistical Methods for Spatio-Temporal Systems (Boca Raton, Florida: Chapman & Hall / CRC Press, 2007, ISBN 978-1-584-88593-1)
No electronic access through the library; scans will be made available via Canvas as needed
Peter Guttorp, Stochastic Modeling of Scientific Data (Boca Raton, Florida: Chapman & Hall / CRC Press, 1995, ISBN 978-0-412-99281-0)
No electronic access through the library; scans will be made available via Canvas as needed.
We will not be covering everything in these books, so you probably don't want to buy them all, but they are good books.

Assignments

There are three reasons you will get assignments in this course. In order of decreasing importance:
  1. Practice. Practice is essential to developing the skills you are learning in this class. It also actually helps you learn, because some things which seem murky clarify when you actually do them, and sometimes trying to do something shows what you only thought you understood.
  2. Feedback. By seeing what you can and cannot do, and what comes easily and what you struggle with, I can help you learn better, by giving advice and, if need be, adjusting the course.
  3. Evaluation. The university is, in the end, going to stake its reputation (and that of its faculty) on assuring the world that you have mastered the skills and learned the material that goes with your degree. Before doing that, it requires an assessment of how well you have, in fact, mastered the material and skills being taught in this course.

To serve these goals, there will be four kinds of assignment in this course.

Homework
Most weeks will have a homework assignment, divided into a series of questions or problems. These will have a common theme, and will usually build on each other, but different problems may involve statistical theory, analyzing real data sets on the computer, and communicating the results.
All homework will be submitted electronically through Gradescope. Homework will be due at 6:00 pm on Thursdays.
Scribing
Starting with Lecture 3 (in week 2), at every lecture, one or more students will act as "scribes", taking their own notes on the lecture, and then turning that into a written document, to share with the class, within a week. Students will sign up to scribe on specific dates, on a first-come, first-served basis. (If you can't scribe on a date you signed up for, contact me ASAP to re-schedule.) Scribes will also have access to my slides, and the grading rubric will be posted by the end of week 1.
If some people end up having to scribe more than others, the extra work will count as extra credit.
Research questions
Students in 740 will work on developing a research question related to the course, in a short document 1--5 pages. This question can relate either to our methods themselves, or to their application to a concrete problem of data analysis. This is solely about developing, and refining, the question, not about doing the research to answer it. Students will submit a first draft, receive feedback within a week, and then submit a second draft at the end of the course.
Final oral exam
During the last week of the course, students will meet one-on-one with me for an oral exam of no more than 20 minutes. During this exam, students will be initially asked to describe the mathematical basis of one of the methods we have gone over, or how it could be applied to a concrete problem, with further questions following from there. At least one week before the exam, I will provide a list of the (8--12) topics you might be asked about. The exam will be open notes and open book, but with no computing devices, since it is supposed to assess your understanding, and your ability to communicate that understanding. (There will be no trick questions.) The exam will take place during our regular class time, with 20-minute slots reserved on a first-come, first-served basis.

Time Expectatons

You should expect to spend 8--10 hours on assignments every week, averaging over the mini. (This follows from the university's rules about how course credits translate into hours of student time.) If you find yourself spending significantly more time than that on the class, please come to talk to me.

Grading

Grade boundaries will be as follows:
A [90, 100]
B [80, 90)
C [70, 80)
D [60, 70)
R < 60

To be fair to everyone, these boundaries will be held to strictly.

The grade components will be broken down as follows:

No late work will be accepted for any reason. (That's what replacing your lowest grades is for.)

Grade changes and regrading: If you think that particular assignment was wrongly graded, tell me as soon as possible. Direct any questions or complaints about your grades to me; the teaching assistants have no authority to make changes. (This also goes for your final letter grade.) Complaints that the thresholds for letter grades are unfair, that you deserve a higher grade, etc., will accomplish much less than pointing to concrete problems in the grading of specific assignments.

As a final word of advice about grading, "what is the least amount of work I need to do in order to get the grade I want?" is a much worse way to approach higher education than "how can I learn the most from this class and from my teachers?".

Collaboration, Cheating and Plagiarism

Except for explicit group exercises, everything you turn in for a grade must be your own work, or a clearly acknowledged borrowing from an approved source; this includes all mathematical derivations, computer code and output, figures, and text. Any use of permitted sources must be clearly acknowledged in your work, with citations letting the reader verify your source. You are free to consult the textbooks and recommended class texts, lecture slides and demos, any resources provided through the class website, solutions provided to this semester's previous assignments in this course, books and papers in the library, or legitimate online resources, though again, all use of these sources must be acknowledged in your work. (Websites which compile course materials are not legitimate online resources.)

In general, you are free to discuss homework with other students in the class, though not to share or compare work; such conversations must be acknowledged in your assignments. You may not discuss the content of assignments with anyone other than current students, the instructors, or your teachers in other current classes at CMU, until after the assignments are due. (Exceptions can be made, with prior permission, for approved tutors.) You are, naturally, free to complain, in general terms, about any aspect of the course, to whomever you like.

Any use of solutions provided for any assignment in this course, or in other courses, in previous semesters is strictly prohibited. This prohibition applies even to students who are re-taking the course. Do not copy the old solutions (in whole or in part), do not "consult" them, do not read them, do not ask your friend who took the course last year if they "happen to remember" or "can give you a hint". Doing any of these things, or anything like these things, is cheating, it is easily detected cheating, and those who thought they could get away with it in the past have failed the course. Even more importantly: doing any of those things means that the assignment doesn't give you a chance to practice; it makes any feedback you get meaningless; and of course it makes any evaluation based on that assignment unfair.

If you are unsure about what is or is not appropriate, please ask me before submitting anything; there will never be a penalty for asking. If you do violate these policies but then think better of it, it is your responsibility to tell me as soon as possible to discuss how to rectify matters. Otherwise, violations of any sort will lead to severe, formal disciplinary action, under the terms of the university's policy on academic integrity.

Using AI is Discouraged

AI tools have their place (maybe), but they are most useful when they are doing boring and repetitive, "mechanical" work which you can check. The point of assignments in a class like this is to help you acquire the knowledge and skills you need to evaluate the work of someone else --- or of something else, like the output of an AI. Therefore, using generative AI for any part of assignments in this class which require you to think is actively harmful to your own learning. (This is backed up by professional studies of the effect of AI on student learning, which I am happy to discuss at length.)

I recognize that it is going to be very hard to stop you from using these machines to do mechanical tasks (like writing boilerplate code or graph formatting). I would also be failing in my duty as a teacher if I let you replace your own thought and learning with a random sample of the lowest common denominator of the Internet. Since drawing a bright line between those two extremes is hard, I am willing, on a trial basis, to permit the use of generative AI tools in this class, on the following conditions:

  1. Whenever possible, don't use AI. (You're at a university, try to learn for yourself.)
  2. If you do use AI on an assignment, you must acknowledge it, and include a complete transcript of your session(s) with the AI. (Put this at the end, after the main body of your assignment.)
  3. If I judge that you are over-relying on the AI, you will receive feedback to that effect, and your grade will be marked down for that assignment. (My decisions on this are final.)
  4. Using AI without acknowledgment will be treated as plagiarism.
  5. I reserve the right to forbid its use for everyone altogether.

Finally, if you absolutely must use these tools in this course, this seems like a good way to do it.

Accommodations for Students with Disabilities

If you need accommodations for physical and/or learning disabilities, please contact the Office of Disability Resources, via their website, [http://www.cmu.edu/disability-resources]. They will help you work out an official written accommodation plan, and help coordinate with me.

Inclusion and Respectful Participation

The university is a community of scholars, that is, of people seeking knowledge. All of our accumulated knowledge has to be re-learned by every new generation of scholars, and re-tested, which requires debate and discussion. Everyone enrolled in the course has a right to participate in the class discussions. This doesn't mean that everything everyone says is equally correct or equally important, but does mean that everyone needs to be treated with respect as persons, and criticism and debate should be directed at ideas and not at people. Don't dismiss (or enhance) anyone in the course because of where they come from, and don't use your participation in the class as a way of shutting up others. (Don't be rude, and don't go looking for things to be offended by.) While methods for spatio-temporal data analysis don't usually lead to heated debate, some of the subjects we'll be applying them to might. If someone else is saying something you think is really wrong-headed, and you think it's important to correct it, address why it doesn't make sense, and listen if they give a counter-argument.

The classroom is not a democracy; as the teacher, I have the right and the responsibility to guide the discussion in what I judge are productive directions. This may include shutting down discussions which are not helping us learn about statistics, even if those discussions are important to have elsewhere. I will do my best to guide the course in a way which respects everyone's dignity as a human being and as a member of the university.

Lecture / Reading / Assignment Schedule

Readings marked with a star (*) are optional, because they're more peripheral, demand more mathematical or scientific background, and/or simply old. Readings marked with more than one star are, as it were, especially optional.

Topics after Lecture 9 are currently somewhat provisional, and may change (with plenty of notice); assignment due dates will not change.

Tuesday, 25 August (Lecture 1): Introduction to the Course

Thursday, 27 August (Lecture 2): Smoothing, Trends, Detrending

Tuesday, 1 September (Lecture 3): Expanding in Basis Functions I --- Principal Components Analysis

Thursday, 3 September (Lecture 4): Expanding in Basis Functions II --- Fourier Analysis

Tuesday, 8 September (Lecture 5): Optimal Linear Prediction, Especially Over Time

Thursday, 10 September (Lecture 6): Optimal Linear Prediction over Space and Space-Time

Tuesday, 15 September (Lecture 7): Separating Signal and Noise with Linear Methods

Thursday. 17 September (Lecture 8): Factor Models, and Linear State-Space Models

Tuesday, 22 September (Lecture 9): Nonlinear State-Space Models

Thursday, 24 September (Lecture 10): Prediction Processes

Tuesday, 29 September (Lecture 11): Point Processes

Thursday, 1 October (Lecture 12): Cross-Validation and Resampling over Space and Time

Tuesday, 6 October: Final Exams I

Thursday, 8 October: Final Exams II


Image credits: Pictures on this page are from my teacher David Griffeath's Particle Soup Kitchen website, except for Umberto Boccioni's Riot in the Galleria.