Skip to content

Instantly share code, notes, and snippets.

View lucca's full-sized avatar
🌀
Eternally dizzy

Jeff Lucca lucca

🌀
Eternally dizzy
View GitHub Profile
@lucca
lucca / ps4.py
Created February 20, 2021 04:44
import numpy as np
def part_b():
# probability transition matrix
p_matrix = {
0: [1/4, 3/4],
1: [2/5, 3/5]
}
# number of times the simulation reached each destination