A dynamic analysis apparatus includes a hardware processor. The hardware processor is configured to perform the following, calculate a prediction rate multiplied by a respiratory function value of the subject in predicting the respiratory function value when an exclusion target portion is excluded; obtain input of the exclusion target portion in an anatomical unit from the input unit, based on the anatomical unit, specify a partial region of the lung field in which a characteristic amount relating to a respiratory function in the plurality of frame images is calculated, calculate the characteristic amount related to the respiratory function in the partial region of the lung field specified from the plurality of frame images and the characteristic amount related to the respiratory function of an entire lung field, and calculate the prediction rate based on a characteristic amount ratio which is a ratio of the two calculated characteristic amounts.