NF/BF: Add calculate_statistics()