G-Tech : Jurnal Teknologi Terapan
Vol 10 No 1 (2026): G-Tech, Vol. 10 No. 1 January 2026

Implementation of the Monte Carlo Method in Random Walk Models for Analyzing Gambling Bankruptcy Problems

Kaka Davi Dharmawan (Universitas Islam Negeri Sumatra Utara, Indonesia)
M. Khalil Gibran (Universitas Islam Negeri Sumatera Utara, Indonesia)
Cici Melisma (Universitas Islam Negeri Sumatera Utara, Indonesia)
Dedek Nurlina (Universitas Islam Negeri Sumatera Utara, Indonesia)
Muhammad Nafis Riziq (Universitas Islam Negeri Sumatera Utara, Indonesia)
Alfin Mubarkah Tanjung (Universitas Sumatera Utara, Indonesia)



Article Info

Publish Date
20 Jan 2026

Abstract

Gambler's Ruin Problem (GRP) is a basic stochastic model used to analyze the probability of a player reaching a target wealth versus losing all capital through sequential random games. This study has two main objectives: to validate the Monte Carlo simulation model against established theoretical results and to conduct a comprehensive sensitivity analysis of the probability of bankruptcy and game duration relative to the probability of winning , initial capital , and target capital . The simulation model was developed in Python as a one-dimensional random walk model, using  replications for initial validation. The results show a high degree of conformity, with an empirical simulation probability of 0.5004 compared to a theoretical value of 0.5000, in accordance with the Law of Large Numbers. Sensitivity analysis shows that a small deviation in  (e.g.,  drastically increases the probability of bankruptcy to over 88%. Furthermore, the average game duration peaks in the fair scenario  at 2,502 steps and decreases significantly under biased conditions. This study confirms the effectiveness of the Monte Carlo method in measuring the impact of the “house advantage” and provides counterintuitive insights into the dynamics of stochastic games.

Copyrights © 2026






Journal Info

Abbrev

g-tech

Publisher

Subject

Computer Science & IT Decision Sciences, Operations Research & Management Energy Engineering

Description

Jurnal G-Tech bertujuan untuk mempublikasikan hasil penelitian asli dan review hasil penelitian tentang teknologi dan terapan pada ruang lingkup keteknikan meliputi teknik mesin, teknik elektro, teknik informatika, sistem informasi, agroteknologi, ...