I am working on an experiment which detects signals as a a function of time. There can be a trigger, but no signal (0) or a trigger with a signal (1). We are interested in how the ratio (likelihood of getting 1) changes over time. In order to study this we need to group the data.
If I group the data points in groups of 100 or 1000, I can of course calculate a standard deviation - but this is dependent on the group size I pick. Is there a better way to calculate this? How?
Here is an image where for each plotted point 100 data points (0 or 1 ) were grouped together.The standard deviation would be 0.04287168.
Here 1000 data points are grouped together, so the shift in time is better visible. The standard deviation would be 0.03030996.