Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
pit
Commits
09a5ad83
Commit
09a5ad83
authored
6 years ago
by
Erik Strand
Browse files
Options
Downloads
Patches
Plain Diff
Down the rabbit hole
parent
6ec50c22
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_posts/2019-02-14-pset2.md
+125
-10
125 additions, 10 deletions
_posts/2019-02-14-pset2.md
_posts/2019-02-15-ch2-notes.md
+2
-2
2 additions, 2 deletions
_posts/2019-02-15-ch2-notes.md
with
127 additions
and
12 deletions
_posts/2019-02-14-pset2.md
+
125
−
10
View file @
09a5ad83
...
...
@@ -9,8 +9,8 @@ title: Problem Set 2
Derive equation (3.16) (i.e. the Poisson probability density function) from the binomial
distribution and Stirling’s approximation.
Fix any
$$
\l
ambda$$ between 0 and 1
. For any $$n$$, the binomial probability mass function for
$$n$$
trials with probability of success $$p =
\l
ambda / n$$ is
Fix any
(positive, real) $$
\l
ambda$$
. For any $$n$$, the binomial probability mass function for
$$n$$
trials with probability of success $$p =
\l
ambda / n$$ is
$$
\b
egin{align
*
}
...
...
@@ -90,13 +90,18 @@ N per second. How many must be counted by a photodetector per second to be able
rate to within 1%? To within 1 part per million? How many watts do these cases correspond to for
visible light?
We have already found that $$
\s
igma =
\s
qrt{
\l
ambda}$$. For large $$
\l
ambda$$, the Poisson
### The Poisson Approach
Note: in the previous problem I used $$
\l
ambda$$ as the expected number of events of a Poisson process.
Here I'll use $$N$$ to avoid confusion with wavelength.
We have already found that $$
\s
igma =
\s
qrt{N}$$. For large $$N$$, the Poisson
distribution is very close to the normal distribution. So about two thirds of the probability mass
lies between $$
\l
ambda
-
\s
igma$$ and $$
\l
ambda
+
\s
igma$$. Thus if $$
\s
igma
\l
eq 0.01
\l
ambda
$$, in
lies between $$
N
-
\s
igma$$ and $$
N
+
\s
igma$$. Thus if $$
\s
igma
\l
eq 0.01
N
$$, in
any given second it's more likely than not that the number of photons emitted is within one percent
of the true mean. Thus we'd need $$
\s
qrt{
\l
ambda
}
\l
eq 0.01
\l
ambda
$$, i.e. $$
\l
ambda
\g
eq 10^4$$.
To have the same probability that the number of observed photons is within $$10^{-6}
\l
ambda
$$ of
the true value, we need $$
\l
ambda
\g
eq 10^{12}$$.
of the true mean. Thus we'd need $$
\s
qrt{
N
}
\l
eq 0.01
N
$$, i.e. $$
N
\g
eq 10^4$$.
To have the same probability that the number of observed photons is within $$10^{-6}
N
$$ of
the true value, we need $$
N
\g
eq 10^{12}$$.
The wavelength of visible light is about $$
\n
um{500e-9}
\s
i{m}$$, so the energy of each photon will
be
...
...
@@ -112,7 +117,7 @@ $$\num{3.8e-7} \si{W}$$.
Some caveats about this answer: the Poisson distribution is strictly greater than zero on its whole
domain, so one can never be
*certain*
that they have found the correct value within any error
bounds. That is, even if the real value of $$
\l
ambda
$$ is one, there's still a (vanishingly) slight
bounds. That is, even if the real value of $$
N
$$ is one, there's still a (vanishingly) slight
chance you'll see a million. The best we can do is find an answer that's
[
probably approximately
correct
](
https://en.wikipedia.org/wiki/Probably_approximately_correct_learning
)
.
...
...
@@ -120,13 +125,104 @@ Second, I only found limits on the probability that the number of emitted photon
(known) average. It's a more subtle question to ask for the probability that a given estimate is
within one percent of the true (latent) mean. That could be tackled with confidence intervals,
p-values, Bayes factors, or direct posterior estimation, though none would be quite so simple. As an
unapologetic Bayesian I'm required to point out that my confidence I've determined $$
\l
ambda
$$ with
some precision depends on my prior for $$
\l
ambda
$$. This would be very real if we were, for
unapologetic Bayesian I'm required to point out that my confidence I've determined $$
N
$$ with
some precision depends on my prior for $$
N
$$. This would be very real if we were, for
instance, counting photons in a lab module for this course. I would be more confident in my answer
if I measured something close to $$
\n
um{1e12}$$ photons, than if I measured something like
$$
\n
um{3.64e12}$$, since I think it's more likely that the instructor would choose a nice round
number with lots of zeros.
### The Shot Noise Approach
To verify:
-
expected displacement of random walk with normally distributed steps
-
parseval's theorem without expectations (I expect this is true) -> Yes; Plancherel Theorem
-
parseval's theorem without the square (i.e. just magnitude) -> False, considering that a
constant value (infinite area) maps to a delta function (finite)
-
how to show Guassian normalization, and variance inversion under Fourier transform
Let's also look at this from the perspective of shot noise. As derived in the book, the shot noise
formula isn't exactly what we want. This is because the energy transmitted by a sequence of photons
is just the sum of the energy carried by each photon; it's not proportional to the square of any
photon "current". So the power
makes some assumptions that aren't clearly valid here. First, if each photon carries the
same amount of energy, then the above Poisson analysis is all we need, since
same amount of energy
We can measure our "current" of light in photons per second, assigning each photon a "charge" of one
photon. But Then the root mean square shot noise will be
$$
\b
egin{align
*
}
\s
qrt{
\l
angle I_
\t
ext{noise}^2
\r
angle}
&=
\s
qrt{2 q
\l
angle I
\r
angle
\D
elta f}
\\
&=
\s
qrt{2
\c
dot 1
\s
i{photon}
\c
dot N
\s
i{photons/s}
\c
dot
\n
um{1e-8}
\s
i{Hz}}
\e
nd{align
*
}
$$
So we need to solve
$$
\s
qrt{2
\c
dot 1
\s
i{photon}
\c
dot N
\s
i{photons/s}
\c
dot
\n
um{1e-8}
\s
i{Hz}}
\l
eq 0.01 N
$$
Ok let's do this the right way. Instead of electric current (in Amps), we're looking directly at Watts.
As a function of time, this is
$$
W(t) =
\s
um_{n = 1}^N q_n
\d
elta(t - t_n)
$$
where $$q_n$$ is the energy of the $$n$$th photon, and $$t_n$$ its time of arrival. The Fourier
transform of this function is
$$
\b
egin{align
*
}
W(f) &=
\i
nt_
\m
athbb{R} e^{-2
\p
i i t f}
\s
um_{n = 1}^N q_n
\d
elta(t - t_n)
\m
athrm{d} t
\\
&=
\s
um_{n = 1}^N q_n e^{-2
\p
i i t_n f}
\\
\e
nd{align
*
}
$$
Each photon contributes one term to this sum. The phase of its contribution is determined by its
arrival time (and the frequency of interest), while the magnitude is determined by its energy.
We want to know the expected magnitude of this function. Formally the expectation should be taken
over sequences of arrival energies and times $$(q_1, t_1),
\l
dots, (q_n, t_N)$$. The probability of
such a sequence could be modeled so that every $$q_n$$ is independently drawn from a certain normal
distribution, and the $$t_n$$ are generated by a Poisson process.
$$
\b
egin{align
*
}
\l
angle |W(f)|
\r
angle &=
\l
angle
\l
eft|
\s
um_{n = 1}^N q_n e^{-2
\p
i i t_n f}
\r
ight|
\r
angle
\\
&=
\s
qrt{N}
\l
angle q
\r
angle
\e
nd{align
*
}
$$
This is a 2d Guassian random walk. The arrival times determine direction (phase), and the energies determine
the step lengths. For a given frequency, all are uncorrelated in expectation.
So to
Let's look at the expected squared magnitude as well, so we can compare with the standard shot noise
formula.
$$
\b
egin{align
*
}
\l
angle |W(f)|^2
\r
angle &=
\l
angle
\s
um_{n = 1}^N q_n e^{-2
\p
i i t_n f}
\s
um_{m = 1}^N q_m e^{2
\p
i i t_m f}
\r
angle
\\
&=
\l
angle
\s
um_{n = 1}^N
\s
um_{m = 1}^N q_n q_m e^{-2
\p
i i (t_n - t_m) f}
\r
angle
\\
&=
\l
angle
\s
um_{n = 1}^N q_n^2 +
\s
um_{n < m} 2 q_n q_m
\t
ext{Re}
\l
eft[ e^{-2
\p
i i (t_n - t_m) f}
\r
ight]
\r
angle
\\
&=
\s
um_{n = 1}^N
\l
angle q_n^2
\r
angle + 2
\s
um_{n < m}
\l
angle q_n q_m
\t
ext{Re}
\l
eft[ e^{-2
\p
i i (t_n - t_m) f}
\r
ight]
\r
angle
\\
&= N
\l
angle q^2
\r
angle
\e
nd{align
*
}
$$
The second term drops out because the arrival times are generated by a Poisson process, so the real
part of the phase differences averages out to zero.
## (3.3)
Consider an audio amplifier with a 20 kHz bandwidth.
...
...
@@ -136,6 +232,25 @@ Consider an audio amplifier with a 20 kHz bandwidth.
If it is driven by a voltage source at room temperature with a source impedance of 10kΩ how large
must the input voltage be for the SNR with respect to the source Johnson noise to be 20 dB?
$$
\b
egin{align
*
}
\l
angle V_
\t
ext{noise}^2
\r
angle &= 4 k T R
\D
elta f
\\
&= 4
\c
dot
\n
um{1.38e-23}
\s
i{J/K}
\c
dot 300
\s
i{K}
\c
dot 10^4
\s
i{
\o
hm}
\c
dot
\n
um{20e3}
\s
i{Hz}
\\
&=
\n
um{3.3e-12}
\s
i{V^2}
\e
nd{align
*
}
$$
So for the input signal to be 20dB louder, we need
$$
10
\l
og_{10}
\l
eft(
\f
rac{V_
\t
ext{signal}^2}{
\n
um{3.3e-12}}
\r
ight) = 20
\\
V_
\t
ext{signal}^2 = 10^2
\c
dot
\n
um{3.3e-12}
\s
i{V^2} =
\n
um{3.3e-10}
\s
i{V^2}
$$
Note that I use a factor of 10 since $$V^2$$ is proportional to power. This signal strength would be
achieved, for instance, by a sinusoid that ranges between $$-
\n
um{6.6e-10}$$ and $$
\n
um{6.6e-10}$$
volts.
### (b)
What size capacitor has voltage fluctuations that match the magnitude of this Johnson noise?
...
...
This diff is collapsed.
Click to expand it.
_posts/2019-02-15-ch2-notes.md
+
2
−
2
View file @
09a5ad83
...
...
@@ -50,8 +50,8 @@ $$
(
\m
athcal{F} f(x' + x_0))(x)
&=
\i
nt_
\m
athbb{R} f(x' + x_0) e^{-2
\p
i i x' x}
\m
athrm{d} x'
\\
&=
\i
nt_
\m
athbb{R} f(x') e^{-2
\p
i i (x' - x_0) x}
\m
athrm{d} x'
\\
&= e^{2
\p
i i x_0}
\i
nt_
\m
athbb{R} f(x') e^{-2
\p
i i x' x}
\m
athrm{d} x'
\\
&= e^{2
\p
i i x_0} (
\m
athcal{F} f(x'))
)
(x)
&= e^{2
\p
i i x_0
x
}
\i
nt_
\m
athbb{R} f(x') e^{-2
\p
i i x' x}
\m
athrm{d} x'
\\
&= e^{2
\p
i i x_0
x
} (
\m
athcal{F} f(x'))(x)
\e
nd{align
*
}
$$
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment