Statistical cost estimation