On Quantitative Substitutional Analysis