08-Jan-2022 10:44:52 truncated_normal_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test truncated_normal() r8_factorial2_test(): R8_FACTORIAL2 evaluates the double factorial function. N Exact Computed 0 1 1 1 1 1 2 2 2 3 3 3 4 8 8 5 15 15 6 48 48 7 105 105 8 384 384 9 945 945 10 3840 3840 11 10395 10395 12 46080 46080 13 135135 135135 14 645120 645120 15 2027025 2027025 r8_mop_test(): R8_MOP evaluates (-1.0)^I4 as an R8. I4 R8_MOP(I4) 63 -1.0 82 1.0 -75 -1.0 83 -1.0 27 -1.0 -81 -1.0 -45 -1.0 9 -1.0 92 1.0 93 -1.0 r8poly_print_test() R8POLY_PRINT prints an R8POLY. The R8POLY: = +9.000000 * x^5 +0.780000 * x^4 +56.000000 * x^2 -3.400000 * x +12.000000 r8poly_value_horner_test(): R8POLY_VALUE_HORNER evaluates a polynomial at one point, using Horner's method. The polynomial: = +1.000000 * x^4 -10.000000 * x^3 +35.000000 * x^2 -50.000000 * x +24.000000 I X P(X) 1 0.0000 24 2 0.3333 10.8642 3 0.6667 3.45679 4 1.0000 0 5 1.3333 -0.987654 6 1.6667 -0.691358 7 2.0000 0 8 2.3333 0.493827 9 2.6667 0.493827 10 3.0000 0 11 3.3333 -0.691358 12 3.6667 -0.987654 13 4.0000 0 14 4.3333 3.45679 15 4.6667 10.8642 16 5.0000 24 r8vec_print_test(): R8VEC_PRINT prints an R8VEC. The R8VEC: 1: 123.456 2: 5e-06 3: -1e+06 4: 3.14159 normal_01_cdf_test(): NORMAL_01_CDF evaluates the Normal 01 CDF; X CDF CDF (exact) (computed) 0 0.5 0.5 0.1 0.539827837277029 0.5398278372805048 0.2 0.579259709439103 0.5792597094424672 0.3 0.6179114221889526 0.6179114221891665 0.4 0.6554217416103242 0.6554217416083834 0.5 0.6914624612740131 0.6914624612735877 0.6 0.725746882249927 0.7257468822526401 0.7 0.758036347776927 0.7580363477802913 0.8 0.7881446014166033 0.7881446014178579 0.9 0.8159398746532405 0.8159398746539517 1 0.8413447460685429 0.8413447460717163 1.5 0.9331927987311419 0.9331927987330156 2 0.9772498680518208 0.9772498680509744 2.5 0.993790334674224 0.9937903346744605 3 0.9986501019683699 0.9986501019683744 3.5 0.9997673709209645 0.9997673709209559 4 0.9999683287581669 0.9999683287581664 normal_01_cdf_inv_test() NORMAL_01_CDF_INV inverts the Normal 01 CDF; CDF X X (exact) (computed) 0.5 0 0 0.539828 0.1 0.09999999999999999 0.57926 0.2 0.1999999999999999 0.617911 0.3 0.2999999999999998 0.655422 0.4 0.4 0.691462 0.5 0.4999999999999998 0.725747 0.6 0.6000000000000016 0.758036 0.7 0.6999999999999998 0.788145 0.8 0.7999999999999998 0.81594 0.9 0.9 0.841345 1 1 0.933193 1.5 1.5 0.97725 2 2 0.99379 2.5 2.500000000000004 0.99865 3 2.999999999999997 0.999767 3.5 3.499999999999983 0.999968 4 4 normal_01_mean_test(): NORMAL_01_MEAN computes the Normal 01 mean; PDF mean = 0.000000 Sample size = 1000 Sample mean = -0.040717 Sample maximum = 3.526678 Sample minimum = -3.232038 normal_01_moment_test(): NORMAL_01_MOMENT evaluates moments of the Normal 01 PDF; Order Moment 0 1 1 0 2 1 3 0 4 3 5 0 6 15 7 0 8 105 9 0 10 945 normal_01_pdf_test(): NORMAL_01_PDF evaluates the Normal 01 PDF; X PDF -2 0.053991 -1.9 0.0656158 -1.8 0.0789502 -1.7 0.0940491 -1.6 0.110921 -1.5 0.129518 -1.4 0.149727 -1.3 0.171369 -1.2 0.194186 -1.1 0.217852 -1 0.241971 -0.9 0.266085 -0.8 0.289692 -0.7 0.312254 -0.6 0.333225 -0.5 0.352065 -0.4 0.36827 -0.3 0.381388 -0.2 0.391043 -0.1 0.396953 0 0.398942 0.1 0.396953 0.2 0.391043 0.3 0.381388 0.4 0.36827 0.5 0.352065 0.6 0.333225 0.7 0.312254 0.8 0.289692 0.9 0.266085 1 0.241971 1.1 0.217852 1.2 0.194186 1.3 0.171369 1.4 0.149727 1.5 0.129518 1.6 0.110921 1.7 0.0940491 1.8 0.0789502 1.9 0.0656158 2 0.053991 normal_01_sample_test(): NORMAL_01_SAMPLE returns samples from the normal distribution with mean 0 and standard deviation 1. 1 -0.351889 2 0.269541 3 -2.56445 4 0.465864 5 1.85356 6 1.03929 7 0.910897 8 -0.239731 9 0.180998 10 0.24425 normal_01_variance_test(): NORMAL_01_VARIANCE returns the Normal 01 variance. PDF variance = 1.000000 Sample size = 1000 Sample variance = 1.004342 normal_ms_cdf_test(): NORMAL_MS_CDF evaluates the CDF for the Normal MS distribution. PDF parameter MU = 100.000000 PDF parameter SIGMA = 15.000000 X CDF 70 0.0227501 71.5 0.0287166 73 0.0359303 74.5 0.0445655 76 0.0547993 77.5 0.0668072 79 0.0807567 80.5 0.0968005 82 0.11507 83.5 0.135666 85 0.158655 86.5 0.18406 88 0.211855 89.5 0.241964 91 0.274253 92.5 0.308538 94 0.344578 95.5 0.382089 97 0.42074 98.5 0.460172 100 0.5 101.5 0.539828 103 0.57926 104.5 0.617911 106 0.655422 107.5 0.691462 109 0.725747 110.5 0.758036 112 0.788145 113.5 0.81594 115 0.841345 116.5 0.864334 118 0.88493 119.5 0.9032 121 0.919243 122.5 0.933193 124 0.945201 125.5 0.955435 127 0.96407 128.5 0.971283 130 0.97725 normal_ms_cdf_inv_test(): NORMAL_MS_CDF_INV inverts the CDF for the Normal MS distribution. PDF parameter MU = 100.000000 PDF parameter SIGMA = 15.000000 X CDF CDF_INV 70 0.0227501 70 71.5 0.0287166 71.5 73 0.0359303 73 74.5 0.0445655 74.5 76 0.0547993 76 77.5 0.0668072 77.5 79 0.0807567 79 80.5 0.0968005 80.5 82 0.11507 82 83.5 0.135666 83.5 85 0.158655 85 86.5 0.18406 86.5 88 0.211855 88 89.5 0.241964 89.5 91 0.274253 91 92.5 0.308538 92.5 94 0.344578 94 95.5 0.382089 95.5 97 0.42074 97 98.5 0.460172 98.5 100 0.5 100 101.5 0.539828 101.5 103 0.57926 103 104.5 0.617911 104.5 106 0.655422 106 107.5 0.691462 107.5 109 0.725747 109 110.5 0.758036 110.5 112 0.788145 112 113.5 0.81594 113.5 115 0.841345 115 116.5 0.864334 116.5 118 0.88493 118 119.5 0.9032 119.5 121 0.919243 121 122.5 0.933193 122.5 124 0.945201 124 125.5 0.955435 125.5 127 0.96407 127 128.5 0.971283 128.5 130 0.97725 130 normal_ms_mean_test(): NORMAL_MS_MEAN computes the mean of the Normal MS distribution. PDF parameter MU = 100.000000 PDF parameter SIGMA = 15.000000 PDF mean = 100.000000 Sample size = 1000 Sample mean = 100.489287 Sample maximum = 151.993899 Sample minimum = 47.626873 normal_ms_moment_test(): NORMAL_MS_MOMENT evaluates the moments of the Normal MS distribution. Mu = 0, Sigma = 1 Order Moment 0 1 1 1 0 0 2 1 1 3 0 0 4 3 3 5 0 0 6 15 15 7 0 0 8 105 105 Mu = 2, Sigma = 1 Order Moment 0 1 1 1 2 2 2 5 5 3 14 14 4 43 43 5 142 142 6 499 499 7 1850 1850 8 7193 7193 Mu = 10, Sigma = 2 Order Moment 0 1 1 1 10 10 2 104 104 3 1120 1120 4 12448 12448 5 142400 142400 6 1.67296e+06 1.67296e+06 7 2.01472e+07 2.01472e+07 8 2.48315e+08 2.48315e+08 Mu = 0, Sigma = 2 Order Moment 0 1 1 1 0 0 2 4 4 3 0 0 4 48 48 5 0 0 6 960 960 7 0 0 8 26880 26880 normal_ms_moment_central_test(): NORMAL_MS_MOMENT_CENTRAL evaluates the central moments of the Normal MS distribution. Mu = 0, Sigma = 1 Order Moment 0 1 1 1 0 0 2 1 1 3 0 0 4 3 3 5 0 0 6 15 15 7 0 0 8 105 105 Mu = 2, Sigma = 1 Order Moment 0 1 1 1 0 0 2 1 1 3 0 0 4 3 3 5 0 0 6 15 15 7 0 0 8 105 105 Mu = 10, Sigma = 2 Order Moment 0 1 1 1 0 0 2 4 4 3 0 0 4 48 48 5 0 0 6 960 960 7 0 0 8 26880 26880 Mu = 0, Sigma = 2 Order Moment 0 1 1 1 0 0 2 4 4 3 0 0 4 48 48 5 0 0 6 960 960 7 0 0 8 26880 26880 normal_ms_pdf_test() NORMAL_MS_PDF evaluates the PDF for the Normal MS distribution. PDF parameter MU = 100.000000 PDF parameter SIGMA = 15.000000 X PDF 70 0.0035994 71.5 0.00437439 73 0.00526334 74.5 0.00626994 76 0.00739472 77.5 0.00863451 79 0.00998183 80.5 0.0114246 82 0.0129457 83.5 0.0145235 85 0.0161314 86.5 0.017739 88 0.0193128 89.5 0.0208169 91 0.022215 92.5 0.023471 94 0.0245513 95.5 0.0254259 97 0.0260695 98.5 0.0264635 100 0.0265962 101.5 0.0264635 103 0.0260695 104.5 0.0254259 106 0.0245513 107.5 0.023471 109 0.022215 110.5 0.0208169 112 0.0193128 113.5 0.017739 115 0.0161314 116.5 0.0145235 118 0.0129457 119.5 0.0114246 121 0.00998183 122.5 0.00863451 124 0.00739472 125.5 0.00626994 127 0.00526334 128.5 0.00437439 130 0.0035994 normal_ms_sample_test(): NORMAL_MS_SAMPLE samples the Normal MS distribution. PDF parameter MU = 100.000000 PDF parameter SIGMA = 15.000000 1 82.9252 2 129.359 3 73.5516 4 95.15 5 113.089 6 101.769 7 77.4542 8 113.828 9 102.449 10 87.7799 normal_ms_variance_test(): NORMAL_MS_VARIANCE returns the variance of the Normal MS distribution. PDF parameter MU = 100.000000 PDF parameter SIGMA = 15.000000 PDF variance = 225.000000 Sample size = 1000 Sample variance = 219.840737 TRUNCATED_NORMAL_A_CDF_TEST TRUNCATED_NORMAL_A_CDF evaluates the lower Truncated Normal CDF. The "parent" normal distribution has mean = mu standard deviation = sigma The parent distribution is truncated to the interval [a,+oo) Stored Computed X Mu S A CDF CDF 90.0 100.0 25.0 50.0 0.32932 0.32932 92.0 100.0 25.0 50.0 0.359922 0.359922 94.0 100.0 25.0 50.0 0.391318 0.391318 96.0 100.0 25.0 50.0 0.423321 0.423321 98.0 100.0 25.0 50.0 0.455737 0.455737 100.0 100.0 25.0 50.0 0.48836 0.48836 102.0 100.0 25.0 50.0 0.520984 0.520984 104.0 100.0 25.0 50.0 0.553399 0.553399 106.0 100.0 25.0 50.0 0.585403 0.585403 108.0 100.0 25.0 50.0 0.616798 0.616798 110.0 100.0 25.0 50.0 0.6474 0.6474 TRUNCATED_NORMAL_A_CDF_INV_TEST TRUNCATED_NORMAL_A_CDF_INV inverts the CDF for the lower Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval [50,+00) X CDF CDF_INV 98.2954 0.460547 98.2954 109.871 0.645452 109.871 101.542 0.513521 101.542 122.756 0.814426 122.756 70.3388 0.0971832 70.3388 98.4897 0.463714 98.4897 106.279 0.589817 106.279 79.461 0.187172 79.461 107.648 0.61133 107.648 63.7466 0.051942 63.7466 TRUNCATED_NORMAL_A_MEAN_TEST TRUNCATED_NORMAL_A_MEAN computes the mean of the lower Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval [50,+oo) PDF mean = 101.381 Sample size = 1000 Sample mean = 101.025 Sample maximum = 174.004 Sample minimum = 50.1041 TRUNCATED_NORMAL_A_MOMENT_TEST TRUNCATED_NORMAL_A_MOMENT evaluates the moments of the Lower Truncated Normal PDF: Test = 1, Mu = 0, Sigma = 1, A = 0 Order Moment 0 1 1 0.797885 2 1 3 1.59577 4 3 5 6.38308 6 15 7 38.2985 8 105 Test = 2, Mu = 0, Sigma = 1, A = -10 Order Moment 0 1 1 7.6946e-23 2 1 3 7.84849e-21 4 3 5 8.00854e-19 6 15 7 8.17511e-17 8 105 Test = 3, Mu = 0, Sigma = 1, A = 10 Order Moment 0 1 1 10.0981 2 101.981 3 1030.01 4 10404 5 105101 6 1.06183e+06 7 1.07287e+07 8 1.08414e+08 Test = 4, Mu = 0, Sigma = 2, A = -10 Order Moment 0 1 1 2.97344e-06 2 3.99997 3 0.000321132 4 47.9967 5 0.0348725 6 959.636 7 3.81038 8 26840.1 Test = 5, Mu = 0, Sigma = 2, A = 10 Order Moment 0 1 1 10.373 2 107.73 3 1120.28 4 11665.8 5 121655 6 1.27062e+06 7 1.32927e+07 8 1.39307e+08 Test = 6, Mu = -5, Sigma = 1, A = -10 Order Moment 0 1 1 -5 2 26 3 -140 4 777.997 5 -4449.97 6 26139.7 7 -157397 8 969947 TRUNCATED_NORMAL_A_PDF_TEST TRUNCATED_NORMAL_A_PDF evaluates the lower Truncated Normal PDF. The "parent" normal distribution has mean = mu standard deviation = sigma The parent distribution is truncated to the interval [a,+oo) Stored Computed X Mu S A PDF PDF 90.0 100.0 25.0 50.0 0.0150737 0.0150737 92.0 100.0 25.0 50.0 0.0155142 0.0155142 94.0 100.0 25.0 50.0 0.0158656 0.0158656 96.0 100.0 25.0 50.0 0.0161215 0.0161215 98.0 100.0 25.0 50.0 0.016277 0.016277 100.0 100.0 25.0 50.0 0.0163292 0.0163292 102.0 100.0 25.0 50.0 0.016277 0.016277 104.0 100.0 25.0 50.0 0.0161215 0.0161215 106.0 100.0 25.0 50.0 0.0158656 0.0158656 108.0 100.0 25.0 50.0 0.0155142 0.0155142 110.0 100.0 25.0 50.0 0.0150737 0.0150737 TRUNCATED_NORMAL_A_SAMPLE_TEST TRUNCATED_NORMAL_A_SAMPLE samples the lower Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval [50,+oo) 1 123.059 2 116.575 3 117.96 4 144.383 5 98.656 6 120.321 7 95.9533 8 139.957 9 50.5811 10 152.252 TRUNCATED_NORMAL_A_VARIANCE_TEST TRUNCATED_NORMAL_A_VARIANCE computes the variance. of the lower Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval [50,+oo) PDF variance = 554.032 Sample size = 1000 Sample variance = 516.293 TRUNCATED_NORMAL_AB_CDF_TEST TRUNCATED_NORMAL_AB_CDF evaluates the Truncated Normal CDF. The "parent" normal distribution has mean = mu standard deviation = sigma The parent distribution is truncated to the interval [a,b] Stored Computed X Mu S A B CDF CDF 90.0 100.0 25.0 50.0 150.0 0.337169 0.337169 92.0 100.0 25.0 50.0 150.0 0.368501 0.368501 94.0 100.0 25.0 50.0 150.0 0.400644 0.400644 96.0 100.0 25.0 50.0 150.0 0.433411 0.433411 98.0 100.0 25.0 50.0 150.0 0.466599 0.466599 100.0 100.0 25.0 50.0 150.0 0.5 0.5 102.0 100.0 25.0 50.0 150.0 0.533401 0.533401 104.0 100.0 25.0 50.0 150.0 0.566589 0.566589 106.0 100.0 25.0 50.0 150.0 0.599356 0.599356 108.0 100.0 25.0 50.0 150.0 0.631499 0.631499 110.0 100.0 25.0 50.0 150.0 0.662831 0.662831 TRUNCATED_NORMAL_AB_CDF_INV_TEST TRUNCATED_NORMAL_AB_CDF_INV inverts the CDF for the Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval [50,150] X CDF CDF_INV 140.781 0.969965 140.781 103.897 0.564883 103.897 81.5729 0.21769 81.5729 125.014 0.857763 125.014 125.436 0.861999 125.436 88.433 0.313302 88.433 89.3365 0.326984 89.3365 123.32 0.840013 123.32 99.5533 0.492533 99.5533 63.5265 0.0519025 63.5265 TRUNCATED_NORMAL_AB_MEAN_TEST TRUNCATED_NORMAL_AB_MEAN computes the mean of the Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval [50,150] PDF mean = 100 Sample size = 1000 Sample mean = 100.304 Sample maximum = 149.394 Sample minimum = 50.1606 TRUNCATED_NORMAL_AB_MOMENT_TEST TRUNCATED_NORMAL_AB_MOMENT evaluates the moments of the Truncated Normal PDF: Test = 1, Mu = 0, Sigma = 1, A = -1, B = 1 Order Moment 0 1 1 0 2 0.291125 3 0 4 0.1645 5 0 6 0.113627 7 0 8 0.086514 Test = 2, Mu = 0, Sigma = 1, A = 0, B = 1 Order Moment 0 1 1 0.459862 2 0.291125 3 0.21085 4 0.1645 5 0.134523 6 0.113627 7 0.0982649 8 0.086514 Test = 3, Mu = 0, Sigma = 1, A = -1, B = 0 Order Moment 0 1 1 -0.459862 2 0.291125 3 -0.21085 4 0.1645 5 -0.134523 6 0.113627 7 -0.0982649 8 0.086514 Test = 4, Mu = 0, Sigma = 2, A = -1, B = 1 Order Moment 0 1 1 0 2 0.322357 3 0 4 0.190636 5 0 6 0.135077 7 0 8 0.104524 Test = 5, Mu = 1, Sigma = 1, A = 0, B = 2 Order Moment 0 1 1 1 2 1.29113 3 1.87338 4 2.91125 5 4.73375 6 7.94801 7 13.6665 8 23.9346 Test = 6, Mu = 0, Sigma = 1, A = 0.5, B = 2 Order Moment 0 1 1 1.04299 2 1.23812 3 1.63828 4 2.35698 5 3.60741 6 5.77795 7 9.57285 8 16.2735 Test = 7, Mu = 0, Sigma = 1, A = -2, B = 2 Order Moment 0 1 1 0 2 0.773741 3 0 4 1.41619 5 0 6 3.46081 7 0 8 9.74509 Test = 8, Mu = 0, Sigma = 1, A = -4, B = 4 Order Moment 0 1 1 0 2 0.998929 3 0 4 2.97966 5 0 6 14.6242 7 0 8 97.9836 Test = 9, Mu = 5, Sigma = 0.5, A = 4, B = 7 Order Moment 0 1 1 5.02756 2 25.4978 3 130.441 4 673.075 5 3502.72 6 18382.1 7 97269.7 8 518913 TRUNCATED_NORMAL_AB_PDF_TEST TRUNCATED_NORMAL_AB_PDF evaluates the Truncated Normal PDF. The "parent" normal distribution has mean = mu standard deviation = sigma The parent distribution is truncated to the interval [a,b] Stored Computed X Mu S A B PDF PDF 90.0 100.0 25.0 50.0 150.0 0.015433 0.015433 92.0 100.0 25.0 50.0 150.0 0.0158839 0.0158839 94.0 100.0 25.0 50.0 150.0 0.0162438 0.0162438 96.0 100.0 25.0 50.0 150.0 0.0165058 0.0165058 98.0 100.0 25.0 50.0 150.0 0.016665 0.016665 100.0 100.0 25.0 50.0 150.0 0.0167184 0.0167184 102.0 100.0 25.0 50.0 150.0 0.016665 0.016665 104.0 100.0 25.0 50.0 150.0 0.0165058 0.0165058 106.0 100.0 25.0 50.0 150.0 0.0162438 0.0162438 108.0 100.0 25.0 50.0 150.0 0.0158839 0.0158839 110.0 100.0 25.0 50.0 150.0 0.015433 0.015433 TRUNCATED_NORMAL_AB_SAMPLE_TEST TRUNCATED_NORMAL_AB_SAMPLE samples the Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval [50,150] 1 77.9809 2 113.833 3 82.6786 4 80.7342 5 81.4504 6 142.38 7 92.836 8 108.239 9 62.5748 10 82.6833 TRUNCATED_NORMAL_AB_VARIANCE_TEST TRUNCATED_NORMAL_AB_VARIANCE computes the variance. of the Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval [50,150] PDF variance = 483.588 Sample size = 1000 Sample variance = 470.646 TRUNCATED_NORMAL_B_CDF_TEST TRUNCATED_NORMAL_B_CDF evaluates the upper Truncated Normal CDF. The "parent" normal distribution has mean = mu standard deviation = sigma The parent distribution is truncated to the interval (-oo,b] Stored Computed X Mu S B CDF CDF 90.0 100.0 25.0 150.0 0.3526 0.3526 92.0 100.0 25.0 150.0 0.383202 0.383202 94.0 100.0 25.0 150.0 0.414597 0.414597 96.0 100.0 25.0 150.0 0.446601 0.446601 98.0 100.0 25.0 150.0 0.479016 0.479016 100.0 100.0 25.0 150.0 0.51164 0.51164 102.0 100.0 25.0 150.0 0.544263 0.544263 104.0 100.0 25.0 150.0 0.576679 0.576679 106.0 100.0 25.0 150.0 0.608682 0.608682 108.0 100.0 25.0 150.0 0.640078 0.640078 110.0 100.0 25.0 150.0 0.67068 0.67068 TRUNCATED_NORMAL_B_CDF_INV_TEST TRUNCATED_NORMAL_B_CDF_INV inverts the CDF for the upper Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval (-oo,150] X CDF CDF_INV 45.4337 0.014869 45.4337 56.8891 0.0432998 56.8891 76.7476 0.180262 76.7476 78.5915 0.200465 78.5915 113.326 0.719358 113.326 95.7683 0.442868 95.7683 123.487 0.845493 123.487 92.4235 0.38979 92.4235 122.741 0.837552 122.741 115.426 0.748419 115.426 TRUNCATED_NORMAL_B_MEAN_TEST TRUNCATED_NORMAL_B_MEAN computes the mean of the upper Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval (-oo,150] PDF mean = 98.6188 Sample size = 1000 Sample mean = 96.4945 Sample maximum = 147.545 Sample minimum = 24.5652 TRUNCATED_NORMAL_B_MOMENT_TEST TRUNCATED_NORMAL_B_MOMENT evaluates the moments of the Upper Truncated Normal PDF: Test = 1, Mu = 0, Sigma = 1, B = 0 Order Moment 0 1 1 -0.7978845608 2 1 3 -1.595769122 4 3 5 -6.383076486 6 15 7 -38.29845892 8 105 Test = 2, Mu = 0, Sigma = 1, B = 10 Order Moment 0 1 1 -7.694598627e-23 2 1 3 -7.848490599e-21 4 3 5 -8.008538251e-19 6 15 7 -8.175110922e-17 8 105 Test = 3, Mu = 0, Sigma = 1, B = -10 Order Moment 0 1 1 -10.09809323 2 101.9809323 3 -1030.00551 4 10404.03603 5 -105100.9544 6 1061829.504 7 -10728698.96 8 108413738.9 Test = 4, Mu = 0, Sigma = 2, B = 10 Order Moment 0 1 1 -2.973439882e-06 2 3.999970266 3 -0.0003211315072 4 47.99666975 5 -0.03487250293 6 959.636051 7 -3.810379952 8 26840.07503 Test = 5, Mu = 0, Sigma = 2, B = -10 Order Moment 0 1 1 -10.37300793 2 107.7300793 3 -1120.284857 4 11665.76889 5 -121654.6371 6 1270616.171 7 -13292719.22 8 139307332.1 Test = 6, Mu = 5, Sigma = 1, B = 10 Order Moment 0 1 1 4.999998513 2 25.9999777 3 139.9997369 4 777.9971306 5 4449.969733 6 26139.68565 7 157396.7599 8 969946.7319 TRUNCATED_NORMAL_B_PDF_TEST TRUNCATED_NORMAL_B_PDF evaluates the Upper Truncated Normal PDF. The "parent" normal distribution has mean = mu standard deviation = sigma The parent distribution is truncated to the interval (-oo,b] Stored Computed X Mu S B PDF PDF 90.0 100.0 25.0 150.0 0.0150737 0.0150737 92.0 100.0 25.0 150.0 0.0155142 0.0155142 94.0 100.0 25.0 150.0 0.0158656 0.0158656 96.0 100.0 25.0 150.0 0.0161215 0.0161215 98.0 100.0 25.0 150.0 0.016277 0.016277 100.0 100.0 25.0 150.0 0.0163292 0.0163292 102.0 100.0 25.0 150.0 0.016277 0.016277 104.0 100.0 25.0 150.0 0.0161215 0.0161215 106.0 100.0 25.0 150.0 0.0158656 0.0158656 108.0 100.0 25.0 150.0 0.0155142 0.0155142 110.0 100.0 25.0 150.0 0.0150737 0.0150737 TRUNCATED_NORMAL_B_SAMPLE_TEST TRUNCATED_NORMAL_B_SAMPLE samples the upper Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval (-oo,150] 1 114.129 2 143.379 3 104.717 4 99.4807 5 101.222 6 105.849 7 116.621 8 105.493 9 113.554 10 95.2921 TRUNCATED_NORMAL_B_VARIANCE_TEST TRUNCATED_NORMAL_B_VARIANCE computes the variance. of the upper Truncated Normal Distribution. The "parent" normal distribution has mean = 100 standard deviation = 25 The parent distribution is truncated to the interval (-oo,150] PDF variance = 554.032 Sample size = 1000 Sample variance = 556.19 truncated_normal_test(): Normal end of execution. 08-Jan-2022 10:44:52