asymmetry¶
analysis_helpers.asymmetry
¶
get_asymmetry_array(arr1, arr2, sumw2_arr1=None, sumw2_arr2=None, correlation=0.0)
¶
Calculates the asymmetry between two arrays
- \(a = \frac{n_1- n_2}{n_1 + n_2}\)
- \(\sigma_a^2 = 4\frac{n_2^2 \sigma_1^2 + n_1^2\sigma_2^2 - 2n_1 n_2 \rho \sigma_1\sigma_2}{ \left(n_1 + n_2\right)^4}\)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arr1
|
array
|
array with the first set of values |
required |
arr2
|
array
|
array with the second set of values |
required |
sumw2_arr1
|
array
|
array with the squared sum of weights for first set of values. Defaults to None. |
None
|
sumw2_arr2
|
array
|
array with the squared sum of weights for second set of values. Defaults to None. |
None
|
correlation
|
float
|
correlation between the two data sets. Defaults to 0. |
0.0
|
Returns:
| Name | Type | Description |
|---|---|---|
_type_ |
description |