Download Part I: The normal distribution - Department of Electronic Systems

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Serial digital interface wikipedia , lookup

Index of electronics articles wikipedia , lookup

Precision bombing wikipedia , lookup

UniPro protocol stack wikipedia , lookup

Immunity-aware programming wikipedia , lookup

Transcript
Instrumentation and data acquisition
Spring 2010
Lecture 5: Noise, precision and accuracy
Zheng-Hua Tan
Department of Electronic Systems
Aalborg University, Denmark
[email protected]
Thanks to Christian Fischer Pedersen for providing some
of the slides.
Instrumentation and data acquisition,V, 2010
1
Part I: The normal distribution




The normal distribution
Digital noise generation
Precision and accuracy of data acquisition
Data acquisition system
Instrumentation and data acquisition,V, 2010
2
1
Signal acquisition

When acquiring a physical signal, the particular measurement could
be affected by many factors: electronic (random) noise, interfering
signals and inaccuracies.
Noise
Generating
process

Acquired
signal
+
Statistics and probability for characterizing signal & noise, reducing
the noise, etc.
 The normal distribution
 Precision and accuracy
Instrumentation and data acquisition,V, 2010
3
The normal distribution

Normal distribution occur frequently in nature
Signals from random processes usually have a bell-shaped
PDF, called a normal (Gauss) distribution, or a Gaussian.
Basic curve of a normal distribution. No normalization
1
y(x)=exp(-x2)
0.9
0.8
0.7
0.6
y(x)

0.5
0.4
0.3
0.2
0.1
0
-5
-4
-3
-2
-1
0
1
2
3
4
5
x
Instrumentation and data acquisition,V, 2010
4
2
The normal distribution
Raw un-normalized curve: y ( x)  e  x
To get the complete normal distribution PDF
2






Add adjustable mean
mean, μ
Add adjustable standard deviation, σ
Normalize the curve – area under curve equals to 1
2
2
1
e ( x   ) / 2
2 
Normal distribution, PDF: P( x) 
Normal distribution PDF
0.4
0.14
P(X)
Mean: =0
Std. dev: =1
0.35
Normal distribution PDF
P(X)
Mean: =20
Std. dev: =3
0.12
0.3
0.1
0.25
P(x)
P(x)
0.08
0.2
0.06
0.15
0.04
0.1
0.02
0.05
0
-5
-4
-3
-2
-1
0
x
1
2
3
0
4
5
5
10
15
Instrumentation
and data0 acquisition,V,
201020x
25
30
35
40
5
Cumulative distribution function
 Integral of PDF gives probability of
samples being within a certain range
Integral
g of the PDF is called cumulative
distribution function, CDF
High resolution numerical integration of
the Gaussian PDF, e.g. -10σ≤x≤10σ
Store results in table for looking up
probabilities (see next slide)
Φ(x) (phi) is the probability that the
value of a normally distributed signal at a
randomly chosen time will be less than x
(expressed in standard deviations
referenced to the mean).
Instrumentation and data acquisition,V, 2010
6
3
Cumulative distribution function
For example, Φ(-1)
has a value of
0.1587, indicating
that there is a
15.87% probability
that the value of
the signal will be
between -∞ and
one standard
deviation below
the mean, at any
randomly chosen
time.
Instrumentation and data acquisition,V, 2010
7
Gaussian Mixture Model
(C. K. Raut, 2004)
Instrumentation and data acquisition,V, 2010
8
4
Gaussian Mixture Model


Mixture weight πj has a form of ’a priori’ probability:
shows relative importance of each component
Component Gaussians can have full, diagonal or
spherical covariance matrix
(C. K. Raut, 2004)
Instrumentation and data acquisition,V, 2010
9
Part II: Digital noise generation




The normal distribution
Digital noise generation
Precision and accuracy of data acquisition
Data acquisition system
Instrumentation and data acquisition,V, 2010
10
5
Random noise



An important topic in both electronics and
DSP.
It limits how small of signals an instrument
will measure.
Digital noise generation is required to test the
performance of algorithms that must work in
the presence of noise.

It relies on random number generator
Instrumentation and data acquisition,V, 2010
11
From a uniform distribution to a Gaussian
(1)
(2)
Adding more and more iid random
variables yields a normal distribution.
To generate a normally distributed noise
signal with arbitrary mean and σ, for
each sample in the signal:
1) Add 12 random numbers
2) Subtract 6 to make the mean zero
3) Multiply by desired σ
4) Add your desired mean
(3)
Instrumentation and data acquisition,V, 2010
12
6
Central limit theorem


Central limit theorem is the mathematical basis for
the aforementioned algorithm (procedure) that
y distributed noise.
creates a normally
Central limit theorem: A sum of random numbers
becomes normally distributed as more and more of
the random numbers are added together.


This also explains why normally distributed signals are
seen so widely in nature.
So when many different random forces are interacting,
So,
interacting the
resulting PDF is Gaussian/Normal; and this happens often
in real physical systems.
Instrumentation and data acquisition,V, 2010
13
Part III: Precision and accuracy




The normal distribution
Digital noise generation
Precision and accuracy of data acquisition
Data acquisition system
Instrumentation and data acquisition,V, 2010
14
7
Precision and accuracy

Precision and accuracy are terms used to describe
systems and methods that measure, estimate or predict



Objective: Get TRUE value of parameter
Reality: Get MEASURED value of parameter
Discrepancy between true and measured value can be
quantified by accuracy and precision.


Accuracy: The mean of the measurements are shifted from the
true value. The amount of shift is called accuracy of
measurement.
Precision: The standard deviation of the measurements indicates
the precision, i.e. a slender or broad distribution indicates good or
bad precision respectively.
Instrumentation and data acquisition,V, 2010
15
Precision and accuracy – cont.
From: S. W. Smith, “The Scientist and Engineer's
Guide to Digital
Signal
Processing”,2010
California Technical Publishing,16
1997
Instrumentation
and data
acquisition,V,
8
Precision and accuracy – cont.

Situation: Good accuracy & poor precision







Cause of poor precision


Shift in mean from true value is small
The histogram
g
of measurements is broad
Measurements as group: Good
Measurements as individuals: Poor
Poor repeatability: Measurements do not agree well
Improve precision: Average several measurements
R d
Random
errors
Poor precision indicates

Presence of random noise
From: S. W. Smith, “The Scientist and Engineer's
Guide to Digital
Signal
Processing”,2010
California Technical Publishing,17
1997
Instrumentation
and data
acquisition,V,
Precision and accuracy – cont.

Situation: Poor accuracy & good precision



Shift in mean from true value is large
The histogram
g
of measurements is slender
Successive readings



Average several measurements


Does not improve accuracy
Cause of poor accuracy


Close in value
All have a large error
Systematic errors
Poor accuracy indicates

Poor calibration
Instrumentation and data acquisition,V, 2010
18
9
Precision and accuracy – cont.

Identification of problem

1) Avg. successive readings yield better
measurement?
t?



Yes: The error is due to precision
No: The error is due to accuracy
2) Calibration corrects the error?


Yes: The error is due to accuracy
No: The error is due to precision
Instrumentation and data acquisition,V, 2010
19
Part IV: Data acquisition system




The normal distribution
Digital noise generation
Precision and accuracy of data acquisition
Data acquisition system
Instrumentation and data acquisition,V, 2010
20
10
Anatomy of a data acquisition experiment

System setup



Calibration of hardware



Install the hardware and software
Attach sensors
Provide a known input to the system and record the output.
The rest is to be done by software
Trials


Acquire data
To achieve a precise, accurate measurement, you need to
perform several data acquisition trials using different
hardware and software configurations.
Instrumentation and data acquisition,V, 2010
21
The data acquisition system
From MATLAB Data Acquisition Toolbox User's Guide
Instrumentation and data acquisition,V, 2010
22
11
Data acquisition hardware

Multifunction boards
From MATLAB Data Acquisition Toolbox User's Guide
Instrumentation and data acquisition,V, 2010
23
Making quality measurements


Matching the sensor range and A/D converter
range
Sampling rate
Instrumentation and data acquisition,V, 2010
24
12
Making quality measurements



Matching the sensor range and A/D converter
range
Sampling rate
Accuracy and precision

Noise removal
Instrumentation and data acquisition,V, 2010
25
Summary




The normal distribution
Digital noise generation
Precision and accuracy of data acquisition
Data acquisition system
Instrumentation and data acquisition,V, 2010
26
13