Input Data Errors

Dear Readers,

I owe you an apology. I made a mistake. I am writing this letter in the first person, because I made the mistake. Let me explain what happened.

 

The wrong stuff went into the funnel in the upper left-hand corner…

 

I wrote software to calculate the gold basis and co-basis (and of course silver too). The app does not just calculate the near contract. It calculates the basis for many contracts out in the distance, so I can see the whole picture.

I developed a model for the fundamental gold price, based on the basis. My software calculates this, too (spoiler alert: the reported fundamental prices were high).

I have long since debugged it. It works reliably. So reliably, that every day I pored over the results, but I no longer checked the inputs and intermediate steps of the calculation. Now, in retrospect, I realize that I should have.

The root cause is simple. For as far back as I have ever seen, the symbol for a future has been a two-letter code for the commodity + a one letter for the month and one digit for the year. For example, gold is GC. December is Z. And 2017 is 7. So the December gold contract is “GC Z7”. Silver is SI, so December silver is “SI Z7”.

I did not expect my real-time quote provider to change year codes for contracts in 2018 and beyond. No longer is it one digit for year —8 in this case. Now it requires two digits. So the December 2018 gold contract is “GC Z18”. Even now that I have looked, I do not find any announcement of this change. I am not even sure if it is an official COMEX change, or just a quirk of one quote provider.

 

Data provider uncertainties

 

This error was compounded because my software was not programmed to notify me of a problem. In software, the only thing worse than a failure in a system that is used in production is a silent failure that goes unnoticed, and hence goes uncorrected. This failure went unnoticed.

 

System Upgrade

Before I get to the impact, I want to discuss how we will make sure this does not happen again.

My team and I have been working hard on a new website, and the centerpiece will be our ongoing data science work in the precious metals markets. We will publish about 45 graphs, with daily updates. Obviously, this is driven by a much more sophisticated software system than my humble application.

The new software is developed by one of the best coders in the world (not me, I’m rusty after not coding full-time in almost 15 years). Rudy Mathieu worked for my last company, a software company called DiamondWare.

Rudy has built a hardened, enterprise-grade software system (now undergoing extensive testing), and when it encounters an error, it does not fail silently. It is constantly checking the status of all key components, and has a dashboard so we can monitor how the software and the server running it are doing.

It emails us if anything goes wrong. It will instantly detect problems, such as a change in the year code or even the Spanish Inquisition, which nobody expects.

 

Nobody expects the Spanish Inquisition!

 

For years, I have been publishing a unique view into the markets. Our new site takes it a thousand times further. I expect that it will become an essential tool for anyone who uses or trades gold. We need to ensure it is as reliable as clockwork.

I promise to make it so.

 

There are ways and means to keep coders line and boost their productivity

 

Data Error Impact

Back to the question: what was the net effect? My software was not able to calculate a basis for gold or silver contracts maturing in 2018 or beyond. However, my fundamental price model relies on them. Its accuracy began to suffer starting around last August.

This error continued to grow in magnitude. As of last week’s Report, the fundamental price of gold was overstated by about $175, and silver’s fundamental price by $2.30.

The correct fundamental prices as of Friday March 31 were about $1,260 and $16.70.

Interestingly — and this is important — the fundamental gold-silver ratio was robust to this error. The value stated in last week’s report, 75.75, was almost perfect. It was off from the revised estimated fundamentals by 0.2.

I say revised and estimated, because I went back over the time period where I have incomplete data and derived what I need. The result is good enough for horseshoes and hand grenades, as we say in America (but it has higher uncertainty).

There is a bigger lesson here. Monetary Metals focuses on the ratio (which we trade in our fund), because it is less error-prone, more accurate, and less risky than trading either metal against the dollar.

The bottom line is that on March 31, the corrected fundamental gold  price was above the market price, though not nearly so far above as I had reported it. It was about 1.4% over the market price (I reported 15.6% last week).

As an aside, my friend Pater Tenebrarum at the Acting Man blog wrote about the disparity between the fundamental drivers that he monitors, and the fundamentals I reported. He is right in thinking that demand for physical is not going ballistic yet.

Though as you will see in the graphs below, the fundamental price has indeed been rising since mid to late December (as I have been correctly reporting), from a low of around $1,115 to $1261 at the end of March.

The correct silver fundamental price is below the market price. My commentary actually stands up pretty well, in light of the correct data. Even while I erroneously reported a silver fundamental price running up to about $19, I have not been enthusiastic about silver. I haven’t “trusted” it enough to encourage a big silver trade, nor called for a major price move. I think there were two reasons.

One, obviously, the nearer-term contracts which I monitor are accurate. They did not show the kind of moves I would expect to see if the market for physical metal was getting so tight. The error only occurred for contracts in 2018. Two, the fundamental gold-silver ratio was correctly calling for a higher market ratio.

Below, I include graphs of the fundamental prices for both metals. The correct values will be overlaid with the ones I have been calculating. So you can see where it went off the rails, and by how far it deviated.

There is one last thing, which I am reluctant to discuss now, before we are ready to launch. Yet it is germane.

Monetary Metals has licensed market data from Thomson Reuters. When the new charts go live, they will be based solely on this data. This data is of better quality than the data from the real-time quote provider I have been using.

And we have developed some very sophisticated algorithms that allows us to extract the maximum signal with the least noise, far superior to what my little app does with the data from my current provider.

The new basis and fundamental prices will not line up perfectly with the old data series. One reason is that the bid-ask spread is tighter. By the nature of the math to calculate the basis, a tighter spread means a higher basis and higher co-basis.

That said, I am confident of two things. One, the new data is more accurate. And two, the old data set has served well in showing the big picture (notwithstanding the error I corrected this week).

 

Fundamental Developments

We will look at the only true picture of supply and demand in the gold and silver markets. But first, the price and ratio charts.

 

Prices of gold and silver – click to enlarge.

 

Next, this is a graph of the gold price measured in silver, otherwise known as the gold-silver ratio. Last week, we asked if the downward-moving gold-silver ratio had hit a line of support. It seems it did, as it moved up sharply on Friday.

 

Gold-silver ratio – click to enlarge.

 

For each metal, we will look at a graph of the basis and co-basis overlaid with the price of the dollar in terms of the respective metal. It will make it easier to provide brief commentary. The dollar will be represented in green, the basis in blue and co-basis in red.

 

Here is the gold graph.

 

Gold basis and co-basis and the dollar price – click to enlarge.

 

Not much change in the scarcity of gold (i.e. the red line, the cobasis) while the price moved up slightly. Our calculated fundamental price is up $30, to about $1,290.

Let’s take a look at two graphs. Both show enough time to see where the error began to creep in, and where it ends. They are May 3, 2016 through March 31, 2017.

The first is the continuous gold basis, with the erroneous line overlaid with the corrected line. As you can see, the erroneous basis was lower (indicating, falsely, lower abundance) and the erroneous co-basis was higher (indicated greater scarcity).

 

Reported and corrected gold basis and co-basis

 

The second is the market price of gold, overlaid with the erroneous and corrected fundamental prices.

The Reported and Corrected Gold Fundamental Prices

 

Gold: market price, reported fundamental price and corrected fundamental price – click to enlarge.

 

The erroneous one takes off for the stars. The corrected value is much closer to the market price, though a bit above.

Now let’s look at silver.

 

Silver basis and co-basis and the dollar price – click to enlarge.

 

We switched from the May to the July contract, as the May contract is in the process of being rolled (where traders must close positions in May and if they want to keep their positions, open a July or farther-out contract).

There is a small decrease in the basis and increase in co-basis, along with a falling price this week. And our fundamental price is up 14 cents, to just under $16.85. Yes, alas, that is more than a buck under the market.

Here are the same extra two graphs for silver.

 

Reported and corrected silver basis and co-basis – click to enlarge.

 

Silver: market price, reported fundamental price, corrected fundamental price – click to enlarge.

 

You can see here that there are two salient features. One, the fundamental price has been rising for about a month longer than that of gold, although from a much more volatile bottom ($12.39). Two, the fundamental price is way below the market price.

 

© 2017 Monetary Metals

 

Image captions by PT

 

Dr. Keith Weiner is the president of the Gold Standard Institute USA, and CEO of Monetary Metals. Keith is a leading authority in the areas of gold, money, and credit and has made important contributions to the development of trading techniques founded upon the analysis of bid-ask spreads. Keith is a sought after speaker and regularly writes on economics. He is an Objectivist, and has his PhD from the New Austrian School of Economics. He lives with his wife near Phoenix, Arizona.

 

 
 

Emigrate While You Can... Learn More

 
 

 
 

Dear Readers!

You may have noticed that our so-called “semiannual” funding drive, which started sometime in the summer if memory serves, has seamlessly segued into the winter. In fact, the year is almost over! We assure you this is not merely evidence of our chutzpa; rather, it is indicative of the fact that ad income still needs to be supplemented in order to support upkeep of the site. Naturally, the traditional benefits that can be spontaneously triggered by donations to this site remain operative regardless of the season - ranging from a boost to general well-being/happiness (inter alia featuring improved sleep & appetite), children including you in their songs, up to the likely allotment of privileges in the afterlife, etc., etc., but the Christmas season is probably an especially propitious time to cross our palms with silver. A special thank you to all readers who have already chipped in, your generosity is greatly appreciated. Regardless of that, we are honored by everybody's readership and hope we have managed to add a little value to your life.

   

Bitcoin address: 1DRkVzUmkGaz9xAP81us86zzxh5VMEhNke

   
 

5 Responses to “Mea Culpa – Precious Metals Supply and Demand”

  • All-Your-Gold-Are-Mine:

    Mr. Weiner, NO apology necessary… as readers, we’re not doing any of the work, just benefiting from your insights. Please excuse the arrogance of people thinking that you need an “accepted” apology. Of course you do not. And thank you for taking the time to explain in the first person. Personally, I like your writing style in the first person. Again, thanks for your hard work explaining your understanding of how the price of the precious metals, Gold and Silver, are derived.

  • Skew Views:

    When you say, ‘this new site goes a thousand times further’ is that number rounded up or down ? Because it seems hard to believe it will go exactly one thousand times further.
    You may want to double check that data as well. Maybe you meant to use the number 1000 instead.

    • All-Your-Gold-Are-Mine:

      Not funny “Skew” nor witty… why don’t YOU spend hours informing us of YOUR views, before acting like a “smart-*ss”?!

  • Riechers:

    Thank you for your honest disclosure, we all make mistakes, few take ownership. As a regular reader I had noticed the widening margin so appreciate the clarification. I can only imagine how many undisclosed errors live in the thousands of algos that control today’s markets that will never be revealed until it is too late.

  • Hans:

    Mr weiner, apology accepted!

    To ensure more reliable information, we are switching
    your servers to that of HRC; which will guaranty data flow
    from official sources.

Your comment:

You must be logged in to post a comment.

Most read in the last 20 days:

  • What Do “Think Tanks” Think About?
      “Russiagate” WEST RIVER, MARYLAND – We’re back at our post – watching... reading... trying to connect the dots. And we begin by asking: What do “think tanks” think about? The answer in a minute. First, there is a dust-up in the Washington, D.C., area. “Russiagate,” it is called. As near as we can make out, some people think the Trump team had or has illegal or inappropriate contacts with the Russian government.   It's all very obvious, if one looks...
  • Parabolic Coin
      The Crypto-Bubble - A Speculator's Dream in Cyberspace When writing an article about the recent move in bitcoin, one should probably not begin by preparing the chart images. Chances are one will have to do it all over again. It is a bit like ordering a cup of coffee in Weimar Germany in early November 1923. One had to pay for it right away, as a cup costing one wheelbarrow of Reichsmark may well end up costing two wheelbarrows of Reichsmark half an hour later. These days the question is...
  • Quantitative Easing Explained
      [Ed. note: This article was originally posted in November of 2010 - we have decided to republish it with updated charts, as it has proved to be very useful as a reference - the mechanics of QE are less well understood than they should be, and this article explains them in detail.]   Printing Money We have noticed that lately, numerous attempts have been made to explain the mechanics of quantitative easing.  They range from the truly funny as in this by now 'viral' You Tube...
  • The Three Headed Debt Monster That’s Going to Ravage the Economy
      Mass Infusions of New Credit   “The bank is something more than men, I tell you.  It’s the monster.  Men made it, but they can’t control it.” – John Steinbeck, The Grapes of Wrath   Something strange and somewhat senseless happened this week. On Tuesday, the price of gold jumped over $13 per ounce.  This, in itself, is nothing too remarkable.  However, at precisely the same time gold was jumping, the yield on the 10-Year Treasury note was slip sliding down...
  • Jayant Bhandari on Gold, Submerging Markets and Arbitrage
      Maurice Jackson Interviews Jayant Bhandari We are happy to present another interview conducted by Maurice Jackson of Proven and Probable with our friend and frequent contributor Jayant Bhandari, a specialist on gold mining investment, the world's most outspoken emerging market contrarian, host of the highly regarded annual Capitalism and Morality conference in London and consultant to institutional investors.   As soon as Jayant touches down in London, he is accosted by...
  • Monetary Madness and Rabbit Consumption
      Down the Rabbit Hole “The hurrier I go, the behinder I get,” is oft attributed to the White Rabbit from Lewis Carroll’s, Alice in Wonderland.  Where this axiom appears within the text of the story is a mystery.  But we suspect the White Rabbit must utter it about the time Alice follows him down the rabbit hole.   Pick a rabbit to follow...   No doubt, today’s wage earner knows what it means to work harder, faster, and better, while slip sliding behind. ...
  • Central Banks – Tiptoeing Toward the Exit
      Frisky Fed Hike-o-Matic We haven't commented on central bank policy for a while, mainly because it threatened to become repetitive; there just didn't seem anything new to say. Things have recently changed a bit though. A little over a week ago we received an email from Brian Dowd of Focus Economics, who asked if we would care to comment on the efforts by the Fed and the ECB to exit unconventional monetary policy and whether they could do so without triggering upheaval in the markets and...
  • The Anatomy of Brown’s Gold Bottom – Precious Metals Supply and Demand
      The Socialist Politician-Bureaucrat with the Worst Timing Ever As most in the gold community know, the UK Chancellor of the Exchequer Gordon Brown announced on 7 May, 1999 that HM Treasury planned to sell gold. The dollar began to rise, from about 110mg gold to 120mg on 6 July, the day of the first sale. This translates into dollarish as: gold went down, from $282 to $258. It makes sense, as the UK was selling a lot of gold... or does it?   Former UK chancellor of the...
  • The Valium Era
      Don’t Be Fooled by These Calm Markets What is happening in the world of money? Well - the most striking thing is: nothing. It doesn’t seem to matter what happens. Dysfunction in Washington. Meltdown of the techs. No matter how rough the seas get, the markets glide along... scarcely noticing the storm-tossed waves below.   Thankfully the world's central planners are so well-versed in egging on the creation of an ever greater mountain of debt and seemingly limitless asset...
  • Is Trump a Modern Caesar?
      Putting on the Purple   Mayor: Drebin, I don’t want any more trouble like you had last year on the South Side. Understand? That’s my policy. Drebin: Yes. Well, when I see five weirdos dressed in togas stabbing a guy in the middle of the park in full view of 100 people, I shoot the bastards. That’s my policy. Mayor: That was a Shakespeare in the Park production of Julius Caesar, you moron! You killed five actors! Good ones. – The Naked Gun   Laura Loomer,...
  • The Fed Rate Hike and Gold – Precious Metals Supply and Demand
      Shrinking the Balance Sheet? The big news last week came from the Fed, which announced two things. One, it hiked the Fed Funds rate another 25 basis points. The target is now 1.00 to 1.25%, and there will be further increases this year. Two, the Fed plans to reduce its balance sheet, its portfolio of bonds.   Assets held by Federal Reserve banks and commercial bank reserves maintained with the Fed – note that while asset purchases and bank reserve creation are connected,...
  • How to Discover Unknown Market Anomalies
      Seasonax Event Studies As our readers are aware by now, investment and trading decisions can be optimized with the help of statistics. After all, market anomalies that have occurred regularly in the past often tend to occur in the future as well. One of the most interesting and effective opportunities to increase profits while minimizing risks at the same time is offered by the event studies section of the Seasonax app.   A recent event that had quite an impact on certain...

Support Acting Man

Austrian Theory and Investment

Own physical gold and silver outside a bank

Archive

j9TJzzN

350x200

Realtime Charts

 

Gold in USD:

[Most Recent Quotes from www.kitco.com]

 


 

Gold in EUR:

[Most Recent Quotes from www.kitco.com]

 


 

Silver in USD:

[Most Recent Quotes from www.kitco.com]

 


 

Platinum in USD:

[Most Recent Quotes from www.kitco.com]

 


 

USD - Index:

[Most Recent USD from www.kitco.com]

 

THE GOLD CARTEL: Government Intervention on Gold, the Mega Bubble in Paper and What This Means for Your Future

 
Buy Silver Now!
 
Buy Gold Now!
 

Oilprice.com