A project manager at System Design Corporation has collected
A project manager at System Design Corporation has collected the following data on the size of software programs and the length of programming time. The company is bidding on a new system that is estimated to consist of 250000 lines of code. Please use the data below to find the functional relationship of the coding time to the program size and estimate the number of days it would take to code the new system. Plot a histogram of module size in this program.
Size in 1000
Lines of code
(KLOC)
Number of days
to code
| Module | Size in 1000 Lines of code (KLOC) | Number of days to code | 
|---|---|---|
| 1 | 160 | 68 | 
| 2 | 158 | 66 | 
| 3 | 148 | 70 | 
| 4 | 135 | 59 | 
| 5 | 178 | 72 | 
| 6 | 170 | 68 | 
| 7 | 158 | 64 | 
| 8 | 138 | 65 | 
| 9 | 200 | 70 | 
| 10 | 195 | 68 | 
| 11 | 189 | 65 | 
| 12 | 173 | 68 | 
| 13 | 159 | 70 | 
| 14 | 163 | 71 | 
| 15 | 150 | 66 | 
| 16 | 140 | 65 | 
| 17 | 206 | 73 | 
| 18 | 144 | 64 | 
| 19 | 157 | 70 | 
| 20 | 183 | 74 | 
| 21 | 195 | 75 | 
| 22 | 190 | 77 | 
| 23 | 182 | 69 | 
| 24 | 152 | 65 | 
| 25 | 174 | 69 | 
Solution
S
Sol) The regression regression equation is
y=a+bx
where x is size and y is code
From excel
The fitted regression is y=46.42 + 0.1312 (Size)
Now when size is 250
Then y = 46.42 + 0.1312 (Size) =46.42 + 0.1312 (250)
y=79.22
| Coefficients | Standard Error | t Stat | |
| Intercept | 46.41989 | 5.041618 | 9.207339 | 
| size | 0.131166 | 0.029815 | 4.399341 | 

