what ' going to do is write little bit of python code that creates some fake datagspnovnqzjnqpsusboepn sboepntffe upubmt \qvsdibtft \upubm vsdibtft gps@josbohf bhf%fdbef sboepndipjdf qvsdibtf spcbcjmjuz gmpbu bhf%fdbef upubmt jg sboepnsboepn qvsdibtf spcbcjmjuz upubm vsdibtft qvsdibtft what ' going to do is take , virtual people and randomly assign them to an age bracket they can be in their stheir stheir stheir stheir sor their ' also going to assign them number of things that they bought during some period of timeand ' going to weight the probability of purchasing something based on their age what this code ends up doing is randomly assigning each person to an age group using the sboepndipjdf function from numpy then ' going to assign probability of purchasing somethingand have weighted it such that younger people are less likely to buy stuff than older people ' going to go through , people and add everything up as goand what end up with are two python dictionariesone that gives me the total number of people in each age groupand another that gives me the total number of things bought within each age group ' also going to keep track of the total number of things bought overall let' go ahead and run that code if you want to take second to kind of work through that code in your head and figure out how it worksyou've got the ipython notebook you can go back into that later too let' take look what we ended up with