Intro to Recursion – Python Examples

Recursion is an algorithmic technique where a function, in order to accomplish a task, calls itself with some part of the task.   #Non-recursive function def it_sum(a_list): ”’this function iterates over the values in the variable a list”’ result = 0 for x in a_list: result += x return result x=it_sum([1,2,3,4,5]) print(x) def rec_sum(a_list): ”’ base…

R cheat sheet for working with normal distribution

This article presents a bunch of code snippets that you can use as a reference when dealing with normal distribution. R makes it easy to run stats. Use, improve and share your comments please.   #the 68-96-99.7% rule for the normal distribution with regards to standard deviations #How to work with standard normal tables #What…