Linear Regression Preview

B=a0+a1·t
Data-Table
 tB
110.6
220.7
341.5
461.9
582.1
6102.6
7122.9
8143.7
9163.5
10183.7
11203.8

Program validated. Ready to Solve.
# Example 12 (a) - Straight line fit to BOD data
# BOD = a0 + a1*Time
# Verified Solution: a0 = 0.657797, a1 = 0.178056

[
t B
1 0.6
2 0.7
4 1.5
6 1.9
8 2.1
10 2.6
12 2.9
14 3.7
16 3.5
18 3.7
20 3.8
]

# polyfit [origin]
polyfit t B 1

Regression Model

y = a0 + a1 x

where y represents B and x represents t

VariableValue95% confidence
a00.657796980.374896
a10.178056160.0316742

R²adjRmsdVariance
0.9472730.9414150.07834940.0825304

1st order Polynomial Regression
Chart
1st order Polynomial Regression B Residuals
Chart

Data Table

 t (x)B (y)Calculated YResidual %
110.60.83585313-39.31%
220.71.0139093-44.84%
341.51.37002168.665%
461.91.72613399.151%
582.12.08224620.8454%
6102.62.43835856.217%
7122.92.79447083.639%
8143.73.150583214.85%
9163.53.5066955-0.1913%
10183.73.8628078-4.400%
11203.84.2189201-11.02%

Settings and Hints

 Name/SourceValueType
1 Polynomial Degree 1 Setting
2 Through Origin false Setting
3 Data Points 11 Setting
4 y=pol(x) B=pol(t) Setting
5 Version 7.0.73 Setting
6 #@report_fix_digits = 8 Default (integer)
7 #@chart_size = 428,300 Default (array)
8 #@report_show_charts = true Default (boolean)
9 #@report_show_data_points = true Default (boolean)
10 #@report_show_source = true Default (boolean)
11 #@report_show_header = false Default (boolean)
12 #@report_show_settings = true Default (boolean)

Messages

 SeverityDescription
1Info-Infor- 2 Known vectors variables (t, B)
2Info-Infor- 0 Explicit expressions
3Info-Infor- Regression command: polyfit t B 1

Source

# Example 12 (a) - Straight line fit to BOD data
# BOD = a0 + a1*Time
# Verified Solution: a0 = 0.657797, a1 = 0.178056

[
t B
1 0.6
2 0.7
4 1.5
6 1.9
8 2.1
10 2.6
12 2.9
14 3.7
16 3.5
18 3.7
20 3.8
]

# polyfit [origin]
polyfit t B 1