00:01
For this problem, we are looking at two footwear stores, sal's shoes and fred's footwear.
00:06
Each of them have outlets in two states and sell three different types of shoes at different prices.
00:12
So we're going to create a few matrices to help us track all of this information.
00:16
First, we are going to make a matrix called p.
00:20
P is going to be a two by three matrix, so two rows, three columns.
00:26
And we want to see all of the prices for all of the footwear that these shoes.
00:31
Shoes these shoe stores sell.
00:33
So i'm going to let each of my rows equal one of my shoe stores, sal's and freds.
00:39
And across my columns, those are going to be the three different types of things that they sell.
00:44
They sell shoes, sandals, and boots.
00:54
Okay.
00:55
So let's see what their prices are.
00:58
Sal's sell shoes for $80, sandals are $40, and boots are $120.
01:07
What about first? what about well, his prices are 60, 30, and 150.
01:14
So p tells us all of the prices for all of the different types of shoes that they sell.
01:19
Now, we want to put together another matrix f.
01:24
And we're told f is going to be a 3 by 2.
01:27
So i'll make it a little bit taller.
01:30
3 by 2.
01:31
And here we want to keep track of the fraction of each type of footwear that's sold.
01:36
So in this case, you know, and that is going to be per state.
01:41
So i'm going to need, i've got two states.
01:43
So those are going to need to be my columns.
01:45
I'm going to have arizona and california.
01:49
What i'm tracking in each of those is how many of each type of shoe are sold.
01:56
So those shoe types will go down my rows.
01:59
And i'm going to put them in the same order as they are in the original.
02:06
Shoes, sandals, boots.
02:08
So let's look at california first.
02:11
How are the shoe sales distributed in california? half of all sales are shoes, and then a quarter each for sandals and boots.
02:23
Arizona is broken up a little differently.
02:26
In arizona, we have one -fifth our shoes and sandals, and the remaining three -fifths are boots.
02:34
That's a three there.
02:35
Okay.
02:36
So here are my two matrices, p and f.
02:39
Now, we want to multiply them together.
02:41
One way makes sense.
02:43
One way does not.
02:44
What if i multiply p times f? well, if i did pf, that means i'd be going across the columns and across the row down the columns...