Register to reply

Data binning

by NoobixCube
Tags: binning, data
Share this thread:
NoobixCube
#1
Apr5-10, 06:20 AM
P: 158
Hey all,

I have a bunch of data that varies over many magnitudes. I was hoping to use log bins to capture the short and long term features of the data. My question is, how do I bin the data, and how do I assign appropriate errors so that I can fit the data to some theory (maybe a power law)?

Cheers!
Phys.Org News Partner Science news on Phys.org
Scientists develop 'electronic nose' for rapid detection of C. diff infection
Why plants in the office make us more productive
Tesla Motors dealing as states play factory poker
Redbelly98
#2
Apr5-10, 07:12 PM
Mentor
Redbelly98's Avatar
P: 12,070
Probably the most straightforward method is to rescale the data as y=log10(x), and then take equal intervals in binning the y data.

Good question about the errors. I'm not absolutely sure, but I believe that the error would be the square root of the expected number of counts within a bin, at least when that count total is considerably greater than 1. This becomes problematic when the expected count is less than 1, for example 0.250.5 allows for negative counts, an unphysical result.

Perhaps somebody who knows statistics better than I can provide a more accurate answer.
NoobixCube
#3
Apr6-10, 02:40 AM
P: 158
Hey Redbelly98,

thanks for your reply :) I will look into it and post back with results.

NoobixCube
#4
Apr6-10, 06:44 AM
P: 158
Data binning

I have managed to find this website with MATLAB scripts relevant to my initial query, that may help people in the future who are asking the same, or a similar question:

http://www-personal.umich.edu/~ladam...lab/index.html
NoobixCube
#5
Apr8-10, 08:04 AM
P: 158
Quote Quote by NoobixCube View Post
I have managed to find this website with MATLAB scripts relevant to my initial query, that may help people in the future who are asking the same, or a similar question:

http://www-personal.umich.edu/~ladam...lab/index.html
Also,

I have modified the scripts on the page given in my previous reply, and uploaded a MATLAB file to MATLAB Central

http://www.mathworks.com/matlabcentr...inning-of-data


Register to reply

Related Discussions
Integration of acceleration signal response data to obtain displacement rseponse data Differential Geometry 0
LHC Data High Energy, Nuclear, Particle Physics 6
[Data acquisition] Data Studio? Math & Science Software 5
Silicon binning techniques Electrical Engineering 0