Apply a function over a vector or list Written by Dimitris Kokoretsis #programming #loops Featured in 3 main posts The birthday problem — Part 2: The statistical shortcut The birthday problem — Part 1: When counting fails Drawing random biscuits: from probability to data Apply a function to a vector or list iteratively, one element at a time. Read more →
Functions Written by Dimitris Kokoretsis #programming Featured in 5 main posts The birthday problem — Part 3: Calculating in steps The birthday problem — Part 2: The statistical shortcut How to get data from websites (fast) The birthday problem — Part 1: When counting fails Drawing random biscuits: from probability to data Reuse code to perform the same operation on different inputs. Read more →
Variables Written by Dimitris Kokoretsis #programming Featured in 5 main posts The birthday problem — Part 2: The statistical shortcut How to get data from websites (fast) Football goals and coin flips: discovering the law of rare events The birthday problem — Part 1: When counting fails Drawing random biscuits: from probability to data Assign values or objects to names. Read more →