<p>The math behind those graphs is pretty simple, the main problem is crawling through the data and creating readable images automatically.</p>

<p>Difficulty (red line) can always be read from the generated Blocks, no problem there.</p>

<p>1/3/7/14/whatever-window estimates I assume are calculated by counting how many Blocks were generated in a given time period and at what difficulty. In general I guess it should be:</p>

<p>Estimate = (Difficulty * MeasurementTime) / (10 minutes * BlockCount)</p>

CC BY-SA 3.0
2012-12-10T14:39:21.333Z
2012-12-10T14:39:21.333Z
ThePiachu
<p>How can I create graphs similar to <a href="http://bitcoin.sipa.be" rel="nofollow">http://bitcoin.sipa.be</a>, and blockchain.info for Namecoin?</p>

<p>For example <a href="https://bitcointalk.org/index.php?topic=2345.msg31405" rel="nofollow">this thread discusses how to analyze difficulty over time</a> and provides this  <a href="http://www.wolframalpha.com/input/?i=exponential%20fit%20%7B90720,4536%7D,%7B92736,6867%7D,%7B94752,8078%7D,%7B96768,12252%7D" rel="nofollow">equation and correlation covering 4 difficulty adjustments.</a></p>

<p>I'd like to understand the math required to create such graphs so I can port the trending to other *coin usages. (which invariably have different values)</p>

CC BY-SA 3.0
2012-12-07T06:51:19.417Z
Seems to me to be way too general and vague to be suitable for SE. Also, I don't think there's a shortcut - learn more math, especially in the areas of probability and statistics, and you'll have a better idea of what things can be analyzed and how to use different tools for it.
Meni Rosenfeld
CC BY-SA 3.0
2012-12-07T13:09:32.983Z
@MeniRosenfeld  Edited... what do you think?
makerofthings7
CC BY-SA 3.0
2012-12-08T16:12:17.217Z
Still feels a bit general, but maybe others will find a good way to answer.
Meni Rosenfeld
<namecoin><charts><technical-analysis>
What is the math behind popular Bitcoin graphs? I want to graph Namecoin (or similar *coin) technologies?
makerofthings7
# What is the math behind popular Bitcoin graphs? I want to graph Namecoin (or similar *coin) technologies?

(Asked by: username_0 on 2012-12-07)

How can I create graphs similar to <http://bitcoin.sipa.be>, and blockchain.info for Namecoin?

For example [this thread discusses how to analyze difficulty over time](https://bitcointalk.org/index.php?topic=2345.msg31405) and provides this [equation and correlation covering 4 difficulty adjustments.](http://www.wolframalpha.com/input/?i=exponential%20fit%20%7B90720,4536%7D,%7B92736,6867%7D,%7B94752,8078%7D,%7B96768,12252%7D)

I'd like to understand the math required to create such graphs so I can port the trending to other \*coin usages. (which invariably have different values)

**Tags:** namecoin, charts, technical-analysis

> **Comments:**
> **username_1**: Seems to me to be way too general and vague to be suitable for SE. Also, I don't think there's a shortcut - learn more math, especially in the areas of probability and statistics, and you'll have a better idea of what things can be analyzed and how to use different tools for it.  
> **username_0**: @username_1  Edited... what do you think?  
> **username_1**: Still feels a bit general, but maybe others will find a good way to answer.  

---

## 1 answers

### Answer by username_2 on 2012-12-10. Score: 1

The math behind those graphs is pretty simple, the main problem is crawling through the data and creating readable images automatically.

Difficulty (red line) can always be read from the generated Blocks, no problem there.

1/3/7/14/whatever-window estimates I assume are calculated by counting how many Blocks were generated in a given time period and at what difficulty. In general I guess it should be:

Estimate = (Difficulty \* MeasurementTime) / (10 minutes \* BlockCount)


---

