









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Overview This assignment kit covers the following topics. Section See Page Prerequisites (^2) Program 2 requirements (^3) Regression overview (^5) Using regression in the PSP (^6) Calculating regression (^7) A regression example (^8) Assignment instructions (^10) Due dates and evaluation criteria (^15) Reference PSP text
Expected results Table 2
Overview Linear regression is a way of optimally fitting a line to a set of data. The linear regression line is the line where the distance from all points to that line is minimized. The equation of a line can be written as y 0 1 x In Figure 1, the best fit regression line has parameters of ^0 = -4.0389 and 1 = 0.1681. Figure 1 Continued on next page y = -4.0389 +0.1681x 0
Estimated Proxy Size Actual Development Hours
Calculating regression The formulas for calculating the regression parameters ^0 and 1 are
2 1 2 1 1 avg n i i avg avg n i i i
0 y (^) avg 1 x avg where
./prog2 < data ./prog2 < data ./prog2 < data List structure: As in program one, you should again store the data in a linked list.
A regression example In this example, we will calculate the regression parameters ( ^0 and 1 values) of the data in the Table 3. n x y 1 130 186 2 650 699 3 99 132 4 150 272 5 128 291 6 302 331 7 95 199 8 945 1890 9 368 788 10 961 1601 Table 3
2 1 2 1 1 avg n i i avg avg n i i i
10 1
i
10 1
i
10 1
i
10 1
i xi y i
Assignment instructions Before starting program 2, review the top-level PSP0.1 process script below to ensure that you understand the “big picture” before you begin. Also, ensure that you have all of the required inputs before you begin the planning phase. PSP0.1 Process Script Purpose To guide the development of module-level programs Entry Criteria - Problem description
Assignment instructions, Continued Planning phase Plan program 2 following the PSP0.1 planning phase script. PSP0.1 Planning Script Purpose To guide the PSP planning process Entry Criteria - Problem description
Postmortem phase Conduct the postmortem following the PSP0.1 postmortem script. PSP0.1 Postmortem Script Purpose To guide the PSP postmortem process Entry Criteria - Problem description and requirements statement
Submitting your assignment When you’ve completed the postmortem phase, place all items to be submitted in a directory, then submit that directory using the submit command. The following should be included in your submission directory: