Vector Databases 101 - An introduction to the world of Vector Databases
Expert Voices
1. Question One It is 2011 and the Minnesota State Fair is just around the corner. Ryan can’t wait to go and stand in line for all of his favorite state fair foods. He always make sure that he stops at the following booths: Deep Fried Candy Bar $3.50, Cotton Candy $3.25, Corn on the Cob $4.00, Pronto Pup $3.75, and the Pork Chop on a Stick $5.25. Ryan heard from Lena that all the food booths at the state fair are increasing their prices by 7%. If this is the case how much will he now have to pay for all of his favorite foods?
2. Helpful Advice For this problem using scalar multiplication would be a very useful tool.
6. Another Route By having your scalar equal to 1.08 you are eliminating the need to add the percentage increase to the original amount – this new scalar will do just that! Just multiple the matrix by the scalar and you will get your result immediately!
8. Question Two Solve the following system of linear equations. X + 4Y = 3 2X + 9Y = 5
9. Notation Row switching : A row within the matrix can be switched with another row. R1 R2 Row multiplication: Each element in a row can be multiplied by a non-zero constant.k* R1 R1, k ≠ 0Row addition: A row can be replaced by the sum of that row and a multiple of another row. R1 + kR2 R1, k ≠ 0
10. The ultimate goal is to get our matrix to look like the one to the left and then the values in the #1, #2 locations will be the solutions to the problemfor x and y Goal
11. Using row operations here we go…. Step 1: Set up the augmented matrix Step 2: First Operation
12. Step 2: First Operation -2R1 + R2 R2 Notice no change was made to R1 (row 1) R1 = Row One and R2 = Row Two
13. Step 3: Second Operation -4R2 + R1 R1 Notice no change was made to R2 (row 2) R1 = Row One and R2 = Row Two
15. Step 5: Double check the solution you found X + 4Y = 3 2X + 9Y = 5 Original Equations (7) + 4(-1) = 3 2(7) + 9(-1) = 5 It Works!
16. Question Three Solve the following system of linear equations. X + Y - Z = -2 2X – Y + Z= 5 -X+2Y+2Z = 1 Same idea but now we have to work with the three variables.
17. The ultimate goal is to get our matrix to look like the one to the left and then the values in the #1, #2, #3 locations will be the solutions to the problemfor x and y and z Goal
19. Step 2: First Operation -2R1 + R2 R2 Notice no change was made to R1 and R3 R1 = Row One and R2 = Row Two and R3 = Row Three
20. Step 3: Operation R1 + R3 R3 Notice no change was made to R1 and R2 R1 = Row One and R2 = Row Two and R3 = Row Three
21. Step 4: Operation R2 ÷ -3 R2 Notice no change was made to R1 and R3 R1 = Row One and R2 = Row Two and R3 = Row Three
22. Step 5: Operation -3R2 + R3 R3 Notice no change was made to R1 and R2 R1 = Row One and R2 = Row Two and R3 = Row Three
23. Step 6: Operation R3 ÷ 4 R3 Notice no change was made to R1 and R2 R1 = Row One and R2 = Row Two and R3 = Row Three
24. Step 7: Finalize Solution Now: X + Y - Z = -2 Y - Z= -3 Z = 2 Then: Lastly: X + Y - Z = -2 X + (-1) – 2 = -2 X-3 = -2 X= 1 Y - Z = -3 Y - 2= -3 Y = -1
25. Step 8: Double check the solution you found X + Y - Z = -2 2X – Y + Z= 5 -X+2Y+2Z = 1 Original Equations (1) + (-1) – (2) = -2 2(1) – (-1) + (2)= 5 -(1)+2(-1)+2(2) = 1 It Works!!
26. Question Four Now to wrap it all up we want to determine how much it actually costs to get into the fair and enjoy this fun get together! As you saw on the clip, one day at the fair just isn’t enough!! At the gates on opening day they are selling one day passes as well as bonus three day passes. We were only able to collect the data for 2 particular gates on this day. Gate A sells 2,090 day passes and 980 three day passes. Gate B sells 1,807 day passes and 712 three day passes. If Gate A collected $31,290 and Gate B collected $24,753, how much does it cost to by a one day pass and a three day pass?
27. Helpful Advice For this problem finding the determinate and the inverse would be a very useful tool.
28. Set up a Matrix Matrix Format Matrix specific to this example