How to calculate the uncertainty of a fit function?

Hi,

this post explains how to draw bands: Brazilian Flag Plot

for the theory behind fitting, any statistics book woulf work e.g. https://www.amazon.com/Statistical-Methods-Experimental-Physics-2Nd/dp/9812705279 who is an excellent one.

p