Examples for fitting straight line and normal distribution