Exercises on Histograms

Exercises on Histograms#

1) Histograms: basics

We measure the speed for 20 cars, with a car radar which has a resolution of 2km/h:
\(V_{meas}\)[km/h] ={40,50,42,50,40,52,54,46,44,46,46,48,48,50,46,48,44,46,48,50}

a) Find the mean, the mode and the median of this distribution, manually first, then with any relevant python tools

b) Create an histogram with the proper binning

2) Histograms : advanced

We measure with an instrument the charge (in [nC]) produced by the passage of 40 muons through a gas detector;
\(Q_{meas}\)[nC] = {19.6, 21.0, 19.8, 20.8, 21.3, 21.5, 20.7, 20.1, 21.1, 21.1, 20.4, 20.6, 22.1, 22.4, 21.9, 21.6, 22.2, 22.0, 43.4, 64.2, 22.2, 22.5, 21.9, 21.7, 22.0, 21.9, 22.3, 22.5, 21.8, 21.8, 23.1, 22.9, 22.7, 22.6, 23.1, 22.8, 23.6, 24.1, 44.5, 45.1 };

a) Calculate the mean and the variance for the unbinned data.

b) Somebody tells you events with more than 30 nC are due to the simultaneous passage of two or more muons. Repeat a) excluding events with charge greater than 30nC. Do the results differ substantially?

c) Calculate also the skew of the two distributions (with and without the high charge events).

d) Plot 3 histograms in the range from 18 to 25 nC with bin width of 1, 0.5, 0.2nC. Compare qualitatively the structures of these 3 histograms.