John V. Guttag - Introduction To Computation and Programming Using Python - With Application To Understanding Data-The MIT Press (2016) PDF
John V. Guttag - Introduction To Computation and Programming Using Python - With Application To Understanding Data-The MIT Press (2016) PDF
5 QUICK REFERENCE
simulation model, 215, See simulation standard error of the mean (SE, SEM), 302–
sklearn, 417 4, 330
sklearn.metrics.auc, 424 standard library modules
slicing for sequence types, 19 copy, 74
SmallTalk, 109 datetime, 115
smoke test, 223 math, 322
snake oil, 369 random, 237
Snakes and Ladders, 231 standard normal distribution, 400
SNR (signal to noise ratio), 374 statement, 9
social networks, 196 statements
software quality assurance (SQA), 91 *=, 30
sort built-in method, 72, 432 +=, 30
key parameter, 164 -=, 30
mutates argument, 163 = (assignment), 12
mutates list, 158 assert, 108
polymorphic, 117 break, 27, 29
reverse parameter, 164 conditional, 15
sorted built-in function, 186 for loop, 27, 61
does not mutate argument, 163 global, 57
key parameter, 164 if, 17
returns a list, 158 import, 59
reverse parameter, 164 import *, 60
sorting algorithms, 158–64 pass, 121
in-place, 162 raise, 105
merge sort, 144, 159–62, 203 return, 41
quicksort, 162 try–except, 102
stable, 164 while loop, 22
timsort, 162 yield, 128
source code, 7 static scoping, 44, See also scoping
source node, 191 static semantic checking, 5, 128
space complexity, 143, 162 statistical machine learning. See machine
specification, 47–50 learning
assumptions, 48, 155 statistical significance, 328–44, 328, 366
docstring, 48 correctness versus, 288
guarantees, 48 statistical sin
specificity (precision), 406 assuming independence, 356
split, str method, 79, 162, 432 confusing correlation and causation, 360
spring constant, 305 convenience (accidental) sampling, 363
SQA (software quality assurance, 91 Cum Hoc Ergo Propter Hoc, 359
square root, 30, 31, 32, 38 extrapolation, 364
stable sort, 164 Garbage In Garbage Out (GIGO), 356
stack, 45 non-response bias, 362
stack frame, 44 reliance on measures, 361
standard deviation, 247, 280 Texas sharpshooter fallacy, 364
relative to mean, 250 statistics
standard error. See standard error of the alternative hypothesis, 329
mean coefficient of variation, 250–53
confidence interval, 253, 261, 300
446 INTRODUCTION TO COMPUTATION AND PROGRAMMING USING PYTHON