@@ -938,11 +938,11 @@ ax.text(0.5, 0.96, rf"Geometric Distribution: Trials Until First Success ($p={p}
938938
939939# Draw sequences at different positions
940940sequences = [
941- ("S", 1, 0.20 , 0.84), # Success on trial 1
942- ("FS", 2, 0.38 , 0.84), # Fail then Success
943- ("FFS", 3, 0.56 , 0.84), # Fail Fail then Success
944- ("FFFS", 4, 0.74 , 0.84), # Fail Fail Fail then Success
945- ("FFFFS", 5, 0.92 , 0.84), # Fail Fail Fail Fail then Success
941+ ("S", 1, 0.16 , 0.84), # Success on trial 1
942+ ("FS", 2, 0.34 , 0.84), # Fail then Success
943+ ("FFS", 3, 0.52 , 0.84), # Fail Fail then Success
944+ ("FFFS", 4, 0.70 , 0.84), # Fail Fail Fail then Success
945+ ("FFFFS", 5, 0.88 , 0.84), # Fail Fail Fail Fail then Success
946946]
947947
948948seq_boxes = {}
@@ -1006,7 +1006,7 @@ ax.annotate("Most likely:\nsucceed early",
10061006x0, y0, x1, y1 = seq_boxes["FFFFS"]
10071007ax.annotate("Less likely:\nmany failures",
10081008 xy=((x0 + x1)/2, y0), xycoords=ax.transAxes,
1009- xytext=(0.92 , 0.70), textcoords=ax.transAxes,
1009+ xytext=(0.88 , 0.70), textcoords=ax.transAxes,
10101010 arrowprops=dict(arrowstyle="->",
10111011 connectionstyle="arc3,rad=0.15",
10121012 lw=2.5, color="red",
0 commit comments