- #1
masterims
- 4
- 0
Hi All,
Thank you for taking your time to look at my question. I am a web developer and have created a online system that produces graphs but cannot understand how the line of best fit (trend line) is calculated. On paper its easy, just draw it with your hand in between the two lines. But I don't know how to work this out using the values I have.
My Task:
Workout the flow rate (Q) of a pumping station. In other words find out how fast the water reduces in a well from the top to bottom.
Physical Process:
The engineer records the water level at the top of the well. At set intervals he/she records how far the water goes down until it reaches a certain point at the bottom.
My Working out:
I have the time and water level from the engineer. Using this information I work out the change in time at every level recorded and calculate the flow rate. I know how to do this, that's all done.
Now I need to plot flow rate on the x-axis and water level on the y-axis. Once plotted it looks like this:
View attachment 2733
The only thing I am stuck on is drawing the trend line (line of best fit).
How can I do this using the level and flow rate values I have? Please help me?
Here is the data for the graph which I worked out using time and level.
Test 1
PumpRate... Level (mAOD)
775.514 ... 2.098
395.693 ... 2.077
265.949 ... 2.035
203.317 ... 2.013
163.946 ... 1.971
138.37 ... 1.938
120.358 ...1.909
106.457 ...1.873
95.097 ...1.826
86.054 ...1.78
78.778 ...1.737
72.565 ...1.69
68.755 ...1.685
64.85 ...1.66
61.943 ...1.651
59.652 ...1.651
57.419 ...1.643
55.136 ...1.623
52.763 ...1.589
50.358 ...1.543
47.734 ...1.476
45.491 ...1.416
41.943 ...1.279
38.523 ...1.133
34.838 ...0.957
31.368 ...0.777
28.238 ...0.602
26.57 ...0.503
25.187 ...0.418
25.063 ...0.41
25.283 ...0.424
25.283 ...0.424
25.283 ...0.424Test 2
PumpRate ... Level (mAOD)
785.623 ...2.089
399.303 ...2.057
263.957 ...1.981
201.55 ...1.952
161.327 ...1.892
135.408 ...1.844
116.19 ...1.785
101.385 ...1.719
91.214 ...1.68
84.197 ...1.666
78.62 ...1.656
74.084 ...1.649
70.211 ...1.641
66.7 ...1.627
63.238 ...1.599
60.349 ...1.576
57.458 ...1.54
54.837 ...1.502
52.564 ...1.467
50.518 ...1.432
48.624 ...1.395
41.32 ...1.084
40.166 ...1.056
39.332 ...1.04
38.027 ...0.994
36.788 ...0.946
35.326 ...0.879
34.304 ...0.833
33.321 ...0.785
32.27 ...0.728
31.243 ...0.668
30.042 ...0.591
28.411 ...0.477
27.325 ...0.397
I can also provide you with the time and water level data the engineer has collected if that's required.
Many thanks.
Thank you for taking your time to look at my question. I am a web developer and have created a online system that produces graphs but cannot understand how the line of best fit (trend line) is calculated. On paper its easy, just draw it with your hand in between the two lines. But I don't know how to work this out using the values I have.
My Task:
Workout the flow rate (Q) of a pumping station. In other words find out how fast the water reduces in a well from the top to bottom.
Physical Process:
The engineer records the water level at the top of the well. At set intervals he/she records how far the water goes down until it reaches a certain point at the bottom.
My Working out:
I have the time and water level from the engineer. Using this information I work out the change in time at every level recorded and calculate the flow rate. I know how to do this, that's all done.
Now I need to plot flow rate on the x-axis and water level on the y-axis. Once plotted it looks like this:
View attachment 2733
The only thing I am stuck on is drawing the trend line (line of best fit).
How can I do this using the level and flow rate values I have? Please help me?
Here is the data for the graph which I worked out using time and level.
Test 1
PumpRate... Level (mAOD)
775.514 ... 2.098
395.693 ... 2.077
265.949 ... 2.035
203.317 ... 2.013
163.946 ... 1.971
138.37 ... 1.938
120.358 ...1.909
106.457 ...1.873
95.097 ...1.826
86.054 ...1.78
78.778 ...1.737
72.565 ...1.69
68.755 ...1.685
64.85 ...1.66
61.943 ...1.651
59.652 ...1.651
57.419 ...1.643
55.136 ...1.623
52.763 ...1.589
50.358 ...1.543
47.734 ...1.476
45.491 ...1.416
41.943 ...1.279
38.523 ...1.133
34.838 ...0.957
31.368 ...0.777
28.238 ...0.602
26.57 ...0.503
25.187 ...0.418
25.063 ...0.41
25.283 ...0.424
25.283 ...0.424
25.283 ...0.424Test 2
PumpRate ... Level (mAOD)
785.623 ...2.089
399.303 ...2.057
263.957 ...1.981
201.55 ...1.952
161.327 ...1.892
135.408 ...1.844
116.19 ...1.785
101.385 ...1.719
91.214 ...1.68
84.197 ...1.666
78.62 ...1.656
74.084 ...1.649
70.211 ...1.641
66.7 ...1.627
63.238 ...1.599
60.349 ...1.576
57.458 ...1.54
54.837 ...1.502
52.564 ...1.467
50.518 ...1.432
48.624 ...1.395
41.32 ...1.084
40.166 ...1.056
39.332 ...1.04
38.027 ...0.994
36.788 ...0.946
35.326 ...0.879
34.304 ...0.833
33.321 ...0.785
32.27 ...0.728
31.243 ...0.668
30.042 ...0.591
28.411 ...0.477
27.325 ...0.397
I can also provide you with the time and water level data the engineer has collected if that's required.
Many thanks.