Question
How closely can a single equation trace the dollar price of a troy ounce of gold across about 15 years? The target was R² of at least 0.80 on the observed dates. A value of 0.80 means that the equation removes 80% of the squared error of drawing a horizontal line at the sample mean.
News near the turns
The letters mark calendar coincidences. Each note names the announcement and describes the separate movement recorded in the price file. Prices are USD per troy ounce. Daily price source · Publisher document addresses
- A · 19 June 2013. At Ben Bernanke’s Federal Reserve press conference, a possible taper in asset purchases was discussed. Gold fell from $1,368.39 to $1,296.59 over the following month and reached $1,384.74 by 18 August. A, document register
- B · 16 December 2015. The Fed raised its policy rate. The sample low of $1,050.73 came the next day. B, FOMC statement
- C · 31 July 2019. The Fed cut its policy rate during a gold rally. Gold reached its 2019 high of $1,552.18 on 4 September. C, FOMC statement
- D · 15 March 2020. The Fed announced emergency easing during the COVID shock. Gold fell to $1,470.60 on 19 March and rose to $2,069.52 on 6 August. D, FOMC statement
- E · 2 March 2022. The UN General Assembly condemned Russia’s invasion of Ukraine. Gold reached $2,009.35 on 8 March and stood at $1,925.12 a month after the vote. E, resolution ES-11/1
- F · 10 June 2022. The US Bureau of Labor Statistics released its May inflation report. Gold was $1,871.22 that day and $1,743.97 a month later. F, Consumer Price Index release
- G · 18 September 2024. A Fed rate cut fell during the record run. Gold reached its 2024 high of $2,785.56 on 30 October. G, FOMC statement
- H · 2 April 2025. The US reciprocal-tariff order preceded an April swing. Gold rose from $3,159.30 on the signing date to $3,418.95 on 21 April, then stood at $3,240.96 on 2 May. H, Executive Order 14257
- I · 28 January 2026. A Fed meeting coincided with the sample high of $5,518.21. Gold ended the record at $3,693.61, down 33.07% from that high. I, FOMC statement
| Mark | Date | 30 days before | On date | 30 days after |
|---|---|---|---|---|
| A | 2013-06-19 | 1,398.25 | 1368.39 | 1,296.59 |
| B | 2015-12-16 | 1,084.08 | 1072.25 | 1,088.33 |
| C | 2019-07-31 | 1,384.89 | 1412.70 | 1,520.81 |
| D | 2020-03-15 | 1,584.33 | 1557.96 | 1,726.22 |
| E | 2022-03-02 | 1,797.66 | 1929.41 | 1,925.12 |
| F | 2022-06-10 | 1,853.36 | 1871.22 | 1,743.97 |
| G | 2024-09-18 | 2,504.81 | 2558.09 | 2,722.06 |
| H | 2025-04-02 | 2,891.39 | 3159.30 | 3,240.96 |
| I | 2026-01-28 | 4,345.39 | 5518.21 | 5,278.59 |
Data
Alpha Vantage GOLD_SILVER_HISTORY (symbol GOLD, daily), retrieved 2026-11-30. The series reports the spot price of gold in USD per troy ounce. The file contains 5,318 distinct dated observations from 2012-01-02 through 2026-11-29. Of these, 1,428 fall on Saturdays or Sundays. A row identifies the provider’s daily observation. The file gives neither its fixing time nor a venue. All available dates carry equal weight. The line joins observations across gaps, and no missing dates enter the fit. Data record
The licence covers research use of the input. The publisher lists its terms at www.alphavantage.co/terms_of_service/. The study archive contains derived results and short price excerpts. The annual results give the count, dated extremes and means of the observed and fitted prices for each year. The last year ends in November.
Checking a possible bad tick
We screened each interior observation against both original neighbours. A quote had to be more than 12% above both or more than 12% below both. The neighbours had to agree within 3% of the lower one and each lie within three calendar days. Endpoints and adjacent candidates stayed in the series. Zero dates qualified for removal or interpolation. Across all local highs and lows, the largest gap from the closer neighbour was 4.15%, on 5 February 2026. In 2025–2026, 81 quotes lay between $4,300 and $4,500 inclusive. All 81 remain. Daily price source
| Date | Before | Raw | After | Decision |
|---|---|---|---|---|
| 2026-01-28 | 5,172.42 | 5,518.21 | 5,439.84 | Kept |
| 2026-02-05 | 5,011.98 | 4,748.10 | 4,953.73 | Kept |
The five prices in the detail figure are taken directly from the snapshot. Daily price source
Method
Let t be elapsed calendar days since 2 January 2012. It runs from 0 to 5,445. The estimate in USD per troy ounce is price ≈ f(t). For the equation below use these three definitions, with angles in radians.
x = t / 5445
θ = 2πt / 1461
G(t, c) = exp(−((t − c)/60)²/2)
The cubic trend gives the long curve room to bend. Two Fourier harmonics add waves with periods of 1,461 and 730.5 days. Each Gaussian G adds a smooth, local rise or dip centred on one of the nine news dates, in order A to I. Its width is fixed at 60 days. The 17 fitted coefficients include four for the trend, four for the waves and nine for events.
The fitted equation
f(t) = 1541.81588519
− 967.70420517 x
− 1940.04994987 x²
+ 5615.41673988 x³
+ 148.09654444 sin(θ)
− 108.28003815 cos(θ)
+ 63.36079661 sin(2θ)
− 67.30810728 cos(2θ)
− 243.86182671 G(t, 534)
+ 76.75461405 G(t, 1444)
+ 527.27463420 G(t, 2767)
+ 465.43439781 G(t, 2995)
+ 176.10328669 G(t, 3712)
− 157.56140433 G(t, 3812)
− 542.56327412 G(t, 4643)
− 230.22062147 G(t, 4839)
+ 1333.68241837 G(t, 5140)
All coefficients were estimated together by minimising the sum of squared daily price errors. The coefficient table gives the values printed above. We selected the dates with hindsight and fixed the periods and widths before estimating the coefficients. A negative event coefficient means the fitted curve bends down relative to its other terms. It does not measure the effect of an announcement. Least-squares method
Results
The full equation explains 97.11% of the variation in historical price levels. Pearson correlation, which measures how closely two series rise and fall together, is 0.9855. The 80% criterion applies to R². Mean absolute percentage error (MAPE) averages the absolute error divided by the actual price on each date. In dollar terms the mean absolute error is $116.29 per troy ounce. Price observations · Correlation definition
Two misses show the size of the remaining error. On 6 August 2020 the equation gives $1,575.96 against $2,069.52 observed, a gap of $493.56. On 28 January 2026 it gives $4,996.34 against $5,518.21, a gap of $521.87. Dated highs and annual results
Checks
A second implementation reads the original CSV, applies the neighbour test separately, builds its own time functions and fits the coefficients by pivoted QR. It computes the scores with scalar arithmetic. The first calculation uses NumPy’s singular-value solution and scores the equation rounded exactly as printed. NumPy method · SciPy driver
| Measure | Printed equation | Independent QR |
|---|---|---|
| R² | 0.97114417 | 0.97114417 |
| Pearson correlation | 0.98546647 | 0.98546647 |
| MAPE (%) | 6.44037072 | 6.44037072 |
| MAE (USD/oz) | 116.28968828 | 116.28968828 |
| Fit or period | Rows | R² | Corr. | MAPE (%) | MAE (USD/oz) |
|---|---|---|---|---|---|
| Cubic | 5,318 | 0.9070 | 0.9523 | 10.35 | 201.15 |
| Cubic + waves | 5,318 | 0.9214 | 0.9599 | 10.09 | 189.66 |
| Full equation | 5,318 | 0.9711 | 0.9855 | 6.44 | 116.29 |
| All raw rows | 5,318 | 0.9711 | 0.9855 | 6.44 | 116.29 |
| 2012–2016 | 1,698 | 0.6398 | 0.8153 | 6.63 | 86.19 |
| 2017–2021 | 1,826 | 0.7251 | 0.8750 | 6.78 | 103.47 |
| 2022–2026 | 1,794 | 0.9626 | 0.9833 | 5.92 | 157.83 |
| 2,026 | 333 | 0.4136 | 0.7216 | 5.57 | 247.55 |
The cubic alone reaches R² of 0.9070. The common long rise therefore accounts for much of the full-period score. Within 2026 the full equation explains only 41.36% of the variation, using that year’s mean as the reference. On the 5,253 pairs of dates exactly one day apart, the correlation between observed and reconstructed dollar changes falls to 0.0601.
The equation overfits by construction. We chose news episodes after seeing the curve and used the entire period to estimate every coefficient. The adjacent prices share a history, so treating the rows as independent draws would give a misleading confidence interval. The table reports descriptive errors over the specified record. There is no forward test, the equation would not generalise forward, and these comparisons cannot establish a cause.
What it means in plain words
One equation can trace the climb from the 2015 low through the later record highs while getting individual days badly wrong. The broad match says little about the next price. There is no trade, holding period or transaction cost in this calculation.
Halbert White showed why using the same history to choose and assess a model can make chance patterns look informative. Our dates were chosen with the benefit of hindsight. The drop in error after adding nine event terms tells us how well those terms describe this record. It cannot tell us whether those announcements moved gold. White, Econometrica
SciPy’s published correlation example shows how a high score can conceal a poor relationship over part of a range. Here the weak daily-change result and the missed peaks make that distinction visible. The National Bank of Ukraine’s metals-service guide also distinguishes a quote’s effective date from its calculation date. This file has only one date field, so a weekend label cannot establish when a quote was set. Correlation example · Metals-service guide
References
News documents
For each marker, the register gives the dated primary document and its publisher address. Open the address using HTTPS. The original news documents were unavailable for offline inspection. Prices and turning points come from the licensed gold series.
| Mark | Publisher document | Address (HTTPS) |
|---|---|---|
| A | Federal Reserve, Chairman Bernanke’s press conference, 19 June 2013 | www.federalreserve.gov/mediacenter/files/FOMCpresconf20130619.pdf |
| B | Federal Reserve, FOMC statement, 16 December 2015 | www.federalreserve.gov/newsevents/pressreleases/monetary20151216a.htm |
| C | Federal Reserve, FOMC statement, 31 July 2019 | www.federalreserve.gov/newsevents/pressreleases/monetary20190731a.htm |
| D | Federal Reserve, FOMC statement, 15 March 2020 | www.federalreserve.gov/newsevents/pressreleases/monetary20200315a.htm |
| E | UN General Assembly, Aggression against Ukraine, resolution ES-11/1, 2 March 2022 | docs.un.org/en/A/RES/ES-11/1 |
| F | US Bureau of Labor Statistics, Consumer Price Index — May 2022, released 10 June 2022 | www.bls.gov/news.release/archives/cpi_06102022.htm |
| G | Federal Reserve, FOMC statement, 18 September 2024 | www.federalreserve.gov/newsevents/pressreleases/monetary20240918a.htm |
| H | Executive Order 14257, reciprocal tariffs, signed 2 April 2025 | www.federalregister.gov/executive-order/14257 |
| I | Federal Reserve, FOMC statement, 28 January 2026 | www.federalreserve.gov/newsevents/pressreleases/monetary20260128a.htm |
The gold data record, the NumPy solver, the SciPy independent solver, the Pearson correlation reference the National Bank of Ukraine guide and White’s study of model selection were consulted from local copies.
Download plain-text bibliography · Download linked bibliography (HTML)
- Alpha Vantage GOLD_SILVER_HISTORY (symbol GOLD, daily)
The licensed snapshot, retrieved 2026-11-30, supplies every observed price in USD per troy ounce. The opened item was the CSV. The link identifies its publisher. The archived tables contain study results and short price excerpts.
Opened 2026-11-30 - NumPy 2.2 reference, numpy.linalg.lstsq
The installed NumPy 2.2.6 reference specifies the minimum squared-error objective and the rank returned by the solver.
Opened 2026-11-30 - SciPy 1.15.3 reference, scipy.linalg.lstsq
The installed reference documents the choice of LAPACK driver. The independent fit uses pivoted QR through the gelsy driver.
Opened 2026-11-30 - SciPy 1.15.3 reference, Pearson correlation
The installed reference defines linear correlation and gives an example in which a high value hides a change in the relationship over part of the range.
Opened 2026-11-30 - National Bank of Ukraine, date-range service for exchange rates and accounting prices of investment metals
The locally archived publisher guide distinguishes the effective date from the calculation date. It supplies a methodological comparison only. All gold values come from the Alpha Vantage snapshot.
Opened 2026-11-30 - Halbert White, A Reality Check for Data Snooping, Econometrica (2000)
The archived paper explains why selecting a model on the same time series used to assess it can make chance results look informative. It considers predictive performance against a benchmark. This study measures only historical reconstruction.
Opened 2026-11-30. DOI 10.1111/1468-0262.00152
Reproduce
A fresh fit requires the licensed daily GOLD snapshot from Alpha Vantage described in the data record. The complete third-party series is distributed separately by its publisher. A current extract may differ from the recorded vintage. Place the matching CSV in the extracted study folder at data/gold-daily.csv.
From that folder, run python code/reproduce.py with Python 3.12, NumPy 2.2.6, SciPy 1.15.3 and Matplotlib 3.10.8. The script checks its SHA-256 fingerprint, prints the full equation, refits the independent check and writes both chart sizes and the CSV tables. Run python code/verify.py for the independent calculation alone, or python -m unittest discover -s code for the study checks.
The input fingerprint for the 2026-11-30 calculation is 50b14448. The coefficients, annual summaries, fit comparisons and verification table preserve the results. The charts share a dated calculation table of observed and fitted prices that is built in memory. The marker dates and publisher links are recorded in code/events.csv and EVENTS.md.
Change log
Initial reconstruction of the licensed daily record, with a second fit and an audit of the sample high.
3 December 2026. Source files and reproduction notes were made portable for the archived copy. No result changed.
What this leaves open
- How much would the reconstruction change on verified weekday fixes?
- How would a curve fitted only to earlier years compare with later prices?
- How do moves around these announcements compare with moves around unrelated dates?