> ## Documentation Index
> Fetch the complete documentation index at: https://calendar-effects.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Glossary

> docs/architecture/10-glossary.mmd

```mermaid theme={null}
%% Calendar Effects · Glossary · every term in the diagrams, in plain words · put it at the end of the board
%% Miro: paste onto a board, or Creation bar > Diagram > Build with code. Read top to bottom.
flowchart TB
  T["GLOSSARY<br/>every term in the diagrams, A to Z"]

  subgraph G1["A – B"]
    direction TB
    g1["ABNORMAL RETURN · AR<br/>actual − the model's prediction"]
    g2["adj_close<br/>price adjusted for splits"]
    g3["ALPHA · BETA<br/>usual return · market sensitivity"]
    g4["applyInPandasWithState<br/>our Python per stock, with state"]
    g5["ar_sd<br/>size of a stock's usual surprises"]
    g6["BATCH<br/>all the data at once"]
  end

  subgraph G2["B – C"]
    direction TB
    g7["BMP TEST<br/>t-test on car_z"]
    g8["BROKER<br/>one Kafka server"]
    g9["CAR<br/>ARs summed over the window"]
    g10["car_z<br/>CAR in units of noise"]
    g11["CHECKPOINT<br/>saved progress for a restart"]
    g12["CLUSTERED ERRORS<br/>for results that move together"]
  end

  subgraph G3["C – E"]
    direction TB
    g13["CONFIDENCE INTERVAL<br/>range holding the truth 95 in 100"]
    g14["CONSUMER<br/>reads a topic · our job"]
    g15["DATA CONTRACT<br/>promised columns + types"]
    g16["DAY 0<br/>first trading day on or after"]
    g17["ESTIMATION WINDOW<br/>days that define normal"]
    g18["ETL<br/>extract · transform · load"]
  end

  subgraph G4["E – H"]
    direction TB
    g19["EVENT STUDY<br/>learn normal, measure the gap"]
    g20["EVENT TIME<br/>the time the data is about"]
    g21["EVENT WINDOW<br/>days −5 to +5"]
    g22["FAILFAST<br/>stop on a broken message"]
    g23["foreachBatch<br/>our save function per batch"]
    g24["FRED<br/>St. Louis Fed data site"]
    g25["HDFS<br/>the cluster's file system"]
  end

  subgraph G5["I – M"]
    direction TB
    g26["IDEMPOTENT<br/>twice = once"]
    g27["JSON<br/>a text format for data"]
    g28["KAFKA<br/>ordered message streams"]
    g29["KEY<br/>a message's label · the ticker"]
    g30["MARKET INDEX<br/>the whole market · SPY"]
    g31["MARKET MODEL<br/>ret = alpha + beta × market"]
    g32["MICRO-BATCH<br/>new messages handled together"]
  end

  subgraph G6["O – P"]
    direction TB
    g33["OFFSET<br/>a message's position"]
    g34["OLS<br/>best-fit straight line"]
    g35["p-VALUE<br/>below 0.05 = probably not luck"]
    g36["PARQUET<br/>a typed table file"]
    g37["PARTITION<br/>one ordered line in a topic"]
    g38["PRODUCER<br/>writes to a topic"]
    g39["PySpark<br/>Spark from Python"]
  end

  subgraph G7["R – S"]
    direction TB
    g40["RETENTION<br/>how long Kafka keeps messages"]
    g41["RETURN<br/>today ÷ yesterday − 1"]
    g42["SPARK<br/>big tables on many computers"]
    g43["STRUCTURED STREAMING<br/>a query rerun per batch"]
    g44["spark-submit<br/>starts a Spark program"]
    g45["STATE<br/>per-stock memory"]
    g46["STREAM-STREAM JOIN<br/>joins two live streams"]
  end

  subgraph G8["T – Z"]
    direction TB
    g47["t-TEST<br/>is an average ≠ 0?"]
    g48["TOPIC<br/>a named message stream"]
    g49["TRADING DAY<br/>market open · ≈ 252 a year"]
    g50["vol_ratio<br/>volume vs the last 20 days"]
    g51["WATERMARK<br/>how late a message may be"]
    g52["WILCOXON<br/>a test with no bell curve"]
    g53["YARN<br/>runs Spark on the cluster"]
    g54["z-SCORE<br/>standard deviations from usual"]
  end

  T --> G1 --> G2 --> G3 --> G4 --> G5 --> G6 --> G7 --> G8

  classDef head fill:#2C2C2A,stroke:#2C2C2A,color:#FFFFFF
  classDef idea fill:#E6F1FB,stroke:#185FA5,color:#0C447C
  class T head
  class g1,g2,g3,g4,g5,g6,g7,g8,g9,g10,g11,g12,g13,g14,g15,g16,g17,g18,g19,g20,g21,g22,g23,g24,g25,g26,g27,g28,g29,g30,g31,g32,g33,g34,g35,g36,g37,g38,g39,g40,g41,g42,g43,g44,g45,g46,g47,g48,g49,g50,g51,g52,g53,g54 idea
  style G1 fill:#FFFFFF,stroke:#B4B2A9
  style G2 fill:#FFFFFF,stroke:#B4B2A9
  style G3 fill:#FFFFFF,stroke:#B4B2A9
  style G4 fill:#FFFFFF,stroke:#B4B2A9
  style G5 fill:#FFFFFF,stroke:#B4B2A9
  style G6 fill:#FFFFFF,stroke:#B4B2A9
  style G7 fill:#FFFFFF,stroke:#B4B2A9
  style G8 fill:#FFFFFF,stroke:#B4B2A9
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.