WEBVTT
Kind: captions
Language: en

00:00:00.719 --> 00:00:06.720 align:start position:19%
These blobs compete for food by playing
rock paper scissors. If you're not

00:00:04.880 --> 00:00:11.280 align:start position:19%
familiar with rock, paper, scissors,
rock beats, scissors, scissors beats

00:00:08.639 --> 00:00:16.080 align:start position:19%
paper, and paper beats rock for some
reason. The blobs live for just one day,

00:00:14.240 --> 00:00:19.760 align:start position:19%
but the food they win from the game will
be used to reproduce, creating offspring

00:00:18.000 --> 00:00:24.000 align:start position:19%
that will play the same strategy as
their parent. You might be thinking this

00:00:22.080 --> 00:00:28.000 align:start position:19%
is a bit unrealistic because creatures
don't actually compete for food by

00:00:25.760 --> 00:00:32.160 align:start position:19%
playing rock paper scissors. And that's
true, but there are cyclical

00:00:29.920 --> 00:00:36.320 align:start position:19%
relationships like this in nature. One
example is the common side blotched

00:00:34.320 --> 00:00:40.879 align:start position:19%
lizard. There are three main throat
colorings for males that relate to how

00:00:38.160 --> 00:00:45.040 align:start position:19%
territorial they are. The orange throats
are very aggressive and control large

00:00:42.879 --> 00:00:49.360 align:start position:19%
territories. This makes them out compete
the blue throats whose territories are

00:00:46.960 --> 00:00:53.600 align:start position:19%
smaller. Blue throats out compete the
yellow throats which don't control a

00:00:51.039 --> 00:00:56.960 align:start position:19%
territory at all. But the yellow throats
do well against the orange throats by

00:00:55.199 --> 00:01:00.719 align:start position:19%
sneaking into those larger territories
which are harder to defend. In this

00:00:59.039 --> 00:01:04.440 align:start position:19%
video, we're going to use simulations to
explore the possibilities in situations

00:01:02.719 --> 00:01:07.760 align:start position:19%
like this.
[Music]

00:01:05.760 --> 00:01:11.680 align:start position:19%
Okay, before we can run a simulation, we
have to lay out the rules in a bit more

00:01:09.360 --> 00:01:15.439 align:start position:19%
detail. We'll start with a winner take
all system where the winner of the rock

00:01:13.520 --> 00:01:20.720 align:start position:19%
paper scissors game gets both mangoes
and will asexually produce two offspring

00:01:18.159 --> 00:01:25.680 align:start position:19%
and the loser gets no mangoes and no
offspring. And if both blobs play the

00:01:23.680 --> 00:01:30.320 align:start position:19%
same strategy, they tie and they'll each
get one mango, each producing one

00:01:27.680 --> 00:01:34.720 align:start position:19%
offspring. There are nine possible
situations a blob can find itself in.

00:01:32.640 --> 00:01:40.560 align:start position:19%
And we can specify all the rewards by
putting them in a table, or a matrix if

00:01:37.600 --> 00:01:44.000 align:start position:19%
you want to use fancy words, which I do.
The numbers in the matrix are the

00:01:42.159 --> 00:01:48.880 align:start position:19%
rewards for the blobs on the left side
of the matrix. For example, a rock blob

00:01:46.640 --> 00:01:53.759 align:start position:19%
facing a scissors blob gets a reward of
two. And in the reverse case, a scissors

00:01:51.600 --> 00:01:57.040 align:start position:19%
blob facing a rock blob gets a reward of
zero.

00:01:55.280 --> 00:02:02.159 align:start position:19%
All right, let's put 80 of these trees
into a world and start the population

00:01:58.960 --> 00:02:06.640 align:start position:19%
with one/ird of each strategy. Before we
hit go, what do you think will happen to

00:02:03.840 --> 00:02:11.520 align:start position:19%
the population over time? Will it tend
to stay balanced? Or maybe one of the

00:02:09.200 --> 00:02:14.800 align:start position:19%
strategies will take over. Or perhaps
the population will cycle through rock,

00:02:13.360 --> 00:02:20.040 align:start position:19%
paper, and scissors, taking turns
dominating. Or maybe something else.

00:02:27.840 --> 00:02:34.239 align:start position:19%
All right, turns out scissors took over.
That does seem a bit weird since it

00:02:32.239 --> 00:02:38.760 align:start position:19%
doesn't have any particular advantage.
So, let's check by running another one.

00:02:39.890 --> 00:02:43.010 align:start position:19%
[Music]

00:02:43.440 --> 00:02:50.640 align:start position:19%
Okay, this time paper took over, so I
guess it's just random. The changes in

00:02:48.560 --> 00:02:54.560 align:start position:19%
the population are a bit chaotic, so
it's tough to see what's going on just

00:02:52.319 --> 00:02:59.599 align:start position:19%
using this bar graph since it only shows
us what's going on at one point in time.

00:02:57.760 --> 00:03:03.040 align:start position:19%
It turns out there's a better kind of
graph for a situation like this, which

00:03:01.360 --> 00:03:07.440 align:start position:19%
will let us see the full history of the
population. We're going to use this

00:03:04.959 --> 00:03:12.400 align:start position:19%
triangular graph where any point inside
the triangle specifies the fractions of

00:03:09.680 --> 00:03:16.720 align:start position:19%
rock, paper, and scissors. A common name
for this kind of graph is turnary plot.

00:03:15.120 --> 00:03:21.120 align:start position:19%
For me, this graph didn't make sense
right away. It seemed like it had to be

00:03:19.040 --> 00:03:25.680 align:start position:19%
cheating or fake or something. I think
the easiest way to explain it is to

00:03:22.879 --> 00:03:29.200 align:start position:19%
start with a normal cartisian graph. On
this graph, the horizontal axis is the

00:03:27.680 --> 00:03:34.480 align:start position:19%
fraction of paper players in the
population and the vertical axis is the

00:03:32.000 --> 00:03:39.760 align:start position:19%
fraction of scissors players. So, this
point is 100% paper and 0% scissors.

00:03:38.159 --> 00:03:45.280 align:start position:19%
Rock isn't on the graph, but it's
whatever's left over, which for now is

00:03:41.680 --> 00:03:49.840 align:start position:19%
zero. This point here is 100% scissors
and zero of the other two. And this

00:03:47.599 --> 00:03:55.680 align:start position:19%
point down here is zero of paper and
scissors. So 100% has to go to rock. So

00:03:53.680 --> 00:03:59.680 align:start position:19%
these three points form a triangle. And
the corners are states where one of the

00:03:57.519 --> 00:04:06.159 align:start position:19%
strategies has completely taken over the
population. Now this point here is 50%

00:04:03.360 --> 00:04:11.599 align:start position:19%
paper and 50% scissors. With any point
on this line, the population is a mix of

00:04:08.560 --> 00:04:15.439 align:start position:19%
paper and scissors with no rock. And
similarly, points on the other edges of

00:04:13.519 --> 00:04:20.639 align:start position:19%
the triangle are also a mixture of two
strategies with none of the third. And

00:04:18.400 --> 00:04:25.440 align:start position:19%
any point on the interior is some
mixture of all three. And finally, any

00:04:23.600 --> 00:04:29.440 align:start position:19%
point outside of the triangle is
nonsensical since there would somehow

00:04:27.919 --> 00:04:35.520 align:start position:19%
have to be a negative number of one of
the strategies. Then if we rotate the

00:04:32.320 --> 00:04:39.040 align:start position:19%
y-axis by 30°, it's still the same graph
just shaped like an equilateral

00:04:37.120 --> 00:04:42.960 align:start position:19%
triangle. So the strategies are treated
more equally. All right, let's have

00:04:40.720 --> 00:04:47.400 align:start position:19%
another go at the simulation setup, but
this time using the turnary plot.

00:04:49.600 --> 00:04:55.650 align:start position:19%
Okay, pausing here. Rock has come out to
an early lead. What do you think will

00:04:53.680 --> 00:05:00.400 align:start position:19%
happen next?
[Music]

00:04:58.160 --> 00:05:06.440 align:start position:19%
With rock in the lead, paper blobs did
well, and now they're in the lead. And

00:05:02.320 --> 00:05:06.440 align:start position:19%
actually, rock is almost extinct.

00:05:07.360 --> 00:05:15.080 align:start position:19%
Next, with paper in the lead, the
scissors blobs do well and nearly take

00:05:11.120 --> 00:05:15.080 align:start position:19%
over the population completely.

00:05:15.199 --> 00:05:22.639 align:start position:19%
And then paper goes extinct. And from
there, Rock is able to drive scissors to

00:05:19.680 --> 00:05:26.479 align:start position:19%
extinction as well. Next, let's run a
bigger simulation to smooth out the

00:05:24.080 --> 00:05:31.680 align:start position:19%
randomness a bit. Instead of 80 trees,
we'll have 800 trees. And to make room

00:05:29.600 --> 00:05:36.720 align:start position:19%
on the screen for more simulations, and
also to make my computer not explode,

00:05:34.000 --> 00:05:40.440 align:start position:19%
let's actually skip drawing the blobs.
Okay, still some blops.

00:05:41.290 --> 00:05:49.379 align:start position:19%
[Music]

00:05:51.810 --> 00:05:55.069 align:start position:19%
[Music]

00:05:55.520 --> 00:06:01.759 align:start position:19%
All right, so the same thing keeps
happening. The populations spiral

00:05:59.440 --> 00:06:05.919 align:start position:19%
outward until all but one strategy is
extinct and then there's no more change.

00:06:04.560 --> 00:06:10.639 align:start position:19%
In real life though, there are
mutations. So in these next simulations,

00:06:08.800 --> 00:06:14.479 align:start position:19%
every time a blob reproduces, there will
be a 1 in 10,000 probability that it

00:06:13.039 --> 00:06:19.639 align:start position:19%
mutates into one of the other
strategies. What do you think will

00:06:16.160 --> 00:06:19.639 align:start position:19%
happen this time?

00:06:20.160 --> 00:06:23.459 align:start position:19%
[Music]

00:06:26.440 --> 00:06:37.759 align:start position:19%
[Music]
With a small mutation chance, the

00:06:35.840 --> 00:06:42.240 align:start position:19%
results look pretty much the same except
for one key difference. Once one

00:06:40.240 --> 00:06:46.880 align:start position:19%
strategy takes over, there's eventually
a mutation into the next strategy in the

00:06:44.639 --> 00:06:51.520 align:start position:19%
rock paper scissors cycle and then that
one takes over and that keeps happening.

00:06:49.919 --> 00:06:55.600 align:start position:19%
We could have seen this just by looking
at the reward matrix. Whenever two of

00:06:53.840 --> 00:06:59.520 align:start position:19%
the same strategy face each other, a
player could benefit by switching

00:06:57.039 --> 00:07:03.039 align:start position:19%
strategies. Since the strategies are
genetically determined, a player can't

00:07:01.599 --> 00:07:07.199 align:start position:19%
just decide to play a different
strategy. But whether a blob decides to

00:07:05.520 --> 00:07:11.680 align:start position:19%
play a different strategy or just does
so by mutation, the benefit is the same.

00:07:09.759 --> 00:07:16.639 align:start position:19%
So when the right mutation shows up, it
does very well and invades the existing

00:07:13.840 --> 00:07:20.240 align:start position:19%
population. In game theory, there's a
name for a situation where neither

00:07:18.319 --> 00:07:24.720 align:start position:19%
player benefits from switching. It's
called a Nash equilibrium. With these

00:07:23.280 --> 00:07:28.800 align:start position:19%
strategies, there isn't a Nash
equilibrium. So, there's always a change

00:07:26.800 --> 00:07:33.440 align:start position:19%
that's beneficial. So, none of the
strategies can keep their hold on the

00:07:30.639 --> 00:07:37.039 align:start position:19%
population. The fancy terminology isn't
really necessary here, but I wanted to

00:07:35.360 --> 00:07:40.560 align:start position:19%
at least mention it in case you hear it
somewhere else. But if you do want a bit

00:07:38.880 --> 00:07:44.960 align:start position:19%
more detail, the last video on
simulating the evolution of teamwork got

00:07:42.479 --> 00:07:49.520 align:start position:19%
a bit more into the nitty-gritty.
Okay, so the simulations we've created

00:07:47.360 --> 00:07:53.759 align:start position:19%
so far are interesting and a real
biological system might behave this way,

00:07:51.840 --> 00:07:58.240 align:start position:19%
but we haven't yet found a setup where
all three strategies can exist together,

00:07:56.479 --> 00:08:02.560 align:start position:19%
at least not for very long, the way it
does with our lizard friends. So from

00:08:00.800 --> 00:08:07.840 align:start position:19%
here, there are two directions we could
go. The first one is to mess with the

00:08:04.960 --> 00:08:12.080 align:start position:19%
values in the reward matrix. And the
second is to allow for mixed strategies

00:08:10.160 --> 00:08:16.560 align:start position:19%
where blobs have a chance to play rock,
paper, or scissors instead of being

00:08:13.919 --> 00:08:20.960 align:start position:19%
destined to play just one. All right,
first we'll mess with the reward matrix.

00:08:19.120 --> 00:08:25.280 align:start position:19%
One thing we can try is to make the
outcome of the contests less extreme.

00:08:23.840 --> 00:08:28.879 align:start position:19%
Instead of the winner getting both
mangoes and the loser getting none,

00:08:27.360 --> 00:08:33.360 align:start position:19%
let's see what happens when the winner
gets one and a half and the loser gets

00:08:30.800 --> 00:08:37.360 align:start position:19%
the remaining half. Now, the blobs can't
produce half an offspring, but

00:08:35.039 --> 00:08:41.360 align:start position:19%
fractional mangoes get converted into a
probability of producing an offspring.

00:08:39.680 --> 00:08:45.279 align:start position:19%
So, there's a bit of luck involved, but
on average, blobs that eat one and a

00:08:43.120 --> 00:08:49.519 align:start position:19%
half mangoes will produce one and a half
offspring. So, what do you think will

00:08:47.760 --> 00:08:54.140 align:start position:19%
happen here? Will the populations be
stable now? If so, why? And if not, why

00:08:52.880 --> 00:09:06.640 align:start position:19%
not?
[Music]

00:09:03.519 --> 00:09:10.720 align:start position:19%
Okay, the results are about the same. It
did take longer for the populations to

00:09:08.560 --> 00:09:15.279 align:start position:19%
spiral outward, but in the end, we still
find ourselves in a situation where the

00:09:12.640 --> 00:09:19.920 align:start position:19%
strategies are taking turns dominating.
Looking back at the reward matrix, even

00:09:17.920 --> 00:09:24.720 align:start position:19%
though the numbers are less extreme, it
still has basically the same structure.

00:09:22.000 --> 00:09:28.959 align:start position:19%
So, we see basically the same thing. All
right. So, another thing we could do is

00:09:26.480 --> 00:09:32.399 align:start position:19%
to add a cost to the ties. And the
reason for this could be that when

00:09:30.480 --> 00:09:36.560 align:start position:19%
there's no clear winner, the blobs spend
extra time and energy fighting. So, even

00:09:34.640 --> 00:09:40.560 align:start position:19%
though they still each get one mango,
they're extra tired or injured when they

00:09:38.640 --> 00:09:45.279 align:start position:19%
go home, and it hurts their reproduction
chances. So, what do you think will

00:09:42.959 --> 00:09:48.959 align:start position:19%
happen this time? I know by this time in
the video, it's easy to just sit back

00:09:47.120 --> 00:09:54.060 align:start position:19%
and let it wash over you, but if you
continue making predictions, you will

00:09:50.640 --> 00:10:02.399 align:start position:19%
learn a bit more. So, what do you think?
[Music]

00:10:03.279 --> 00:10:09.440 align:start position:19%
All right, it is a bit different this
time around. The population actually

00:10:07.200 --> 00:10:13.600 align:start position:19%
spirals inward. We could do a
calculation here to see why, but I think

00:10:11.440 --> 00:10:17.440 align:start position:19%
an intuitive way is to notice that if
the population is mostly rock players,

00:10:15.680 --> 00:10:22.480 align:start position:19%
rock players actually have a below
average reward.

00:10:20.720 --> 00:10:27.360 align:start position:19%
This is similar to what researchers
found in a population of common side

00:10:24.560 --> 00:10:32.160 align:start position:19%
blotched lizards in a study from 1990 to
1995. The loop doesn't appear to be

00:10:30.000 --> 00:10:35.760 align:start position:19%
centered around an even mixture, but
rather around a mixture where blue is

00:10:33.920 --> 00:10:40.160 align:start position:19%
the most common, then yellow, then
orange. So, the reward matrix for the

00:10:38.160 --> 00:10:44.560 align:start position:19%
lizards isn't as symmetrical as our
artificial rock, paper, scissors matrix,

00:10:42.480 --> 00:10:49.920 align:start position:19%
but the cyclical relationship still
seems to exist. Last, let's see what it

00:10:47.200 --> 00:10:54.640 align:start position:19%
looks like when we add mixed strategies.
So far, blobs have had a single alil

00:10:52.320 --> 00:10:59.680 align:start position:19%
that tells them to play rock, paper, or
scissors. Instead, we'll give them each

00:10:56.959 --> 00:11:04.079 align:start position:19%
three alals. The alals could be the same
or different, leading to 10 possible

00:11:01.839 --> 00:11:08.640 align:start position:19%
combinations. When it comes time to
choose a strategy, they'll follow one of

00:11:06.000 --> 00:11:12.959 align:start position:19%
their alals at random. And when it comes
time to reproduce, since the

00:11:10.640 --> 00:11:17.440 align:start position:19%
reproduction is asexual, the offspring
will have the same three alals as its

00:11:14.880 --> 00:11:21.920 align:start position:19%
parent, except that each alil has a
chance to mutate. For example, this

00:11:19.920 --> 00:11:27.360 align:start position:19%
brown blob has one alil for each
strategy. And when it reproduces, the

00:11:24.160 --> 00:11:30.360 align:start position:19%
child's scissors al mutates into a paper
alals.

00:11:32.480 --> 00:11:38.720 align:start position:19%
to keep track of how many blobs of each
mixture are in the population. We'll

00:11:36.399 --> 00:11:43.519 align:start position:19%
make a bar for each one. Again, let's
run four simulations at once. And we'll

00:11:41.120 --> 00:11:48.240 align:start position:19%
also go back to the original reward
matrix and start out with an even amount

00:11:45.839 --> 00:11:52.160 align:start position:19%
of every mixture. What do you think will
happen this time? Obviously, we're

00:11:50.079 --> 00:11:56.530 align:start position:19%
looking at mixed strategies for a
reason. So, maybe something interesting

00:11:54.000 --> 00:12:00.570 align:start position:19%
will happen. But what?
[Music]

00:12:01.200 --> 00:12:07.839 align:start position:19%
All right. So, a few things here. First,
we can see the same sort of cyclical

00:12:05.839 --> 00:12:12.959 align:start position:19%
behavior going from rock to paper to
scissors and back. And just like before,

00:12:10.560 --> 00:12:17.440 align:start position:19%
the imbalances start out small and they
get more and more extreme as time goes

00:12:14.800 --> 00:12:21.680 align:start position:19%
on. The other interesting thing here is
the brown bar. By playing an even

00:12:20.000 --> 00:12:26.240 align:start position:19%
mixture of the three strategies, these
blobs are aggressively neutral. It's

00:12:24.480 --> 00:12:29.920 align:start position:19%
impossible to come up with a strategy
that beats them on average, but it's

00:12:28.320 --> 00:12:34.240 align:start position:19%
also impossible to come up with a
strategy that loses to them on average.

00:12:32.399 --> 00:12:38.959 align:start position:19%
The fancy game theory term for this
situation is weak Nash equilibrium. Like

00:12:37.040 --> 00:12:42.880 align:start position:19%
we said before, a Nash equilibrium is
when neither player can benefit by

00:12:40.720 --> 00:12:46.959 align:start position:19%
switching strategies. A weak Nash
equilibrium is when a player won't be

00:12:44.560 --> 00:12:50.240 align:start position:19%
helped or hurt by switching. But even
though it's a boring weak Nash

00:12:48.560 --> 00:12:54.959 align:start position:19%
equilibrium, it's still a Nash
equilibrium, the only one we've seen

00:12:52.160 --> 00:13:01.480 align:start position:19%
this video. Next, let's add the tie
penalty back to the reward matrix. What

00:12:57.680 --> 00:13:01.480 align:start position:19%
do you think will happen now?

00:13:04.959 --> 00:13:10.800 align:start position:19%
Before I actually ran this sim, I
thought that the brown blobs would take

00:13:08.560 --> 00:13:14.639 align:start position:19%
over. I was actually streaming myself
working on this on Twitch and was

00:13:12.639 --> 00:13:18.800 align:start position:19%
confused in front of all 20 people who
were watching. In the simulation with

00:13:16.720 --> 00:13:22.800 align:start position:19%
pure strategies, penalizing the ties
caused the population to balance in the

00:13:20.800 --> 00:13:26.720 align:start position:19%
middle. And if we look closely, we can
see the Sims still tend to balance

00:13:24.880 --> 00:13:32.560 align:start position:19%
around the middle. It's just that the
whole population is balanced rather than

00:13:28.800 --> 00:13:36.560 align:start position:19%
having one balanced strategy dominate.
All right, one more set of simulations.

00:13:34.720 --> 00:13:40.480 align:start position:19%
This time, we'll keep the same reward
matrix and mutation chance, but we'll

00:13:38.959 --> 00:13:46.480 align:start position:19%
have a different initial condition for
each population. One will start with

00:13:42.880 --> 00:13:53.360 align:start position:19%
100% pure rock, one with 100% pure
paper, one with 100% pure scissors, and

00:13:50.000 --> 00:14:00.920 align:start position:19%
one with 100% of the evenly mixed brown
strategy. And one last time, what do you

00:13:56.560 --> 00:14:00.920 align:start position:19%
think will happen for each of these?

00:14:03.519 --> 00:14:09.760 align:start position:19%
Okay, so the pure strategies can't stand
up to mutations, and we see the same

00:14:08.240 --> 00:14:14.959 align:start position:19%
cycling we've been seeing this whole
time. But the Browns can resist

00:14:12.240 --> 00:14:19.199 align:start position:19%
mutations. Whenever a new mutation shows
up, it can't get an advantage over the

00:14:17.040 --> 00:14:23.360 align:start position:19%
Browns. But some of the members of the
new mixture face each other and get hit

00:14:21.199 --> 00:14:28.399 align:start position:19%
by that tie penalty more often than the
Browns do. Every mixture other than the

00:14:25.920 --> 00:14:33.680 align:start position:19%
Browns does poorly against itself, so
they can never take over. So this brown

00:14:31.120 --> 00:14:38.639 align:start position:19%
evenly mixed strategy is what we call an
evolutionarily stable strategy.

00:14:36.720 --> 00:14:42.959 align:start position:19%
If you liked this video and want to see
more, please consider supporting on

00:14:40.399 --> 00:14:46.560 align:start position:19%
Patreon. Patreon is my main steady
source of income, so supporting there

00:14:44.800 --> 00:14:50.880 align:start position:19%
gives me the confidence that I can keep
creating these for free without needing

00:14:48.320 --> 00:14:54.160 align:start position:19%
to bring in a sponsor. In any case,
thanks very much for watching all the

00:14:52.399 --> 00:14:58.660 align:start position:19%
way to the end, and I'll see you next
time.

00:14:55.560 --> 00:14:58.660 align:start position:19%
[Music]

