{"id":28931663,"url":"https://github.com/beliavsky/asset-allocation","last_synced_at":"2026-02-02T02:01:31.038Z","repository":{"id":294137037,"uuid":"985988161","full_name":"Beliavsky/Asset-Allocation","owner":"Beliavsky","description":"Simulations of bet-sizing and asset allocation problems","archived":false,"fork":false,"pushed_at":"2025-06-04T13:37:39.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T16:07:56.618Z","etag":null,"topics":["gambling","quantitative-finance","simulation"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Beliavsky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-18T23:39:50.000Z","updated_at":"2025-06-04T13:38:29.000Z","dependencies_parsed_at":"2025-05-19T03:48:31.748Z","dependency_job_id":null,"html_url":"https://github.com/Beliavsky/Asset-Allocation","commit_stats":null,"previous_names":["beliavsky/asset-allocation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Beliavsky/Asset-Allocation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beliavsky%2FAsset-Allocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beliavsky%2FAsset-Allocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beliavsky%2FAsset-Allocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beliavsky%2FAsset-Allocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beliavsky","download_url":"https://codeload.github.com/Beliavsky/Asset-Allocation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beliavsky%2FAsset-Allocation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29001462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T01:32:03.847Z","status":"online","status_checked_at":"2026-02-02T02:00:07.448Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gambling","quantitative-finance","simulation"],"created_at":"2025-06-22T16:07:34.124Z","updated_at":"2026-02-02T02:01:31.030Z","avatar_url":"https://github.com/Beliavsky.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Asset-Allocation\nSimulations of bet-sizing and asset allocation problems. The program `xbet_strategy.f90` simulates a betting game described on p16 of the book [The Missing Billionaires: A Guide to Better Financial Decisions](https://www.wiley.com/en-us/The+Missing+Billionaires%3A+A+Guide+to+Better+Financial+Decisions-p-9781119747918) (2023), by Victor Haghani and James White. For a bet that you have a 60% of winning, with gains and losses of equal size, with a capped payout of 10 times initial wealth, with up to 300 bets placed, the optimal bet size as a fraction of wealth is between 10% and 20%, consistent with the Table 2.1 of the book on p18.\n\nSample output:\n```\n      initial wealth:  25.0000\n      maximum wealth: 250.0000\n           prob gain:   0.6000\n                gain:   1.0000\n                loss:  -1.0000\n   maximum # of bets:      300\n          # of paths:   100000\n\nstats on terminal wealth vs. fractional bet size\n frac_bet     mean      min      max prob_max\n   0.0500 218.2454   8.5235 250.0000   0.7120\n   0.1000 241.7309   1.1118 250.0000   0.9447\n   0.1500 241.6671   0.0401 250.0000   0.9545\n   0.2000 238.0118   0.0032 250.0000   0.9422\n   0.2500 230.7173   0.0000 250.0000   0.9135\n   0.3000 218.9336   0.0000 250.0000   0.8676\n   0.3500 202.7334   0.0000 250.0000   0.8044\n   0.4000 182.2087   0.0000 250.0000   0.7243\n   0.4500 159.9138   0.0000 250.0000   0.6366\n   0.5000 138.4099   0.0000 250.0000   0.5524\n   0.5500 119.3370   0.0000 250.0000   0.4768\n   0.6000 105.0780   0.0000 250.0000   0.4202\n   0.6500  92.4122   0.0000 250.0000   0.3696\n   0.7000  82.9475   0.0000 250.0000   0.3318\n   0.7500  74.7900   0.0000 250.0000   0.2992\n   0.8000  67.6300   0.0000 250.0000   0.2705\n   0.8500  63.4175   0.0000 250.0000   0.2537\n   0.9000  58.1600   0.0000 250.0000   0.2326\n   0.9500  53.2900   0.0000 250.0000   0.2132\n   1.0000  48.1350   0.0000 250.0000   0.1925\n```\n`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliavsky%2Fasset-allocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeliavsky%2Fasset-allocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliavsky%2Fasset-allocation/lists"}