Fig. 1: Histogram for
Fig. 2: Histogram for
This is my implementation of the Cell Resampling Method. Overall structure of the code is as follows, with more comments in the script:
- Read both datasets into dataframes.
- Apply the Born Transform to all
$\rho_T$ and$y$ values in the virtual_events dataset with the formula:$\rho_T = \rho_{T, real} + z_{gluon}$ $y = y_{real}$
- Merge both the (modified) virtual and real events into one dataframe.
- Looping through each negative weight event and calculating its distance to all other events, building its cell, and using cell resampling to adjust all weights within that cell.
- Using the original and new (all positive) weights to generate the two required histograms
I have limited experience programming, so my best attempt at determining the computational complexity of the code is
Looking at
Infinite events would mean that for each negative weight event the distance to the nearest events approaches

