WEBVTT
Kind: captions
Language: en

00:00:00.360 --> 00:00:01.240
- [Justin] This video was sponsored

00:00:01.240 --> 00:00:04.780
by Primer's new merchandise
store on dftba.com.

00:00:04.780 --> 00:00:06.280
Link in the description below.

00:00:07.593 --> 00:00:09.225
This is a blob.

00:00:09.225 --> 00:00:11.370
It lives in a forest eating mangoes

00:00:11.370 --> 00:00:13.230
and burning wood for heat.

00:00:13.230 --> 00:00:14.280
In this video, we're gonna take

00:00:14.280 --> 00:00:16.000
the very first step towards building

00:00:16.000 --> 00:00:18.560
a simulated economy by creating a model

00:00:18.560 --> 00:00:19.960
for how this blob chooses

00:00:19.960 --> 00:00:22.123
to spend its time gathering resources.

00:00:23.220 --> 00:00:26.320
(gentle music)

00:00:26.320 --> 00:00:27.930
Each day, the blob can go out

00:00:27.930 --> 00:00:30.460
to collect mangoes and wood.

00:00:30.460 --> 00:00:32.650
Each tree produce one mango per day

00:00:32.650 --> 00:00:34.030
and it grows back the next day

00:00:34.030 --> 00:00:35.407
if it gets chopped down.

00:00:35.407 --> 00:00:37.990
(gentle music)

00:00:49.720 --> 00:00:51.440
The blob's decision for
how to spend its time

00:00:51.440 --> 00:00:53.040
has two inputs.

00:00:53.040 --> 00:00:55.330
First, what are its
option for it to produce

00:00:55.330 --> 00:00:57.280
with the time it has in the day,

00:00:57.280 --> 00:00:59.110
and second, out of those options,

00:00:59.110 --> 00:01:01.150
what makes it the happiest?

00:01:01.150 --> 00:01:04.280
We'll start by looking
at the production side.

00:01:04.280 --> 00:01:06.210
To figure out what these options are,

00:01:06.210 --> 00:01:07.910
let's see how many mangoes the blob

00:01:07.910 --> 00:01:10.647
can get if that's all it
looks for the entire day.

00:01:18.410 --> 00:01:20.523
Alright, 17 mangoes total.

00:01:21.550 --> 00:01:23.853
Now, let's try collecting only wood.

00:01:25.280 --> 00:01:27.030
It does take a moment
to chop down the trees,

00:01:27.030 --> 00:01:28.780
so the blob probably won't get quite

00:01:28.780 --> 00:01:29.930
as many pieces of wood.

00:01:38.380 --> 00:01:39.310
Alright, looks about right.

00:01:39.310 --> 00:01:41.600
It go 14 total.

00:01:41.600 --> 00:01:43.230
Those are the two extreme cases,

00:01:43.230 --> 00:01:44.770
but what about cases when the blob

00:01:44.770 --> 00:01:47.460
tries to find some
balance between the two?

00:01:47.460 --> 00:01:49.170
We're dealing with two quantities,

00:01:49.170 --> 00:01:50.700
so it'll be useful to keep track

00:01:50.700 --> 00:01:52.700
of outcomes using a graph.

00:01:52.700 --> 00:01:54.410
The two cases we've looked at so far

00:01:54.410 --> 00:01:56.630
led to 17 mangoes and zero wood,

00:01:56.630 --> 00:01:59.680
and zero mangoes and 14 wood.

00:01:59.680 --> 00:02:02.450
Next, let's have the
blob grab only one mango,

00:02:02.450 --> 00:02:04.330
and then, spend the
rest of its day on wood

00:02:04.330 --> 00:02:05.930
just to see how much it can get.

00:02:08.940 --> 00:02:11.620
Okay, it looks like we
still get 14 pieces or wood

00:02:11.620 --> 00:02:13.910
even if we sneak a mango in right away.

00:02:13.910 --> 00:02:15.270
And to finish putting this together,

00:02:15.270 --> 00:02:16.970
let's fast-forward a bit and have the blob

00:02:16.970 --> 00:02:18.730
run through days getting two mangoes,

00:02:18.730 --> 00:02:20.985
then three mangoes, then four, and so on.

00:02:20.985 --> 00:02:23.568
(gentle music)

00:02:27.950 --> 00:02:29.840
Okay, assuming the only thing

00:02:29.840 --> 00:02:31.630
the blob can change is how much time

00:02:31.630 --> 00:02:33.030
it spends on each resource,

00:02:33.030 --> 00:02:36.160
these points represent all
of the possible options.

00:02:36.160 --> 00:02:37.170
You might here this called

00:02:37.170 --> 00:02:39.440
the Production Possibilities Frontier.

00:02:39.440 --> 00:02:42.670
It's the frontier, or the
edge, of what's possible.

00:02:42.670 --> 00:02:44.320
Or, if we draw a curve through the points,

00:02:44.320 --> 00:02:46.540
the production possibilities curve.

00:02:46.540 --> 00:02:47.810
The curve really only makes sense

00:02:47.810 --> 00:02:49.050
when the numbers are big enough

00:02:49.050 --> 00:02:50.930
for it to look continuous, though.

00:02:50.930 --> 00:02:53.230
With all that done, we have
a pretty good understanding

00:02:53.230 --> 00:02:54.760
what the blob is able to produce

00:02:54.760 --> 00:02:56.820
and what trade-offs it has available.

00:02:56.820 --> 00:02:58.570
But we don't yet have any idea

00:02:58.570 --> 00:02:59.940
what the blob wants to produce

00:02:59.940 --> 00:03:02.180
and which trade-offs it's willing to make.

00:03:02.180 --> 00:03:04.290
Maybe, the blob wants to balance its time

00:03:04.290 --> 00:03:05.470
to get a decent amount of, both,

00:03:05.470 --> 00:03:06.580
mangoes and wood.

00:03:06.580 --> 00:03:08.360
Or, maybe, it doesn't
care about wood at all

00:03:08.360 --> 00:03:10.760
and it just wants as many
mangoes as it can get.

00:03:11.860 --> 00:03:15.210
So now, our goal it to
make a computer model

00:03:15.210 --> 00:03:18.450
that captures the full depth
of the human experience.

00:03:18.450 --> 00:03:19.400
How can we do that?

00:03:22.970 --> 00:03:24.580
Well, I certainly can't,

00:03:24.580 --> 00:03:26.860
but we don't have to be
quite that ambitious.

00:03:26.860 --> 00:03:28.640
All we need here is a way for the blob

00:03:28.640 --> 00:03:31.470
to choose which of two
situations it prefers.

00:03:31.470 --> 00:03:34.280
So, and this might sound
a bit silly at first,

00:03:34.280 --> 00:03:36.140
we're going to try to
give a happiness score

00:03:36.140 --> 00:03:39.280
to every possible combination
of mangoes and logs.

00:03:39.280 --> 00:03:41.030
Then, when the blob
has a decision to make,

00:03:41.030 --> 00:03:42.910
it can just compare those happiness scores

00:03:42.910 --> 00:03:44.110
and pick the higher one.

00:03:45.090 --> 00:03:47.640
Again, we'll start with just mangoes.

00:03:47.640 --> 00:03:50.830
Also again, we'll use a graph
to keep track of things.

00:03:50.830 --> 00:03:52.670
So what should the happiness score be

00:03:52.670 --> 00:03:54.680
for one mango in a day?

00:03:54.680 --> 00:03:57.750
We're making this up
so let's just say 100.

00:03:57.750 --> 00:03:59.370
That's pretty meaningless on its own,

00:03:59.370 --> 00:04:01.240
but what about the second mango?

00:04:01.240 --> 00:04:03.510
That first mango stopped
the blob from starving,

00:04:03.510 --> 00:04:05.690
which is pretty valuable.

00:04:05.690 --> 00:04:07.380
So even though the second mango

00:04:07.380 --> 00:04:09.280
is still delicious and nourishing,

00:04:09.280 --> 00:04:11.400
the blob isn't quite as
desperate for a mango

00:04:11.400 --> 00:04:12.730
now that it's already eaten one

00:04:12.730 --> 00:04:14.380
and it's not gonna starve.

00:04:14.380 --> 00:04:16.180
And so, that second mango will give

00:04:16.180 --> 00:04:17.330
fewer happiness points.

00:04:17.330 --> 00:04:21.290
Say, here, about 60 for a total of 160.

00:04:21.290 --> 00:04:23.380
And this trend will
continue with each mango

00:04:23.380 --> 00:04:26.460
being worth a little bit
less than the previous one.

00:04:26.460 --> 00:04:29.210
The term for this is diminishing returns.

00:04:29.210 --> 00:04:31.210
Sometimes, people use the word, utility,

00:04:31.210 --> 00:04:32.490
to talk about happiness points,

00:04:32.490 --> 00:04:35.600
so you might hear this called
diminishing marginal utility,

00:04:35.600 --> 00:04:37.930
which just means you get
fewer happiness points

00:04:37.930 --> 00:04:40.570
for each additional
mango or whatever it is

00:04:40.570 --> 00:04:41.620
you're talking about.

00:04:42.920 --> 00:04:44.090
That's the basic picture,

00:04:44.090 --> 00:04:46.690
but we're gonna want to adjust
these values a few times so,

00:04:46.690 --> 00:04:48.840
instead of making up
each number individually,

00:04:48.840 --> 00:04:51.670
I used a logarithm
function to get the values.

00:04:51.670 --> 00:04:54.370
If the word, logarithm, makes
your head hurt, don't worry.

00:04:54.370 --> 00:04:56.230
We're not gonna go too deeply into them.

00:04:56.230 --> 00:04:58.020
It's just a kind of function that follows

00:04:58.020 --> 00:05:00.240
this idea of diminishing returns.

00:05:00.240 --> 00:05:02.270
It's actually the
opposite, or the inverse,

00:05:02.270 --> 00:05:03.600
of an exponential.

00:05:03.600 --> 00:05:05.050
When things grow exponentially,

00:05:05.050 --> 00:05:07.060
they grow more and more and more quickly,

00:05:07.060 --> 00:05:08.940
and when things grow logarithmically,

00:05:08.940 --> 00:05:11.050
they grow more and more and more slowly,

00:05:11.050 --> 00:05:14.370
and that slowing growth is
all we're looking for here.

00:05:14.370 --> 00:05:15.600
Alright, and before we keep moving,

00:05:15.600 --> 00:05:17.550
we should note that this utility function

00:05:17.550 --> 00:05:18.810
is an assumption.

00:05:18.810 --> 00:05:21.190
Maybe, the first one just
wakes up the blob's palate

00:05:21.190 --> 00:05:22.800
and the second one is amazing,

00:05:22.800 --> 00:05:25.570
and so, it's worth more
than 100 happiness points.

00:05:25.570 --> 00:05:27.350
And then, eventually, the blog gets full

00:05:27.350 --> 00:05:29.460
and eats too many, making
its total happiness

00:05:29.460 --> 00:05:32.110
actually go down, which
is known in some circles

00:05:32.110 --> 00:05:34.310
as the Mo' Money Mo' Problems Effect or,

00:05:34.310 --> 00:05:37.220
in my case, it's the Taco
Bell Drive-Thru Phenomenon.

00:05:37.220 --> 00:05:38.540
And Taco Bell, if you're watching,

00:05:38.540 --> 00:05:41.010
I'm always looking for new sponsors.

00:05:41.010 --> 00:05:43.970
Anyway, there's a whole field
called behavioral economics

00:05:43.970 --> 00:05:46.510
that focuses on how people make decisions.

00:05:46.510 --> 00:05:48.650
So we'll explore more
models in the future,

00:05:48.650 --> 00:05:50.590
but this idea of diminishing returns

00:05:50.590 --> 00:05:53.040
is a pretty decent starting point.

00:05:53.040 --> 00:05:55.620
Alright, now, let's add
wood to the picture.

00:05:55.620 --> 00:05:57.560
At first, we'll assume
the blob values wood

00:05:57.560 --> 00:05:59.503
in the same way it values mangoes.

00:06:00.350 --> 00:06:02.050
Now, our happiness point function

00:06:02.050 --> 00:06:04.510
has two inputs and one output.

00:06:04.510 --> 00:06:05.820
So to show it in the graph,

00:06:05.820 --> 00:06:07.723
we need to add another axis for wood.

00:06:09.600 --> 00:06:10.930
And now, instead of a curve,

00:06:10.930 --> 00:06:12.103
we have a surface.

00:06:13.310 --> 00:06:15.020
Any combination of mangoes and wood

00:06:15.020 --> 00:06:17.150
leads to some point in this surface,

00:06:17.150 --> 00:06:19.360
and that point's height reflects how happy

00:06:19.360 --> 00:06:20.973
the blob is with that situation.

00:06:22.610 --> 00:06:24.990
And that's how the blob
decides what it wants.

00:06:24.990 --> 00:06:26.180
In a minute, we'll combine it

00:06:26.180 --> 00:06:27.770
with the production possibilities,

00:06:27.770 --> 00:06:29.190
but I've thrown kind of a lot at you

00:06:29.190 --> 00:06:30.100
over the past few minutes,

00:06:30.100 --> 00:06:31.480
so don't be shy about pausing,

00:06:31.480 --> 00:06:33.480
rewinding, and reexplaining it to yourself

00:06:33.480 --> 00:06:34.630
to help it all sink in.

00:06:36.230 --> 00:06:38.030
Now, we have everything we need to unleash

00:06:38.030 --> 00:06:40.540
this blob and see how it behaves.

00:06:40.540 --> 00:06:42.290
It'll start by just getting one mango

00:06:42.290 --> 00:06:43.600
before switching to logs,

00:06:43.600 --> 00:06:45.660
and each day, it'll
adjust how many mangoes

00:06:45.660 --> 00:06:47.790
it goes for until it
seems to find the strategy

00:06:47.790 --> 00:06:49.350
that gives the highest possible number

00:06:49.350 --> 00:06:51.090
of happiness points.

00:06:51.090 --> 00:06:53.010
This is the same forest, the same blob.

00:06:53.010 --> 00:06:54.600
So the production possibilities

00:06:54.600 --> 00:06:55.670
are the same as before.

00:06:55.670 --> 00:06:58.300
So if wanted, we could just
have the blob calculate

00:06:58.300 --> 00:07:00.090
the optimal point ahead of time.

00:07:00.090 --> 00:07:02.000
But, in real life, we
have to try things out

00:07:02.000 --> 00:07:03.130
and learn from our mistakes.

00:07:03.130 --> 00:07:06.263
And so, we're gonna make
the blob do the same thing.

00:07:06.263 --> 00:07:08.846
(gentle music)

00:07:44.950 --> 00:07:46.130
Alright, so it looks like the blob

00:07:46.130 --> 00:07:49.080
is equally happy with 10
mangoes and nine pieces of wood,

00:07:49.080 --> 00:07:51.900
or with nine mangoes
and 10 pieces of wood.

00:07:51.900 --> 00:07:53.250
It's not too surprising to see

00:07:53.250 --> 00:07:54.890
that it's finding a happy medium

00:07:54.890 --> 00:07:56.450
since the two resources are valued

00:07:56.450 --> 00:07:58.420
in the same way and they
aren't too different

00:07:58.420 --> 00:08:01.070
in terms of production
possibilities, either.

00:08:01.070 --> 00:08:02.410
But now, what happens if the blob

00:08:02.410 --> 00:08:04.200
has a little baby blob?

00:08:04.200 --> 00:08:05.650
The baby can't collect anything,

00:08:05.650 --> 00:08:07.050
but it does have to eat.

00:08:07.050 --> 00:08:08.790
So now, let's say, the blob values mangoes

00:08:08.790 --> 00:08:10.343
twice as much as it used to.

00:08:11.409 --> 00:08:13.914
What do you think the new
optimal strategy will be?

00:08:13.914 --> 00:08:16.497
(gentle music)

00:08:35.050 --> 00:08:38.240
It turns out that 13 mangoes
and six pieces of wood

00:08:38.240 --> 00:08:41.010
ends up maximizing the blob's utility.

00:08:41.010 --> 00:08:42.470
The interesting thing here is that,

00:08:42.470 --> 00:08:44.320
even though we, literally and precisely,

00:08:44.320 --> 00:08:46.000
doubled the value of mangoes,

00:08:46.000 --> 00:08:48.353
it didn't try to get
twice as many mangoes.

00:08:50.530 --> 00:08:52.900
Alright, one more situation before we go.

00:08:52.900 --> 00:08:55.800
Let's rewind to before
the baby blob came along.

00:08:55.800 --> 00:08:57.770
So now, the blob is back to valuing wood

00:08:57.770 --> 00:08:59.510
and mangoes in the same way.

00:08:59.510 --> 00:09:01.080
This time, though, each mango tree

00:09:01.080 --> 00:09:04.200
will bear two mangoes each
day instead of just one and,

00:09:04.200 --> 00:09:05.190
with the different forest,

00:09:05.190 --> 00:09:08.070
the production possibilities
will actually change.

00:09:08.070 --> 00:09:10.066
Now, what do you think the blob will do?

00:09:10.066 --> 00:09:12.649
(gentle music)

00:09:24.050 --> 00:09:27.660
And we've landed on 12
mangoes and 10 pieces of wood.

00:09:27.660 --> 00:09:28.990
It could've been natural to guess

00:09:28.990 --> 00:09:30.970
that the blob would get
twice as many mangoes,

00:09:30.970 --> 00:09:32.820
but the blob ended up deciding to get only

00:09:32.820 --> 00:09:33.930
a few more mangoes, and then,

00:09:33.930 --> 00:09:36.510
use the time it saved to get more wood.

00:09:36.510 --> 00:09:38.570
And the way it makes sense
of this, intuitively,

00:09:38.570 --> 00:09:40.490
is to think about if, say,

00:09:40.490 --> 00:09:42.670
a cheesy gordita crunch
was half the price.

00:09:42.670 --> 00:09:44.600
I wouldn't actually eat twice as many.

00:09:44.600 --> 00:09:45.433
I mean, don't get me wrong,

00:09:45.433 --> 00:09:47.590
I'd eat more, but I'd probably put some

00:09:47.590 --> 00:09:50.900
of those savings into
buying a bigger Baja Blast,

00:09:50.900 --> 00:09:52.960
which it comes in a
zero-calorie version now,

00:09:52.960 --> 00:09:54.220
by the way.

00:09:54.220 --> 00:09:56.490
The point is, it's hard
to predict ahead of time

00:09:56.490 --> 00:09:57.870
how everything's going to balance out

00:09:57.870 --> 00:09:59.980
when you make one simple change.

00:09:59.980 --> 00:10:01.440
That's it for this video.

00:10:01.440 --> 00:10:03.850
In the next video, we'll
expand this economy

00:10:03.850 --> 00:10:06.060
by introducing this blob to its neighbor,

00:10:06.060 --> 00:10:07.660
and we'll get to see whether they decide

00:10:07.660 --> 00:10:09.320
to trade with each other.

00:10:09.320 --> 00:10:10.153
See you then.

