# FlipACoinLab.org — Full Knowledge Base & Technical Specification (llms-full.txt) > Comprehensive technical specification, algorithmic architecture, mathematical foundations, numismatic metadata, and complete URL directory for FlipACoinLab.org. --- ## 1. System Architecture & Engineering Baseline - **Framework:** Astro 5.0 (Static Site Generation / Islands Architecture) - **Client JavaScript Baseline:** 0kb baseline; interactive coin components hydrate on-demand as isolated islands. - **Randomness Architecture:** Hardware-entropy seeded Web Crypto API (`window.crypto.getRandomValues(new Uint32Array(1))`). - **Cryptographic Audit Digest:** Every coin toss trial computes an immutable SHA-256 hash formatted as `${timestamp}:${seedHex}:${rawFloat}:${outcome}`. - **Acoustic Engine:** Procedural Web Audio API sound synthesizer (0kb external MP3s, sub-5ms latency, frequency ramp 2800Hz -> 800Hz with exponential gain decay). - **Rendering Engine:** 60 FPS GPU-accelerated CSS 3D matrix transformations (`transform-style: preserve-3d`) and Three.js WebGL canvas fallbacks. - **Offline / PWA Capability:** Service Worker (`sw.js`) with Cache-First strategy for static assets and Network-First with offline cache fallback for HTML documents. - **Accessibility:** WCAG 2.1 AAA compliant, high-contrast focus rings, `#sr-announcer` live ARIA region (`aria-live="polite"`), keyboard shortcuts controller. --- ## 2. Mathematical Foundations & Empirical Formulas ### A. Binomial Probability Distribution The discrete probability of obtaining exactly $k$ heads in $n$ independent Bernoulli trials with an unbiased coin ($p = 0.50$): $$P(X = k) = \binom{n}{k} p^k (1-p)^{n-k} = \frac{n!}{k!(n-k)!} (0.5)^n$$ ### B. Moments of the Distribution - Expected Value (Mean): $\mu = n \cdot p = 0.5n$ - Variance: $\sigma^2 = n \cdot p \cdot (1-p) = 0.25n$ - Standard Deviation: $\sigma = \sqrt{0.25n} = 0.5\sqrt{n}$ - Confidence Intervals (Normal Approximation for large $n$): - $\pm 1\sigma$ (68.27%): $[0.5n - 0.5\sqrt{n}, 0.5n + 0.5\sqrt{n}]$ - $\pm 2\sigma$ (95.45%): $[0.5n - 1.0\sqrt{n}, 0.5n + 1.0\sqrt{n}]$ - $\pm 3\sigma$ (99.73%): $[0.5n - 1.5\sqrt{n}, 0.5n + 1.5\sqrt{n}]$ ### C. Longest Streak Law (Erdős–Rényi Theorem) The expected length $L_n$ of the longest consecutive sequence of identical outcomes in $n$ independent flips: $$L_n \approx \log_{1/p}(n) = \log_2(n)$$ - $n = 100$: $L_{100} \approx \log_2(100) \approx 6.64$ (Expected maximum streak: 6 to 8) - $n = 1,000$: $L_{1000} \approx \log_2(1000) \approx 9.97$ (Expected maximum streak: 9 to 11) - $n = 10,000$: $L_{10000} \approx \log_2(10000) \approx 13.29$ (Expected maximum streak: 13 to 15) - $n = 1,000,000$: $L_{10^6} \approx \log_2(10^6) \approx 19.93$ (Expected maximum streak: 19 to 22) ### D. Statistical Independence & Gambler's Fallacy Invariance For any sequence of $n$ prior outcomes $A_1, A_2, \dots, A_n$: $$P(A_{n+1} = \text{Heads} \mid A_1 = \text{Tails}, A_2 = \text{Tails}, \dots, A_n = \text{Tails}) = P(A_{n+1} = \text{Heads}) = 0.500000$$ ### E. Stanford Diaconis Precession Theorem (2007) Persi Diaconis, Susan Holmes, and Richard Montgomery proved that human coin tossing creates off-axis angular momentum precession, causing coins to spend ~50.8% of their flight time oriented with the initial face: $$P(\text{Same Face as Start}) \approx 0.508 \quad \text{vs} \quad P(\text{Opposite Face}) \approx 0.492$$ --- ## 3. Historical Empirical Coin Tossing Benchmark Trials | Experimenter | Year & Location | Total Flips ($n$) | Total Heads | Heads % | Z-Score Deviation | |---|---|---|---|---|---| | **Comte de Buffon** | 1777 (France) | 4,040 | 2,048 | 50.69% | $+0.88\sigma$ | | **Karl Pearson** | 1900 (University College London) | 24,000 | 12,012 | 50.05% | $+0.16\sigma$ | | **John Edmund Kerrich** | 1940 (Hald Internment Camp, Denmark) | 10,000 | 5,067 | 50.67% | $+1.34\sigma$ | | **University of Amsterdam (Bartos et al.)** | 2023 (Multi-Lab High-Speed Cameras) | 350,757 | 178,075 | 50.77% | $+9.12\sigma$ (Confirms Diaconis Precession) | --- ## 4. Numismatic Specifications Matrix | Currency Coin | Nominal Value | Mass (g) | Diameter (mm) | Edge Type | Alloy Composition | Obverse Artwork | Reverse Artwork | |---|---|---|---|---|---|---|---| | **US Quarter** | 25¢ ($0.25 USD) | 5.670 | 24.26 | 119 Reeds | Cupronickel Clad (91.67% Cu / 8.33% Ni) | George Washington (John Flanagan, 1932) | Heraldic Bald Eagle (John Mercanti) | | **US Dime** | 10¢ ($0.10 USD) | 2.268 | 17.91 | 118 Reeds | Cupronickel Clad (91.67% Cu / 8.33% Ni) | Franklin D. Roosevelt (John R. Sinnock) | Liberty Torch, Olive & Oak Branches | | **US Nickel** | 5¢ ($0.05 USD) | 5.000 | 21.21 | Smooth | 75% Copper / 25% Nickel | Thomas Jefferson (Rembrandt Peale portrait) | Monticello Estate (Albemarle County, VA) | | **US Penny** | 1¢ ($0.01 USD) | 2.500 | 19.05 | Smooth | 97.5% Zinc core / 2.5% Copper plating | Abraham Lincoln (Victor David Brenner, 1909) | Union Shield (Lyndall Bass, 13 stripes) | | **Indian Rupee** | ₹5 (5 INR) | 6.000 | 23.00 | 100 Reeds | Nickel-Brass / Ferritic Stainless Steel | Lion Capital of Ashoka & Satyameva Jayate | ₹ Symbol (D. Udaya Kumar) & Wheat Stalks | | **Euro Coin** | €1 (1 EUR) | 7.500 | 23.25 | Interrupted Reeds | Bimetallic (Nickel-Brass outer / Cupronickel inner) | European Union Map & 12 Stars (Luc Luycx) | Eurozone National Emblems | | **British Pound** | £1 (1 GBP) | 8.750 | 23.03 | Milled 12-Sided | Bimetallic (Nickel-Brass outer / Nickel inner) | Official Monarch Effigy Portrait | Nations of the Crown Coronet (David Pearce) | --- ## 5. Complete URL & Entity Directory - `/`: Flagship 3D Coin Flipper (Central Entity: Coin Toss) - `/is-coin-flip-actually-50-50/`: Stanford Diaconis Precession & Physical Bias Research - `/flip-a-coin-100-times/`: 100 Flips Monte Carlo Simulation with Gaussian Bell Curve - `/flip-a-coin-1-million-times/`: 1,000,000 Flips High-Speed Client Engine - `/flip-a-coin-10000-times/`: 10,000 Flips John Kerrich Replication - `/flip-a-coin-1000-times/`: 1,000 Flips Normal Approximation Engine - `/flip-a-coin-50-times/`: 50 Flips Bernoulli Variance Analysis - `/flip-a-coin-10-times/`: 10 Flips Permutation Table (1,024 Outcomes) - `/flip-a-coin-5-times/`: 5 Flips Discrete State Matrix (32 Outcomes) - `/flip-a-coin-3-times/`: 3 Flips Best of 3 Combinatorial Decision Tree (8 Outcomes) - `/flip-2-coins/`: 2 Coins Simultaneous Toss & 4 Permutation Matrix - `/flip-5-coins/`: 5 Coins Simultaneous Physics Sandbox - `/flip-10-coins/`: 10 Coins Simultaneous Sandbox - `/grab-50-coins/`: 50 Coins Visual Tabletop Tray - `/flip-100-coins/`: 100 Coins GPU Sandbox - `/flip-a-quarter/`: US Washington Quarter 3D Flipper - `/flip-a-dime/`: US Roosevelt Dime 3D Flipper - `/flip-a-nickel/`: US Jefferson Nickel 3D Flipper - `/flip-a-penny/`: US Lincoln Penny 3D Flipper - `/flip-indian-rupee-coin/`: Indian Rupee ₹5 Coin & BCCI Cricket Toss - `/flip-a-euro-coin/`: European Union 1-Euro Coin 3D Flipper - `/flip-a-pound-coin/`: British 1-Pound 12-Sided Coin 3D Flipper - `/heads-or-tails/`: Heads or Tails Decision Maker & Game Theory - `/3-sided-coin-flipper/`: 3-Sided Land on Edge Physics Simulator - `/coin-toss-probability-calculator/`: Binomial Probability Solver & Gambler's Fallacy - `/classroom-coin-flipper/`: Fullscreen Whiteboard Presenter Mode - `/random-name-picker-wheel/`: 60 FPS Name Spinner Wheel - `/custom-coin-flipper/`: Dual-Image Custom Coin Studio - `/google-flip-a-coin-alternative/`: Google OneBox vs CSPRNG Benchmark - `/embed/coin/`: Frameless Iframe-Embeddable Widget - `/sitemap/`: Dynamic Categorized HTML Sitemap Index - `/404/`: High-Converting 404 Recovery Hub --- ## 6. Machine Endpoints & Feeds - XML Sitemap Index: https://flipacoinlab.org/sitemap-index.xml - Google Image Sitemap: https://flipacoinlab.org/image-sitemap.xml - Media RSS Feed: https://flipacoinlab.org/rss.xml - Robots Directives: https://flipacoinlab.org/robots.txt - PWA Web Manifest: https://flipacoinlab.org/manifest.webmanifest