An electronic apparatus includes an output interface and a controller. The output interface is configured to output a signal on the basis of scattered light from a measured part. The controller is configured to calculate a temporal change of a power spectrum on the basis of the signal and detect noise included in the signal on the basis of the temporal change of the power spectrum.