What about bin width causes models not to fit/produce results? #144
-
Hi again, I'm back with a new question regarding bin width. I understand the theory behind selecting a bin width, but I'm having trouble in practice getting results to compare. My routine is to test a selection of variogram models (exponential, matern, gaussian, spherical) over a selection of bin widths. My data are relatively noisy so I'm trying to find a balance between a bin width and noise. However, for some bin widths and for some models, no models fit correctly and produce a straight lines. And as I mentioned in my previous post, I have not gotten a spherical model to produce any fit for any data yet. See attached image for an example. All models are plotted for each bin width, though they may be stacked on top of each other. Could this be related to relatively uncorrelated and/or noisy data? If not data related, do you have advice or guidance on how I can address this issue? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey there, this looks like a fitting problem again like in #143 where the curve_fit could not find an optimal result for len_scale. Since your bins seem to be in an order of magnitude of 1000, you could try setting the inital guess for len_scale to 1000 or use the Hope this helps for now. @LSchueler we should think about better default values for fitting. |
Beta Was this translation helpful? Give feedback.
-
@nfkruska Thanks to your feedback and issue #143, I came up with a new set of initial guesses for variogram fitting: #145. Will be part of GSTools v1.3 😉 Love this! Thanks. |
Beta Was this translation helpful? Give feedback.
@nfkruska Thanks to your feedback and issue #143, I came up with a new set of initial guesses for variogram fitting: #145.
len_scale
will be set to the mean of given bin centers to obtain the correct order of magnitude. In addition,var
andnugget
will be set to the mean of given variogram values for the same reason.Will be part of GSTools v1.3 😉
Love this! Thanks.
Sebastian