Essential use of BeforeIT

We start by importing the BeforeIT library and other useful libraries.

import BeforeIT as Bit

using Plots

We then initialise the model loading some precomputed set of parameters and by specifying a number of epochs. In another tutorial we will illustrate how to compute parameters and initial conditions.

parameters = Bit.AUSTRIA2010Q1.parameters
initial_conditions = Bit.AUSTRIA2010Q1.initial_conditions
Dict{String, Any} with 21 entries:
  "sb_inact" => 2.23847
  "C_G"      => [11482.3; 11556.2; … ; 14578.2; 14714.8;;]
  "E_CB"     => 1.0618e5
  "D_RoW"    => 0.0
  "sb_other" => 0.590286
  "L_I"      => 236919.0
  "omega"    => 0.85
  "r_bar"    => 0.00164593
  "N_s"      => [123.0; 18.0; … ; 5.0; 60.0;;]
  "C_E"      => [17384.5; 17752.9; … ; 38786.7; 38617.8;;]
  "D_H"      => 219841.0
  "K_H"      => 4.05377e5
  "L_G"      => 2.32611e5
  "pi"       => [-0.00749736; -0.00789543; … ; 0.00530319; 0.00100796;;]
  "w_UB"     => 4.06546
  "Y"        => [1.04531e5; 1.05062e5; … ; 1.35709e5; 1.34636e5;;]
  "Y_I"      => [19804.6; 19944.1; … ; 36883.2; 36575.9;;]
  "Y_EA"     => 2.35485e6
  "D_I"      => 54049.0
  ⋮          => ⋮

We can now initialise the model, by specifying in advance the maximum number of epochs.

T = 16
model = Bit.init_model(parameters, initial_conditions, T);

Note that the it is very simple to inspect the model by typing

fieldnames(typeof(model))
(:w_act, :w_inact, :firms, :bank, :cb, :gov, :rotw, :agg, :prop)

and to inspect the specific attributes of one agent type by typing

fieldnames(typeof(model.bank))
(:E_k, :Pi_k, :Pi_e_k, :D_k, :r, :Y_h, :C_d_h, :I_d_h, :C_h, :I_h, :K_h, :D_h)

We can now define a data tracker, which will store the time series of the model.

data = Bit.init_data(model);

We can run now the model for a number of epochs and progressively update the data tracker.

for t in 1:T
    Bit.step!(model; multi_threading = true)
    Bit.update_data!(data, model)
end

Note that we can equivalently run the model for a number of epochs in the single command data = Bit.run!(model), but writing the loop explicitely is more instructive.

We can then plot any time series stored in the data tracker, for example

plot(data.real_gdp, title = "gdp", titlefont = 10)
Example block output

Or we can plot multiple time series at once using the function plot_data

ps = Bit.plot_data(data, quantities = [:real_gdp, :real_household_consumption, :real_government_consumption, :real_capitalformation, :real_exports, :real_imports, :wages, :euribor, :gdp_deflator])
plot(ps..., layout = (3, 3))
Example block output

To run multiple monte-carlo repetitions in parallel we can use

model = Bit.init_model(parameters, initial_conditions, T)
data_vector = Bit.ensemblerun(model, 4)
BeforeIT.DataVector{BeforeIT.Data}(BeforeIT.Data[BeforeIT.Data{Float64}([72421.99999999999, 73620.72007800141, 74438.36640006029, 74593.22090959377, 74960.62998975781, 74970.75294322471, 74065.2632462753, 74550.02975729897, 74773.00913556597, 74368.80640390523, 75213.96937452328, 75416.23494538966, 74869.59871239786, 75789.748783867, 75878.0991640187, 76231.13509783823, 77016.92436943088], [72421.99999999999, 72964.29477125614, 73534.30591553754, 73550.7402937265, 73929.59295115442, 73645.91747090333, 72681.36501131477, 73072.41734742785, 73649.76920644598, 73167.36234316025, 74167.31291393525, 74051.8697529632, 74134.23607251648, 74626.6565903346, 74514.18330962623, 75096.26946271438, 76099.4496588541], [64900.92049553802, 66007.04330642606, 66749.27408370194, 66891.2597723325, 67216.52968979077, 67217.55107964121, 66418.16917255144, 66860.2151849482, 67068.74830996832, 66731.9888685014, 67492.26886542242, 67673.1261208515, 67201.5531008089, 68021.86170372354, 68105.86387531605, 68438.28429905676, 69130.57074285591], [64900.92049553802, 65418.503916919115, 65938.59829931766, 65956.41822998761, 66292.00795450085, 66029.72526041379, 65177.15573307211, 65535.01807898379, 66061.24176490911, 65653.91923736702, 66553.06541910536, 66448.84254571897, 66541.50533319404, 66977.97783279585, 66881.65466949706, 67419.43213480456, 68307.04330517128], [40512.94792630534, 40969.836225877, 41379.035584171186, 41459.083255995145, 41733.62054263249, 41762.561063341076, 41107.573380651214, 41337.03252931852, 41348.742617147705, 40963.228182487524, 41433.115828518195, 41558.627667656874, 41149.83964102978, 41736.95946749103, 41753.29383575296, 41778.56187509257, 42272.43701356821], [40512.94792630534, 40604.536385242725, 40876.483570089375, 40879.67013883818, 41159.6004398084, 41024.55964092504, 40339.484593120214, 40517.715455248726, 40727.60192395607, 40301.45842190405, 40856.5442325123, 40806.78497654638, 40745.6695208537, 41096.451581960864, 41002.77451511746, 41156.59744945353, 41768.86079013501], [14866.888022051655, 15075.393958432027, 15008.26237890208, 14685.604355534804, 14858.389152131853, 15006.044407586207, 15012.226082052168, 15139.613950761486, 15171.77717830595, 15077.959331596086, 15221.910816517995, 15159.450608879888, 14964.053398671751, 15076.260495795155, 15246.425504007862, 15612.909816223793, 15811.448237701225], [14866.888022051655, 14940.977043017652, 14825.985716821753, 14480.365090005596, 14654.0212118954, 14740.86713311685, 14731.7249096105, 14839.540543317782, 14943.8667849782, 14834.371656022624, 15010.086983377774, 14885.19896051742, 14817.077777060043, 14844.89568496399, 14972.369594636975, 15380.477821186847, 15623.092184606974], [15944.236265986641, 16247.990828057435, 16578.34861069295, 16844.948963159735, 16663.209779882556, 16189.309246246376, 16027.381314960903, 16438.208856305144, 16153.37534406541, 16421.067247009276, 16401.283432149507, 16331.757149837864, 16512.686039827287, 16604.542139450074, 16546.64364318999, 16833.879249644797, 17023.68061857079], [15944.236265986641, 16103.118673153194, 16377.003113707964, 16609.531688570503, 16434.017649728004, 15903.222067983004, 15727.912120622635, 16112.396760975274, 15910.719385902452, 16155.781374221928, 16173.047781126828, 16036.297147060794, 16350.499884076338, 16349.72386060013, 16249.216192442369, 16583.270478809525, 16820.88368041269], [15944.236265986641, 16198.726534522575, 16382.113351034172, 16431.86943914284, 16513.74498602393, 16497.21699501091, 16290.29388947495, 16327.742642061847, 16366.855475927863, 16258.378750057556, 16447.27294733345, 16495.090118949458, 16383.80106440547, 16588.850067843774, 16641.246822209403, 16678.447991104276, 16897.68438288031], [15944.236265986641, 16054.293635427854, 16183.15114847795, 16202.225174370695, 16286.608651537803, 16205.688666809045, 15985.912213470221, 16004.120032766643, 16120.992619835371, 15995.721144925235, 16218.397319141814, 16196.675237584337, 16222.880805592626, 16334.27260422648, 16342.118870564129, 16430.15315136442, 16696.388392219404], [3173.2320350842083, 3210.0628468683763, 3234.4977313875797, 3245.6075094200755, 3267.22745297087, 3267.597822743731, 3221.6288841405203, 3195.580081578474, 3200.374499380485, 3154.577848978838, 3209.846782116438, 3210.4023300380445, 3177.522109644993, 3226.140348604903, 3243.294394937174, 3223.5971369039703, 3292.560724615194], [3173.2320350842083, 3181.4409251227776, 3195.2144729330553, 3200.2483886578175, 3222.2887629142956, 3209.8549118764868, 3161.4332359911946, 3132.242363261667, 3152.298482815144, 3103.6149654248243, 3165.1794563531785, 3152.3225121319842, 3146.312765839024, 3176.6310321747474, 3184.9958780468774, 3175.6069081416567, 3253.337641862855], [34195.564496956766, 33820.17250765545, 34549.20553482251, 36552.136579417805, 37646.213481668434, 38517.664790573115, 39395.55258383139, 38990.996137592476, 39690.031789526474, 39861.33079381547, 39232.70055313905, 39782.13734443776, 39201.89680823343, 38627.877008605916, 37906.12362512198, 36928.988470192555, 37661.84724581377], [34195.564496956766, 33518.62129912349, 34129.60240533118, 36041.30069664016, 37128.41313143021, 37837.005111669, 38659.45264579734, 38218.17847469275, 39093.80824563762, 39217.36242251316, 38686.74931772714, 39062.43337734919, 38816.85921191883, 38035.08203405649, 37224.757545047825, 36379.220453477086, 37213.19530749573], [33097.63671130043, 32492.673442020732, 33076.485708529246, 34948.55224451332, 35940.80296655729, 36504.826564521834, 37477.47011522017, 37355.821716679064, 37590.917793480025, 37954.77915100298, 37075.04125580159, 37415.737825423006, 36958.87717536409, 36255.89032747472, 35574.38744405449, 34923.2043133156, 35752.48874622245], [33097.63671130043, 32202.958629281136, 32674.76889041354, 34460.12732032766, 35446.45948170753, 35859.736482790344, 36777.209257835755, 36615.41388680704, 37026.227134028915, 37341.61153150136, 36559.11540080885, 36738.8447085109, 36595.87032139216, 35699.496571246455, 34934.9345376188, 34403.296740212776, 35326.58230379564], [29576.147776884864, 30080.22154755589, 30433.29371285351, 30539.326077715166, 30737.633519330837, 30700.324301917197, 30323.54265776999, 30476.314573585158, 30539.581400481926, 30405.419264583394, 30718.504040269992, 30816.55012828139, 30645.991131488103, 31015.048773982533, 31086.789484483976, 31155.481498603072, 31474.993493615926], [34346.71094688274, 34932.09063282938, 35315.67742785944, 35352.58522689061, 35469.5402944251, 35501.203602112546, 35088.63981075665, 35361.22636077623, 35500.14473537629, 35303.00539267598, 35735.400911971534, 35822.30892127243, 35530.94470471151, 35969.365310401234, 35987.608837953114, 36247.796471368434, 36612.1411956823], [28335.329312139656, 28818.2554997326, 29134.706707354024, 29165.154881601382, 29261.640404143505, 29287.761981019466, 28947.405348082677, 29172.283639130976, 29286.88843776475, 29124.252539252346, 29480.96993939238, 29552.66725757844, 29312.297778276767, 29673.98575063191, 29689.03628521721, 29903.685725368, 30204.26262085415], [978.0617717704339, 994.7311260407974, 1000.3029429889837, 999.3484677268391, 1009.355876034953, 1016.0231756114986, 1005.9867040248268, 1022.6742505868108, 1029.0221741102368, 1023.564211241984, 1038.3639131808839, 1034.2670712976853, 1024.6172646093612, 1037.4476193397602, 1031.4655528789856, 1035.0063290852977, 1043.4360535576923], [0.0019383188997990075, 0.0050648654443934404, 0.00720839790041361, 0.0015107251812769285, 0.0072853340046583615, 0.0013861861156831967, 0.0028449734104465385, 0.006308788509668206, 0.0040360439016295935, 0.001174203743909974, -0.0008544737131185309, 0.0011942553792838595, 0.004863761807730738, 0.002606806440303977, 0.0010797350497258051, 0.005648142712549653, 0.0034113085592155645], [2.3548476e6, 2.358296033863752e6, 2.3592162615654566e6, 2.395649448123487e6, 2.4236868152228524e6, 2.4351446716744527e6, 2.4502250243509016e6, 2.4514834793959935e6, 2.4857288618079233e6, 2.4765536151245045e6, 2.4713498356946046e6, 2.4617951976133864e6, 2.455812210474408e6, 2.4318114624632304e6, 2.405363982404486e6, 2.3799225852471543e6, 2.3912189176191064e6], [0.0016459319014481277, 0.001784345163981618, 0.001856043947707638, 0.00327226775678939, 0.004348346203271784, 0.0045232262753607325, 0.004862767061783573, 0.0046980538709986515, 0.0058168757167480906, 0.005050116636810441, 0.004449956481466352, 0.003767642658061644, 0.003361278432376282, 0.0022109781441385285, 0.001002344191672587, 1.7403971531038164e-5, 0.0005612649448853565], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 526.9132661897238 262.64457171413756 … 139.3321067937615 513.509846873151; … ; 540.043119922781 277.203765299794 … 143.13807779843168 521.5699429947653; 548.4840526651018 281.2104169423501 … 144.77449819388647 528.4485706110978], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 522.2151431338734 260.30275077881157 … 138.08977826390395 508.93123288522384; … ; 532.0034078353406 273.07698656611876 … 141.00715733709208 513.8052441763809; 541.9501609056608 277.8604591505044 … 143.04985206036656 522.1533542888973]), BeforeIT.Data{Float64}([72421.99999999999, 72424.7772279799, 73400.12159008827, 74619.83547890789, 75800.13140909263, 75337.48644141448, 76029.79675812033, 77404.45544201903, 77617.86784754152, 78772.78107697229, 79758.91324913956, 78871.23114097497, 79569.27150009056, 79409.32856296812, 78954.46347100221, 79141.75299989838, 80447.01860911431], [72421.99999999999, 72244.4482286327, 72422.20781508277, 72964.76796539403, 73385.74768323965, 73197.59930087223, 73432.13694484295, 74332.10133206552, 74222.47732822022, 74306.41811754579, 75176.27170946044, 74474.6248518026, 75423.57352140552, 75355.08627079158, 75220.55841249152, 75359.61076783616, 76191.68275921761], [64900.92049553802, 64904.5959530995, 65793.20670995262, 66885.20099812068, 67940.40481807446, 67531.34167027209, 68174.56146825632, 69424.38893947557, 69633.52025035891, 70688.98643021591, 71583.28733500387, 70764.62023409927, 71409.97828829523, 71258.28275389282, 70833.48104074036, 71004.49839279223, 72201.03684456644], [64900.92049553802, 64742.991302188195, 64916.64027178291, 65401.68763205162, 65776.36889001871, 65613.1803876262, 65845.28628714144, 66668.78132656521, 66587.40469679279, 66680.96911364037, 67470.38593345784, 66819.90972468641, 67689.3937326431, 67620.19200515139, 67483.63251359433, 67611.23122523127, 68381.88150734694], [40512.94792630534, 40495.99143405751, 40929.149984430514, 41646.90357346239, 42293.42174557959, 41972.56277514606, 42159.13373120061, 42804.63019148149, 42781.46858461067, 43279.79894112115, 43726.981480860806, 43432.85029712868, 43707.0390649272, 43766.70447204602, 43660.66318475651, 43750.00056169497, 44361.408234037684], [40512.94792630534, 40395.16127768862, 40383.84871377915, 40723.17549632983, 40946.292825419, 40780.37344708848, 40718.71047445385, 41105.619705032856, 40909.99495536658, 40825.863860510435, 41214.59667550319, 41011.724875215106, 41429.826014087994, 41532.19591403621, 41595.86831494696, 41659.21133217986, 42014.86147476702], [14866.888022051655, 14883.811156633537, 15058.215349150716, 15239.187513448316, 15630.78448738334, 15576.955127401037, 15863.181864353533, 16162.5863963226, 16248.825043709743, 16624.681104362444, 16619.368253698896, 16413.19821338282, 16095.403780033836, 15900.164973035857, 15629.650819673967, 15475.96981623401, 15445.81463760414], [14866.888022051655, 14846.752253933702, 14857.59393466355, 14901.182423729473, 15132.913164641486, 15134.507050880053, 15321.195014502591, 15521.057579167931, 15538.0208431629, 15682.073024748643, 15664.483034980763, 15498.259148194304, 15256.805139389884, 15088.382246083935, 14890.495239448031, 14736.381459830358, 14628.79083865369], [15944.236265986641, 15970.536293574009, 16203.076413332265, 16530.87345274989, 16672.37224047315, 16472.706213001336, 16545.759102490036, 16946.277392364624, 16982.56866450144, 17264.97025286452, 17705.87906744488, 17399.05590067723, 17789.897406539836, 17660.705158282362, 17635.425543447698, 17422.376214686352, 17943.555249235564], [15944.236265986641, 15930.771575764888, 15987.201953197799, 16164.218776468968, 16141.324292923924, 16004.815208666545, 15980.451087299058, 16273.642145497684, 16239.666878659655, 16286.058215245259, 16688.56710059854, 16429.161079816018, 16863.012689250176, 16759.03807384664, 16801.413104494804, 16589.770132982223, 16994.410641432492], [15944.236265986641, 15938.881376083193, 16131.527661357206, 16411.10482884185, 16681.820302760127, 16554.510059169035, 16661.94617980291, 16946.750014631834, 16972.74304347483, 17231.228411588083, 17431.225462760296, 17289.119077785348, 17423.877678893372, 17422.85930676967, 17352.75451500527, 17399.70409253882, 17687.140637355722], [15944.236265986641, 15899.195475217859, 15916.606449100605, 16047.106619937145, 16150.471415787679, 16084.295497111128, 16092.668477536246, 16274.096008341336, 16230.271079031201, 16254.229513355287, 16429.69403963725, 16325.35258686074, 16516.063228510215, 16533.335439354818, 16532.1101205757, 16568.181499478982, 16751.559369863262], [3173.2320350842083, 3167.1538999061117, 3193.656248033176, 3255.2769833215493, 3311.2671688332575, 3281.852644291611, 3279.5379913855027, 3315.483082215611, 3302.532305097398, 3360.681030868874, 3380.148244207058, 3385.636112555593, 3402.724686992872, 3421.4306534076914, 3420.565376103351, 3427.964573046709, 3477.2230177444408], [3173.2320350842083, 3159.2680669714664, 3151.106993755022, 3183.074958913338, 3205.7967769518145, 3188.6348505690216, 3167.4881844730735, 3183.8842224864507, 3158.063161723022, 3170.1327085993657, 3185.93787795255, 3196.906853357077, 3225.4367894045185, 3246.749553519085, 3258.8004067867064, 3264.1439715274364, 3293.291381478464], [34195.564496956766, 34737.23711945027, 35190.31081177132, 35333.87990667036, 37172.44643347784, 37214.474154555675, 37549.92484007175, 38359.60186536201, 38823.327829298614, 37948.256798398106, 38855.329200495486, 39365.824160055025, 40446.5116540427, 39774.61493337131, 39779.087402586905, 41129.322024149275, 41358.17170934897], [34195.564496956766, 34650.745569878505, 34721.468404646446, 34550.17465746141, 35988.43067980117, 36157.43364992852, 36266.98137701138, 36837.02438872692, 37125.00290881735, 35796.616520856645, 36622.85086825068, 37171.411475267676, 38339.1777744202, 37743.92245761208, 37897.859551168396, 39163.77362640504, 39170.48453580546], [33097.63671130043, 33662.798775735326, 33980.63096859674, 34131.00896742321, 35968.89349782207, 35899.21182868995, 36088.2027799961, 36868.64040351194, 37218.32227457925, 36344.92601977422, 37148.64475336007, 37739.69743026902, 38469.58040545296, 37692.860973767085, 37750.363479463296, 38635.915616866216, 38661.93122111179], [33097.63671130043, 33578.98244863296, 33527.90519120436, 33373.98338859573, 34823.2132795466, 34879.53005569168, 34855.20100842439, 35405.24248636004, 35590.2082577865, 34284.19350381548, 35014.22596987235, 35635.9317266907, 36465.248095742594, 35768.452420787034, 35965.07779756702, 36789.5257835613, 36616.864731440815], [29576.147776884864, 29577.82272810522, 29959.229040883612, 30474.516254470323, 30970.4021078868, 30748.578108958518, 30983.08032007464, 31561.59979941604, 31642.661449604737, 32101.79186825876, 32469.024011388676, 32170.55092505004, 32461.94499435838, 32466.866007719735, 32312.457620765097, 32419.337363421244, 33004.127761773656], [34346.71094688274, 34348.65606380097, 34839.10835618231, 35399.95175456761, 35945.678487220925, 35758.24455011818, 36152.1872004789, 36806.73263110917, 36930.88886147416, 37509.08643651217, 38025.170669526626, 37517.906317930545, 37859.336422907116, 37705.94082776947, 37447.141473644595, 37508.42428874801, 38100.729063880775], [28335.329312139656, 28336.933993546085, 28741.547036058688, 29204.231291630167, 29654.444609233808, 29499.815470499372, 29824.810045535418, 30364.79654832888, 30467.222881929974, 30944.2239759072, 31369.98284166535, 30951.500196470803, 31233.173002829215, 31106.624795346437, 30893.120657024778, 30943.67771763578, 31432.316961215605], [978.0617717704339, 978.1171611933762, 994.869312886679, 1010.7329890827052, 1024.324222966665, 1024.5190111953682, 1039.2939477027473, 1056.0565089503168, 1059.9699392799873, 1078.1081254450514, 1089.0926540885946, 1076.1629911186712, 1088.6968710296987, 1085.4759184037298, 1073.8819463306438, 1076.7367406229737, 1096.1800189120434], [0.0019383188997990075, 0.005003895946858794, 0.002775625291018491, 0.0021685828721040856, -0.00040078094375806117, -0.0009429738043058578, 0.004078040855114429, 0.0044037194704702465, 0.0019431757585890441, 0.005175552470203959, 0.002375569171856773, 0.001897356349650714, 0.002793578677666275, 0.00656271182348056, 0.007887336491357866, 0.009739416061303796, 0.002095445775437188], [2.3548476e6, 2.365876720257675e6, 2.363545375750838e6, 2.3744423810989405e6, 2.38979311208637e6, 2.397988077918911e6, 2.407782723515092e6, 2.408050489849601e6, 2.4102825523956264e6, 2.377050294137691e6, 2.3855760301323254e6, 2.400040429467652e6, 2.4266905891161105e6, 2.4109563944222736e6, 2.405949014090559e6, 2.4335682370008714e6, 2.4320257909606164e6], [0.0016459319014481277, 0.0020995846770722163, 0.0019109167013466924, 0.00227269366512467, 0.002731137180267468, 0.0028445943364401615, 0.0031293368126216296, 0.003009657358116727, 0.0029226065024700243, 0.0014688481452455853, 0.0017674056356239117, 0.002276482747011795, 0.003264247865872187, 0.0025354398502218317, 0.00232444575776239, 0.0035049883156733114, 0.0032312468177760657], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 518.1127790500888 258.257891165402 … 137.00498676726522 504.9332231791565; … ; 558.0517213761705 286.2922460059419 … 149.95388969630937 546.1015720002611; 564.6391831972041 290.33230513694696 … 152.29716891333598 553.9016147883549], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 516.8227404393936 257.61486002509514 … 136.66386080022835 503.67600008012727; … ; 531.3827267799229 272.61049202290303 … 142.7876731597217 520.0036686791103; 534.7719562936182 274.9748501585915 … 144.24123826581697 524.6023636852505]), BeforeIT.Data{Float64}([72421.99999999999, 72542.00769841972, 73421.12052215562, 73412.81896954562, 73861.32364569708, 74658.61530079629, 76213.64468184029, 75999.83323295623, 76995.3240587368, 77835.1487265082, 77696.99441595974, 78565.21114029344, 78577.1924798279, 78195.72493496392, 79048.79994329381, 80135.09881349091, 80868.29222027527], [72421.99999999999, 72342.1388379862, 73048.66111651732, 73106.88462499186, 73314.49478884971, 73926.95086610274, 75191.80548321393, 75094.85618903811, 76164.72860208573, 76675.81758195939, 75866.9146900156, 76270.12156240248, 76155.46414484836, 75487.77555987328, 75729.39324095864, 76004.99581665156, 76409.45197214285], [64900.92049553802, 65019.08882038503, 65812.89234041727, 65805.4441866707, 66231.5064504544, 66960.4193524179, 68359.64230827408, 68154.61157742953, 69071.45879421696, 69828.63096611999, 69681.02989984966, 70461.19599069034, 70459.76522072623, 70093.46188742181, 70858.06487159194, 71828.93007438187, 72483.98669379673], [64900.92049553802, 64839.94722227844, 65479.028860942686, 65531.212169457605, 65741.16458854426, 66304.19826962738, 67443.10613674893, 67343.05244248155, 68326.34289841304, 68788.55449700858, 68039.75868902369, 68402.84530064774, 68288.21385160797, 67666.09713731751, 67882.60242791173, 68126.92079564588, 68487.43244067792], [40512.94792630534, 40485.110155864706, 40913.75860995327, 40873.49748617295, 40861.402513453264, 41167.16214221888, 41984.045067664265, 41941.02623706516, 42340.52602814222, 42778.990245617424, 42912.19621515143, 43396.786899366096, 43493.96722265238, 43446.27630586258, 43904.90595523109, 44518.59306324088, 44856.11306034683], [40512.94792630534, 40373.56495484109, 40706.2064218919, 40703.16474539864, 40558.88703007538, 40763.718436554525, 41421.14136261087, 41441.60848404759, 41883.772985264375, 42141.81004444179, 41901.4397389273, 42129.05641304645, 42153.49463131094, 41941.71429981527, 42061.25697893126, 42224.13810719846, 42382.87865911257], [14866.888022051655, 14913.011755233054, 15216.797383806688, 15336.271681124535, 15822.721232498365, 16221.67835869463, 16589.629028340667, 16437.6569278271, 16611.182100077756, 16583.206057796473, 16556.619099665713, 16663.35455416696, 16782.91608263573, 16902.043095364777, 17065.449558346347, 17819.31736968472, 18036.53780420526], [14866.888022051655, 14871.923194828965, 15139.6038015107, 15272.360605504224, 15705.578455511526, 16062.703736967773, 16367.202541553506, 16241.923574967122, 16431.98716128636, 16336.204188154948, 16166.643487710098, 16176.575599272035, 16265.671038135855, 16316.718551396241, 16348.839468339012, 16900.923093520465, 17042.056055050823], [15944.236265986641, 16016.761702533528, 16265.123200345368, 16083.120758795278, 16069.665694368323, 16387.79136065628, 16929.500588985673, 16571.617795656264, 17092.10559024756, 17441.959264402158, 17619.978704368314, 17716.64070404039, 17999.088767866047, 17460.60066327693, 17094.374182986652, 17873.146962390285, 18092.512455569547], [15944.236265986641, 15972.632073220962, 16182.611545977386, 16016.097327781665, 15950.69467560183, 16227.188809249967, 16702.517253033046, 16374.289287846446, 16907.72263684859, 17182.166523872755, 17204.956655692957, 17199.09258261457, 17444.361602166617, 16855.93304629209, 16376.549493985252, 16951.97834931944, 17094.94442844971], [15944.236265986641, 15962.574254360396, 16123.99929730591, 16121.355059732801, 16142.632039181863, 16287.61365690119, 16661.077036941053, 16631.051137024635, 16863.538394759835, 17039.12945322629, 17022.20710025952, 17204.3753771558, 17223.488823342348, 17141.890520668636, 17315.668700617032, 17573.55761060956, 17717.885939713542], [15944.236265986641, 15918.59392314227, 16042.203553083042, 16054.17229434188, 16023.120817492469, 16127.992860416149, 16437.692606518514, 16433.014919641075, 16681.621134913457, 16785.336741651547, 16621.26500025718, 16701.791828417863, 16692.665443245132, 16548.259963986377, 16588.551441639374, 16667.82960843121, 16740.973718980298], [3173.2320350842083, 3168.3172226493384, 3189.5268768021783, 3192.069712023704, 3155.0688523190775, 3173.421289443187, 3258.011973117193, 3284.4723919939647, 3315.8523220518887, 3350.722897846844, 3361.1564375279995, 3399.112665394967, 3406.7244470799906, 3402.9889908200525, 3438.9117851391175, 3486.980702045965, 3513.497151463793], [3173.2320350842083, 3159.587826084863, 3173.346664945529, 3178.7673519069654, 3131.7104475595806, 3142.321335547306, 3214.3299742097443, 3245.362146751365, 3280.082203446748, 3300.814887445578, 3281.9875546351145, 3299.815941829948, 3301.7300986871137, 3285.1421146795, 3294.5054584584027, 3307.2643273153394, 3319.773232230125], [34195.564496956766, 35042.26112113272, 35543.146859234985, 36327.638269887786, 37255.44572398005, 36814.84259623866, 36932.36488008444, 37022.73994981201, 37564.97848630096, 38840.57888762094, 38241.255849725385, 37952.12684069846, 37875.200749453514, 37019.989047205505, 36959.784048804584, 36914.80891970818, 36206.03238396475], [34195.564496956766, 34945.71214186527, 35362.8393501755, 36176.249556591094, 36979.626773126874, 36454.052205364365, 36437.19189249169, 36581.887275111614, 37159.74218342996, 38262.06013981277, 37340.518986590774, 36843.44871832517, 36707.89705797157, 35737.97195113513, 35407.77370865437, 35012.24730557846, 34209.7380393399], [33097.63671130043, 33915.13703634426, 34517.70553118473, 35207.70922643417, 36147.911518602625, 35932.859157012135, 36221.89488323518, 35973.2076774039, 36613.468146031395, 37809.58572892904, 37633.05545295176, 37163.69785797843, 37573.98034277972, 36633.18417674608, 35975.71380207464, 36990.7675015335, 36322.903483810995], [33097.63671130043, 33821.69352677006, 34342.600003038184, 35060.98761028296, 35880.29214546555, 35580.712322033825, 35736.24756647552, 35544.852432934335, 36218.4963647433, 37246.423314323096, 36746.64417890604, 36078.05175085571, 36415.96018473662, 35364.562288765585, 34465.02640895093, 35084.291038965624, 34320.16520980999], [29576.147776884864, 29629.998536034866, 29950.00884762381, 29941.49568132377, 30036.14220663076, 30310.567362865684, 30964.20516478312, 30824.793152297036, 31291.628442349174, 31623.92843573023, 31589.94026517382, 31940.954988725767, 31963.657881458315, 31778.50709179111, 32102.23321826406, 32550.106087635377, 32770.663436167175], [34346.71094688274, 34409.247707002745, 34866.61571261212, 34865.0460477123, 35181.66875462168, 35617.60723353892, 36352.546584095166, 36280.735304657144, 36717.048467881374, 37131.053471159845, 37015.86258483045, 37431.8464722394, 37414.21031514467, 37233.692269137086, 37661.76758059538, 38179.99130286834, 38604.228353440376], [28335.329312139656, 28386.920851569877, 28764.240038720593, 28762.94509749856, 29024.1523112505, 29383.79258012679, 29990.102411500946, 29930.85958460118, 30290.808960315775, 30632.354563413282, 30537.324454039826, 30880.50259579859, 30865.95312933432, 30717.029458351113, 31070.18277598103, 31497.706676324095, 31847.693507754906], [978.0617717704339, 979.8425773473734, 996.2677801813608, 998.9024576346019, 1013.6954892019357, 1032.244756013301, 1042.890559395724, 1049.0831204754072, 1062.7818839864394, 1073.649059229872, 1075.227049845299, 1088.3945297251853, 1081.8970241232344, 1081.2625264935728, 1094.064072732415, 1098.83268387818, 1109.0949041891786], [0.0019383188997990075, 0.0020878761350666686, 0.0045437096120317655, 0.002245207917483283, 0.004493748711833723, 0.003711823096192335, 0.0038369045803030577, 0.0029384663696052638, 0.006218780732504259, 0.006544413247853598, 0.007079432017676801, 0.004081457412050016, 0.0004353799317111662, 0.0015188361257592042, 0.0010498967351775246, 0.006050630613572139, 0.005038020624521522], [2.3548476e6, 2.3560382724242643e6, 2.3622719620394474e6, 2.397438053947112e6, 2.3967094432487376e6, 2.398212972443494e6, 2.413617577726769e6, 2.4255192275130744e6, 2.4342412812890774e6, 2.453466336677768e6, 2.4511155673993295e6, 2.4348442104687947e6, 2.4335392124548694e6, 2.4141166314291013e6, 2.4063624518980775e6, 2.3981132369458927e6, 2.3701952115420476e6], [0.0016459319014481277, 0.0016217243903284264, 0.0018661764206093707, 0.003243781082992674, 0.0030768636939753737, 0.002995957042372967, 0.003494008378155563, 0.0037877849158764053, 0.0040037697847939225, 0.00463436271119021, 0.004359482544994849, 0.003477450411998572, 0.003177277195982366, 0.002191876726104148, 0.001737764686804635, 0.0014107764025350269, 0.0002768717867267527], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 519.0267392524385 258.713462701199 … 137.24666601257974 505.82393440939427; … ; 551.9070436130611 285.6786602643962 … 151.19649184043573 557.908307622142; 559.0864023139779 279.12171819252063 … 152.35970035065023 562.2783767936817], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 517.5967087611376 258.00065137146754 … 136.86852187782858 504.4302804899896; … ; 523.4621677901923 270.9549959979163 … 143.40393784964112 529.1541311453062; 528.260019261017 263.7317659994579 … 143.9590337177207 531.2759976377924]), BeforeIT.Data{Float64}([72421.99999999999, 72803.04594883321, 72171.73764387207, 73181.12667281611, 73976.62698371413, 73193.91603900968, 73428.46591406115, 72365.8641118805, 73843.80732816624, 73741.62654764869, 74143.03161839816, 74531.91014986137, 75910.93647667563, 76505.12203107218, 77233.8163696445, 77399.41088460875, 76891.68498419403], [72421.99999999999, 72735.15229993744, 72338.42259807275, 72433.11464359271, 72931.69401236683, 71862.60041072278, 72521.31128133414, 71777.23499182604, 72595.43794241459, 72121.69195326378, 72024.21745129401, 71929.15861236729, 72683.58288762145, 72756.7617974399, 73232.68064509428, 73174.69097069911, 72589.29241839249], [64900.92049553802, 65251.46608592536, 64663.56156619135, 65573.45815123041, 66287.9022524038, 65551.26714966896, 65775.57471112526, 64827.572244643685, 66160.98568085363, 66052.04509892751, 66411.37147831036, 66789.59403865067, 68050.13160523145, 68589.00276045682, 69232.34280994594, 69377.53200050231, 68930.03435250733], [64900.92049553802, 65190.614784023994, 64812.905937686184, 64903.20698504939, 65351.57388100844, 64358.96277338923, 64962.96591456788, 64300.260130376184, 65042.498538281456, 64601.032992264976, 64513.50796135452, 64457.21428046157, 65156.98014820476, 65228.491939921514, 65645.72734625566, 65590.6731902021, 65073.12749164669], [40512.94792630534, 40694.48461180417, 40460.439321578124, 40948.63889527102, 41397.823887861734, 41160.44560242325, 41129.6238212986, 40548.811070770134, 41321.25243909562, 41402.683254502685, 41607.49826630511, 41557.05282138623, 42153.261471360245, 42393.49397376744, 42884.99650112777, 42958.03659454388, 42606.397843016064], [40512.94792630534, 40656.534317084814, 40553.88513146751, 40530.087338789366, 40813.07228608927, 40411.78304324881, 40621.49760175486, 40218.98413824101, 40622.694382674665, 40493.16115627513, 40418.46465302983, 40105.82632112475, 40361.11549063278, 40316.429291595436, 40663.31823099488, 40613.24261498771, 40222.40210442537], [14866.888022051655, 14951.59677435048, 14916.343282343507, 15256.659512431643, 15321.590018101906, 15438.10685979929, 15512.097477499032, 15355.247935147645, 15345.41545209512, 15491.961242786796, 15725.496564052903, 15892.669778341917, 16288.121287727894, 16502.096975709082, 16631.20133543396, 16713.47312018141, 16725.44632028132], [14866.888022051655, 14937.653422824487, 14950.793471268242, 15100.71541372861, 15105.169842755124, 15157.304929176236, 15320.456934354694, 15230.347249013226, 15085.992928322688, 15151.63834611398, 15276.102950420376, 15337.677015949343, 15595.631784413037, 15693.578507492422, 15769.61379602103, 15801.195598758257, 15789.591735707145], [15944.236265986641, 16640.62299119802, 15920.357645466209, 16337.863674381102, 17187.8598904761, 16017.737741172878, 15746.672119168228, 15514.351652121279, 16668.08621065912, 16268.261839274488, 15751.115668408254, 15736.166176461213, 16461.36696211654, 16947.127024063637, 16913.12311553065, 16838.448408724395, 16836.901663135264], [15944.236265986641, 16625.10451116678, 15957.126665745136, 16170.868178194123, 16945.07832231391, 15726.392971844498, 15552.133579037836, 15388.156804961232, 16386.30322441646, 15910.885396988877, 15300.989927695518, 15186.638724022461, 15761.511918670354, 16116.804356445182, 16036.930480074358, 15919.349316126229, 15894.810713229617], [15944.236265986641, 16026.599591294605, 15900.560646475897, 16104.923643198419, 16274.605531591336, 16118.664182369765, 16130.091149553366, 15894.4333547844, 16227.806363093725, 16223.720858001634, 16296.740374661653, 16369.653340960322, 16608.969004672716, 16732.667776097616, 16890.06442118114, 16950.727415870715, 16797.800623424246], [15944.236265986641, 16011.653728639241, 15937.283944398983, 15940.309115347598, 16044.723843157857, 15825.483673737572, 15930.815749604923, 15765.146895841186, 15953.466545110543, 15867.322879031923, 15831.022105125952, 15798.003690283691, 15902.838660144691, 15912.852516290157, 16015.066352691236, 16025.499757796615, 15857.89753066599], [3173.2320350842083, 3186.6160734455752, 3169.8207792082853, 3207.371145902023, 3242.5411545636016, 3224.3521140130365, 3221.5340176705276, 3174.3666954220494, 3236.8081439163625, 3242.921771099412, 3257.33981928504, 3260.0365555574476, 3260.2364627917605, 3278.2249203014626, 3322.409611791801, 3352.4549396404173, 3304.386149779141], [3173.2320350842083, 3183.6443434851544, 3177.1416703029927, 3174.5873899201674, 3196.7396858902616, 3165.7047483194456, 3181.7343368214465, 3148.546169438034, 3182.0881566808735, 3171.6822092693847, 3164.253556078329, 3146.191825961718, 3121.6275042184548, 3117.60864256819, 3150.29055288493, 3169.4666845347197, 3119.492732392464], [34195.564496956766, 32707.947214885182, 33343.45919553444, 34246.03372308164, 33809.62164746486, 34969.580301355294, 35488.55986933125, 34626.09479099399, 34927.84032887784, 35494.42009562634, 35834.583197718806, 36801.718175235714, 36563.04279259342, 37784.680764026074, 38009.465758159466, 38893.30676522497, 38360.11310418006], [34195.564496956766, 32677.444893789063, 33420.46791321731, 33895.99203415571, 33332.0547476387, 34333.52267130557, 35050.124841532226, 34344.4436567488, 34337.366352052355, 34714.68900326451, 34810.52441708544, 35516.554164674, 35008.56496818041, 35933.42438986015, 36040.36674862491, 36770.37939755021, 36213.71371812607], [33097.63671130043, 32191.605643404935, 32468.861801050203, 33608.06913234881, 33740.26846019095, 34391.95446574121, 34448.487373235585, 33678.64133715237, 34418.787102561495, 34915.699884541435, 34775.6620780869, 35455.69680156364, 35554.85603712261, 37122.276706494085, 37204.970340607586, 38003.85400406632, 37637.17394641873], [33097.63671130043, 32161.584844927922, 32543.850583625448, 33264.548321274626, 33263.68118643054, 33766.40320485261, 34022.901675345056, 33404.69685713801, 33836.91894505174, 34148.681949378566, 33781.86449693713, 34217.53761340326, 34043.24127427525, 35303.47474795331, 35277.54861062112, 35929.475956723625, 35531.225853095784], [29576.147776884864, 29735.895714274127, 29464.744212902966, 29849.487042764125, 30161.127491622807, 29841.586971350254, 29859.735227385776, 29440.42531792872, 30059.33487590651, 30053.37630029764, 30193.092052968892, 30342.44667150102, 30868.964056844903, 31089.29661630906, 31378.0852208211, 31437.67955423576, 31193.322792438852], [34346.71094688274, 34532.22585136804, 34226.064958837764, 34736.79816963852, 35124.79100570447, 34716.933921698306, 34909.869696379545, 34392.71315576692, 35091.810086144935, 34989.03960021021, 35200.288746096834, 35426.26814268478, 36142.30935772488, 36452.45121414487, 36790.389245899525, 36871.23320042191, 36668.875415620736], [28335.329312139656, 28488.375288478717, 28235.798856174606, 28657.14323878715, 28977.229339540205, 28640.755643253062, 28799.923684703674, 28373.280187256485, 28950.020760000178, 28865.237225208955, 29039.5134208209, 29225.941769956873, 29816.661028653965, 30072.52167419669, 30351.31359205086, 30418.008189907123, 30251.067184112308], [978.0617717704339, 983.3445202831313, 972.7523944506521, 987.1729388277902, 1001.9837550764335, 992.7462566205149, 1005.9697873598984, 994.4337709480617, 1009.8407188022751, 1009.629198419659, 1017.9906792445746, 1020.8792244649119, 1038.8581906616437, 1047.2549300028538, 1063.8683432253456, 1068.6192458445348, 1067.8361444477273], [0.0019383188997990075, 0.0025458416181576293, 0.006902540245723232, 0.00726406858092532, 0.0021584404557126735, 0.0003116639959499512, 0.0046724760426097856, 0.006593646520445917, 0.006721460531995627, 0.004949942623716508, 0.0054788255718492, 0.004884377090268677, 0.004066361108977512, 0.0009233253971396849, 0.007177207484815762, 0.0038821579825916164, 0.0059552877774693425], [2.3548476e6, 2.325526797287246e6, 2.347856881928596e6, 2.354058284140967e6, 2.3624618249542005e6, 2.3801686783204335e6, 2.3876353247569823e6, 2.374818323114353e6, 2.3732693514992055e6, 2.3683986237585996e6, 2.3788923843829106e6, 2.3850958802536074e6, 2.3569401529772524e6, 2.3721712486486984e6, 2.388976373058095e6, 2.413708111655055e6, 2.389148712650025e6], [0.0016459319014481277, 0.00035779615627679474, 0.0014341750336554686, 0.0017544930426193154, 0.002025260621448513, 0.0026196923417737905, 0.002841529880300804, 0.0022544704221871296, 0.0021776540881242646, 0.0019281601120429146, 0.00234694798066737, 0.002541778483872267, 0.0012857923014842688, 0.001847414284835964, 0.002572156417757986, 0.003489084883669875, 0.0023666301742768], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 520.8817331718842 259.63810080535706 … 137.73718357490102 507.6317416988444; … ; 526.408430178084 267.04263352522327 … 144.8595569681936 537.8011385559485; 515.0460944639158 262.7719440670136 … 144.07026115929816 532.0700541873052], [518.0834390395164 258.24326637797435 … 136.99722836422484 504.9046295086172; 520.3959765521272 259.3959711275903 … 137.608734553852 507.1583415712807; … ; 497.67528928714376 252.46654930413263 … 136.95263560988988 508.44614536138977; 486.22723728420743 248.06881902966327 … 136.00896271470992 502.2986394226053])])

Note that this will use the number of threads specified when activating the Julia environment. To discover the number of threads available, you can use the command

Threads.nthreads()
2

To activate Julia with a specific number of threads, say 8, you can use the command julia -t 8 in the terminal.

We can then plot the results of the monte-carlo repetitions using the function plot_data_vector

ps = Bit.plot_data_vector(data_vector)
plot(ps..., layout = (3, 3))
Example block output