How to transform a probability density function?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
Ad VanderVen
Messages
169
Reaction score
13
TL;DR
Transforming a trimodal probability density function with support [0;3*Pi] to a trimodal probability density function with support [(3/2)*Pi;(15/2)*Pi] .
I have the following probability density function (in Maple notation):

f (x) = (1 / ((3/2) * Pi)) * (sin (x)) ** 2 with support [0; 3 * Pi]

Now I want to transform x so that

0 -> (3/2) * Pi
and
3 * Pi -> (15/2) * Pi

and the new function is still a probability density function.

How should I do that transformation?
 
on Phys.org
Hi,
Ad VanderVen said:
0 -> (3/2) * Pi
and
3 * Pi -> (15/2) * Pi
It is a simple linear transformation.
So if we define ##x_0=0,\ x_1 = {3\over 2}\pi,\quad x_0'= 3\pi,\ x_1'={15\over2}\pi \;,\ ## then: $$x'= {x-x_0\over x_1-x_0} (x_1'-x'_0) \ \ {\sf and} \ \ dx'= {x'_1-x'_0\over x_1-x_0}\ dx$$

So you substitute ##\displaystyle {x = {x' - x_0'\over x_1'-x_0'}(x_1-x_0)}## and

with a simple factor ##{dx/ dx'}## you preserve the integral.

1591797960062.png
 
  • Like
Likes   Reactions: Dale
Thanks a lot for your clear answer.

I have performed the transformation and I got (in Maple notation):

g (x) = (1/2) * (1 / ((3/2) * Pi)) * (sin ((1/2) * (x- (3/2) * Pi))) ** 2

with support [(3/2) * Pi; (15/2) * Pi)]

but this function coincides completely with the following function:

h (x) = (1 / (6 * Pi)) * (sin (x) +1)

also with support [(3/2) * Pi; (15/2) * Pi)]

Now g (x) is a quadratic function and h (x) is not. How can they coincide?
 
Thank you very much. :bow: