So, can I do this transformation?

In summary: The simulation might take say a day to run, but the results would be as accurate as you want to make them.Because of the nature of your work, I think that you are best to do it analytically and see what you get because at least that way you a) have a reference for what should be the PDF and b) if you decide to use simulation to get your final distribution, then you can check this simulation and the generated PDF vs the analytic solution and if both agree then that will give you some confidence that things are OK (not a gaurantee but a good way to check).In summary, the steps for finding the CDF of \mathcal{X} given i.i
  • #1
EngWiPy
1,368
61
Hello,

Suppose that X1,...,XN are i.i.d. exponentially distributed random variables. Now assume that:

[tex]\mathcal{X}=\sum_n\frac{1}{1+a\,X_n}[/tex]

I need to find the CDF of X. I did the following:

1- Find the the CDF of Xi.
2- Find the CDF of 1+a X_i.
3- Find the CDF and PDF of 1/(1+a Xi).
4- The MGF of X is the product of the MGFs of the individual MGFs.
5- Take the inverse laplace transform of the total MGF divided by the Laplace variable s.

Are these steps valid?

Thanks
 
Physics news on Phys.org
  • #2
S_David said:
Hello,

Suppose that X1,...,XN are i.i.d. exponentially distributed random variables. Now assume that:

[tex]\mathcal{X}=\sum_n\frac{1}{1+a\,X_n}[/tex]

I need to find the CDF of X. I did the following:

1- Find the the CDF of Xi.
2- Find the CDF of 1+a X_i.
3- Find the CDF and PDF of 1/(1+a Xi).
4- The MGF of X is the product of the MGFs of the individual MGFs.
5- Take the inverse laplace transform of the total MGF divided by the Laplace variable s.

Are these steps valid?

Thanks

Hey S_David.

I'm assuming you found the characteristic function for the last step:

http://en.wikipedia.org/wiki/Characteristic_function_(probability_theory)

I don't think you can from MGF to distribution, but you can definitely go from characteristic function to distribution function as those two are bijective and this is based on the Fourier transform not the laplace transform. For continuous variables, this has to be used to go from characteristic function (which is a kind of analogue of MGF) to final distribution given sums of distributions of continuous functions that are independent (not necessarily identically distributed though).

So my advice would be to use the characteristic function (CF) to get the CF for each distribution in the sum, then multiply these to get the CF for the sum of n variables, take the inversion formula to calculate the CDF and use that to get the PDF.

Because they are continuously distributed, this is what you will need to do. For discrete distributions you use what are called Probability Generating Functions, but for continuous again, use the characteristic function.
 
  • #3
chiro said:
Hey S_David.

I'm assuming you found the characteristic function for the last step:

http://en.wikipedia.org/wiki/Characteristic_function_(probability_theory)

I don't think you can from MGF to distribution, but you can definitely go from characteristic function to distribution function as those two are bijective and this is based on the Fourier transform not the laplace transform. For continuous variables, this has to be used to go from characteristic function (which is a kind of analogue of MGF) to final distribution given sums of distributions of continuous functions that are independent (not necessarily identically distributed though).

So my advice would be to use the characteristic function (CF) to get the CF for each distribution in the sum, then multiply these to get the CF for the sum of n variables, take the inversion formula to calculate the CDF and use that to get the PDF.

Because they are continuously distributed, this is what you will need to do. For discrete distributions you use what are called Probability Generating Functions, but for continuous again, use the characteristic function.

Ok, thanks. What I am concerned about is the steps, because I read in a paper that the argument in the sum is "intractable", and I was wondering why?

The MGF is defined as:

[tex]\mathcal{M}_X(s)=\mathbf{E}[e^{-sX}]=\int_0^{\infty}e^{-sX}f_X(x)\,dx[/tex]

which shows a relationship between the PDF and the MGF from which we can infer the relationship between MGF and CDF. It has been done in communication literature many times.

Thanks again
 
  • #4
S_David said:
Ok, thanks. What I am concerned about is the steps, because I read in a paper that the argument in the sum is "intractable", and I was wondering why?

The MGF is defined as:

[tex]\mathcal{M}_X(s)=\mathbf{E}[e^{-sX}]=\int_0^{\infty}e^{-sX}f_X(x)\,dx[/tex]

which shows a relationship between the PDF and the MGF from which we can infer the relationship between MGF and CDF. It has been done in communication literature many times.

Thanks again

I see how that will work for this particular case (since the exponential is only defined over the positive real part), and since this is the definition of a Laplace transform, the inversion will correspond to getting the pdf. In general though, if the domain is not like this then you will need to use the characteristic function.

In terms of the intractable nature, this will depend on what the output is: If it ends up being too complicated then you might want to resort to something like a simulation based approach (like Monte-Carlo). If you simulate enough, you can get a distribution with enough accuracy so that you will have a numerical description by dividing your output distribution into bins that are 'small enough' that correspond with your desired accuracy.

The evaluation of probabilities will then be based on numerical integration that corresponds with your chosen bin size. The simulation might take say a day to run, but the results would be as accurate as you want to make them.

Because of the nature of your work, I think that you are best to do it analytically and see what you get because at least that way you a) have a reference for what should be the PDF and b) if you decide to use simulation to get your final distribution, then you can check this simulation and the generated PDF vs the analytic solution and if both agree then that will give you some confidence that things are OK (not a gaurantee but a good way to check).
 
  • #5
chiro said:
I see how that will work for this particular case (since the exponential is only defined over the positive real part), and since this is the definition of a Laplace transform, the inversion will correspond to getting the pdf. In general though, if the domain is not like this then you will need to use the characteristic function.

In terms of the intractable nature, this will depend on what the output is: If it ends up being too complicated then you might want to resort to something like a simulation based approach (like Monte-Carlo). If you simulate enough, you can get a distribution with enough accuracy so that you will have a numerical description by dividing your output distribution into bins that are 'small enough' that correspond with your desired accuracy.

The evaluation of probabilities will then be based on numerical integration that corresponds with your chosen bin size. The simulation might take say a day to run, but the results would be as accurate as you want to make them.

Because of the nature of your work, I think that you are best to do it analytically and see what you get because at least that way you a) have a reference for what should be the PDF and b) if you decide to use simulation to get your final distribution, then you can check this simulation and the generated PDF vs the analytic solution and if both agree then that will give you some confidence that things are OK (not a gaurantee but a good way to check).

Of course if analytical solution can be found it is better, but in my case this is almost impossible. So, I just need to see the output curve, without focusing too much on the CDF itself.

I am doing the inverse Laplace transform numerically. Again, this is not my problem for now at least, I just wanted to know if my steps are correct or not, because when I plotted the output I got some results greater than one, which does not make sense, because it is a probability. So, I am trying to locate my logical error.

Thanks
 
  • #6
S_David said:
Of course if analytical solution can be found it is better, but in my case this is almost impossible. So, I just need to see the output curve, without focusing too much on the CDF itself.

I am doing the inverse Laplace transform numerically. Again, this is not my problem for now at least, I just wanted to know if my steps are correct or not, because when I plotted the output I got some results greater than one, which does not make sense, because it is a probability. So, I am trying to locate my logical error.

Thanks

I would check each step that you have listed numerically just to be sure that each step is a valid probability distribution, instead of just checking the last step.

From there you can narrow down this problem specifically and see what is going wrong.

Also I recommend you simulate random variables to make sure that the analytic solution provides a good match for a good simulated version that you get. You could use something like R for this and it wouldn't take much in terms of the coding.

Simulation is always good for this kind of error checking and I recommend you use it, especially in a serious application like engineering even if it is to double check your work (this is what often happens anyway).
 
  • #7
chiro said:
I would check each step that you have listed numerically just to be sure that each step is a valid probability distribution, instead of just checking the last step.

From there you can narrow down this problem specifically and see what is going wrong.

Also I recommend you simulate random variables to make sure that the analytic solution provides a good match for a good simulated version that you get. You could use something like R for this and it wouldn't take much in terms of the coding.

Simulation is always good for this kind of error checking and I recommend you use it, especially in a serious application like engineering even if it is to double check your work (this is what often happens anyway).

OK, I think I found my mistake. The argument of the exponential distribution is greater than or equal zero, and I did not take this into account when I tried to get the results. I understand now why it is said that the above formula is intractable for all arguments.
 

1. Can I do this transformation with the current equipment and materials I have?

The answer to this question depends on the specific transformation you are trying to perform. Some transformations may require specialized equipment and materials, while others can be done with more common tools. It is important to carefully read and follow the instructions for the transformation to determine if you have everything you need.

2. Is this transformation safe to perform?

Safety should always be a top priority when performing any kind of transformation. Before attempting a transformation, make sure to thoroughly research and understand the potential hazards involved. It is also important to follow proper safety protocols and use protective equipment, if necessary.

3. What are the potential side effects or unintended consequences of this transformation?

Some transformations can have unexpected outcomes, so it is important to carefully consider the potential side effects before attempting the transformation. Additionally, it is important to have a plan in place for how to handle any potential unintended consequences, such as contamination or unexpected reactions.

4. Are there any alternative methods for achieving the same transformation?

In some cases, there may be multiple ways to achieve a certain transformation. It is always a good idea to research and consider alternative methods before starting a transformation. This can help you determine the most efficient and effective approach for your specific situation.

5. How can I verify that the transformation was successful?

The best way to verify the success of a transformation is to perform appropriate tests or experiments. This may involve measuring changes in physical or chemical properties, analyzing data, or conducting further observations. It is important to have a clear understanding of what constitutes a successful transformation before starting the process.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
720
  • Set Theory, Logic, Probability, Statistics
Replies
16
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
891
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
4K
  • Computing and Technology
Replies
9
Views
412
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
10
Views
5K
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
3K
Replies
0
Views
335
Back
Top