{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Calendar Effects","description":"A guided tour of the Calendar Effects codebase: Kafka, Spark Structured Streaming, an event study and a Spark MLlib model, read from start to finish.","colors":{"primary":"#2a78d6","light":"#3987e5","dark":"#1c5cab"},"contextual":{"options":["copy","view","claude","chatgpt","cursor","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"calendar-effects","hasAudioNarration":false,"actualSubdomain":"calendar-effects","customDomains":[],"gitSource":{"type":"github","owner":"calendar-effects","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b06136e922004b9d4635d22"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0811eff3da7f068e3eb774","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"default","tag":"Code","count":85},{"language":"default","tag":"Data and decisions","count":30},{"language":"default","tag":"10. Tests and team tooling","count":29},{"language":"default","tag":"9. The dashboard and publishing","count":17},{"language":"default","tag":"Decisions","count":15},{"language":"default","tag":"Project log","count":15},{"language":"default","tag":"Guide","count":14},{"language":"default","tag":"Diagrams","count":14},{"language":"default","tag":"Handoffs, newest first","count":10},{"language":"default","tag":"The tour","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"diagrams/01-big-picture","slug":"/diagrams/01-big-picture","pageMetadata":{"title":"The big picture","description":"docs/architecture/01-big-picture.mmd","href":"/diagrams/01-big-picture"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"docs/architecture/01-big-picture.mmd\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const{Heading,Mermaid}={..._provideComponents(),...props.components};if(!Heading)_missingMdxReference(`Heading`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);return _jsxs(_Fragment,{children:[_jsx(Mermaid,{chart:`%% Calendar Effects · 1 of 8 · The big picture. Read docs/architecture/README.md alongside.\n%% Paste into Miro: Creation bar > Diagram > Build with code. Status as of 2026-11-24.\nflowchart TB\n question([\"THE QUESTION\u003cbr/>Do shopping events and holidays (Black Friday, Prime Day, Halloween...)\u003cbr/>make retail stocks move more than normal?\u003cbr/>And can a LIVE stream spot it as exactly as a careful BATCH study?\"])\n\n subgraph S1[\"1 · Decide what to study · config/ and src/common/ · diagram 2\"]\n cfg[\"config/ = the lists\u003cbr/>38 retailers, 6 events, Wikipedia titles, retail series\u003cbr/>Add a row to study something new, no code change\"]\n rules[\"src/common/ = the rule book\u003cbr/>study.py: years, windows, thresholds\u003cbr/>contracts.py: the exact columns of every table\"]\n end\n\n subgraph S2[\"2 · Collect and clean the data · ETL in etl/ · diagram 3\"]\n dl[\"Download from the internet\u003cbr/>stock prices from Yahoo Finance\u003cbr/>page views from Wikipedia\u003cbr/>retail sales from FRED\"]\n cl[\"Clean each source into one tidy table\u003cbr/>saved as Parquet in clean/\"]\n master[(\"clean/master.parquet\u003cbr/>ONE row per stock per trading day, 2016–2025\u003cbr/>price, return, volume, views, event, labels\u003cbr/>98,046 rows\")]\n end\n\n subgraph S3[\"3 · Pretend the past is happening live · Kafka · diagram 4\"]\n producer[\"Producer: replay_master.py\u003cbr/>sends master one trading day at a time,\u003cbr/>like a news ticker, oldest first\"]\n topic[[\"Kafka topic: calendar-effects-master\u003cbr/>a queue of JSON messages,\u003cbr/>one per stock per day\"]]\n end\n\n subgraph S4[\"4 · Watch it live · Spark Structured Streaming · diagram 5\"]\n job[\"Streaming job: src/streaming/job.py\u003cbr/>reads the topic in small micro-batches\u003cbr/>and remembers each stock's history (state)\"]\n alerts[(\"Daily alerts · data/stream/signals\u003cbr/>was today's return abnormal?\u003cbr/>was today's attention a spike?\")]\n cars[(\"Event CARs · data/stream/event_car\u003cbr/>how much each stock beat normal\u003cbr/>in the 11 days around each event\")]\n preds[(\"Big-move watchlist · data/stream/predictions\u003cbr/>which retailers may move big tomorrow\")]\n end\n\n subgraph S8[\"Learn and show · diagram 11\"]\n model[\"Big-move model · src/ml/train.py\u003cbr/>Spark MLlib, learns from the daily alerts\u003cbr/>top 5% flags hit 4× more often than chance\"]\n dash[\"Live dashboard · src/dashboard/app.py\u003cbr/>Streamlit: alerts, watchlist and CARs\u003cbr/>as the stream writes them\"]\n end\n\n subgraph S5[\"5 · Work it out slowly · batch event study · diagram 6\"]\n answer[\"car.py: the same CARs from all the data at once\u003cbr/>= the ANSWER KEY\"]\n stats[\"stats.py: is the average real or luck?\u003cbr/>significance tests\"]\n charts[\"charts.py: 5 charts for the report\"]\n end\n\n compare{\"6 · Check · diagram 7\u003cbr/>stream vs answer key:\u003cbr/>2,280 of 2,280 event windows equal\"}\n\n subgraph S7[\"7 · Tell the story · Nov 23 – Dec 8\"]\n report[\"Report\"]\n video[\"Demo video\"]\n end\n\n question --> S1\n cfg --> dl\n rules --> dl\n dl --> cl --> master\n master --> producer --> topic --> job\n job --> alerts\n job --> cars\n alerts --> model -->|loaded by the job| job\n job --> preds\n alerts --> dash\n cars --> dash\n preds --> dash\n dash --> video\n master --> answer --> stats --> charts\n cars --> compare\n answer --> compare\n compare --> report\n charts --> report\n alerts --> video\n cars --> video\n\n classDef done fill:#EAF3DE,stroke:#3B6D11,color:#27500A\n classDef todo fill:#F1EFE8,stroke:#5F5E5A,color:#444441\n classDef ask fill:#EEEDFE,stroke:#534AB7,color:#3C3489\n class cfg,rules,dl,cl,master,producer,topic,job,alerts,cars,preds,model,dash,answer,stats,charts,compare done\n class report,video todo\n class question ask`}),`\n`,_jsx(Heading,{level:`2`,id:`guide`,children:`Guide`}),`\n`,_jsx(Mermaid,{chart:`%% Calendar Effects · Guide 1 · The big picture · goes next to diagram 01-big-picture.mmd\n%% Miro: paste onto a board, or Creation bar > Diagram > Build with code. Read top to bottom.\nflowchart TB\n T[\"GUIDE 1 · THE BIG PICTURE\u003cbr/>what we ask, how it flows, who owns what\"]\n\n subgraph S1[\"1 · THE TWO QUESTIONS\"]\n direction TB\n q1[\"MARKET\u003cbr/>Around Black Friday, Prime Day...\u003cbr/>do retail stocks move more than normal?\"]\n q2[\"COMPUTING\u003cbr/>Can a live stream get exactly\u003cbr/>the same answers as a batch study?\"]\n end\n\n subgraph S2[\"2 · FOUR WORDS TO KNOW\"]\n direction TB\n k1[\"RETURN\u003cbr/>today's price ÷ yesterday's − 1\"]\n k2[\"THE MARKET · SPY\u003cbr/>a fund of the 500 biggest US firms\"]\n k3[\"ABNORMAL RETURN\u003cbr/>actual − what the market predicts\"]\n k4[\"CAR\u003cbr/>abnormal returns summed\u003cbr/>over the 11 days of an event\"]\n end\n\n subgraph S3[\"3 · THE 7 STAGES · one diagram each\"]\n direction LR\n s1[\"1 · DECIDE\u003cbr/>config/ + study.py\"] --> s2[\"2 · COLLECT\u003cbr/>ETL → master table\"] --> s3[\"3 · REPLAY\u003cbr/>Kafka, a day at a time\"] --> s4[\"4 · WATCH LIVE\u003cbr/>Spark streaming job\"] --> s5[\"5 · WORK IT OUT\u003cbr/>batch study = answer key\"] --> s6[\"6 · CHECK\u003cbr/>2,280 of 2,280 CARs equal\"] --> s7[\"7 · TELL\u003cbr/>report + demo video\"]\n end\n\n subgraph S4[\"4 · WHO OWNS WHAT\"]\n direction TB\n w1[\"MAHAD\u003cbr/>prices · streaming job\u003cbr/>comparison · demo video\"]\n w2[\"SANCHI\u003cbr/>page views · master join\u003cbr/>Kafka producer · results\"]\n w3[\"ANUSHIYA\u003cbr/>calendar · spike rule\u003cbr/>run_everything.sh · methods\"]\n w4[\"AREEJ\u003cbr/>retail sales · batch study\u003cbr/>charts · report editing\"]\n end\n\n subgraph S5[\"5 · FIRST RESULTS · mean CAR 2016–2025, same in stream and batch\"]\n direction TB\n r1[\"BLACK FRIDAY\u003cbr/>+1.43%\"]\n r2[\"CYBER MONDAY\u003cbr/>+0.77%\"]\n r3[\"PRIME DAY\u003cbr/>+1.31%\"]\n r4[\"HALLOWEEN\u003cbr/>−1.83%\"]\n r5[\"CHINESE NEW YEAR\u003cbr/>+0.13%\"]\n r6[\"REAL OR LUCK?\u003cbr/>quote stats.py's clustered p-values\"]\n end\n\n T --> S1 --> S2 --> S3 --> S4 --> S5\n\n classDef head fill:#2C2C2A,stroke:#2C2C2A,color:#FFFFFF\n classDef ask fill:#EEEDFE,stroke:#534AB7,color:#3C3489\n classDef idea fill:#E6F1FB,stroke:#185FA5,color:#0C447C\n classDef step fill:#E1F5EE,stroke:#0F6E56,color:#085041\n classDef who fill:#F1EFE8,stroke:#5F5E5A,color:#444441\n classDef win fill:#EAF3DE,stroke:#3B6D11,color:#27500A\n classDef warn fill:#FAECE7,stroke:#993C1D,color:#712B13\n class T head\n class q1,q2 ask\n class k1,k2,k3,k4 idea\n class s1,s2,s3,s4,s5,s6,s7 step\n class w1,w2,w3,w4 who\n class r1,r2,r3,r4,r5 win\n class r6 warn\n style S1 fill:#FFFFFF,stroke:#B4B2A9\n style S2 fill:#FFFFFF,stroke:#B4B2A9\n style S3 fill:#FFFFFF,stroke:#B4B2A9\n style S4 fill:#FFFFFF,stroke:#B4B2A9\n style S5 fill:#FFFFFF,stroke:#B4B2A9`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"The big picture","description":"docs/architecture/01-big-picture.mmd","href":"/diagrams/01-big-picture"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Guide","slug":"guide","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"calendar-effects","siteName":"Calendar Effects","title":"The big picture - Calendar Effects","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T22:47:32.093Z","originalFileLocation":"diagrams/01-big-picture.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"docs/architecture/01-big-picture.mmd\">\u003cmeta data-mint-head name=\"application-name\" content=\"Calendar Effects\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/calendar-effects/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/calendar-effects/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/calendar-effects/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/calendar-effects/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"The big picture - Calendar Effects\">\u003cmeta data-mint-head property=\"og:description\" content=\"docs/architecture/01-big-picture.mmd\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Calendar Effects\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://calendar-effects.mintlify.app/diagrams/01-big-picture\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://calendar-effects.mintlify.site/_mintlify/api/og/v2?division=Diagrams\u0026amp;title=The+big+picture\u0026amp;description=docs%2Farchitecture%2F01-big-picture.mmd\u0026amp;theme=29db6fd47804fbbe6e0556aa\u0026amp;signature=4b0c2f491e6999bb52c5bfa24e430939422778af621e849d8fc87a9f44a5c0ee\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"The big picture - Calendar Effects\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"docs/architecture/01-big-picture.mmd\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://calendar-effects.mintlify.site/_mintlify/api/og/v2?division=Diagrams\u0026amp;title=The+big+picture\u0026amp;description=docs%2Farchitecture%2F01-big-picture.mmd\u0026amp;theme=29db6fd47804fbbe6e0556aa\u0026amp;signature=4b0c2f491e6999bb52c5bfa24e430939422778af621e849d8fc87a9f44a5c0ee\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/calendar-effects/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Calendar Effects\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2a78d6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://calendar-effects.mintlify.app/diagrams/01-big-picture\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/diagrams/01-big-picture.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://calendar-effects.mintlify.app/#organization\",\"name\":\"Calendar Effects\",\"url\":\"https://calendar-effects.mintlify.app\"},{\"@type\":\"WebSite\",\"@id\":\"https://calendar-effects.mintlify.app#website\",\"name\":\"Calendar Effects\",\"url\":\"https://calendar-effects.mintlify.app\",\"publisher\":{\"@id\":\"https://calendar-effects.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://calendar-effects.mintlify.app/diagrams/01-big-picture#webpage\",\"url\":\"https://calendar-effects.mintlify.app/diagrams/01-big-picture\",\"name\":\"The big picture\",\"description\":\"docs/architecture/01-big-picture.mmd\",\"dateModified\":\"2026-11-24T22:47:32.093Z\",\"isPartOf\":{\"@id\":\"https://calendar-effects.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://calendar-effects.mintlify.app/diagrams/01-big-picture#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://calendar-effects.mintlify.app/diagrams/01-big-picture#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Calendar Effects\",\"item\":\"https://calendar-effects.mintlify.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The big picture\",\"item\":\"https://calendar-effects.mintlify.app/diagrams/01-big-picture\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://calendar-effects.mintlify.app/diagrams/01-big-picture#article\",\"headline\":\"The big picture\",\"name\":\"The big picture\",\"description\":\"docs/architecture/01-big-picture.mmd\",\"url\":\"https://calendar-effects.mintlify.app/diagrams/01-big-picture\",\"mainEntityOfPage\":{\"@id\":\"https://calendar-effects.mintlify.app/diagrams/01-big-picture#webpage\"},\"dateModified\":\"2026-11-24T22:47:32.093Z\",\"publisher\":{\"@id\":\"https://calendar-effects.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://calendar-effects.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Calendar Effects\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Calendar Effects\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/diagrams/01-big-picture.md","siteName":"Calendar Effects","nav":{"global":null,"tabs":[{"tab":"Guide","pages":[{"title":"Guide","href":""}]},{"tab":"Code","pages":[{"title":"Code","href":"/reference/README-md"}]},{"tab":"Data and decisions","groups":[{"group":"Data","pages":[{"title":"Data contracts","href":"/contracts"}]},{"group":"Decisions","pages":[{"title":"0001. The repo is the shared memory for everyone's AI assistant","href":"/decisions/0001-shared-repo-context-for-ai-assistants"},{"title":"0002. Project name: Calendar Effects","href":"/decisions/0002-project-name-calendar-effects"},{"title":"0003. An expandable event calendar","href":"/decisions/0003-expandable-event-calendar"},{"title":"0004. Streaming job design and shared study settings","href":"/decisions/0004-streaming-job-design"},{"title":"0005. Everything that defines the study is read from config/ and common/","href":"/decisions/0005-config-driven-pipeline"},{"title":"0006. Batch event study outputs and tests","href":"/decisions/0006-batch-event-study-outputs"},{"title":"0007. A Spark MLlib model that predicts tomorrow's big moves, scored live","href":"/decisions/0007-big-move-model"},{"title":"0008. A Streamlit dashboard that shows the streaming job's alerts live","href":"/decisions/0008-live-alerts-dashboard"},{"title":"0009. Study 38 retailers instead of 10","href":"/decisions/0009-larger-retailer-universe"},{"title":"0010. Publish the results, the model and a public dashboard on Hugging Face","href":"/decisions/0010-publish-on-hugging-face"},{"title":"0011. A docs site (Mintlify) that is rebuilt from the code and checked on every commit","href":"/decisions/0011-docs-site-in-step-with-the-code"},{"title":"0012. Scope: Wikipedia is the attention measure; GDELT and retail sales are not analysed","href":"/decisions/0012-scope-gdelt-and-retail-sales"},{"title":"0013. One Streamlit dashboard, on a laptop and hosted, with a live feed","href":"/decisions/0013-one-hosted-streamlit-dashboard"},{"title":"0014. Team organisations, a committed results pack, and credit for every member","href":"/decisions/0014-team-homes-results-and-credit"},{"title":"0015. The live stream runs on GitHub Actions","description":null,"href":"/decisions/0015-cloud-streamer-on-github-actions"}]},{"group":"Diagrams","pages":[{"title":"The big picture","href":"/diagrams/01-big-picture"},{"title":"What is studied, and the rules every script follows","description":"docs/architecture/02-config-and-shared-rules.mmd","href":"/diagrams/02-config-and-shared-rules"},{"title":"ETL: Extract (download), Transform (clean), Load (save)","href":"/diagrams/03-etl"},{"title":"Replaying ten years as if they were happening live","href":"/diagrams/04-kafka-replay"},{"title":"Inside the streaming job (src/streaming/job.py + signals.py)","href":"/diagrams/05-streaming-job"},{"title":"The batch event study (src/eventstudy/)","href":"/diagrams/06-batch-event-study"},{"title":"How we know the numbers are right, and what stops mistakes","href":"/diagrams/07-checks-and-guardrails"},{"title":"How to run it: on a laptop, or on the SFU cluster","href":"/diagrams/08-running-it"},{"title":"Code map: where every idea lives","href":"/diagrams/09-code-map"},{"title":"Study plan, and the questions you should be able to answer","href":"/diagrams/09a-study-plan-and-qa-guide"},{"title":"Design choices, limitations, and ideas to improve it","href":"/diagrams/09b-choices-limits-ideas-guide"},{"title":"Glossary","href":"/diagrams/10-glossary"},{"title":"The big-move model (Spark MLlib) and the live dashboard","href":"/diagrams/11-ml-and-dashboard"},{"title":"Hosting, publishing and the live demo","href":"/diagrams/12-hosting-and-live-demo"}]}]},{"tab":"Project log","pages":[{"title":"Project log","href":"/log/status"}]}]},"basePath":"","title":"The big picture - Calendar Effects","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":[],"chunks":[]}