Monday, September 24, 2012

Section 5 - Thinking Electrons: Modeling People


Section 5 - Modeling People

Thinking Electrons: Modeling People - Part 1

Purposeful Actors

Diversity

Rational Actor Models - Part 2

-  Assumes that people optimize their goals
-  Assumes an objective function (happiness, market share, votes, etc),  then they optimize

Start w/ an Objective  ==> Optmize  (i.e. maximize profit for a copmany, maximize utility for a person, political candidate get as many votes as possible)

revenue = Price x quantity
Qauntity = q, price = 50-q

What q maximizes the revenue

Decision - Objective only on what I do
Game - my payoff  is dependent on others in the game.  My payoff is decided by the action of others.

Normal Form Game


Model for 2 people going to the city or staying at home
In the case above, if person 1 stays at home they get a payoff of 1, regardless of person 2.  If person 1 goes to the city, they automatically get a payoff of 2.

For person 2, if they think person 1 is going to be rational, they should assume that person 1 will go to the city

Extension Form Game

Extensive Game Tree
Green person will decide to go with the 0,0, as if blue is rational then they will optimize and go after 3, if offered a choice.

When will we see rationality:
  • When stakes are large.
  • When things are repeated
  • When groups make decisions
  • When the problem is easy 
Rational assumes:
  • Unique
  • Easiest
  • People Learn
  • Mistakes Cancel out and you are left w/ rational


Behavioral Models - Part 3

-  Gather real data, then model people as close to how real people behave
-  Observe what people do, then find out that they are not rational, but they typically fit into some behaviors

2 books about how we add bias to our decisions
Daniel  Kahneman - Book - Thinking Fast and Slow
Richard Thaler - Book - Nudge

1. Prospect Theory - Decision based on having a known amount offered, but they will sometimes prospect.  We are risk adverse if the known amount is positive.  If the decision for negative amount first, then people will take the risk on b

2. Hyperbolic Discounting - Option A a $1000, wait until tomorrow $1005.  Short periods of time we won't tend to want a minimal increase.  We tend to allows ourselves to wait for a somewhat larger amount.

3. Status Quo Bias - we naturally want to keep the status quo,

4. Base Rate Bias - If you ask someone for a number, then ask them for a second number, they will tend to be closer

Problems w/ Biases
1.  Lots of Biases
2. WEIRD - Western Educated Industrialized Rich Developed Countries - Most biases are based on these categorized.
3. People Learn and can avoid
4. Biases can make things computationally difficult.

We want to consider which Biases have the most influence on the answer.

Rule-Based Models - Part 4

-  Assumes people follow rules
-  Schelling Model - example of a rule-based model

The matrix above is defines the various types of Rules-Based Models

We will walk through all 4 types

Fixed Decision Rule - may not be optimal
- Random decision choice
- Taken the most direct route - travel the most direct route -

Fixed Game
- Divide Evenly
- Tit for Tat - If you're nice, I'll be nice, etc. (Moore Machines)

     - Grim Trigger - if you are mean to me, I won't ever get over it.

Adaptive Decision Rule
-  Gradient method - I start by adding a certain amount, then slowly increasing until they start to get a little worse.
-  Random - I could randomly throw something in.

Adaptive Game/Strategies
-  Best Response - what is best possible response I can offer.
-  Mimicry - copy people who are doing well

Observation #1
-  Sometimes optimal rules are simple

Observation #2
-  Simple rules can often be exploited

So Why Model
-  they are easy to model
-  capture main effects
-  some of these models are ad-hoc, rules may not be representative
-  sometime rules can be exploited.

When Does Behavior Matter?

  • Rational
  • Behavioral
  • Rules-Based
Deciding which one is best to use or if it even matters

Market - Two Sided (Buyers and Sellers)
Buyers have prices between $0 and $100
Sellers are willing to sell between $50 and $150

If you are the buyer you will start your price below, if you are a seller you will ask for a little higher than you would like.

Relevant buyers will want to buy between 50 & 100
Relevant sellers will have to sell between 50 & 100

rational will say about $75
optimizing won't change it much, so it will be about $75 again
Rules-Based again if you model you will likely find something around $75 again.
The market will not really change the model behavior

Game - Race to the bottom
Pick a number from 0 to 100, the person closest to 2/3rds of the mean will win

Rational would push us towards 0
Behavioral will ....
If you applied rules then you would be biased toward 50, then the best reponse is 2/3rds of 50 is 33, that should be my guess.

Irrational people will change things in this case.










Quiz 1

Quiz 1: Sections 2-4


Welcome to the first quiz! You'll be seeing one of these quizzes after every two new sections. They all have a mix of multiple-choice questions, numeric answers - in which you have to input a number - and "checkbox" questions, in which more than one option might be correct. You can take these a number of times, until you feel that you have the material down; just make sure you get it done before the close date! If you're having trouble understanding any concepts (or if you encounter technical problems), let us know about it in the discussion forum. And for those of you who feel like the quizzes are a breeze, check out the forum anyway, especially if you feel like helping out your peers!
The 12 questions on this quiz will cover sections 2, 3, and 4 (we're ignoring Section 1 for now). Here's what we learned:
Section 2: Segregation and Peer Effects
Section 3: Aggregation
Section 4: Decision Models
Questions on all quizzes will be both conceptual and technical; you'll be asked to think both broadly and precisely.
There are more questions on this quiz than on the rest you will take because we're covering 3 sections here instead of the usual 2. But don't worry, there's nothing here that we didn't talk about in the videos.
Good luck!

Question 1

Who developed the racial and income segregation model that we covered in section 2?

Question 2

Recall that the index of dissimilarity is a way to categorize, numerically, how segregated a city is. Imagine a city comprised of four equal sized blocks. One block contains all rich people; one block contains all poor people; and two blocks contain equal numbers of poor and rich people. What is the index of dissimilarity? Answer using decimal notation.

Question 3

Recall the standing ovation model. Suppose that in this case, perceptions of show quality are uniformly distributed between 0 and 100. Also suppose that individuals stand if they perceive the quality of the show to exceed 60 out of 100. Approximately what percentage of people will stand initially?

Question 4

In the Standing Ovation model, does increasing the variation in perceptions of quality always increase the number of people initially standing?

Question 5

Imagine a street on which there exist two sub shops: Big Mike's and Little John's. Each Saturday, Big Mike's draws an average of 500 people with a standard deviation of 20. Also on Saturdays, Little John's draws an average of only 400 people with a standard deviation of 50. If both distributions are normal, which shop is more likely to attract more than 600 people on a given Saturday?

Question 6

In the game of life, a world begins with 4 cells in a row in the alive state, and no other cells alive. After 20 updates, what state is the world in? (In other words, which cells are alive at this point?)

Question 7

Recall Wolfram's one dimensional cellular automata model. Which of the following classes of outcomes can this model produce? (Hint: pick more than one).

Question 8

Suppose that there exist three voters, each of whom is given three alternatives: A, B and C. There exist six possible strict preference orderings for these three alternatives: A>B>C, A>C>B, B>C>A, B>A>C, C>A>B, and C>B>A. The first voter has preferences A>B>C. The second voter has preferences B>C>A. Preferences of the third voter are unknown. How many of the six possible preference orderings, if selected by the third voter, would produce a voting cycle? (In a voting cycle, A defeats B, B defeats C, and C defeats A).

Question 9

Sarah is shopping for a computer. She researches different aspects of the computers for sale: screen size, processing speed, battery life, and special keys on the keyboard. For which of these attributes would Sarah likely have spatial  preferences?

Question 10

You want to go to a concert in Detroit, but you have only $80. The cost of driving will be $30. When you get to the concert, there's a 40% chance you'll be able to get a ticket for $50, and a 60% chance that tickets will cost more than $50. If it's worth $130 to you to go to the concert, what's your expected value of driving to Detroit and trying to buy a ticket?

Question 11

How many possible preference orderings exist for four alternatives? These orderings must satisfy transitivity.

Question 12

Suppose that each of 400 people is equally likely to vote "yes" or "no" in an election. What's the size of the standard deviation for the total number of "yes" votes?

Thursday, September 20, 2012

Decisioi Models - Sections 3 & 4


Aggregation (Lesson 3)
Philip Anderson - Physicist - Nobel Prize Winner - "More is Different"
-  Focuses on looking at systems vice components
-  One molecule of water isn't really wet, it takes many brought together.


Actions

Central Limit Theorem - Add Independent (Uninfluenced by others) Events - Probability Distribution
for Heads and Tails 
   if we have N events ==> mean = N/2

Binomial Distribution - more than 2 options (Not heads and tails)
pN where p is probability of something occurring
Mean = pN
SD  = sqrt(p(1-p)N)

sigma = Standard Deviation = -1 sigma to 1 sigma are seperated by 68%, where there are 2 standard deviations the probability increases to 95%, 3 sigma is 99.75%

Bimodal Distribution
2 peaks in the normal distribution

Six Sigma
Making production processes more predictable
- 3 Sigmas on either side of the mean - < 3.4 in a million


-  Single Rules

-  Family of Rules 

-  Preferences

Cellular Automata Models

Steven Wolfram is the original founder
Four Classes of Behavior in Automata Models



If you use the rules at the top, and start with the first row, then you get the follow-on rows.








  
Normative models - help us make better choices
Positive models - predict behavior of others

Classes of models
Multi-criterion models - selecting a car (many dimensions)

Qualitative Approach  - (create a table that help w/ the decision)(buying a house including sq ft, # bedrooms, # bathrooms, etc) and then filling it in.  Select where each one is better and count them up.

We can now add Quantitative Weights to each of the criteria

Spatial Choice Models
Probabilistic models - when you can compare x and y (fast and comfortable) and how far are we from an ideal point
Ideal Point - select a product closest to your ideal point.
You take the absolute value of the difference ==>  add them up and calc the distance

You can reverse this to explain what we are seeing.

Probability: The Basics
Axiom 1: any probability is between 0 and 1
Axiom 2: Sum of all outcomes is 1
Axiom 3: In an event, if one is a subset of the other, it's probability must be lower than the superset.

Types of probabilities
Classical probabilities (rolling dice, gambling, etc)
Frequency Probability (we look at data and estimate whether it will happen)
Subjective Probabilities (guessing, or using some subjective model)

Decision Trees
Decision Trees - yes/no trees leads to the value of information.  Good for model where there are lots of contingencies.

Scholarship: $5000
200 Applicants
2 Page Essay ($20 cost)
10 Finalists who will have to write a 10 page essay ($40 cost)
                                                 / Win (.1 chance) for 4940
                                  /Essay 2
              /  Selected                \ Lose (.9 chance) for -60
  /Essay                        \ Don't (-20)
X           \ Lose ( -20)
   \Don't start
   





Value of Information -

Sunday, September 16, 2012

Quiz Questions

Sorting and Peer Effects - we hang out with people who are similar to us and we begin to act like them

Schelling - Segregation model - Thomas Schelling (UMD)

- 2 types of segregation were his original interest - Income and Race
- Agent based model
- should I stay here or move  --> looks like a checkerboard.  They look at surrounding neighbors
- Threshold - I have 7 neighbors how many need to be like me.
- Computer Software - Netlogo
- If we require too many people near us to be like us, we will eventually not be able to live there at all, as we cannot get enough people near us to continue to stay all the time
-  Tipping percent - if 1 leaves, then others will follow
-  Genesis Tip - someone moves in causes someone else to move out

Measure of Dis-similarity
How do we measure dis-similarity?
Index of Dis-similarity - create dots w/ colors (Rich, poor, 1/2 poor/1/2 Rich)
- relatively greater one or the other leads to a higher Index (uses absolute value markers so index is always positive, it just doesn't specify which way it is dis-similar.
- multiplying by the number of people and an index, then we get to the index

Perfectly mixed value give an index of 0
Perfectly segregated gives an index of 2
Don't forget to divide by to get it normalized


Granovetter - Social Behavior


Peer Effects
Contagion - hard to predict the outcome

Model:
    N people
    T persons Threshold (0 means you join without others, 50 means it has to be 50 people before you join)

Lower Thresholds - leads to more collective actions
More variation - leads to more collective actions

Standing Ovation (Based on Granovetter) - Created by Page and  -

Standing Ovation is a Peer Effect
Information - others who seem to know more, we have to recognize their expertise

Threshold: T
Quality: Q  (how good is the show, to you)
Error: E (some signal) (can also be Diversity)
Signal S = Q + E
X = % of people who need to stand before I will


If S >T, Stand
Higher quality of the show ==> more likely to stand
Lower T, more likely to stand
Lower X, more ovations

What causes X to be big? people who are secure in their position
What causes X to be small? people who are unsure about their positions

E if this is Diversity, then E allows for a positive or negative variation
Large Diversity is likely to create a standing ovation

What causes E to be big?
-  If multidimensional, create larger variancevariance


Aggregating Preferences

-  Preference Ordering - prioritizing within a category (fruit, cars, etc)
-  Transitive preferences - rational prioritization
-  Rational preferences follow x(x-1)(x-2) etc possible rational routes

Collective Preference (what is our family choice)
Condorcet Paradox - each person is rational, but the collective is not rational


Identification - Are people similar so they start to look similar?

Agent Based Models have:
-  Individuals
-  Behaviors
-  Outcomes