How to find error in experimental data using MATLAB code?

조회 수: 12 (최근 30일)
Safi ullah
Safi ullah 2018년 8월 7일
댓글: Safi ullah 2018년 8월 9일
Hi everyone, I downloaded experimental raw data and then analyse with a software. I have used a standard analysis software package (GUISDAP) and extract electron density, Ne = 1×1000. Then I used the following Matlab code to get data from some specific columns,
A=Ne(1, 90:90:1000); %%this gives A=1×11
As the Matlab code is giving me data exactly after 90 data points. So in this case how I estimate or minimise the error/noise from the data. Someone give me the suggestion to find standard deviation. Actually I do not know in this case what means the noise and how to deal with it. Any guidance will be appreciated. Thanks

채택된 답변

Adam Danz
Adam Danz 2018년 8월 7일
편집: Adam Danz 2018년 8월 8일
Someone give me the suggestion to find standard deviation. Actually I do not know in this case what means the noise and how to deal with it.
Are you asking what 'noise' means in regard to data or are you asking how to interpret the noise in your data?
Noise is just variability of a measurement. If I step on a digital scale 5 times my weight might be [79.9, 80.1, 80.0, 79.8, 80.1] kg. The variation might be explained in how I was centered on the scale each time, my posture, or the lousy mechanics within the scale. Of course I have a True (capital T) weight at any point in time but the 'noisy' scale is the only way to estimate that True weight and along with the estimates comes noise (variability).
For example, let's say my True weight (which isn't knowable) is 80.0001425458541254789 kg. The mean of my 5 measurements is 79.98 and the standard deviation is 0.13038.
x = [79.9, 80.1, 80.0, 79.8, 80.1];
m = mean(x)
s = std(x) % <- That's how to calculate standard deviation
If your data are normally distributed, ~68% of your data will be within +/- 1 standard deviation from the mean. If the scale continues to behave the same and I quickly weight myself 1000 more times, ~68% of the measurement will be between 79.85 and 80.11 kg.
upper = m + 1*s
lower = m - 1*s
If your data are not approximately normally distributed, you should not be using stand deviations but you could use a non parametric test such as bootstrapped confidence intervals. It might be difficult to determine the distribution of your data since you only seem to have 11 data points in 'A'.
I'm not certain that this explanation is what you were looking for so please feel free to follow up or tell me how far off base my interpretation of your noisy question was ;)
  댓글 수: 25
Adam Danz
Adam Danz 2018년 8월 9일
My pleasure. Be sure to read the documentation on isoutlier() and choose parameter values that makes sense for your data and that you can explain in your paper.
Safi ullah
Safi ullah 2018년 8월 9일
@ Dear Adam, sure I will.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Feature Extraction에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by