The linearity test is one of the assumption tests in…