A treatise on probability