QouratR&D centreContact

How closely can an equation trace daily gold prices?

The equation captures 97.11% of the variation in daily gold, 2012–2026, but misses many one-day moves.

The fitted curve has R² of 0.9711 and a correlation of 0.9855 across 5,318 daily prices. On those same dates, the mean absolute percentage error is 6.44%.

The mean dollar error, ignoring direction, is $116.29 per troy ounce.

On this page

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.

Gold fell into a 2015 low, rose through 2020, then climbed much more steeply before retreating in 2026. Letters identify the dated news below.Open full-size figure
Daily gold from early 2012 to late 2026 with nine lettered news markers along the observed price line.

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
Gold on each news date and exactly 30 calendar days to either side, in USD per troy ounce.5 columnsCSV
MarkDate30 days beforeOn date30 days after
A2013-06-191,398.251368.391,296.59
B2015-12-161,084.081072.251,088.33
C2019-07-311,384.891412.701,520.81
D2020-03-151,584.331557.961,726.22
E2022-03-021,797.661929.411,925.12
F2022-06-101,853.361871.221,743.97
G2024-09-182,504.812558.092,722.06
H2025-04-022,891.393159.303,240.96
I2026-01-284,345.395518.215,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

The screen retained both the sample maximum and the sharpest one-day reversal. Before and after are the neighbouring prices in USD per troy ounce.5 columnsCSV
DateBeforeRawAfterDecision
2026-01-285,172.425,518.215,439.84Kept
2026-02-055,011.984,748.104,953.73Kept
Gold was already above $5,100 the day before the peak and remained above $5,400 the day after. The sharper drop came on 30 January.Open full-size figure
Five daily observations around the January 2026 maximum show elevated prices on both sides of the high.

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 equation follows the broad rise. It misses the height of the August 2020 spike and ends above the observed November 2026 price.Open full-size figure
Observed daily gold prices as a solid blue line and the fitted equation as a dashed rust line over the entire study window.

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

Independent fits and scoring methods agree to the eight decimal places shown.CSV
MeasurePrinted equationIndependent QR
R²0.971144170.97114417
Pearson correlation0.985466470.98546647
MAPE (%)6.440370726.44037072
MAE (USD/oz)116.28968828116.28968828
The first three rows refit successively larger models. The remaining rows score the same full equation on the indicated observations.6 columnsCSV
Fit or periodRowsR²Corr.MAPE (%)MAE (USD/oz)
Cubic5,3180.90700.952310.35201.15
Cubic + waves5,3180.92140.959910.09189.66
Full equation5,3180.97110.98556.44116.29
All raw rows5,3180.97110.98556.44116.29
2012–20161,6980.63980.81536.6386.19
2017–20211,8260.72510.87506.78103.47
2022–20261,7940.96260.98335.92157.83
2,0263330.41360.72165.57247.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.

The primary-source register pairs each chart letter with the document that dates the news.CSV
MarkPublisher documentAddress (HTTPS)
AFederal Reserve, Chairman Bernanke’s press conference, 19 June 2013www.federalreserve.gov/mediacenter/files/FOMCpresconf20130619.pdf
BFederal Reserve, FOMC statement, 16 December 2015www.federalreserve.gov/newsevents/pressreleases/monetary20151216a.htm
CFederal Reserve, FOMC statement, 31 July 2019www.federalreserve.gov/newsevents/pressreleases/monetary20190731a.htm
DFederal Reserve, FOMC statement, 15 March 2020www.federalreserve.gov/newsevents/pressreleases/monetary20200315a.htm
EUN General Assembly, Aggression against Ukraine, resolution ES-11/1, 2 March 2022docs.un.org/en/A/RES/ES-11/1
FUS Bureau of Labor Statistics, Consumer Price Index — May 2022, released 10 June 2022www.bls.gov/news.release/archives/cpi_06102022.htm
GFederal Reserve, FOMC statement, 18 September 2024www.federalreserve.gov/newsevents/pressreleases/monetary20240918a.htm
HExecutive Order 14257, reciprocal tariffs, signed 2 April 2025www.federalregister.gov/executive-order/14257
IFederal Reserve, FOMC statement, 28 January 2026www.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)

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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 50b14448292ee34cdfa6ba83fb320df42af5f22ebde65409efc55edcfc5e8e61. 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?

This is research on past data, not advice and not a forecast.

Our review

Rating 6.8 out of 10

  • Question 14 of 15
  • Evidence 16 of 25
  • Verification 12 of 15
  • Sources 12 of 15
  • Usefulness 9 of 20
  • Originality 5 of 10

A second fit reproduces the curve, but choosing nine event dates after seeing prices leaves their apparent explanatory value untested.

This is the centre's own review, not peer review by outside scholars; see Policies.

Cite this study

Titles are italic in Harvard, APA, MLA and Chicago.

First published .

Harvard

Qourat 2026, How closely can an equation trace daily gold prices?, Research 112, Qourat Research and Development Centre, https://qourat.com/research/gold-price-equation/

APA (7th edition)

Qourat. (2026). How closely can an equation trace daily gold prices? (Research 112). Qourat Research and Development Centre. https://qourat.com/research/gold-price-equation/

IEEE

[1] Qourat, “How closely can an equation trace daily gold prices?” Qourat Research and Development Centre, Research 112, Dec. 1, 2026. [Online]. Available: https://qourat.com/research/gold-price-equation/

MLA (9th edition)

Qourat. How Closely Can an Equation Trace Daily Gold Prices? Research 112, Qourat Research and Development Centre, 1 Dec. 2026, https://qourat.com/research/gold-price-equation/.

Chicago (author-date)

Qourat. 2026. How Closely Can an Equation Trace Daily Gold Prices? Research 112. Qourat Research and Development Centre. https://qourat.com/research/gold-price-equation/.

BibTeX

@techreport{qourat-112,
  author = {Qourat},
  title = {{How closely can an equation trace daily gold prices?}},
  institution = {Qourat Research and Development Centre},
  number = {Research 112},
  year = {2026},
  date = {2026-12-01},
  url = {https://qourat.com/research/gold-price-equation/}
}

Add the date you read the page if your style asks for one.