Commit 13a3338
committed
Fix Bernoulli CDF to show initial jump from 0
Issue: CDF plot started at 0.7 without showing that it should be 0 before x=0
Fix:
- Added point at x=-0.5 with CDF=0 to show initial value
- Now properly shows: 0 → jump to 0.7 at x=0 → jump to 1.0 at x=1
- Applied to both Bernoulli CDF visualizations
- Added xlim to show the full step function
The plot now correctly mirrors the description: starts at 0, jumps to 0.7
at x=0 (including outcome 0), then jumps to 1.0 at x=1 (including both outcomes).1 parent 619c897 commit 13a3338
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | | - | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
259 | | - | |
| 262 | + | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
263 | 267 | | |
| 268 | + | |
264 | 269 | | |
265 | 270 | | |
266 | 271 | | |
| |||
0 commit comments