tell me about the confidence interval how is it calculated and what does shifted mean here also talk about the values from the columns in tally 1 what each column represents:
1mcnpx version 27e ld=Thu Mar 03 08:00:00 MST 2011 09/16/24 02:29:46
*************************************************************************************** probid = 09/16/24 02:29:46
i = Tl208.i o = test1.o
code
*
code
MCNPX *
code
*
Copyright 2007. Los Alamos National Security, LLC. *
All rights reserved. *
code
*
This material was produced under U.S. Government contract *
DE-AC52-06NA25396 for Los Alamos National Laboratory, *
which is operated by Los Alamos National Security, LLC *
for the U.S. Department of Energy. The Government is *
granted for itself and others acting on its behalf a *
paid-up, nonexclusive, irrevocable worldwide license in *
this material to reproduce, prepare derivative works, and *
works, and perform publicly and display publicly. *
Beginning five (5) years after June 1, 2006, subject to *
additional five-year worldwide renewals, the Government *
is granted for itself and others acting on its behalf *
a paid-up, nonexclusive, irrevocable worldwide license *
in this material to reproduce, prepare derivative works, *
distribute copies to the public, perform publicly and *
display publicly, and to permit others to do so. *
code
*
NEITHER THE UNITED STATES NOR THE UNITED STATES *
DEPARTMENT OF ENERGY, NOR LOS ALAMOS NATIONAL SECURITY, *
LLC, NOR ANY OF THEIR EMPLOYEES, MAKES ANY WARRANTY, *
EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL LIABILITY OR *
Assistant
RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR *
USEFULNESS OF ANY INFORMATION, APPARATUS, PRODUCT, OR *
PROCESS DISCLOSED, OR REPRESENTS THAT ITS USE WOULD NOT *
INFRINGE PRIVATELY OWNED RIGHTS. *
code
*
code
1- Tl208 Beta Source
2- c --------------- cell card------------------
3- 1 1 -11.34 -10 imp:p,e=1
4- 2 0 10 -11 imp:p,e=1
5- 3 0 11 imp:p,e=0
6-
7- c ---------------surface card----------------
8- 10 so 0.2
9- 11 so 20
number of photons banked 120666 average time of (shakes) cutoffs
photon tracks per source particle 3.9540E+00 escape 6.6832E-02 tco 1.0000E+34
photon collisions per source particle 1.4292E+00 capture 1.6645E-04 eco 1.0000E-03
total photon collisions 142921 capture or escape 1.8258E-03 wc1 -5.0000E-01
any termination 6.4486E-04 wc2 -2.5000E-01
electron creation tracks weight energy electron loss tracks weight energy
(per source particle) (per source particle)
number of electrons banked 9359216 cutoffs
electron tracks per source particle 9.4592E+01 tco 1.0000E+34
electron substeps per source particle 1.7068E+04 eco 1.0000E-03
total electron substeps 1706778867 wc1 0.0000E+00
wc2 0.0000E+00
computer time so far in this run 9.91 minutes maximum number ever in bank 193
computer time in mcrun 9.91 minutes bank overflows to backup file 0
source particles per minute 1.0092E+04 dynamic storage 0 words, 0 bytes.
random numbers generated 8309085009 most random numbers used was 413927 in history 21470
warning. random number stride 152917 exceeded 9966 times.
range of sampled source weights = 9.9889E-01 to 9.9889E-01
1photon activity in each cell print table 126
code
tracks population collisions collisions number flux average average
cell entering * weight weighted weighted track weight track mfp
(per history) energy energy (relative) (cm)
1 1 0 120666 142921 1.4276E+00 2.2891E-01 2.2891E-01 9.9889E-01 1.8408E-01
2 2 3476 3476 0 0.0000E+00 3.8500E-01 3.8500E-01 9.9889E-01 0.0000E+00
total 3476 124142 142921 1.4276E+00
1electron activity in each cell print table 126
code
tracks population substeps substeps number flux average average
cell entering * weight weighted weighted track weight track mfp
(per history) energy energy (relative) (cm)
1 1 100000 9459216 1706778867 1.7049E+04 3.4392E-01 4.8287E-01 9.9889E-01 2.4386E-04
2 2 22 22 0 0.0000E+00 2.3398E-01 2.6003E-01 9.9889E-01 0.0000E+00
total 100022 9459238 1706778867 1.7049E+04
1tally 1 nps = 100000
tally type 1 number of particles crossing a surface.
particle(s): photon
normed average tally per history = 3.47215E-02 unnormed average tally per history = 3.47215E-02
estimated tally relative error = 0.0168 estimated variance of the variance = 0.0003
relative error from zero tallies = 0.0167 relative error from nonzero scores = 0.0017
number of nonzero history tallies = 3442 efficiency for the nonzero tallies = 0.0344
history number of largest tally = 2830 largest unnormalized history tally = 1.99778E+00
(largest tally)/(average tally) = 5.75374E+01 (largest tally)/(avg nonzero tally)= 1.98044E+00
if the largest history score sampled so far were to occur on the next history, the tfc bin quantities would change as follows:
code
estimated quantities value at nps value at nps+1 value(nps+1)/value(nps)-1.
mean 3.47215E-02 3.47411E-02 0.000565
relative error 1.68320E-02 1.68318E-02 -0.000011
variance of the variance 2.85746E-04 2.86328E-04 0.002036
shifted center 3.47263E-02 3.47263E-02 0.000000
figure of merit 3.56197E+02 3.56205E+02 0.000023
the estimated slope of the 201 largest tallies starting at 7.95525E-01 appears to be decreasing at least exponentially.
the history score probability density function appears to have an unsampled region at the largest history scores: please examine.
results of 10 statistical checks for the estimated answer for the tally fluctuation chart (tfc) bin of tally 1
tfc bin --mean-- ---------relative error--------- ----variance of the variance---- --figure of merit-- -pdf-
behavior behavior value decrease decrease rate value decrease decrease rate value behavior slope
desired random <0.10 yes 1/sqrt(nps) <0.10 yes 1/nps constant random >3.00
observed increase 0.02 yes yes 0.00 yes yes constant increase 10.00
passed? no yes yes yes yes yes yes yes no yes
abscissa ordinate log plot of tally probability density function in tally fluctuation chart bin(d=decade,slope=10.0)
tally number num den log den:d---------------------------------------d----------------------------------------d------------------
1.00+00 3408 1.66-01 -0.781 ||******************
1.26+00 0 0.00+00 0.000 | |
1.58+00 0 0.00+00 0.000 | |
2.00+00 0 0.00+00 0.000 | |
2.51+00 34 6.58-04 -3.182 * | |
total 3442 3.44-02 d---------------------------------------d----------------------------------------d------------------
cumulative tally number for tally 1 nonzero tally mean(m) = 1.009E+00 nps = 100000 print table 162
abscissa cum ordinate plot of the cumulative number of tallies in the tally fluctuation chart bin from 0 to 100 percent
tally number cum pct:--------10--------20--------30--------40--------50--------60--------70--------80--------90-------100
1.00000E+00 3408 99.012|||||||||||
1.25893E+00 3408 99.012|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|
1.58490E+00 3408 99.012|||||||||||
1.99527E+00 3408 99.012|||||||||||
2.51188E+00 3442 100.000|||||||||||
total 3442 100.000:--------10--------20--------30--------40--------50--------60--------70--------80--------90-------100
abscissa cum ordinate plot of the cumulative tally in the tally fluctuation chart bin from 0 to 100 percent
tally tally/nps cum pct:--------10--------20--------30--------40--------50--------60--------70--------80--------90-------100
1.000E+00 3.404E-02 98.044|||||||||*|**** |
1.259E+00 3.404E-02 98.044|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmmm|mmmmmmmm |
1.585E+00 3.404E-02 98.044|*|*|*|*|*|*||||** |
1.995E+00 3.404E-02 98.044|****|*|*|*|*|*||||** |
2.512E+00 3.472E-02 100.000|****|*|*|*|*|*|*|*|*|*****|
total 3.47215E-02 100.000:--------10--------20--------30--------40--------50--------60--------70--------80--------90-------100
1status of the statistical checks used to form confidence intervals for the mean for each tally bin
tally result of statistical checks for the tfc bin (the first check not passed is listed) and error magnitude check for all bins
code
1 missed 2 of 10 tfc bin checks: the estimated mean has a trend during the last half of the problem
missed all bin error check: 172 tally bins had 51 bins with zeros and 115 bins with relative errors exceeding 0.10
the 10 statistical checks are only for the tally fluctuation chart bin and do not apply to other tally bins.
the tally bins with zeros may or may not be correct: compare the source, cutoffs, multipliers, et cetera with the tally bins.
warning. 1 of the 1 tally fluctuation chart bins did not pass all 10 statistical checks.
warning. 1 of the 1 tallies had bins with relative errors greater than recommended.
1tally fluctuation charts
run terminated when 100000 particle histories were done.
computer time = 9.91 minutes
mcnpx version 27e Thu Mar 03 08:00:00 MST 2011 09/16/24 02:39:41 probid = 09/16/24 02:29:46
Understanding Confidence Intervals, Shifted Means, and Tally Output in MCNPX
1. Confidence Interval Calculation in MCNPX
In Monte Carlo simulations like MCNPX (Monte Carlo N-Particle eXtended), results are inherently statistical because they are based on random sampling techniques. As such, any estimated quantity (like flux, dose, reaction rates, etc.) comes with an associated statistical uncertainty. MCNPX calculates confidence intervals to quantify this uncertainty.
How is the Confidence Interval Calculated?
The primary statistical measure MCNPX reports for tallies is the standard deviation (σ), which is used to calculate the relative error (R):
[
R = \frac{\sigma}{\mu}
]
where:
( \sigma ) is the standard deviation of the tally results.
( \mu ) is the mean value of the tally.
The standard 68% confidence interval (assuming a normal distribution) for the mean is then:
[
\mu \pm \sigma
]
However, since Monte Carlo tallies can have non-normal distributions, especially with rare high-scoring events, MCNPX uses more robust methods to estimate the confidence interval.
Key Steps in Confidence Interval Calculation:
Compute the Mean (( \mu )) and Standard Deviation (( \sigma )): For each tally, MCNPX keeps track of the sum and sum of squares of the scores to compute these values.
Calculate the Relative Error (R): As above, ( R = \frac{\sigma}{\mu} ).
Estimate the Variance of the Variance: This helps assess the reliability of the estimated uncertainty.
Statistical Checks: MCNPX performs a series of statistical checks (10 in total) to evaluate the quality of the tally results, including checks for trends, convergence, and distribution shape.
2. What Does "Shifted" Mean Here?
Shifted Confidence Interval Explanation:
In the context of MCNPX, a shifted confidence interval refers to an adjustment made to the estimated mean of the tally to account for skewness or bias in the tally distribution, particularly due to rare but large-scoring events (also known as outliers).
When the statistical checks indicate that the tally results may not be adequately represented by a normal distribution (e.g., presence of a long tail or high variance), MCNPX adjusts (shifts) the mean to better reflect the underlying data distribution.
Why is Shifting Necessary?
Non-Normal Distributions: Tallies with significant skewness or kurtosis can lead to underestimation or overestimation of the true mean if standard methods are used.
High-Score Outliers: Rare, large tally contributions can disproportionately affect the mean and variance, necessitating a correction.
Statistical Reliability: Adjusting the mean and confidence interval improves the reliability of the simulation results.
How is the Shift Calculated?
The shift is typically a small adjustment to the mean based on the observed distribution of tally scores. The specific calculation involves higher-order statistics and is automatically handled by MCNPX.
This indicates that the shift is 0.01% of the mean, suggesting a minor adjustment due to statistical checks.
3. Understanding the Values from the Columns in Tally 1
Tally Output Explanation:
In MCNPX, a tally is a way to score a specific quantity, such as particle flux, current, or energy deposition. The output for a tally includes several columns, each representing specific information.
Structure of Tally 1 Output:
code
tally 1 nps = 100000
tally type 1 number of particles crossing a surface.
particle(s): photon
surface 10
energy
0.0000E+00 0.00000E+00 0.0000
1.0000E-02 0.00000E+00 0.0000
2.0000E-02 0.00000E+00 0.0000
3.0000E-02 0.00000E+00 0.0000
4.0000E-02 9.98892E-06 1.0000
...
total 3.47215E-02 0.0168
Columns Explained:
Energy (Column 1):
Represents the upper boundary of the energy bin.
The energies are typically in units of MeV (Mega-electron Volts).
For example, 4.0000E-02 MeV corresponds to 0.04 MeV.
Tally Value (Column 2):
This is the tally result for that energy bin.
Represents the particle flux or current per source particle, depending on the tally type.
For Tally Type 1 (surface current), it's the average number of particles crossing the specified surface per source particle in that energy bin.
The values are normalized per source particle, unless otherwise specified.
Relative Error (Column 3):
Represents the statistical relative error (uncertainty) associated with the tally value.
Given as a decimal fraction, where 1.0000 corresponds to 100% relative error, 0.5000 corresponds to 50%, and so on.
The relative error is calculated as:
[
\text{Relative Error} = \frac{\sigma}{\mu}
]
where ( \sigma ) is the standard deviation and ( \mu ) is the mean tally value for that bin.
High relative errors (approaching or equal to 1) indicate low statistical reliability, typically due to a low number of particle histories contributing to that bin.
Interpretation of an Example Row:
code
4.0000E-02 9.98892E-06 1.0000
Energy Bin Upper Limit: 0.04 MeV.
Tally Value: ( 9.98892 \times 10^{-6} ) particles crossing surface 10 per source particle, in this energy bin.
Relative Error: 1.0000 (100% relative error), indicating very high statistical uncertainty in this bin.
Understanding the "Total" Line:
code
total 3.47215E-02 0.0168
Total Tally Value: ( 3.47215 \times 10^{-2} ) particles per source particle across all energy bins.
Total Relative Error: 0.0168 (1.68%), indicating good statistical reliability for the total tally.
Why Do Some Bins Have High Relative Errors?
Low Counts: Energy bins with very few or zero particle crossings will have high relative errors due to insufficient sampling.
Statistical Nature: Since MCNPX simulations rely on random sampling, some bins may not receive enough events to reduce the statistical uncertainty.
Improving Statistical Accuracy:
Increase Number of Histories (nps): Running more particle histories can improve the statistical accuracy and reduce relative errors.
Variance Reduction Techniques: Methods like importance sampling or weight windows can help improve sampling in low-probability regions.
Adjust Energy Bins: Combining energy bins with low counts can increase the number of events per bin, reducing relative errors.
Additional Information from the Output:
Tally Fluctuation Chart (TFC): Provides statistical analysis of the tally results, including mean, relative error, variance of variance, and figure of merit (FOM). The TFC helps assess the quality and convergence of the tally.
Statistical Checks: MCNPX performs 10 statistical checks on the tally data to ensure reliability. Warnings are issued if checks are not passed, indicating potential issues with the simulation statistics.
Understanding Warnings and Messages:
"Warning. The tally in the tally fluctuation chart bin did not pass 2 of the 10 statistical checks.":
Indicates that the tally results may have statistical issues that could affect the reliability of the results.
Users should examine the tally distribution, check for convergence, and consider running more histories or adjusting simulation parameters.
"Warning. 1 of the 1 tallies had bins with relative errors greater than recommended.":
Suggests that one or more bins have relative errors exceeding acceptable levels (often 10%).
Users might need to investigate these bins and consider variance reduction techniques.
Summary:
Confidence intervals in MCNPX quantify the statistical uncertainty of tally results, calculated using the mean and standard deviation of the tally scores.
A shifted confidence interval adjusts the mean to account for non-normal distributions and high-scoring outliers, enhancing result reliability.
In tally outputs, each row typically includes:
Energy bin upper limit (Column 1)
Tally value (Column 2): Average flux or current per source particle in that bin.
Relative error (Column 3): Statistical uncertainty of the tally value.
High relative errors indicate low statistical reliability and may necessitate additional particle histories or variance reduction techniques to improve accuracy.
Recommendations for Users:
Review Tally Statistics: Carefully examine the relative errors and warnings in the output to assess the reliability of your simulation results.
Increase Particle Histories: If relative errors are high, consider increasing the number of particle histories (nps) to improve statistical accuracy.
Employ Variance Reduction: Utilize variance reduction methods available in MCNPX to focus computational effort on areas of interest or low-probability events.
Consult Documentation: Refer to the MCNPX User's Manual for detailed explanations of tallies, statistical methods, and best practices for running simulations.
By understanding how MCNPX calculates confidence intervals and interprets tally outputs, you can better analyze simulation results and ensure the accuracy and reliability of your modeling efforts.