TU BSc Statistics Fourth-Year Lessons
Regression Lack of Fit Practical: STA404 Practice 2
Explore Regression Lack of Fit Practical: STA404 Practice 2 in a clearer, student-friendly format with practical details and next steps for learners in Nepal.
Regression Lack of Fit Practical is part of Statistical Modeling Practical (STA404 Practice 2) in the Tribhuvan University BSc fourth-year Statistics syllabus. Work through the example, then attempt the practice question before opening the answer.

Regression Lack of Fit Practical concepts
Repeated observations at the same predictor value let you split residual SSE into within-level pure error and lack of fit of the line to level means. For g distinct levels and n observations, their degrees of freedom are n−g and g−2. Under normal constant-variance independent errors, compare lack-of-fit mean square with pure-error mean square.
Regression Lack of Fit Practical worked example
If n=12, g=4, fitted-line SSE=28 and pure-error SS=12, lack-of-fit SS=16. The degrees of freedom are 2 and 8, giving F=(16/2)/(12/8)≈5.33.
Regression Lack of Fit Practical practice
Let n=15, g=5, SSE=25 and pure-error SS=10. Find the test statistic and its degrees of freedom.
Show the answer and reasoning
Lack-of-fit SS is 15 with 3 df. Pure error has 10 df. The ratio is (15/3)/(10/10)=5 with df (3,10).
Check your reasoning
A test for overall slope and a test for lack of fit answer different questions.
Continue studying STA404
- Previous lesson: Fitting a line to cross-sectional observations
- Next lesson: Trend regression and Durbin–Watson
- All fourth-year lessons in the Statistics guide
Official TU IoST syllabus · TU BSc fourth-year syllabus guide
The numbers are illustrative practice data. For assessed work, use the data and reporting instructions supplied by your department.
Expert guidance in Kathmandu
Plan your next step with MKS Education
Ask about physical, online and hybrid classes, class recordings, separate LMS access, the computer lab and well-equipped classrooms.
- Call: 9818173800 / 01-5921177
- Email: [email protected]
- Visit: Putalisadak, Kathmandu
