Part 2 of the course has five sessions, and this guide has one section for each. Every section gives a take-home message, a short list of things you should be able to do, the terms you need, and where to review. Session 7 was a self-guided lab with no slides, so its section points to the four lab notebooks instead. Treat the “be able to” lists as a checklist and try each item on your project data before you reopen the slides. Each row of a “Numbers to know” table names its source: a slide deck and slide title, or a book section. It also says when the number comes from the speaker notes. If the slides and the book ever give a number differently, the guide says which measurement each one is. The guide ends with five ideas that run through Chapter 2, some open questions to test yourself, and the three questions that now close every assignment.
Session 6 (Mon Oct 12): Sampling, resampling, and irregular data¶
Changing the sampling of a record is a claim about what happened between samples. Know what one value stands for, low-pass filter before you subsample, fill only the gaps the noise bounds and flag what you filled, and resample blocks when the noise has memory.
You should be able to:
Describe one value in a grid: variable, model level, grid spacing, time in UTC, and how much of it comes from the model. The NCEP/NCAR reanalysis value at Seattle is the lowest model level (about 40 m above the model’s ground), a class B analysis, at grid points about 280 × 190 km apart, although the file says
level_desc: Surface(2.5 Part 2; lec06 “Arrays that know their coordinates”).Estimate the memory a grid needs from its shape and data type before you load it, and read its packing on disk: 16-bit integers with
scale_factor0.01 set the precision to 0.01 K (2.5 Part 1).Select a cell by coordinate with a tolerance of half the grid step, and catch the two silent traps: a latitude slice written south to north on a grid stored north to south returns nothing, and
method="nearest"on a grid converted to -180 to 180° returns a cell in the Atlantic (2.5 Part 3; lec06 “Which cell is Seattle?”).Convert units on a copy, update every attribute, add a
historyentry, and fingerprint the result so a rerun can show it is identical. Accept an agent’s function only after your own check table passes, and log the exchange inAI_logs/(2.5 Parts 4 and 5).Tell statistical resampling (randomization, bootstrap, Monte Carlo) from signal resampling (changing the sampling rate or grid). Draw a bootstrap resample with replacement and of the same size as the sample, and say why the bootstrap cannot remove the bias of a small sample (2.6 section 1).
Compute the Nyquist frequency of a series and predict where a higher frequency folds: M2 at 1.93 cycles per day folds to 0.068 cycles per day, a 14.8-day period, in a series kept once a day (2.6 section 3.1).
Find out what the provider did before you downloaded: the native sampling, the distributed product, and what the product cannot recover (lec06 “One sensor, two samplings” and “Native and distributed resolution”; 2.6 section 3.1b). Convert local times to UTC with each reading’s own time-zone code, so the repeated hour at the end of daylight saving time stays separate.
Write a gap policy with a threshold set by the station’s own signal rates, keep a
filledflag and themethodbeside every filled value, and test a gap filler on gaps placed where real gaps happen (2.6 sections 3.2 to 3.2c).Average an irregular network without letting its composition change the result: subtract each site’s own mean first, then weight by 1/σ² (2.6 section 3.3).
Put an honest error bar on a trend in correlated noise with a moving-block bootstrap, and state the block length as a decision longer than the noise correlation time (2.6 section 3.4).
Key terms:
| Term | Meaning in this course |
|---|---|
| Reanalysis | A fixed forecast model run forward in time and pulled toward the observations available at each step: a complete grid, also where nobody measured (2.5 “The dataset”) |
| Kalnay class B | A reanalysis variable that observations affect directly but on which “the model also has a very strong influence” (Kalnay et al. 1996; 2.5) |
| Tolerance | The largest distance a nearest-neighbor selection may accept. Half the grid spacing, 1.25° on the 2.5° grid, turns a silent wrong cell into a KeyError (2.5 Part 3) |
| Fingerprint | A SHA-256 hash of a file’s bytes, or of the values and attributes of an array. A match proves you hold the same bytes as the recorded copy, not that the copy matches the provider’s original (2.5 Part 1) |
| Randomization | Reassigning observations between two groups at random to build the distribution of a statistic under the null hypothesis that group labels do not matter (2.6 section 1.1) |
| Bootstrap | Redrawing a sample with replacement, at the original sample size, to estimate the sampling uncertainty of a statistic (2.6 section 1.2) |
| Monte Carlo | Simulating new data from a known or assumed statistical model rather than redrawing from a sample (2.6 section 1.3) |
| Nyquist frequency | f_N = 1/(2Δt), the highest frequency a series sampled at interval Δt can represent (2.6 section 3.1) |
| Aliasing | A frequency above the new Nyquist folds into a lower frequency when a series is subsampled, and looks like a signal that was never there (lec06 “Keep one sample a day”) |
| Anti-alias filter | A low-pass filter applied before subsampling. A daily mean is a crude one (a 24-hour boxcar); scipy.signal.decimate applies a designed one (2.6 section 3.1) |
| Native and distributed resolution | What the instrument or model sampled, against what the provider publishes. Two neighboring grid cells can come from the same measurement (lec06 “Native and distributed resolution”) |
| Mascon | A mass concentration: one of the 4,551 equal-area 3° caps behind JPL’s 0.5° GRACE grid (lec06 “Native and distributed resolution”, notes) |
| Gap policy | A stated threshold: fill gaps the noise bounds, mask longer ones as missing, write the threshold down (2.6 section 3.2) |
| Filled flag | A column that marks each filled value and the method that filled it, as FLUXNET2015 and ESA CCI soil moisture distribute (2.6 section 3.2b) |
| Per-site anomaly | Each well’s (or station’s) value minus its own mean, so datum offsets cancel before averaging (2.6 section 3.3) |
| Inverse-variance weight | Weight 1/σ² per observation, which minimizes the variance of the combined estimate (2.6 section 3.3) |
| Moving-block bootstrap | Resampling contiguous blocks of residuals so each resample keeps the noise correlation up to the block length (2.6 section 3.4) |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
| Grid shape, NCEP/NCAR air temperature, 2013 to 2014 | 2,920 × 25 × 53 | lec06 “Arrays that know their coordinates”; 2.5 Part 1 |
Seattle’s cell vs what nearest returns on the converted copy | 47.5° N, 237.5° E vs -30° (Atlantic, about 6,500 km away) | lec06 “Which cell is Seattle?”, notes; 2.5 Part 3 |
| Daily sea level, RMS error: midnight sample vs daily mean | 0.59 vs 0.02 m | lec06 “Keep one sample a day”; 2.6 section 3.1 |
| Nooksack River, 16 Nov 2021: USGS daily mean vs instantaneous peak | 1,413 vs 1,594 m³/s (11% low) | lec06 “One sensor, two samplings”; 2.6 section 3.1b |
| 15-minute readings in the November 2021 file | 2,885 = 2,880 + 4 (25-hour day) + 1 (off-schedule peak) | 2.6 section 3.1b |
| Same seismometer, 1 vs 40 samples/s channel | 24% less peak velocity | lec06 “One sensor, two samplings” |
| JPL GRACE 0.5° grid cells vs independent mascons | 259,200 vs 4,551 | lec06 “Native and distributed resolution” |
| Gap threshold for the synthetic GNSS station; daily noise | 10 days; 2.4 mm | lec06 “Gaps: interpolation is a decision”; 2.6 section 3.2 |
| 150-day outage across a 25 mm step, RMS error: linear / boosted trees / trajectory model with the catalog step | 8.1 / 21.7 / 2.8 mm | 2.6 section 3.2b; lec06 “Testing a machine-learned gap filler”, notes |
| Same fillers on gaps hidden at random away from the earthquake | 1.6 to 3.1 mm | 2.6 section 3.2c |
| Biomass map R²: random vs spatial cross-validation (Ploton et al. 2020) | 0.53 vs 0.14 | lec06 “Testing a machine-learned gap filler” |
| 1997 to 2012 warming trend: unfilled vs kriged (Cowtan and Way 2014) | 0.064 vs 0.108 °C per decade | lec06 “Two cases where the filling choice changed the result” |
| 25-well network, RMS error: naive mean vs anomalies with weights | 2.42 vs 1.42 m | lec06 “The irregular stream” |
| Velocity uncertainty: day-by-day vs 100-day block bootstrap | ±0.019 vs ±0.148 mm/yr; truth 8.6σ vs 1.1σ away | lec06 “Error bars for noise with memory”; 2.6 section 3.4 |
Where to review: Session 6 slides; 2.5 Gridded data, Parts 0 to 5 and “What to carry forward”; 2.6 Resampling methods, sections 1.2, 2.1, and 3.1 to 3.4.
Session 7 (Wed Oct 14): Explore your system’s data (self-guided lab)¶
Before you analyze a record, confirm that your file is the one the provider served, know what the instrument or model sampled, and measure how each problem in the record biases the quantity your field cares about. Some damage cannot be cleaned away.
All four tracks have the same parts in the same order, so teammates on different tracks can compare part by part (lab_s07_start_here “The parts”):
| Part | What you do |
|---|---|
| 0 | The system, a map and the guiding question; one prediction before any code |
| 1 | Pull the raw data from the provider, compare it with the course copy (size, number of records, first and last records, fingerprint), read the native resolution and the processing between sensor and file |
| 2 | A table: what a row records, units, missing values and flags, limits, one real extreme against one error |
| 3 | A 1D array: a time series, its sampling, its gaps and one real sensor problem |
| 4 | A 2D array: axes, coordinates, resolution, the structure the physics predicts (optional) |
| 5 | A synthetic twin with problems planted by your NetID: list, hunt, clean, compute the derived quantity three ways (truth, as given, after cleaning), reflect on what cleaning cannot undo |
| 6 | Correlations on the real data: expected sign first, Pearson and Spearman, the trap that matters in your system |
| 7 | From data to a learning problem: the ordered chain of steps with a reason for each, the task and target, a split with no leak, balancing after the split |
| 8 | A short comparison with an AI tool on your twin (optional) |
You should be able to:
Tell whether a data file is the one the provider served, unmodified and complete, and explain why a different fingerprint is not always corruption: ComCat revises rows continuously, and EarthScope can repackage the same samples in different bytes (lab_s07_volcano Part 1).
Say what an instrument or a model actually samples and which processing stands between the sensor and the number in the file (Part 1 of each track).
Hunt planted problems by asking what the ground, the soil, the model or the star can physically do, decide for each value whether to flag, remove or keep it, and record kind, place and reason for each finding (Part 5).
Measure how each problem biases the derived quantity, and name the damage cleaning cannot undo (Part 5 (d)).
Remove a shared seasonal cycle before reading a correlation, and correct the sample size for autocorrelation (Part 6).
Write the chain from raw file to a learnable table, with a split by time or space that does not leak and class weights computed on the training set only (Part 7).
Write rules and instructions that let another person, or an AI tool, rerun your data chain from the raw file, and check whether it did (lab_s07_start_here “Submit by Friday 16 October”).
Each track, with its derived quantity and its trap:
| Track | System and data | Derived quantity, three ways (Part 5) | Trap in the correlations (Part 6) | Learning problem (Part 7) |
|---|---|---|---|---|
| Volcano | Mount St Helens, 2004 to 2008: ComCat catalog and six hours of seismometer HSR, 2.5 km from the vent | The drumbeat clock: rate per hour, median spacing, coefficient of variation of the spacing | Catalog completeness, overlapping events, a count that barely varies (a clock), a unit change | Eruption days as a rare class with a time split; a skewed magnitude target |
| Soil moisture | USCRN station at Turnbull National Wildlife Refuge, 2015 to 2024, five depths | Response to rain at 5 cm: rise in water content per 10 mm of rain | A shared seasonal cycle (warm months are dry months); effective sample size | Tomorrow’s change at 5 cm, or dry spells at 20 cm |
| Land-surface model | CPC one-layer soil water and gauge precipitation, 0.5° grid, western United States, 1991 to 2020 | Drought frequency: percent of 2011 to 2020 cell-months below the 1991 to 2010 20th percentile of the same cell and month | Seasonal cycle, lag, autocorrelation, and a model driven by precipitation must correlate with it | Emulate the model (regression) or classify drought months |
| Planetary science | NASA Exoplanet Archive tables and the TESS light curve of HD 209458, sector 56 | Transit depth and planet radius, √depth × R★ × 109.08 Earth radii | Selection: which planets get a measured mass, and how the share of giants among measured rows changes the correlation | Is this TESS Object of Interest a planet? Classification with follow-up verdicts as labels |
Key terms:
| Term | Meaning in this course |
|---|---|
| Synthetic twin | A record built to look like your real data, with a known truth and problems planted by your NetID. Keep it apart from the real record and say so whenever you quote a number from it (lab_s07_start_here “The parts”) |
| Derived quantity | The number your field computes from the record (drumbeat clock, rain response, drought frequency, transit depth), measured on the truth, the file as given, and your cleaned file |
| Calibration change | A change in instrument gain recorded only in the metadata: HSR’s scale drops tenfold on 5 October 2004, so equal counts before and after mean ground motions ten times apart (lab_s07_volcano Part 1) |
| Coefficient of variation (CV) | Standard deviation of the spacing over its mean: near 0 for a clock, near 1 for a random (Poisson) process (lab_s07_volcano Part 5) |
| Anomaly | A value minus the mean of its calendar day or month, which removes the shared seasonal cycle (lab_s07_soil_moisture and lab_s07_land_surface_model Part 6) |
| Effective number of pairs | n_eff = n(1 - r₁r₂)/(1 + r₁r₂), with r₁ and r₂ the lag-one autocorrelations of the two series (Bretherton et al. 1999) |
| Class weight | The count of the common class over the count of the rare class, computed on the training set only, after the split (lab_s07_volcano Part 7) |
| Course AI modes in the lab | 🔒 By hand: no AI tool for the judgment in that step. 🔍 Agent, then verify: the tool writes, you check (lab_s07_start_here “The parts”, AI assistance; 1.8) |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
Course data files checked by check_snapshots.py | 27 | lab_s07_start_here “Set up before you start” |
| Mount St Helens catalog, 2004 to 2008 | 11,305 events | lab_s07_start_here “Choose your track” |
| Drumbeat spacing | about 20 s until 12 November 2004, then about 40 s; daily averages 40 to 80 s until April 2005 (Moran et al. 2008) | lab_s07_volcano Part 0 |
| Turnbull daily record | 3,653 days at 5, 10, 20, 50 and 100 cm | lab_s07_start_here “Choose your track” |
| Baseline drought months in the land-surface track | 20% of 1991 to 2010 months, by construction | lab_s07_land_surface_model Part 5 (c) |
| Planet tables | 6,445 confirmed planets; 8,148 TESS Objects of Interest | lab_s07_start_here “Choose your track” |
Where to review: Session 7: start here; the four tracks volcano, soil moisture, land-surface model and planetary science. Parts 1, 5 and 6 of your own track matter most; read Part 5 of one other track to see the same steps on a different system.
Session 8 (Fri Oct 16): Repairing real data streams¶
A repair counts when an independent measurement confirms it. Choose the filter phase for the task, filter each segment on its own and leave gaps missing with a guard interval, measure clock errors against a reference, and write every step into the processing history.
You should be able to:
Tell a step in a raw record from a seismic arrival with a travel-time model. At UW.RATT the Chignik P wave arrives about 357 s after 06:15 UTC; the first of eight steps comes at 755.09 s, during the surface waves (2.9 Part 1; lec08 “Zero-phase and causal filters at a step”).
Choose a causal or a zero-phase filter for a task and measure each on an onset of known time. Causal filters suit real-time detection and anything that happens before an onset; zero-phase filters suit offline alignment. Do not interpret small wiggles just before a sharp onset in zero-phase output (2.9 Part 2).
Explain why a causal band-pass makes the cycles of the RATT P wave train arrive early while their envelope arrives late: group delay and phase delay differ near the lower corner (2.9 Part 2).
Say how a filter someone else chose changes a value you would use: a high-passed accelerogram loses the permanent offset GPS records at Norcia, and common-mode filtering of GPS removes both a reported precursor and a signal planted to test it (lec08 “Filtered accelerogram and GPS” and “GPS common mode and a reported precursor”).
Filter a record with a gap segment by segment, leave the gap as NaN, and set a guard interval that scales with the longest period in the band (2.9 Part 3).
Recognize each provider’s fill value before filtering: zero after a careless merge, -1 in the Apollo archive, estimates flagged “e” at USGS (lec08 “Apollo 12 record” and “Estimated discharge under ice”).
Estimate offsets at known equipment dates from the NGL step list instead of fitting one line through a series with steps (lec08 “Outages and an antenna offset on Mount St. Helens”).
Measure a clock lag by cross-correlation and refine it between samples with a parabola. Tell an offset from a drift, and name a real reference: a co-located sensor, a neighbor station after removing the predicted travel-time difference, or ambient-noise correlation tracked day by day (2.9 Part 4; lec08 “Seafloor clock drift” and “A 270 s timing error at US.HDIL”).
Key terms:
| Term | Meaning in this course |
|---|---|
| Causal filter | Uses only present and past samples (sosfilt): nothing appears before the input, but each frequency is shifted differently (2.9 Part 2) |
| Zero-phase filter | Runs forward then backward (sosfiltfilt): no delay, but a symmetric response that puts energy before a sharp onset, and a stopband that falls off twice as fast (2.9 Part 2; lec08 notes) |
| Group delay, phase delay | The delay of a short pulse’s envelope and of a wave train’s cycles. Near 1 Hz in the 1 to 10 Hz causal filter they are +0.27 s and -0.25 s (2.9 Part 2) |
| Second-order sections (sos) | The numerically stable form of a Butterworth filter, signal.butter(..., output="sos") (2.9 Part 2) |
| Step | A jump in the raw record from the instrument or digitizer, not from the ground. Its time is known from the raw samples, which makes it a test of what a filter does (2.9 Part 1) |
| Zero-fill | Filling missing samples with zeros, which turns each gap edge into a step the size of the record’s value there (2.9 Part 3) |
| Guard interval | The stretch at each segment edge to leave out of later analysis because the filter still remembers the edge (2.9 Part 3) |
| Common mode | Motion shared by all stations of a network, such as reference-frame or orbit error (lec08 “GPS common mode and a reported precursor”) |
| Clock offset, clock drift | A constant lag against a reference, and a lag that grows with time. Both are corrected segment by segment between clock resets (lec08 “Clock drift on the Moon and at a flux tower”, notes) |
| Skew | The clock difference measured when an ocean-bottom seismometer is recovered (lec08 “Seafloor clock drift”) |
| Processing history | The record that travels with the data: filter type, corners, poles, causal or zero-phase; gap start, end, fill value and guard interval; timing reference, lag, drift and correction applied (lec08 “Three problems and their corrections”) |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
| Zero-phase output ahead of the step at 755.09 s | 1,718 counts against a 45-count background; starts 0.52 s early counting a small lobe of opposite sign, about 0.2 s early at a 25% threshold | lec08 “Zero-phase and causal filters at a step”; 2.9 Part 2 |
| Planted 20 s zero-filled gap, RMS edge error over 0 to 2 s: filtered across vs each segment alone | 185 vs 1.75 times the local signal | lec08 “A 20 s zero-filled gap”; 2.9 Part 3 |
| Guard interval, 1 to 10 Hz band | about 2 s, two periods of the 1 Hz corner | lec08 “A 20 s zero-filled gap” |
| Real 40 s gap at RATT, 21 Jan 2021, zero-filled | peak edge error 13 times the local signal, for about 1 s (a peak, not the RMS of the planted test) | lec08 “A real 40 s telemetry gap”, notes |
| Archived days with a gap at RATT in 2021 | 73 of 352 | lec08 “A real 40 s telemetry gap” |
| Planted clock shift recovered by correlation | +0.50 s (50 samples) | lec08 “A 0.5 s clock shift”; 2.9 Part 4 |
| US.HDIL timing error, early 2023 | +270 s by February; Kahramanmaraş P wave +269.9 s at HDIL vs +1.2 s at P43A | lec08 “A 270 s timing error at US.HDIL” |
| Ocean-bottom station O01 | already 0.31 s off at deployment; fitted drift -0.73 vs skew-line -1.01 s/yr | lec08 “Seafloor clock drift” |
| TGUA north velocity: straight line vs NGL MIDAS | +6.8 vs -7.1 ± 0.2 mm/yr; the 2012 mount change moved the station +218 mm north | lec08 “Outages and an antenna offset” |
| Norcia 2016 GPS permanent offsets (north, east, up) | -14, -10, -40 cm; the high-pass filtered accelerogram ends near 0 | lec08 “Filtered accelerogram and GPS” |
| Apollo data rejected as damaged; fill value | 0.3%; -1, while the trace sits near 512 | lec08 “Apollo 12 record with bad frames removed” |
| Tanana River estimates under ice | 391 values flagged “e”; the open-water rating gives a median 2.5 times the estimate | lec08 “Estimated discharge under ice” |
Where to review: Session 8 slides, especially the summary slide “Three problems and their corrections”; 2.9 Filtering and repairing records, Parts 1 to 5 and Exercise 2 (the guard interval in a 0.1 to 1 Hz band).
Session 9 (Wed Oct 21): Noise, signal and synthetic data¶
Most of what you remove as noise is someone else’s signal, and calling it noise is a decision tied to your question. Describe each contribution by its source, spectrum and distribution, then build synthetic data with a known answer to measure what each one does to your result.
You should be able to:
Read a day-long spectrogram and attribute each band to a source: the secondary ocean microseism near 0.15 Hz, cultural noise from 1 to 10 Hz that rises by day, and earthquakes crossing both (lec09 “One day of ground motion at Seward Park”).
Name for each unwanted contribution the field that measures it: the microseism for ambient-noise imaging and wave climate, traffic for the 2020 lockdown studies, atmospheric delay for water vapour, starspots for stellar physics (lec09 “Traffic and ocean waves”, “Weather in InSAR images”, “Instrument problems and nuisance signals”; 2.10 section 5).
Tell an instrument problem from a nuisance signal and treat each accordingly: correct or mask the first and record it; model the second as a component or give it its own class (lec09 “Instrument problems and nuisance signals”).
Describe a noise record by two independent properties, its spectrum (white, flicker, AR(1), random walk) and the distribution of its values (Gaussian or heavy-tailed), and know that sign conventions for the spectral exponent differ between fields (2.10 section 5.1; lec09 “Two transients in four colors of noise”, notes).
Predict which transient a colored noise hides: a slow ramp disappears in flicker noise and a random walk, while a short pulse can stand out against a random walk (lec09 “Two transients in four colors of noise”).
Explain why one SNR number does not describe 2D noise without its spatial spectrum (lec09 “One deformation bowl under three kinds of 2D noise”).
Tell random label noise from class-dependent label noise, and name the science quantity a class-dependent error biases even when accuracy barely moves (lec09 “Wrong labels”; 2.10 section 5.6).
Explain why a 3-sigma clip on a heavy-tailed quantity discards the largest earthquakes or the floods, the events you study (lec09 “Distributions of values”).
Build a synthetic version of your data from the six ingredients: a signal with known parameters kept as the answer, realistic noise, one nuisance from another source, one instrument problem from Session 8, the distribution of noise values, and a seed with disclosure of which samples are synthetic (lec09 “Building synthetic data with known truth”; 2.10 section 5).
Make spectrum-matched noise and say what it does not copy: random phases keep the amplitude spectrum but make the values Gaussian, so a detector tuned on the twin meets more false alarms on the real record (2.10 sections 4.1 and 5.1).
Measure a detection floor: set the threshold from noise alone, then count detections against SNR (2.10 section 4.4).
Say when synthetic data are admissible: method development, benchmarking, disclosed augmentation, hidden test sets; never as the only validation of a claim about the Earth (2.10 section 7).
Key terms:
| Term | Meaning in this course |
|---|---|
| Nuisance signal | A real contribution from another physical or human source that overlaps your signal in time, frequency, space or class (lec09 “Instrument problems and nuisance signals”) |
| Color | The shape of the power spectrum, P(f) ∝ f^slope (lec09 “Two transients in four colors of noise”, notes) |
| White noise | Equal power at all frequencies; each sample independent of the last |
| Flicker (pink) noise | Power ∝ 1/f with no corner; typical of GNSS position series and many climate records (2.10 section 5.1) |
| AR(1) noise | x_t = φx_{t-1} + e_t: white at long periods, falling as about 1/f² above a corner. Climate papers call it red noise (2.10 section 5.1) |
| Random walk (Brownian noise) | Summed white noise, power ∝ 1/f²; called red in physics. A drifting monument, a clock (lec09 notes) |
| Excess kurtosis | The fourth standardized moment minus 3; 0 for a Gaussian, large for records with heavy tails or a short transient (2.10 section 3.4) |
| SNR, course definition | Peak absolute amplitude of the signal over the standard deviation of the noise (2.10 section 3.2). Papers use other definitions (matched filter, power ratio), so state which one you quote (lec09 “Detection floors”, notes) |
| Spectrum-matched noise | Synthetic noise with the amplitude spectrum of a real record and random phases (mlgeo_synth.spectrum_matched_noise, 2.10 section 4.1) |
| Primary and secondary microseism | Ocean-wave pressure coupled into the ground: the primary where waves shoal on the coast at their own period, the secondary at about half the period, where opposing waves interact (lec09 “Colored noise at RATT”, notes) |
| Decorrelation noise | Additive InSAR phase noise that grows as coherence between the two radar dates drops (lec09 “One deformation bowl”, notes) |
| Speckle | Multiplicative, gamma-distributed fluctuation of radar intensity from interfering echoes (lec09 “Transforms change the noise”) |
| Random vs class-dependent label noise | Flips to any class with equal probability, against flips that push one class into another, as quarry blasts listed as earthquakes (lec09 “Wrong labels”; Frénay and Verleysen 2014) |
| STA/LTA | Short-term over long-term average detector (Allen 1978); the classical baseline any learned detector must beat (2.10 section 4.4) |
| Detection floor | The SNR at which detection becomes reliable at a stated false-alarm rate (2.10 section 4.4) |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
| UW.SP2, 22 Feb 2024: day vs night, 1 to 10 Hz; microseism band | +9.8 dB (9.5 times); -1.5 dB | lec09 “One day of ground motion at Seward Park” |
| Best-case SNR of a slow transient at equal variance: white / flicker / random walk | 67.7 / 4.9 / 1.7 | lec09 “Two transients in four colors of noise” |
| GPS vertical noise at tide gauges, median spectral index (Gravelle et al. 2023) | -0.94 | lec09 “Colored noise at RATT and in GPS positions” |
| Same 6 mm noise, correlation with the true deformation bowl: white vs correlated | 0.62 vs 0.50 | lec09 “One deformation bowl under three kinds of 2D noise” |
| Accuracy cost: 30% random flips vs 16% class-dependent flips | 2.4 vs 11.8 points; explosion recall 91% to 54% | lec09 “Wrong labels, random and class-dependent” |
| Template E, 15% of labels wrong, all blasts called earthquakes | earthquake day-to-night ratio 1.74 vs true 1.03; nearest-mean accuracy 0.76 | lec09 “Build a synthetic version”, notes; 2.10 section 5.6 |
| Share of seismic moment in the 2001 Nisqually earthquake | 98.8% of 5,680 events | lec09 “Distributions of values, synthetic and real” |
| Kepler-150 f: star variability vs transit depth | 10.9 vs 1.5 mmag | lec09 “Instrument problems and nuisance signals” |
| STA/LTA threshold from 200 noise-only windows | 99th percentile 6.09 (1% false alarms by design) | lec09 “Detection floors measured on synthetics”; 2.10 section 4.4 |
| STA/LTA 50% detection | amplitude SNR 4.97 | lec09 “Detection floors measured on synthetics” |
| Thomas et al. (2023) training set | 822,256 synthetic signals with 729,303 real noise records | lec09 “Building synthetic data with known truth” |
| Template B drydown time scale (truth) | 12 days | 2.10 section 5.3 |
Where to review: Session 9 slides, especially “Instrument problems and nuisance signals” and the summary table “Noise types across the course data”; 2.10 Synthetic noise, sections 3.2 to 3.4, 4.1, 4.4, 5 (your team’s template and the reflection in 5.7) and 7.
Session 10 (Fri Oct 23): AI-ready data¶
A dataset is AI-ready when it supports training a model and testing whether it works somewhere new. Score it on the 11 criteria with evidence another team can check, count independent units rather than rows, and name the axis along which the test set lies outside the training domain.
You should be able to:
Tell analysis-ready from AI-ready data, and explain why the first is necessary but not sufficient: a clean record from one station in one decade can fail every generalization test (lec10 “Analysis-ready and AI-ready”; 2.13 section 1).
Repair a multi-gauge discharge table: convert ft³/s to m³/s (× 0.0283168), find the 91-day jump in the time base, replace -999 with NaN, and name the mechanism behind each gap (2.13 A2 and A3).
Write a description of the dataset that a script reads back (YAML beside a Parquet copy), with units for every variable, the missing-value encoding, and the statement that the data are synthetic (2.13 A1 and A4).
Count independent units (gauges, years, floods) and explain why they, not rows, limit what a model can learn (2.13 B1; lec10 “AI readiness: what the samples contain”).
Choose a score for a rare class: average precision, whose value for a random guess equals the flood fraction (2.13 B2).
Estimate measurement noise from day-to-day differences on non-flood days and compute an SNR (2.13 B3).
Judge an augmentation by asking whether the instrument could have recorded the transformed sample: new noise at the measured level passes; a time-reversed hydrograph fails (2.13 B4; lec10 “AI readiness: what a model can learn from”).
Compare two labelers and explain why their agreement is inflated by the many days on which both say “no flood” (2.13 B5).
Build a within-domain training and validation set (whole gauge-months held out) and out-of-domain test sets along a statistical, a spatiotemporal and a physical axis, and explain why the scores differ (2.13 B7; lec10 “B7: partitioning”).
Prevent leakage by preprocessing: split first, then fit scalers, PCA, imputation and oversampling on the training set only (2.13 B7, “Leakage by preprocessing”).
Score a dataset with the agent version of the rubric, then check two of the assistant’s scores yourself (lec10 “Score a dataset with the rubric” and “The rubric, written for an agent”).
The rubric, as 2.13 section 1 prints it. Each criterion scores 0 missing, 1 present but incomplete, 2 another team can verify it, the scale of the Session 2 rubric:
| Criterion | What it asks | |
|---|---|---|
| A1 | Provenance | source, version or retrieval date, license, citation; synthetic parts disclosed |
| A2 | Homogenization | consistent units, reference frame, coordinates, time base and sampling; instrument or processing changes corrected or flagged |
| A3 | Quality and gaps | quality flags, missing, sentinel and censored values, and their mechanism documented |
| A4 | Structure and metadata | tidy tables or labeled arrays in a standard format, variables and units in a file a script can read |
| B1 | Diversity | how many independent units (stations, events, regions, years, instruments), not how many rows |
| B2 | Distribution | distribution of targets and inputs, imbalance and long tails, compared with the population the model will face |
| B3 | Noise characterization | instrumental noise separated from natural variability; a noise level or SNR estimate |
| B4 | Augmentation potential | physically valid transformations, and the ones that break the physics |
| B5 | Labels | source, quality, uncertainty, consistency; or the potential for self-supervised learning |
| B6 | Dimensionality | samples against features, input shape, variance captured by a few principal components |
| B7 | Partitioning potential | within-domain training and validation, out-of-domain test along a stated axis, leakage controlled |
Key terms:
| Term | Meaning in this course |
|---|---|
| Analysis-ready | A scientist can compute with the data without redoing the provider’s work: provenance, homogenization, documented quality and gaps, standard format (lec10 “Analysis-ready and AI-ready”) |
| AI-ready | The data also support training a model and testing whether it generalizes. In this course AI-ready and ML-ready name the same requirements (lec10 “Analysis-ready and AI-ready”) |
| Independent unit | The unit that carries new information: a station, an event, a region, a year. Consecutive days of one flood are not independent samples (2.13 B1) |
| Informative missingness | A value missing because of the value itself, as a gauge lost at a flood peak; every peak statistic is then biased low (2.13 A3) |
| Average precision (AP) | Area under the precision-recall curve; a random guess scores the positive-class fraction (2.13 B2) |
| Valid augmentation | A transformation whose result the instrument could have recorded (lec10 “AI readiness: what a model can learn from”) |
| Self-supervised learning | Training on structure in abundant unlabeled data (seasonality, recessions, continuous waveforms) before any label is used (2.13 B5) |
| Within-domain set | Training and validation drawn from the same domain; validation tests interpolation and is used to choose settings (2.13 B7) |
| Out-of-domain test | A test set outside the training domain along a stated axis; it tests generalization along that axis only (lec10 “What each partition tests”) |
| Statistical axis | Distance in feature space to the nearest training sample, with features standardized on training statistics only. Meyer and Pebesma (2021) call the inside the area of applicability (lec10 “B7”, notes; 2.13 B7) |
| Spatiotemporal axis | A later period or a region or station the model never saw (2.13 B7) |
| Physical axis | A different process, event size or physics, such as floods larger than any in training (2.13 B7) |
| Leakage by preprocessing | A statistic computed on all the data before splitting (mean, PCA basis, percentile, imputation value, oversampling) carries test information into training (2.13 B7) |
| Agent version of the rubric | The same 11 criteria rewritten so an assistant must quote evidence for every score and write “not found”, scored 0, when there is none (lec10 “The rubric, written for an agent”) |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
| Forest biomass map R², random vs spatial cross-validation (Ploton et al. 2020) | 0.53 vs 0.14; close to zero beyond 100 km from training plots | lec10 “Literature example: validating a forest biomass map” |
| AI-ready share of each archive by volume: ERA5 / seismic waveforms / Sentinel / GNSS | 1.8% / 0.43% / 0.08% / 0.0003% | lec10 “How much of each archive is AI-ready?” |
| Catalog datasets that ship a held-out partition | 6 of 9 | lec10 “A catalog of AI-ready Earth-science datasets” |
| Synthetic gauge table | 21,916 rows; 4 gauges × 15 years; 185 floods | 2.13 B1 (executed output) |
| Flood-day fraction per gauge | 1.3% (G4) to 6.3% (G3) | lec10 “AI readiness: what the samples contain”; 2.13 B2 (executed output) |
| SNR of the median flood | 13 to 40 | 2.13 B3 |
| Threshold labeler against the generator | agreement 0.947, yet misses 54% of flood days | 2.13 B5 (executed output) |
| Variance in the first principal component of the 9 features | 0.736 | 2.13 B6 (executed output) |
| AP: random split / validation / 2022 to 2024 / gauge G4 | 0.736 / 0.740 / 0.703 / 0.200 | lec10 “What each partition tests”, notes; 2.13 B7 |
| Samples beyond the 95th-percentile distance: validation vs G4 | 6% vs 36% | lec10 “What each partition tests”, notes; 2.13 B7 |
| AP at G1: shuffled KFold / GroupKFold / TimeSeriesSplit | 0.730 / 0.707 / 0.640 | lec10 “What each partition tests”, notes; 2.13 B7 |
| AP with oversampling before the split | 1.000, a score that measures nothing | 2.13 B7, “Leakage by preprocessing” |
| Floods above the 80th percentile: estimated over observed peak | median 0.69 (random forest); 0.99 (linear model) | 2.13 B7, physical axis |
| One instructor’s score for the 2.13 dataset | 18 of 22 | 2.13 section 5 (executed output) |
Where to review: Session 10 slides, especially “Analysis-ready and AI-ready”, the three AI-readiness slides and “What each partition tests”; 2.13 AI-ready data, sections 1 to 5; the rubric written for an agent (in the repository at book/slides/2026/files/ai_ready_rubric_for_agents.md), which you can copy into your project’s AGENTS.md.
Five ideas that carry Chapter 2¶
Plant the truth, grade the method, then trust it on real data. The tide gauge, the GNSS outage, the damaged RATT copy, the Session 7 twins, the STA/LTA floor and the four synthetic gauges all let you measure an error because the answer was known.
Keep what you changed visible. A NaN for a gap, a
filledflag, a guard interval, a processing history and a statement that samples are synthetic let the next person, or the next model, tell measurement from repair.Find out what was done before you downloaded. USGS daily means, the digitizer’s anti-alias filter, the “e” estimates under ice, NGL’s step list and a reanalysis file that calls its lowest model level “Surface” all changed the number in the file before you opened it.
Noise is defined by the question. Write down the source, the spectrum and the distribution of each contribution you remove, and who would keep it.
Count independent units and name the axis of your test. Random splits of correlated samples flatter the score: biomass plots (R² 0.53 against 0.14), random hidden gaps against the real outage, day-by-day against block bootstrap, validation months against gauge G4.
Check yourself¶
None of these has a single right answer. Write a paragraph for each, then compare with a classmate.
For your project data, what is the native sampling, and what did the provider distribute? Name one quantity the distributed product cannot recover (lec06 “Native and distributed resolution”).
Gaps hidden at random scored 1.6 to 3.1 mm, while the real 150-day outage cost linear interpolation 8.1 mm (2.6 section 3.2c). Where do real gaps fall in your data, and how would you build a test set for a gap filler that respects that?
In mid-March 2023 the daily noise correlation at US.HDIL read -69 to -78 s while an earthquake P wave gave 0 s (lec08 “A 270 s timing error”, notes). Which would you trust, and what independent timing reference exists for your own instrument?
Name one contribution in your data that is noise for your question and signal for someone else. Describe its source, spectrum and distribution well enough that a teammate could synthesize it (lec09 “Noise types across the course data”).
With 15% of labels wrong, template E kept a nearest-mean accuracy of 0.76 while the earthquake day-to-night ratio rose to 1.74 against 1.03 (2.10 section 5.6). Which science quantity in your project would a class-dependent label error bias even if the model’s score barely moved?
Score your project dataset on B1 and B7. What is the independent unit, and along which axis (statistical, spatiotemporal or physical) will your test set lie outside the training domain?
In 2.13 a random forest estimated floods above its training range at a median 0.69 of their observed peak. What is the largest event in your record, and how would you test a model on events larger than any it was trained on?
Reflect on each assignment¶
Every assignment now ends with short written answers to three questions:
What did you learn from this exercise?
What did you learn from interacting with agents or chatbots?
What would you suggest to improve this assignment so it meets its learning goals?
A few sentences each are enough. Name one number, figure or exchange from your own work in each answer.