calculate_t1_error function

Calculate Type 1 Error