Modeled profiles are obtained in step 43 which involves inputting information such as equations that predict reflectivity at the interface of air and photoresist layer 21 and at the interface of underlayer 20 and photoresist layer 21, and the n, k, and t values of underlayer 20 that were determined in a previous experiment by a method of the first embodiment.