{"id":979,"date":"2026-04-08T09:47:09","date_gmt":"2026-04-08T06:47:09","guid":{"rendered":"https:\/\/sisu.ut.ee\/measurement\/?page_id=979"},"modified":"2026-04-08T13:55:22","modified_gmt":"2026-04-08T10:55:22","slug":"13-4-notes-on-estimating-measurement-uncertainty-due-to-linear-regression","status":"publish","type":"page","link":"https:\/\/sisu.ut.ee\/measurement\/13-4-notes-on-estimating-measurement-uncertainty-due-to-linear-regression\/","title":{"rendered":"13.4 Notes on estimating measurement uncertainty due to linear regression"},"content":{"rendered":"<p>Questions about handling linear regression in measurement uncertainty estimation have over the years come up quite often in these courses. The way we see it, there are in very broad terms four approaches, how one can estimate measurement uncertainty when linear regression is involved. Three of them, with different levels of rigor, are based on modeling. The fourth is based on validation and quality control data.<\/p>\n<p><strong>1. Modeling-based approaches<\/strong><\/p>\n<p>The main common advantages and disadvantages of the model-based approaches are as follows:<\/p>\n<p>The advantages of these approaches are that they enable us to assign uncertainties to all influencing parameters naturally account for all uncertainty sources; if the uncertainty sources have been realistically quantified then the uncertainty budget enables seeing the individual contributions of all uncertainty sources.<\/p>\n<p>The disadvantages are that the model must enable us to account for all uncertainty sources and reliable quantitative estimates have to exist for all of them. Obtaining these estimates may be difficult in complex chemical analysis (especially the ones related to analyte losses during sample preparation, possible interferences, etc) and may need significant additional work. If some uncertainty source is overlooked or not adequately quantified then these approaches can lead to serious underestimating of uncertainty. The calculations can be quite complex and there is a danger of making mistakes.<\/p>\n<p>The specific advantages and disadvantages of the individual approaches are presented below.<\/p>\n<p><strong>1.1 The \u201cfull approach\u201d<\/strong><\/p>\n<p>This approach looks at all the operations in the method and quantifies their uncertainty sources. In particular, for evaluating the uncertainty due to linear regression, this approach takes into account the uncertainties involved in preparation of the calibration solutions, as well as the uncertainties of the measured signals. Correlation between slope and intercept is accounted for in the model starts from the preparation of the stock solution and then diluting it. Scatter of data points around the calibration line is accounted for by their individual uncertainties, not by statistical analysis of the regression.<\/p>\n<p>An example of this approach, applied to the example presented in <a href=\"https:\/\/sisu.ut.ee\/measurement\/9-iso-gum-modeling-approach-bottom-approach\/\" target=\"_blank\" rel=\"noopener\">Section 9 of the course<\/a> \u2013 determination of ammonium nitrogen in water \u2013 can be found at <a href=\"https:\/\/akki.ut.ee\/GUM_examples\/\" target=\"_blank\" rel=\"noopener\">https:\/\/akki.ut.ee\/GUM_examples\/<\/a>. See the example \u201cAmmonium by Photometry\u201d, elaboration level \u201cHigh\u201d.<\/p>\n<p><span style=\"color: #339966;\">The advantage is that the correlation between slope and intercept can be automatically accounted for (slope and intercept act as interim quantities, not as input quantities).<\/span><\/p>\n<p><span style=\"color: #ff0000;\">In order to account for the correlation between slope and intercept the measurement model has to start from preparing the stock solution that is thereafter diluted.<\/span><\/p>\n<p><strong>1.2 The \u201cEurachem approach\u201d<\/strong><\/p>\n<p>This is the approach quoted by Miguel. I call it here Eurachem approach because it is the approach presented in Appendix E.4 of the <a href=\"https:\/\/eurachem.org\/index.php\/publications\/guides\/quam\" target=\"_blank\" rel=\"noopener\">Eurachem uncertainty guide<\/a>. I am presenting the corresponding equations here in slightly different form, which may be more convenient for you to use. The uncertainty of the analyte concentration in the sample, <em>C<\/em><sub>sample<\/sub>, can be expressed as follows:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1010\" src=\"https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq1.png\" alt=\"\" width=\"605\" height=\"51\" srcset=\"https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq1.png 605w, https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq1-300x25.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\">,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0(1)<\/p>\n<p data-wp-editing=\"1\">where the first term \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/p>\n<p style=\"text-align: center;\" data-wp-editing=\"1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1011\" src=\"https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq2.png\" alt=\"\" width=\"311\" height=\"53\" srcset=\"https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq2.png 311w, https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq2-300x51.png 300w\" sizes=\"auto, (max-width: 311px) 100vw, 311px\">\u00a0(2)<\/p>\n<p>expresses the uncertainty originating from the measurement of the signal (e.g. photometric absorbance of peak area on a chromatogram) of the sample solution <em>A<\/em><sub>sample<\/sub>. This term is the one that has to account for uncertainty sources such as possible interferences, matrix effect, incomplete extraction of analyte from sample, etc. The middle term<\/p>\n<p style=\"text-align: center;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1012\" src=\"https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq3.png\" alt=\"\" width=\"405\" height=\"73\" srcset=\"https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq3.png 405w, https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq3-300x54.png 300w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\"> \u00a0 \u00a0(3)<\/p>\n<p style=\"text-align: center;\">expresses the uncertainty originating from the scatter of data points around the calibration line. <em>S<\/em> is the so-called linear regression standard deviation:\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1009\" src=\"https:\/\/sisu.ut.ee\/wp-content\/uploads\/sites\/18\/13.4_eq4.png\" alt=\"\" width=\"223\" height=\"64\"> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0(4)<\/p>\n<p>where <em>n<\/em> is the number of points on the regression line, <em>C<sub>i<\/sub><\/em> and <em>A<sub>i<\/sub><\/em> are the concentration and signal of the <em>i<\/em>-th calibration point, \u00a0is the arithmetic mean of the concentrations <em>C<sub>i<\/sub><\/em> and <em>C<\/em><sub>sample<\/sub> is the analyte concentration of the sample solution. <em>S<\/em> can be easily found using the LINEST function of the spreadsheet software. <em>C<\/em><sub>stock<\/sub> is the concentration of the stock solution and <em>u<\/em>(<em>C<\/em><sub>stock<\/sub>) is its standard uncertainty.<\/p>\n<p>The last term in eq (1) is meant to take into account for uncertainty sources that affect all calibration points in a systematic way \u2013 i.e. without causing scatter. This term can be used e.g. for accounting for uncertainty of purity of standard substance that was used to make the calibration solutions.<\/p>\n<p><span style=\"color: #339966;\">Correlation between slope and intercept is automatically accounted for (uncertainties of slope and intercept are not included explicitly). Scatter of points around the regression line is explicitly accounted for.<\/span><\/p>\n<p><span style=\"color: #ff0000;\">The equations presented above are quite complex and there is a danger of making mistakes.<\/span><\/p>\n<p><strong>1.3 The \u201csimplified approach\u201d<\/strong><\/p>\n<p>This is the approach used in example presented in <a href=\"https:\/\/sisu.ut.ee\/measurement\/9-iso-gum-modeling-approach-bottom-approach\/\" target=\"_blank\" rel=\"noopener\">Section 9 of the course<\/a> \u2013 determination of ammonium nitrogen in water. Explanations can be found in that section.<\/p>\n<p><span style=\"color: #339966;\">The advantages of this approach are that it is simpler to understand and use than the two previous approaches, yet all uncertainty sources can be accounted for.<\/span><\/p>\n<p><span style=\"color: #ff0000;\">The main disadvantage of this approach is that it ignores the negative correlation between slope and intercept of the calibration line with the consequence that the uncertainty gets somewhat overestimated (see the footnote in <a style=\"color: #ff0000;\" href=\"https:\/\/sisu.ut.ee\/measurement\/95-step-5-standard-uncertainties-input-quantities\/\" target=\"_blank\" rel=\"noopener\">Section 9.5<\/a>).<\/span><\/p>\n<p><strong>2. The Single-lab validation approach<\/strong><\/p>\n<p>This approach differs fundamentally from the model-based approaches in that linear regression is not specifically addressed at all in uncertainty calculations. The whole uncertainty evaluation is based on analysis results obtained with control samples (typically from control charts) and samples with known reference values of analyte concentrations (typically certified reference materials or spiked samples). This approach is explained in detail in <a href=\"https:\/\/sisu.ut.ee\/measurement\/10-approach-based-validation-and-quality-control-data-top-down-approach\/\" target=\"_blank\" rel=\"noopener\">Section 10<\/a> of this course.<\/p>\n<p><span style=\"color: #339966;\">The advantages of this approach are that it is a lot simpler to use than any of the modeling approaches and gives very realistic uncertainty estimates also for complex analysis methods (the danger to underestimate the uncertainty is low).<\/span><\/p>\n<p><span style=\"color: #ff0000;\">The main disadvantages of this approach are that it does not give information on the contributions of individual uncertainty sources and that a significant amount of validation data is needed and if this is not available, then it is not possible to use this approach.<\/span><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Questions about handling linear regression in measurement uncertainty estimation have over the years come up quite often in these courses. The way we see it, there are in very broad terms four approaches, how one can estimate measurement uncertainty when &#8230;<\/p>\n","protected":false},"author":60,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-979","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/sisu.ut.ee\/measurement\/wp-json\/wp\/v2\/pages\/979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sisu.ut.ee\/measurement\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sisu.ut.ee\/measurement\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sisu.ut.ee\/measurement\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/sisu.ut.ee\/measurement\/wp-json\/wp\/v2\/comments?post=979"}],"version-history":[{"count":10,"href":"https:\/\/sisu.ut.ee\/measurement\/wp-json\/wp\/v2\/pages\/979\/revisions"}],"predecessor-version":[{"id":1013,"href":"https:\/\/sisu.ut.ee\/measurement\/wp-json\/wp\/v2\/pages\/979\/revisions\/1013"}],"wp:attachment":[{"href":"https:\/\/sisu.ut.ee\/measurement\/wp-json\/wp\/v2\/media?parent=979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}