<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Jan,<div class=""><br class=""></div><div class="">(note that your message was blocked by the list server because it thinks you are not a subscriber, but I let it go manually because of potential general interest. You might want to subscribe to get access to the list in the future.)</div><div class=""><br class=""></div><div class="">Yes, the absence of a fit algorithm for asymmetric errors is a missing feature. In fact, most standard algorithm for curve fitting do not use asymmetric errors. </div><div class=""><br class=""></div><div class="">One way around your problem is to use the largest between the two error values when doing the fit, and then confirm that the fitted function is generally on that side of the data once the fit is finished, and you can also compare the fits obtained when using either the smaller of the two errors or the larger, and then pick the fit that “makes sense”. You could also hand-program a calculation for the squared deviations that checks which side of the data function the function value is and uses a different error value depending on the result, and then use this to compare “fit quality” between the various results.</div><div class=""><br class=""></div><div class="">The other way around the problem is to use your own hand-programed squared deviation function that contains your simulation function, access your data, and contains if-conditions for using the correct errors to find the sum of the square deviations that needs to be minimized. You would then use the “Optimize…” feature to find a minimum that would then correspond to the optimum set of parameters that fits the asymmetric error data. This might be a bit of an overkill if you get satisfactory results with the imperfect methods I suggested above.</div><div class=""><br class=""></div><div class="">ivan</div><div class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">—</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">pro Fit support<br class=""><a href="mailto:profit@quansoft.com" class="">profit@quansoft.com</a><br class=""><br class=""></div></span>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Feb 13, 2020, at 4:02 AM, Jan LAGERWALL <<a href="mailto:jan.lagerwall@uni.lu" class="">jan.lagerwall@uni.lu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi all,
<div class=""><br class="">
</div>
<div class="">I am fitting an equation to data that has quite large errors at one end of the measuring range and considering the error estimates is essential to getting good results. A problem is, however, that it seems fitting always assumes symmetric errors.
My y-values are volume fractions, which obviously cannot be greater than 1, but as I approach volume fraction 1, my estimated errors are on the order of 0.2 or 0.3. This means that a value of 0.9 is considered going from, say, 0.7 to 1.1 during fitting, but
of course values greater than 1.0 do not make sense.</div>
<div class=""><br class="">
</div>
<div class="">In another data set, I have x-values that I know are lower estimates. In other words, here I would like to set x-error downwards equals zero but the error upwards can be significant. I can plot the data with asymmetric error bars, but I cannot
find a way to tell the fitting algorithm to consider asymmetric errors. </div>
<div class=""><br class="">
</div>
<div class="">Am I missing something here, or did I misunderstand something fundamental about how the fitting works, or can I tweak the fitting so asymmetric errors are being considered?</div>
<div class=""><br class="">
</div>
<div class="">Thanks a lot!</div>
<div class="">/Jan</div>
<br class="">
<br class="">
<div class="">
<div dir="auto" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="page" title="Page 1">
<div class="section" style="background-color: rgb(255, 255, 255);">
<div class="layoutArea">
<div class="column">
<div style="margin: 0in 0in 0.0001pt;" class=""><span style="letter-spacing: 0px; font-family: Arial; font-size: 10px;" class=""><br class="Apple-interchange-newline">
Dr. Jan P. F. Lagerwall </span></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px;" class="">
<span style="font-family: ArialMT; font-size: 9px;" class="">Professor</span></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px;" class="">
<span style="letter-spacing: 0px; font-style: normal; font-size: 8px;" class=""><font face="ArialMT" class="">Department of Physics and Materials Science</font></span></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px;" class="">
<span style="letter-spacing: 0px; font-style: normal; font-size: 8px;" class=""><font face="ArialMT" class=""><br class="">
</font></span></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px; font-size: 9px; font-family: Arial;" class="">
<span style="letter-spacing: 0px;" class="">Université du Luxembourg</span></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px; font-size: 9px; font-family: Arial;" class="">
<span style="letter-spacing: 0px;" class=""><br class="">
</span></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px; font-size: 9px; font-family: Arial;" class="">
<span style="letter-spacing: 0px;" class="">Campus Limpertsberg</span></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px;" class="">
<font face="Arial" class=""><span style="font-size: 9px; letter-spacing: 0px;" class="">162a, avenue de la Faïencerie, </span><span style="font-size: 9px;" class="">BS 1.15a</span></font><br class="">
<font face="Arial" class=""><span style="font-size: 9px; letter-spacing: 0px;" class="">L-1511 Luxembourg</span></font></div>
<div style="letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px; font-size: 9px; font-family: Arial;" class="">
<span style="letter-spacing: 0px;" class=""><br class="">
T +352 46 66 44 6219</span></div>
<div style="margin: 0px;" class=""><span style="font-family: Arial; font-size: 9px; letter-spacing: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">F </span><span style="font-family: Arial; font-size: 9px;" class="">+352 </span><span style="font-size: 9px; font-family: Arial;" class="">46
66 44 36219</span></div>
<div style="color: rgb(2, 30, 170); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px; font-size: 9px; font-family: Arial;" class="">
<span style="letter-spacing: 0px;" class=""><a href="mailto:Jan.Lagerwall@uni.lu" class="">Jan.Lagerwall@uni.lu</a></span><span style="letter-spacing: 0px;" class=""> /</span><a href="http://www.lcsoftmatter.com/" class="">www.lcsoftmatter.com</a></div>
<div style="color: rgb(2, 30, 170); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px; font-size: 9px; font-family: Arial;" class="">
<a href="http://physics.uni.lu/" class="">physics.uni.lu</a>, <a href="http://www.uni.lu/" class="">
www.uni.lu</a></div>
<div style="color: rgb(2, 30, 170); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px; font-size: 9px; font-family: Arial;" class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="" class=""><br class="">
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
_______________________________________________<br class="">proFit-list mailing list<br class=""><a href="mailto:proFit-list@quantum-soft.com" class="">proFit-list@quantum-soft.com</a><br class="">http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com<br class=""></div></blockquote></div><br class=""></div></body></html>