Type I error for a chi-square test when the response probability changes during a trial