[Music] hello everyone so in this unit we're gonna try to take everything we've learned about netlogo and agent-based modeling and agents and we're gonna try to put it together to create our first model from scratch from the ground up right and I'm gonna be giving you a lot of code and explanations along the way but hopefully leading you through the hand its leading you by the hand so you can see how this all works together and then this start with some inspiration you know and then 1996 Josh Epstein arrived Extell published won the first definitive books on agent-based modeling is social science called growing artificial societies which was populated by artificial economic agents and others through their basic model which was sometimes referred to a sugar scape right was really kind of had these agents in them that interacting economic ways right and that was one of the first examples and that really inspired a lot of work into using agent-based modeling to explore how economies work in how societies work so we're going to create a simple model of economic agents inspired in part by experts in acts those work and the paper by draging Lascaux and yoko Benko in 2000 and the basic idea is the following right we're gonna create a 500 agents that start off $100 each and every tick each person gives one down there to another person randomly the idea is that this somehow models the exchange economy right did I give you a dollar for an apple you might give me a dollar for my teaching right whatever right and if you run out of money at the end you can't give any more money until someone gives you money you can't give me more money away so you can't buy anything if you have no money it's the basic idea so given the fact that we start with this uniform distribution the question that journalists doing activate go in others fast right is what will the final distribution of wealth be in this very very simple economy right so we're gonna explore that in the next couple of slides