For use in a kalman filter I need some measured data of my dynamic system. As this measurement is prone to errors (like a measurement error with $\sigma_\mathrm{M}$ as well as noise in the value to measure) I can do it quickly a few times and calculate the average and the variance. Although this looks very simple, it is getting more complicated when we do that in a real world environment due to the errors:
Assuming that I did three measurements, all had (by bad luck?) exactly the same value, my average would be that value and the variance would be zero. So I know that this is wrong as I know that my measurement device is only as good as $\sigma_\mathrm{M}$ and thus the variance that I use for the kalman can not be smaller than $\sigma_\mathrm{M}$.
Here I've got two questions now:
Knowing my measurement system very well and that its error is $\sigma_\mathrm{M}$ and this error is following a normal distribution, how do I calculate the average and variance from my samples?
Assuming that my measurement system works perfectly (no measurement error itself), but that its result is only coarsely quantisised (the real value of the number to measure is e.g. in the range 20...40, like 23.456, but the displayed number is allays rounded to the next full number, like 23 in this case). How do I calculate the average and variance from my samples in this case?
I recon using a Bayesian method would be the answer here, but I have troubles sorting it out myself.
What I also find astonishing is that this question is such a basic and fundamental one for applied measuring and I couldn't find any answer for that on google.