Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: mndrix on December 18, 2010, 05:51:46 PM



Title: difficulty over time data?
Post by: mndrix on December 18, 2010, 05:51:46 PM
Is there downloadable data available showing the Bitcoin difficulty over time.  I'm imagining a CSV file with block number (every 2016) and difficulty.  Something like:

  0,1
  2016,1
  ...
  96768,12252.03471156

Certainly something like this exists, but the closest I've seen is Difficulty vs Time Graph (http://www.bitcoinblogger.com/2010/09/difficulty-vs-time-graph.html), which actually shows a Price vs Time graph


Title: Re: difficulty over time data?
Post by: mndrix on December 18, 2010, 05:53:38 PM
Soon after posting, I realized that blockexplorer.com shows the difficulty for each block.  Worst case, I'll go through each 2016th block and note the difficulty and put it in a Google Spreadsheet and post the link here.  If someone's already consolidated the data in one place, let me know.


Title: Re: difficulty over time data?
Post by: m0mchil on December 18, 2010, 05:54:38 PM
http://nullvoid.org/bitcoin/difficultiez.php (http://nullvoid.org/bitcoin/difficultiez.php)


Title: Re: difficulty over time data?
Post by: mndrix on December 18, 2010, 07:38:50 PM
Thanks m0mchil.

For those interested, below is a logarithmic graph of difficulty over time.  Time is represented by block number.  The data fits the following equation with R^2 of .997:

  difficulty = .00165*exp( blockNumber * .000163 )

Might be handy for those calculating the future value of their expensive GPUs :)

http://commondatastorage.googleapis.com/bitcoin/difficulty.png


Title: Re: difficulty over time data?
Post by: genjix on December 18, 2010, 07:52:39 PM
what's the correlation between that graph and the equation you worked out? not sure how to do it for quadratic curves..


Title: Re: difficulty over time data?
Post by: mndrix on December 18, 2010, 10:23:10 PM
what's the correlation between that graph and the equation you worked out? not sure how to do it for quadratic curves..

The best way I've found is to use Wolfram Alpha.  Here's the equation and correlation covering the last 4 difficulty adjustments (http://www.wolframalpha.com/input/?i=exponential+fit+{90720,4536},{92736,6867},{94752,8078},{96768,12252}).


Title: Re: difficulty over time data?
Post by: mndrix on December 21, 2010, 09:40:16 PM
I've updated the above chart with the new difficulty as of block 98784


Title: Re: difficulty over time data?
Post by: wumpus on December 22, 2010, 09:02:32 AM
Is there a block number <-> datetime mapping available?


Title: Re: difficulty over time data?
Post by: mndrix on December 22, 2010, 02:08:26 PM
Is there a block number <-> datetime mapping available?

The link given above (http://nullvoid.org/bitcoin/difficultiez.php) includes timestamps for all the blocks in which difficulty changed.  For arbitrary blocks, you can use Block Explorer.  For example, block #42000 was generated at 2010-02-22 22:39:33 (http://blockexplorer.com/b/42000)

Would it be helpful to you to have a chart like the one above but with a real time x-axis?  I could generate one fairly easily.


Title: Re: difficulty over time data?
Post by: wumpus on December 22, 2010, 02:23:32 PM
Would it be helpful to you to have a chart like the one above but with a real time x-axis?  I could generate one fairly easily.
Yes, that's exactly why I asked. I'd personally prefer the x-axis to be time. Although in theory the block generation rate should be fixed, so the picture shouldn't be very different.


Title: Re: difficulty over time data?
Post by: mndrix on December 22, 2010, 02:54:10 PM
Here is the same data with the x-axis showing calendar time:
http://commondatastorage.googleapis.com/bitcoin/difficulty-by-time.png


Title: Re: difficulty over time data?
Post by: wumpus on December 22, 2010, 03:25:04 PM
Thanks! As expected, it indeed looks almost the same as the block#-based one. Interesting.


Title: Re: difficulty over time data?
Post by: mndrix on February 18, 2011, 03:33:36 PM
I've updated the above charts to reflect recent difficulty changes.  I'm using the historic difficulty data from http://blockexplorer.com/q/nethash


Title: Re: difficulty over time data?
Post by: foxmulder on March 25, 2011, 10:46:14 PM
is the any new updated chart for future estimation(range to 1 month-1 year)?


Title: Re: difficulty over time data?
Post by: Pieter Wuille on March 25, 2011, 11:08:48 PM
I don't make any prediction about the future, but you may see some useful patterns on my site with network speed and difficulty graphs: http://bitcoin.sipa.be (http://bitcoin.sipa.be)


Title: Re: difficulty over time data?
Post by: mndrix on March 26, 2011, 12:28:02 AM
I'm no longer updating my graphs above because sipa's are better