  In this note we prove optimal inequalities for bounded functions in terms of
their deviation from their mean. These results extend and generalize some known
inequalities due to Thong (2011) and Perfetti (2011)
