Exponential Binning: Plotting Data with f(x) = x^α

  • Context: Undergrad 
  • Thread starter Thread starter atillaqurd
  • Start date Start date
  • Tags Tags
    Exponential
Click For Summary

Discussion Overview

The discussion revolves around the topic of plotting data using exponential binning in the context of the function f(x) = x^α. Participants explore methods for visualizing data that follows a power law, specifically addressing the nuances of binning techniques.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • The original poster (OP) seeks assistance in plotting data with exponential binning to analyze the exponent of f(x) = x^α.
  • One participant suggests using semilog graph paper as a potential solution.
  • Another participant emphasizes the importance of logarithmic binning over exponential binning for generating histograms that follow a power law, providing a formula for bin edges based on logarithmic spacing.
  • This participant also notes that when using logarithmic binning, it is crucial to divide the y-data by the width of the bin to avoid inaccuracies in measuring the exponent.
  • Furthermore, they argue that linear regression is not a reliable method for estimating power law exponents and recommend maximum likelihood fits instead, referencing a preprint for further discussion on the topic.

Areas of Agreement / Disagreement

There appears to be disagreement regarding the appropriate binning method for the OP's data, with some participants advocating for logarithmic binning while others suggest exponential binning. The discussion remains unresolved as participants have not reached a consensus.

Contextual Notes

The discussion highlights the need for clarity on the definitions of exponential and logarithmic binning, as well as the implications of each method on the analysis of power laws. There are also unresolved mathematical steps related to determining the parameters for binning.

atillaqurd
Messages
2
Reaction score
0
Hi,

I need to find out how to plot my data with exponential binning.
To better see the exponent of f(x) = x ^ \alpha, where x and f(x) are given, I am asked to do exponential binning the data.

Would appreciate you help.

Yours
Atilla
 
Physics news on Phys.org
Use semilog graph paper.
 
It seems the OP hasn't replied, but there are some important issues that need to be addressed here, so I will comment on them for any future posters who stumble across this thread.

If you are generating histograms of something which you expect to follow a power law ##y(x) \sim x^\alpha##, you need to use logarithmic binning, not exponential binning.

That is, you want your bins to be equally spaced on a log scale, which means you want the edge of the $k$th bin, B(k), to be given by

$$\log_{10}(B(k)) = m \log_{10} (k) + c,$$
where m is the slope and c is the intercept, which are determined by your bin range and your number of bins. For example, if you want 10 bins between 10-6 and 100, then ##B(0) = 10^{-6}## and ##B(10) = 10^0##, and you can solve for m and c.

Now, this next point is extremely important: when using logarithmic binning, you must divide your y-data by the width of the bin. If you do not do this, the power of ##x^\alpha## that you measure will be wrong.

Furthermore, when estimating power laws from data, if you need anything more than a rough estimate, a linear regression is a terrible way to find the exponent. It is very prone to systematic errors. Maximum likelihood fits are a much better method. See this preprint for a discussion of properly calculating power laws from data (as well as using hypothesis testing to see if you can rule out other behaviors like log-normal distributions).
 
Thanks indeed!
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 37 ·
2
Replies
37
Views
5K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
28
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K