Typically cost models are derived using data gathered from years of experience with a wide range of software projects.
Software projects differ greatly, and models represent all their varieties.