200 time step, with anova

This commit is contained in:
He Zhou 2023-02-20 20:30:55 +08:00
parent 86a47edc69
commit 4f444d4e9f
12 changed files with 28 additions and 28 deletions

View File

@ -3,7 +3,7 @@ import pandas as pd
import matplotlib.pyplot as plt
from datetime import datetime
num_time_step = 501
num_time_step = 201
num_iter = 10
env_data = pd.DataFrame(pd.read_excel('env_data.xlsx', engine='openpyxl', sheet_name=0))

2
env.py
View File

@ -90,7 +90,7 @@ class Env(ap.Model):
# self.picture_out()
self.update()
if self.t >= 500:
if self.t >= 200:
self.running = False
self.stop()
else:

Binary file not shown.

View File

@ -6,7 +6,7 @@ import datetime
idx_start = 1 # first index is 1 !
n_sample = 30
n_sample = 50
df_xv = pd.read_csv("xv.csv", header=None, index_col=None).transpose()
lst_xv_keys = [

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,26 +1,26 @@
,alpha,percent_search,is_RH_ratio,is_FH_ratio,4,5,out_w_avg_salary,out_w_gini_salary,out_f_avg_profit,out_f_avg_yield,out_f_gini_profit,out_w_percent_hired
0,0.1,0.1,0.0,0.0,0,0,2368465751.5406537,0.25549631542877876,13562099898.491034,0.8111621840041076,0.02176875745790126,0.9988666666666669
1,0.1,0.2,0.25,0.5,3,4,5522285523.0731,0.2524078028062856,16315667734.367153,0.6593680667656033,0.045560589871753515,0.5098666666666667
2,0.1,0.3,0.5,0.75,4,1,4454727560.0325775,0.2771080480659774,13699986479.16012,0.7067163108727459,0.043326466263185676,0.5896333333333332
3,0.1,0.6,0.75,1.0,1,2,3524093666.5841937,0.30440038884993215,8213057585.886228,0.880109267422068,0.12377874385642872,0.7924
4,0.1,0.8,1.0,0.25,2,3,875218961.7464943,0.20976780091170993,6113345396.221328,0.952269754073068,0.02494302091472818,0.9896999999999997
5,0.3,0.1,0.25,0.25,1,1,5398498461.823114,0.2441507436030353,18795156613.361065,0.686389131537799,0.039447871824882484,0.5462666666666667
6,0.3,0.2,0.5,1.0,0,3,2395383999.030499,0.27526438728192953,11630610298.951496,0.8487831693260026,0.023700608340641985,0.9239333333333334
7,0.3,0.3,1.0,0.0,3,2,4497862732.328102,0.25650404394763476,6597215958.996845,0.8692483398813017,0.2613133986633773,0.5502666666666667
8,0.3,0.6,0.0,0.75,2,4,2348575416.0071034,0.27155174965375956,12409088226.99467,0.7910579331452426,0.022505688439158684,0.9995666666666666
9,0.3,0.8,0.75,0.5,4,0,6651993103.30317,0.30766207889001734,10035164802.668427,0.7843607510828039,0.22003607984174758,0.4164333333333333
10,0.5,0.1,0.5,0.5,2,2,5133723848.104433,0.26769485505833346,17235341192.94299,0.6888348491428041,0.03913753781713959,0.5156666666666668
11,0.5,0.2,1.0,0.75,1,0,5034164466.873026,0.24368013029391572,5865650683.297427,0.8229320941467569,0.24390962121474857,0.5581
12,0.5,0.3,0.75,0.25,0,4,6578657635.364925,0.3115112813862723,12821889906.626564,0.7296776559004362,0.12566259947274172,0.37306666666666666
13,0.5,0.6,0.25,0.0,4,3,5317878424.16211,0.25426139822096233,15952002523.191202,0.6366959066789712,0.04931280827587589,0.4945
14,0.5,0.8,0.0,1.0,3,1,2337493729.850705,0.2710639457985169,12450822077.153242,0.7959806250965015,0.021674836574836306,1.0
15,0.7,0.1,0.75,0.75,3,3,4390912082.717371,0.29317850679017093,11461734869.758415,0.8454879328793415,0.09655847372754531,0.7302666666666665
16,0.7,0.2,0.0,0.25,4,2,2352491003.881384,0.26561012389146327,12783562370.987354,0.7967645757084304,0.02266688334352523,0.9986333333333332
17,0.7,0.3,0.25,1.0,2,0,3653532123.395534,0.2617650401923907,13957125531.167791,0.7533581068472094,0.03256326130466421,0.7757333333333333
18,0.7,0.6,1.0,0.5,0,1,6924158520.902663,0.2675809284783991,7891681851.714676,0.8045158669403997,0.43446126904216925,0.24976666666666672
19,0.7,0.8,0.5,0.0,1,4,4736119503.894477,0.27992269679276827,14678429776.163397,0.5976800185496292,0.05283537967029203,0.42810000000000004
20,0.9,0.1,1.0,1.0,4,4,867511457.6456088,0.24922575247153309,5665703830.975503,0.9307229635556812,0.024869887137445312,0.9877666666666663
21,0.9,0.2,0.75,0.0,2,1,6851187209.991049,0.31492006315769994,14119587314.503916,0.7105804111939837,0.09613556316018454,0.34823333333333323
22,0.9,0.3,0.0,0.5,1,3,2361545981.6950893,0.2705929602865968,12574016364.653028,0.7903606771743784,0.023174577361497042,0.9990666666666664
23,0.9,0.6,0.5,0.25,3,0,4857056462.399006,0.279816369708902,14630466418.460012,0.6084314344270363,0.05141348153810012,0.43129999999999996
24,0.9,0.8,0.25,0.75,0,2,4760429051.04185,0.25907435765822473,15349917450.20687,0.6836278612672746,0.04078068085187289,0.5870000000000001
0,0.1,0.1,0.0,0.0,0,0,2242492228.44022,0.31370582729629465,8386365771.52619,0.6213188164268715,0.02793927597790053,0.9976
1,0.1,0.2,0.25,0.5,3,4,3997862676.770684,0.31986962030265276,499630334.99093276,0.6215373061751157,0.43096687773475784,0.4704800000000002
2,0.1,0.3,0.5,0.75,4,1,3439076924.8319983,0.3533505500764945,-1629574359.634039,0.6639647905259909,0.4119320605158336,0.5332000000000001
3,0.1,0.6,0.75,1.0,1,2,1462944505.142828,0.45256931043852616,2491178401.016534,0.720268536423712,0.09313786621140144,0.9007000000000004
4,0.1,0.8,1.0,0.25,2,3,509800614.4254606,0.48250552300931127,2201450152.0710497,0.7405772300911478,0.04554713640370322,0.97158
5,0.3,0.1,0.25,0.25,1,1,3583351857.3249836,0.318593518069559,712847037.4649757,0.6354178252085088,0.4107077992910449,0.5993799999999999
6,0.3,0.2,0.5,1.0,0,3,2132700327.5721636,0.35660353001261036,4381930586.78424,0.6842459041130696,0.11426535348143477,0.8897199999999998
7,0.3,0.3,1.0,0.0,3,2,974491056.42307,0.5408270797485301,3561975808.9881554,0.7302327612029926,0.30447368882117015,0.58168
8,0.3,0.6,0.0,0.75,2,4,2231944252.8101144,0.3243417755070932,7347211383.90268,0.6124641964291936,0.031434391140154824,0.9991599999999999
9,0.3,0.8,0.75,0.5,4,0,2534816140.253242,0.4378413556518217,-15172730.491349373,0.6937135777951888,0.36168132810898973,0.55692
10,0.5,0.1,0.5,0.5,2,2,3501367655.5928416,0.33797236082579557,196266936.4896618,0.6572132432777228,0.4323547858529854,0.5787400000000003
11,0.5,0.2,1.0,0.75,1,0,891911208.6974739,0.5611172239149689,1390100749.1935647,0.7236069238823072,0.3446720733548981,0.6062200000000001
12,0.5,0.3,0.75,0.25,0,4,3274888817.1757836,0.403866176698511,-386336012.0435692,0.667577505330077,0.5004363214754965,0.32234
13,0.5,0.6,0.25,0.0,4,3,3947774874.369276,0.3126892815342134,-841230114.7790512,0.6239514783350074,0.4908683333742795,0.51456
14,0.5,0.8,0.0,1.0,3,1,2219930653.340618,0.32408256678601705,7328248614.25572,0.6113505414040145,0.03063639004032429,0.9999600000000001
15,0.7,0.1,0.75,0.75,3,3,2207711155.8494225,0.4476603251379397,-1365091642.6265366,0.7004616952010321,0.27183084757832804,0.7349199999999998
16,0.7,0.2,0.0,0.25,4,2,2238570319.5581236,0.32058465008374065,7704431585.416634,0.6130621292237446,0.02989953876566693,0.9973399999999998
17,0.7,0.3,0.25,1.0,2,0,2763246523.7844043,0.3291877280223718,2162066177.797185,0.6445201208591211,0.21400966647648428,0.7904000000000001
18,0.7,0.6,1.0,0.5,0,1,1383395719.11187,0.45378677374957815,1603174635.5956562,0.7032790913772128,0.40458710368142614,0.19522000000000006
19,0.7,0.8,0.5,0.0,1,4,4219542832.3768826,0.31124568954307735,2746509344.3607755,0.6224246697443379,0.6387865578153028,0.3705199999999999
20,0.9,0.1,1.0,1.0,4,4,489349516.80061144,0.5640132971141891,1267114115.0009573,0.7190149964863083,0.25274434914376037,0.9783599999999999
21,0.9,0.2,0.75,0.0,2,1,3531416434.4686055,0.383220144670341,-570291514.4563878,0.6435865829062638,0.5434754417573159,0.3159
22,0.9,0.3,0.0,0.5,1,3,2225676040.7863197,0.3231111470432539,7499618291.1891,0.6143657705589401,0.03023660679595901,0.9984000000000005
23,0.9,0.6,0.5,0.25,3,0,4224342611.9863267,0.3149189618923322,2558153657.0493298,0.6237404624204317,0.6232901843629707,0.3693
24,0.9,0.8,0.25,0.75,0,2,3771772166.7549596,0.31535631924275476,355322367.2903824,0.628465259560874,0.4055244537993002,0.5439

1 alpha percent_search is_RH_ratio is_FH_ratio 4 5 out_w_avg_salary out_w_gini_salary out_f_avg_profit out_f_avg_yield out_f_gini_profit out_w_percent_hired
2 0 0.1 0.1 0.0 0.0 0 0 2368465751.5406537 2242492228.44022 0.25549631542877876 0.31370582729629465 13562099898.491034 8386365771.52619 0.8111621840041076 0.6213188164268715 0.02176875745790126 0.02793927597790053 0.9988666666666669 0.9976
3 1 0.1 0.2 0.25 0.5 3 4 5522285523.0731 3997862676.770684 0.2524078028062856 0.31986962030265276 16315667734.367153 499630334.99093276 0.6593680667656033 0.6215373061751157 0.045560589871753515 0.43096687773475784 0.5098666666666667 0.4704800000000002
4 2 0.1 0.3 0.5 0.75 4 1 4454727560.0325775 3439076924.8319983 0.2771080480659774 0.3533505500764945 13699986479.16012 -1629574359.634039 0.7067163108727459 0.6639647905259909 0.043326466263185676 0.4119320605158336 0.5896333333333332 0.5332000000000001
5 3 0.1 0.6 0.75 1.0 1 2 3524093666.5841937 1462944505.142828 0.30440038884993215 0.45256931043852616 8213057585.886228 2491178401.016534 0.880109267422068 0.720268536423712 0.12377874385642872 0.09313786621140144 0.7924 0.9007000000000004
6 4 0.1 0.8 1.0 0.25 2 3 875218961.7464943 509800614.4254606 0.20976780091170993 0.48250552300931127 6113345396.221328 2201450152.0710497 0.952269754073068 0.7405772300911478 0.02494302091472818 0.04554713640370322 0.9896999999999997 0.97158
7 5 0.3 0.1 0.25 0.25 1 1 5398498461.823114 3583351857.3249836 0.2441507436030353 0.318593518069559 18795156613.361065 712847037.4649757 0.686389131537799 0.6354178252085088 0.039447871824882484 0.4107077992910449 0.5462666666666667 0.5993799999999999
8 6 0.3 0.2 0.5 1.0 0 3 2395383999.030499 2132700327.5721636 0.27526438728192953 0.35660353001261036 11630610298.951496 4381930586.78424 0.8487831693260026 0.6842459041130696 0.023700608340641985 0.11426535348143477 0.9239333333333334 0.8897199999999998
9 7 0.3 0.3 1.0 0.0 3 2 4497862732.328102 974491056.42307 0.25650404394763476 0.5408270797485301 6597215958.996845 3561975808.9881554 0.8692483398813017 0.7302327612029926 0.2613133986633773 0.30447368882117015 0.5502666666666667 0.58168
10 8 0.3 0.6 0.0 0.75 2 4 2348575416.0071034 2231944252.8101144 0.27155174965375956 0.3243417755070932 12409088226.99467 7347211383.90268 0.7910579331452426 0.6124641964291936 0.022505688439158684 0.031434391140154824 0.9995666666666666 0.9991599999999999
11 9 0.3 0.8 0.75 0.5 4 0 6651993103.30317 2534816140.253242 0.30766207889001734 0.4378413556518217 10035164802.668427 -15172730.491349373 0.7843607510828039 0.6937135777951888 0.22003607984174758 0.36168132810898973 0.4164333333333333 0.55692
12 10 0.5 0.1 0.5 0.5 2 2 5133723848.104433 3501367655.5928416 0.26769485505833346 0.33797236082579557 17235341192.94299 196266936.4896618 0.6888348491428041 0.6572132432777228 0.03913753781713959 0.4323547858529854 0.5156666666666668 0.5787400000000003
13 11 0.5 0.2 1.0 0.75 1 0 5034164466.873026 891911208.6974739 0.24368013029391572 0.5611172239149689 5865650683.297427 1390100749.1935647 0.8229320941467569 0.7236069238823072 0.24390962121474857 0.3446720733548981 0.5581 0.6062200000000001
14 12 0.5 0.3 0.75 0.25 0 4 6578657635.364925 3274888817.1757836 0.3115112813862723 0.403866176698511 12821889906.626564 -386336012.0435692 0.7296776559004362 0.667577505330077 0.12566259947274172 0.5004363214754965 0.37306666666666666 0.32234
15 13 0.5 0.6 0.25 0.0 4 3 5317878424.16211 3947774874.369276 0.25426139822096233 0.3126892815342134 15952002523.191202 -841230114.7790512 0.6366959066789712 0.6239514783350074 0.04931280827587589 0.4908683333742795 0.4945 0.51456
16 14 0.5 0.8 0.0 1.0 3 1 2337493729.850705 2219930653.340618 0.2710639457985169 0.32408256678601705 12450822077.153242 7328248614.25572 0.7959806250965015 0.6113505414040145 0.021674836574836306 0.03063639004032429 1.0 0.9999600000000001
17 15 0.7 0.1 0.75 0.75 3 3 4390912082.717371 2207711155.8494225 0.29317850679017093 0.4476603251379397 11461734869.758415 -1365091642.6265366 0.8454879328793415 0.7004616952010321 0.09655847372754531 0.27183084757832804 0.7302666666666665 0.7349199999999998
18 16 0.7 0.2 0.0 0.25 4 2 2352491003.881384 2238570319.5581236 0.26561012389146327 0.32058465008374065 12783562370.987354 7704431585.416634 0.7967645757084304 0.6130621292237446 0.02266688334352523 0.02989953876566693 0.9986333333333332 0.9973399999999998
19 17 0.7 0.3 0.25 1.0 2 0 3653532123.395534 2763246523.7844043 0.2617650401923907 0.3291877280223718 13957125531.167791 2162066177.797185 0.7533581068472094 0.6445201208591211 0.03256326130466421 0.21400966647648428 0.7757333333333333 0.7904000000000001
20 18 0.7 0.6 1.0 0.5 0 1 6924158520.902663 1383395719.11187 0.2675809284783991 0.45378677374957815 7891681851.714676 1603174635.5956562 0.8045158669403997 0.7032790913772128 0.43446126904216925 0.40458710368142614 0.24976666666666672 0.19522000000000006
21 19 0.7 0.8 0.5 0.0 1 4 4736119503.894477 4219542832.3768826 0.27992269679276827 0.31124568954307735 14678429776.163397 2746509344.3607755 0.5976800185496292 0.6224246697443379 0.05283537967029203 0.6387865578153028 0.42810000000000004 0.3705199999999999
22 20 0.9 0.1 1.0 1.0 4 4 867511457.6456088 489349516.80061144 0.24922575247153309 0.5640132971141891 5665703830.975503 1267114115.0009573 0.9307229635556812 0.7190149964863083 0.024869887137445312 0.25274434914376037 0.9877666666666663 0.9783599999999999
23 21 0.9 0.2 0.75 0.0 2 1 6851187209.991049 3531416434.4686055 0.31492006315769994 0.383220144670341 14119587314.503916 -570291514.4563878 0.7105804111939837 0.6435865829062638 0.09613556316018454 0.5434754417573159 0.34823333333333323 0.3159
24 22 0.9 0.3 0.0 0.5 1 3 2361545981.6950893 2225676040.7863197 0.2705929602865968 0.3231111470432539 12574016364.653028 7499618291.1891 0.7903606771743784 0.6143657705589401 0.023174577361497042 0.03023660679595901 0.9990666666666664 0.9984000000000005
25 23 0.9 0.6 0.5 0.25 3 0 4857056462.399006 4224342611.9863267 0.279816369708902 0.3149189618923322 14630466418.460012 2558153657.0493298 0.6084314344270363 0.6237404624204317 0.05141348153810012 0.6232901843629707 0.43129999999999996 0.3693
26 24 0.9 0.8 0.25 0.75 0 2 4760429051.04185 3771772166.7549596 0.25907435765822473 0.31535631924275476 15349917450.20687 355322367.2903824 0.6836278612672746 0.628465259560874 0.04078068085187289 0.4055244537993002 0.5870000000000001 0.5439

Binary file not shown.