Correlating input and output in Monte Carlo simulations

In summary, the conversation revolved around the question of how to correlate outputs and inputs in a set of Monte Carlo simulations. The solution suggested was to calculate a covariance matrix, which would not only show the relationship between inputs and outputs, but also the relationship between different outputs. The individual then realized that their initial thought of using partial derivatives was not applicable in this situation and the covariance matrix was the correct approach. The conversation ended with the individual thanking the expert for their help.
  • #1
belliott4488
662
1
I'm pretty ignorant when it comes to statistics, so I'm hoping that there's an easy answer to my question (this is the good part of ignorance):

If I have run a set of Monte Carlo simulations of some process, where I have some set of input parameters that I've drawn from known distributions, and then some set of output variables, how do I correlate the outputs vs. the inputs? Specifically, if I have one output variable that I suspect depends strongly on just a couple of the inputs and is largely insensitive to the rest, is there a simple procedure I can apply to show this?
 
Physics news on Phys.org
  • #2
You should be able to calculate the http://en.wikipedia.org/wiki/Covariance" matrix with most software packages. This will not only tell you if some of the inputs depend strongly on some of the outputs, but it will also tell you if some of the outputs are strongly related to each other. If your input distributions are independent then you can also look at that as a "reality check".
 
Last edited by a moderator:
  • #3
Hi, again, DaleSpam (you're my new best buddy),

I figured that I was looking for a covariance matrix, but I've never calculated one where the independent variables were drawn randomly. In other words, I'm used to situations where I have a bunch of inputs that I vary one at time, so that I can see exactly how each of the outputs changes in response to the change in that one input. That gives me approximations of partial derivatives with respect to that input variable.

In my case, however, I have a set of "cases", in each of which all of the input parameters are varied. That means I can't just say, "when I change x_1 by delta, y_3 changes by this much" since all the x's were changed and I can't say (by looking at that individual run) which ones were more or less responsible for any given change in y. (x and y are my inputs and outputs, as you probably guessed.)

My gut tells me that I need to express the delta for each x as a variation from its mean value, and correlate that to the variation of each y from its mean. That should tell me which y's really jump when certain x's are tweaked hard. Wait ... did I just describe the covariance matrix ... hang on - I've got to go think this through.

Thanks, you might have just given me the push I needed to work this out.
 
  • #4
Okay - I'm done thinking! I don't know why I was thinking about partial derivatives ... except that not too long ago I wrote an optimization routine that would iteratively perturb a set of inputs in order to achieve a desired set out outputs, which it does by use of the matrix of partials. I believe that's generally called a sensitivity matrix, and it's really a different beast from a covariance matrix.

Anyway, once I remembered what a covariance matrix actually is, it was clearly all I needed.

thanks again.
 
  • #5
You are welcome! Yeah, I didn't think that matrix of partial derivatives would be what you needed if you are doing a Monte Carlo.
 

1. How do you define input and output in Monte Carlo simulations?

In Monte Carlo simulations, input refers to the parameters or variables that are used to generate random numbers, while output refers to the results or outcomes of the simulation based on those random numbers.

2. How is the correlation between input and output determined in Monte Carlo simulations?

The correlation between input and output in Monte Carlo simulations is determined by analyzing the statistical relationship between the input parameters and the resulting output. This can be done through various techniques such as scatter plots, correlation coefficients, and regression analysis.

3. What is the significance of correlating input and output in Monte Carlo simulations?

The correlation between input and output is important in Monte Carlo simulations because it allows for the identification of the most influential input parameters and their impact on the output. This can help in understanding the behavior of the system being simulated and making informed decisions based on the results.

4. How is the accuracy of the correlation determined in Monte Carlo simulations?

The accuracy of the correlation between input and output in Monte Carlo simulations can be determined by comparing the simulated results with actual data or by using statistical tests such as the Chi-square test or the Kolmogorov-Smirnov test.

5. What are some common challenges in correlating input and output in Monte Carlo simulations?

Some common challenges in correlating input and output in Monte Carlo simulations include identifying the most relevant input parameters, dealing with complex or nonlinear relationships, and determining the appropriate level of correlation for the given system or problem being simulated.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
784
  • Programming and Computer Science
Replies
4
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
12
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
Replies
67
Views
5K
  • Set Theory, Logic, Probability, Statistics
Replies
9
Views
3K
  • Nuclear Engineering
Replies
0
Views
601
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
982
  • General Math
Replies
2
Views
1K
Back
Top