Shaping probability distribution function

Click For Summary

Homework Help Overview

The discussion revolves around transforming a normally distributed signal into a uniform probability distribution function (pdf). The original poster presents a problem involving the governing equation for a nonlinearity that achieves this transformation, referencing the cumulative distribution function (CDF) of the normal distribution.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore the relationship between the CDF and the transformation needed to achieve a uniform distribution. There is mention of using the error function and the Box-Muller transformation as methods related to generating samples from different distributions.

Discussion Status

The conversation includes various perspectives on the problem, with some participants providing insights into mathematical proofs and transformations. There is an acknowledgment of the complexity involved in the proof and the mapping of variables, but no consensus has been reached on a definitive solution.

Contextual Notes

Participants discuss the implications of using different variables and transformations, as well as the relevance of Monte-Carlo simulations in the context of generating samples from non-uniform distributions. There is also curiosity about how software like Matlab handles these transformations.

SunnyBoyNY
Messages
63
Reaction score
0

Homework Statement



Incoming signal has normal distribution, xmin is equal to -sigma, xman is equal to +sigma. What is the governing equation of the nonlinearity through which the signal has to be passed in order to make its pdf uniform?

Homework Equations



http://en.wikipedia.org/wiki/Normal_distribution

The Attempt at a Solution



I have already found out that the signal needs to be passed through erf(x/sqrt(2)), which is very relevant to the CDF of normal distribution. The problem is that I cannot find a mathematical proof.
 
Physics news on Phys.org
SunnyBoyNY said:

Homework Statement



Incoming signal has normal distribution, xmin is equal to -sigma, xman is equal to +sigma. What is the governing equation of the nonlinearity through which the signal has to be passed in order to make its pdf uniform?

Homework Equations



http://en.wikipedia.org/wiki/Normal_distribution

The Attempt at a Solution



I have already found out that the signal needs to be passed through erf(x/sqrt(2)), which is very relevant to the CDF of normal distribution. The problem is that I cannot find a mathematical proof.

It's very easy. Say you have a continuous random variable X with a strictly increasing cumulative distribution F(x) on an x-interval [a,b] (possibly a = -∞ and b = +∞). The probability density of X is f(x) = (d/dx) F(x). Now look at Y = F(X); that is, for each observation x of X we let the observation of Y be y = F(x). What is the distribution of Y? For x < X < x + dx the probability is f(x)*dx, so if x <--> x and y + dy <--> x + dx, we have
P{y < Y < y + dy} = f(x)*dx. If g(y) is the probability density of Y, we therefore have g(y)*dy = f(x)*dx. But dy/dx = (d/dx) F(x) = f(x), so dy = f(x) dx, hence we must have g(y) = 1; that is, Y is uniform on (0,1).

All this is very standard in Monte-Carlo simulation, where it is used to generate samples from non-uniform distributions: we generate Y uniform on (0,1), then obtain our sample of X from x = F-1(y) (at least, in those cases where the latter function is known and not too hard to compute).

RGV
 
RGV, thanks for your feedback. I believe I have already proved it using a non-linearly distributed substitute variable "a" as opposed to the linear variable "x". Those two variables could be unambiguously mapped from one to the other to warp the "x" axis to ultimately render the pdf uniform.

I dare to say I understand your reasoning here, I will just need a little bit of time to absorb it.

The integral of (pdf):

[itex] f(x) = \frac{1}{\sqrt{2\pi}\sigma}e^{-\frac{1}{2}(\frac{x}{\sigma})^2}[/itex]

is (cdf):

[itex] \frac{1}{2}erf(\frac{x}{\sqrt{2}\sigma})[/itex]

Which is a normalized function with zero mean. I assume the mapping function needs to be multiplied by [itex]\sigma[/itex] to achieve the desired uniform mapping. This is just a detail.

Quite interesting info about Monte-Carlo simulations. It would make sense to transform a linear distribution to resemble other kinds of distributions. I wonder whether MatLab does it the same way.
 
SunnyBoyNY said:
Quite interesting info about Monte-Carlo simulations. It would make sense to transform a linear distribution to resemble other kinds of distributions. I wonder whether MatLab does it the same way.
I'm not sure how Matlab does it, but a common way to generate Gaussian (normal) random numbers from uniform ones is the following trick: if [itex]u_1[/itex] and [itex]u_2[/itex] are independent random variables, uniformly distributed over (0,1], then
[tex]n_1 = \sqrt{-2 \log(u_1)} \cos(2\pi u_2)[/tex]
and
[tex]n_2 = \sqrt{-2 \log(u_1)} \sin(2\pi u_2)[/tex]
are independent Gaussian random variables with zero mean and unit variance. This is the so-called Box-Muller transformation:

http://en.wikipedia.org/wiki/Box–Muller_transform
 
jbuniniii,

Thanks for the info about the transform. That's why I love this forum. One question brings together many ideas and perspectives.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
56
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K