{"id":612,"date":"2017-12-01T10:21:13","date_gmt":"2017-12-01T10:21:13","guid":{"rendered":"http:\/\/www.mcmalchimia.com\/?p=612"},"modified":"2020-11-06T03:34:23","modified_gmt":"2020-11-06T03:34:23","slug":"regressions-and-calibration-curves","status":"publish","type":"post","link":"https:\/\/www.mcm-alchimia.com\/en\/regressions-and-calibration-curves\/","title":{"rendered":"Regressions and calibration curves"},"content":{"rendered":"<p><span style=\"color: #993300;\"> <strong> Important <\/strong>: This article, and therefore, the use of the tool for curves of <a href=\"http:\/\/www.mcm-alchimia.com\">MCM Alchimia<\/a> does not take into account the assumptions related to the application of Least Squares, such as normality, linearity, homoscedasticity, and independence. The study and validation of these assumptions allow us to know the quality and applicability of the linear representation from the input data, however MCM Alchimia, allows to connect curves constructed from any input data set performing unplaced least squares and does not ensure or control compliance with these assumptions. <\/span><\/p>\n<p>It is common to find trials, analytical methods or calibrations that are based on the measurement at different levels of the analyte or in different positions of the reading scale, when it is an instrument. In this way, in most cases a linear relation between them is considered, obtaining by the least squares method the coefficients of the equation of the line: <img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-614\" src=\"http:\/\/www.mcm-alchimia.com\/wp-content\/uploads\/2017\/11\/recta.png\" alt=\"\" width=\"200\" height=\"45\" \/><\/p>\n<p>In this way when it comes to equipment calibration and the correction is plotted according to the reading scale, it is easy to obtain this value by applying the equation above, from the coefficients obtained by least squares and the reading.<\/p>\n<p>But it is also usual especially in the area of \u200b\u200bchemistry to construct the calibration curve with certified reference materials of known concentration and then use this curve to obtain the concentration of an analyte from an observed response.<br \/>\n<img decoding=\"async\" class=\"size-full wp-image-615 alignright\" src=\"http:\/\/www.mcm-alchimia.com\/wp-content\/uploads\/2017\/11\/recta2.png\" alt=\"\" width=\"331\" height=\"77 \" srcset=\"https:\/\/www.mcm-alchimia.com\/en\/wp-content\/uploads\/2017\/11\/recta2.png 331w, https:\/\/www.mcm-alchimia.com\/en\/wp-content\/uploads\/2017\/11\/recta2-300x70.png 300w\" sizes=\"(max-width: 331px) 100vw, 331px\" \/><br \/>\nIn the least squares analysis we have three types of uncertainty associated with the curve.<\/p>\n<ul>\n<li> Random errors in reference responses <strong> <em> y<sub>i<\/sub><\/em>. <\/strong> <\/li>\n<li> Random effects on reference values \u200b\u200b<em> <strong> x<sub>i <\/sub> <\/strong> <\/em>. <\/li>\n<li> Effect associated with the presumption of linearity, which will be given by the waste. <\/li>\n<\/ul>\n<p>If the values \u200b\u200b<em> <strong> x<sub>i <\/sub> <\/strong> <\/em> and <em> <strong> y<sub>i <\/sub> <\/strong> <\/em> do not present uncertainty, the curve obtained will be the one that minimizes the squares of the waste. In case of random errors in reference values \u200b\u200b<em> <strong> x<sub>i <\/sub> <\/strong> <\/em> and <strong> <em> y<sub>i <\/sub> <\/em> <\/strong> are greater than zero, it is possible to generate pseudo-randomizations with the distribution associated to each parameter, obtaining by least squares a curve for each data set. This generates an additional uncertainty in the regression coefficients, in addition to the uncertainty determined by the residuals.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.mcm-alchimia.com\/en\/wp-content\/uploads\/2017\/12\/curvaincert_eng.png\" alt=\"\" width=\"300\" height=\"273\" class=\"alignleft size-full wp-image-9185\" \/><\/p>\n<p>In the graph below, the beam of points that each observation would represent if there is a significant uncertainty in both axes is presented symbolically. This situation therefore yields a bundle of curves that satisfy the least squares of the residuals, generating uncertainty in both regression coefficients. This uncertainty is marked with blue in the graph.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-621 alignright\" src=\"http:\/\/www.mcm-alchimia.com\/wp-content\/uploads\/2017\/12\/inc_reg.png\" alt=\"\" width=\"240\" height=\"102 \"\/><\/p>\n<p>Furthermore, this uncertainty will be increased by the uncertainty inherent in the curve, which is determined as a function of the standard deviation of the residual errors. This uncertainty, in general, is greater than that of the simulation and is represented by the orange zone in the graph.<\/p>\n<p><strong> What does <a href=\"http:\/\/www.mcm-alchimia.com\">MCM Alchimia software<\/a> do when connecting a curve? <\/strong><\/p>\n<p>After all the values \u200b\u200bare entered into the panel, in order to use the curve in our model, we must &#8220;connect&#8221; the curve with the button provided for that purpose. When we do this, MCM Alchimia performs a simulation with the data set, performing a random sampling with the input data and the response. For each of the iterations, the regression coefficients b <sub> 0 <\/sub> and b <sub> 1 <\/sub> are obtained, and a value of the coefficient of determination R <sup> 2 <\/sup>.<\/p>\n<p>As in the traditional simulation, a population of data for these parameters with unknown distribution is obtained, and will depend on the distributions and values \u200b\u200bof the input data.<\/p>\n<p>In order not to make assumptions or inadequate approximations about these statistical properties, MCM Alchimia keeps the set of values \u200b\u200bin vectors associated with these random variables, which will be available throughout the process.<\/p>\n<p>On the other hand, with the average values of each pair of input data, the application calculates the uncertainty of the curve, as a function of the regression residuals.<\/p>\n<p>This repository of sampling data will be used according to the need of our model, either to use the coefficients b<sub>0<\/sub> and b<sub>1<\/sub> with their uncertainty, to consider the uncertainty of the curve or to use the interpolation functions that will be described later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Important : This article, and therefore, the use of the tool for curves of MCM Alchimia does not take into account the assumptions related to the application of Least Squares, such as normality, linearity, homoscedasticity, and independence. The study and validation of these assumptions allow us to know the quality and applicability of the linear [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-612","post","type-post","status-publish","format-standard","hentry","category-soporte-tecnico"],"_links":{"self":[{"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/posts\/612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/comments?post=612"}],"version-history":[{"count":16,"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/posts\/612\/revisions"}],"predecessor-version":[{"id":9259,"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/posts\/612\/revisions\/9259"}],"wp:attachment":[{"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/media?parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/categories?post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mcm-alchimia.com\/en\/wp-json\/wp\/v2\/tags?post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}