ARITHMETIC MEAN (AM)
The Arithmetic Mean or simply referred to as the mean is calculated by summing up all the values in a dataset and then dividing that sum by the number of values.
Per our case use, after all Probability of Profit (POP) values are calculated for each combination of percentage and closing days, they are aggregated into a DataFrame. The arithmetic mean of these POP values is then computed across all combinations, providing a centralized measure of the average Probability of Profit for the given trading strategy.