MOVIES, GAMBLING, SECRET CODES, JUST MATRIX MAGIC



Similar documents
3.2 Roulette and Markov Chains

Betting systems: how not to lose your money gambling

Chapter 16: law of averages

The overall size of these chance errors is measured by their RMS HALF THE NUMBER OF TOSSES NUMBER OF HEADS MINUS NUMBER OF TOSSES

Introduction to Matrices

Elementary Statistics and Inference. Elementary Statistics and Inference. 16 The Law of Averages (cont.) 22S:025 or 7P:025.

Section 7C: The Law of Large Numbers

Elementary Statistics and Inference. Elementary Statistics and Inference. 17 Expected Value and Standard Error. 22S:025 or 7P:025.

AMS 5 CHANCE VARIABILITY

This Method will show you exactly how you can profit from this specific online casino and beat them at their own game.

REWARD System For Even Money Bet in Roulette By Izak Matatya

MA 1125 Lecture 14 - Expected Values. Friday, February 28, Objectives: Introduce expected values.

Stat 134 Fall 2011: Gambler s ruin

We rst consider the game from the player's point of view: Suppose you have picked a number and placed your bet. The probability of winning is

How to Beat Online Roulette!

Learn How to Use The Roulette Layout To Calculate Winning Payoffs For All Straight-up Winning Bets

Roulette Best Winning System!!!

THE ROULETTE BIAS SYSTEM

Practical Probability:

Automatic Bet Tracker!

THE WINNING ROULETTE SYSTEM by

Probability and Expected Value

Chapter 16. Law of averages. Chance. Example 1: rolling two dice Sum of draws. Setting up a. Example 2: American roulette. Summary.

(SEE IF YOU KNOW THE TRUTH ABOUT GAMBLING)

Random Fibonacci-type Sequences in Online Gambling

FACT A computer CANNOT pick numbers completely at random!

Expected Value. 24 February Expected Value 24 February /19

Week 5: Expected value and Betting systems

Roulette-Tools PATTERN RECOGNITION TRAINING

Additional information >>> HERE <<< Getting Start biggest win on online roulette User Review

MONT 107N Understanding Randomness Solutions For Final Examination May 11, 2010

VISUAL ALGEBRA FOR COLLEGE STUDENTS. Laurie J. Burton Western Oregon University

13.0 Central Limit Theorem

Note: To increase your bet by another amount, select another chip from the bottom right of the game panel.

The game of roulette is played by throwing a small ball onto a rotating wheel with thirty seven numbered sectors.

MrMajik s Money Management Strategy Copyright MrMajik.com 2003 All rights reserved.

Math 1050 Khan Academy Extra Credit Algebra Assignment

Term Project: Roulette

Beating Roulette? An analysis with probability and statistics.

V. RANDOM VARIABLES, PROBABILITY DISTRIBUTIONS, EXPECTED VALUE

In the situations that we will encounter, we may generally calculate the probability of an event

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 13. Random Variables: Distribution and Expectation

Ch. 13.3: More about Probability

THE CHAOS THEORY ROULETTE SYSTEM

Betting on Excel to enliven the teaching of probability

Grade 6 Math Circles Mar.21st, 2012 Probability of Games

Here are some examples of combining elements and the operations used:

Gaming the Law of Large Numbers

How to Play Roulette Online

The Easy Roulette System

Expected Value and the Game of Craps

Week 4: Gambler s ruin and bold play

You can place bets on the Roulette table until the dealer announces, No more bets.

Number Sense and Operations

Typical Linear Equation Set and Corresponding Matrices

Math Common Core Sampler Test

STRIKE FORCE ROULETTE

Essential Mathematics for Computer Graphics fast

An Unconvered Roulette Secret designed to expose any Casino and make YOU MONEY spin after spin! Even in the LONG Run...

Would You Like To Earn $1000 s With The Click Of A Button?

Lecture 13. Understanding Probability and Long-Term Expectations

University of Southern California Marshall Information Services

Solving Systems of Linear Equations Using Matrices

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0

John Kerrich s coin-tossing Experiment. Law of Averages - pg. 294 Moore s Text

CHOOSING A COLLEGE. Teacher s Guide Getting Started. Nathan N. Alexander Charlotte, NC

Algebra I Credit Recovery

Vector Spaces; the Space R n

K80TTQ1EP-??,VO.L,XU0H5BY,_71ZVPKOE678_X,N2Y-8HI4VS,,6Z28DDW5N7ADY013

Precalculus Orientation and FAQ

Classroom Tips and Techniques: The Student Precalculus Package - Commands and Tutors. Content of the Precalculus Subpackage

Reciprocal Cost Allocations for Many Support Departments Using Spreadsheet Matrix Functions

36 Odds, Expected Value, and Conditional Probability

Law of Large Numbers. Alexandra Barbato and Craig O Connell. Honors 391A Mathematical Gems Jenia Tevelev

Evaluating Trading Systems By John Ehlers and Ric Way

Content. Chapter 4 Functions Basic concepts on real functions 62. Credits 11

CASINO GAMING AMENDMENT RULE (No. 1) 2002

Excel Guide for Finite Mathematics and Applied Calculus

Scratch Primary Lesson 4

Greg Fletcher. Sharpshooter Roulette. Video Guide. Russell Hunter Publishing, Inc.

Introduction to the Rebate on Loss Analyzer Contact:

Example: Find the expected value of the random variable X. X P(X)

How To Play Classic Slots

Statistics and Random Variables. Math 425 Introduction to Probability Lecture 14. Finite valued Random Variables. Expectation defined

Statistics 100A Homework 3 Solutions

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

Russell Hunter Publishing Inc

TABLE OF CONTENTS. ROULETTE FREE System # ROULETTE FREE System #

Rules of core casino games in Great Britain

Casino Control (American Roulette) Approval 2006 (No 1)*

Inside the pokies - player guide

Mathematics Online Instructional Materials Correlation to the 2009 Algebra I Standards of Learning and Curriculum Framework

To begin, I want to introduce to you the primary rule upon which our success is based. It s a rule that you can never forget.

Making $200 a Day is Easy!

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

3.2 Sources, Sinks, Saddles, and Spirals

Probability. Sample space: all the possible outcomes of a probability experiment, i.e., the population of outcomes

Solution (Done in class)

Midterm Exam #1 Instructions:

Transcription:

MOVIES, GAMBLING, SECRET CODES, JUST MATRIX MAGIC DR. LESZEK GAWARECKI 1. The Cartesian Coordinate System In the Cartesian system points are defined by giving their coordinates. Plot the following points: (2, 1), ( 1, 3), ( 2, 2), (2, 1). 2. What is a Matrix? A matrix is simply an array of numbers. Here are some examples of matrices. ( ) ( ) ( ) 1 2 0 0 1 0 A C G 3 4 0 0 0 1 What do matrices do? They transform the space. Here is how. Plot an arrow, in math we call it vector, connecting points (0, 0) and (3, 5). 1

2 DR. LESZEK GAWARECKI Call this vector v. Its coordinates are calculated by subtracting the starting point from the end point ( ) ( ) ( ) 3 0 3 v 5 0 5 Now plot arrows with the following end points to create the letter F : (1) from (0, 0) to (0, 5) (2) from (0, 5) to (3, 5) (3) from (0, 3) to (2, 3) What vectors can you identify on this picture?

MATRIX MAGIC 3 Let s see what the matrix A does to a vector v. Compute the action of matrix A on vector v. A v ( ) 1 2 3 4 ( ) 1 1 ( ) (1)(1) + (2)(1) (3)(1) + (4)(1) ( ) 3 7 In general, we multiply matrix by a vector as follows: A v ( ) ( ) ( ) a11 a 12 vx a11 v x + a 12 v y a 21 a 22 v y a 21 v x + a 22 v y Try some other vectors to see what the matrix A will do to them. Here is a graph of a transformed circle, the image is an ellipse. To produce this graph in Maple click: Tools Tutors Linear Algebra Linear Transform Plot, then Edit Matrix button, edit your matrix, and click Close button.

4 DR. LESZEK GAWARECKI 3. In the footsteps of Steven Spielberg Let s now play with Maple software and create an animation. Instructions will be provided during session. To understand how the rotation matrix works, we choose the rotation angle of 90 degrees or π/2 to obtain ( ) ( ) ( ) cos(θ) sin(θ) cos(π/2) sin(π/2) 0 1 A sin(θ) cos(θ) sin(π/2) cos(π/2) 1 0 Now apply this matrix to vector v < 1, 1 >. Try some other vectors too. Try other angles, θ π/4 or θ π/3. ( ) ( ) cos(θ) sin(θ) cos(π/3) sin(π/3) A sin(θ) cos(θ) sin(π/3) cos(π/3) Now apply this matrix to vector v < 1, 3 >. We are now ready to play our animation. ( ) 0.5 3/2 3/2 0.5 4. Making more complex animations by using Matrix Algebra To make more complex animations we need to compute expressions of the type A B v, application of two (or more) matrices to a vector. This can be done in two ways A (B v) or (A B) v. Try the first method first and compute ( ) 1 2 A (B v) 3 4 (( ) ( 1 1 1 2 1 2))

MATRIX MAGIC 5 To try the second method we need to learn ho to multiply matrices. This is simple, to compute A B, just multiply matrix A by each column of matrix B (they are column vectors) and arrange the results in a matrix. ( ) ( ) (( ) ( ( ) ( )) ( ) 1 2 1 1 1 2 1 1 2 1 5 1 A B, 3 4 2 1 3 4 2) 3 4 1 11 1 Then (A B) v ( ) 5 1 11 1 ( ) 1 2 should give the same result. Let s now play with Maple to put two transformations (matrices) at work together. Which multiplication method will be faster for moving many vectors at the same time? 5. Surprises with Matrix Algebra First let s add (subtraction goes the same) two matrices, it is easy, just add them by adding corresponding entries: ( ) ( ) ( ) ( ) 1 2 1 1 1 + 1 2 + ( 1) 2 1 A + B + 3 4 2 1 3 + 2 4 + 1 5 5 Most laws of matrix multiplications and additions/subtractions are just like they are for numbers. Associative laws (A B) C A (B C) and (A ± B) ± C A ± (B ± C) Distributive laws (A ± B) C A C ± B C and A (B ± C) A B ± A C Commutative laws (surprise!) A ± B B ± A but it may happen that A B B A Problem 1. Find examples of two matrices A and B such that A B B A. Problem 2. What does your matrix A do to vectors? What does your matrix B do to vectors? Do you see why A B B A? Problem 3. Find example of two matrices A and B, having none of their entries equal 0, but such that A B 0. Problem 4. What does your matrix A do to vectors? What does your matrix B do to vectors? Do you see why A B 0? Problem 5. It gets better, if x is a number, and if x 2 0, then x 0. But... find a matrix A who s no entry equals zero, but A A 0. problem 6. What does your matrix A do to vectors? Do you see why A A 0? Problem 7. Explain the importance of the Associative Law for making animations.

6 DR. LESZEK GAWARECKI Imagine that: 6. Gambler s Ruin Problem (1) You are in Vegas and you have $20 but need $50 to pay for the hotel. You decide to gamble in a casino. The only possible bet you can make is a bet of $10, and then a fair coin is tossed. If heads results, you win $10 (you get your $10 back plus an additional $10), and if its tails, you lose the $10 bet. The coin being fair has exactly the same chances of coming up heads or tails. What is the chance that you will pay for the hotel? What if you had started with $10? or with $30, $40? (2) What if you had $40 and could bet either $10 each time or $20 each time and you needed $100? Which strategy is better? (3) What if the chances were not 50 50? A roulette wheel in the US has 18 red numbers, 18 black numbers and 2 green numbers. Winning a red or black bet doubles your money and you lose it all if you lose. A red or black bet has a probability of 18/(18 + 18 + 2) 18/38 9/19 of winning on each spin of the wheel. How can we use matrices to help us out? At any stage in the process, there are six possible states, depending on your fortune. You have (1) $0 (and you have lost) (2) $10 (and you are still playing) (3) $20 (and you are still playing) (4) $30 (and you are still playing) (5) $40 (and you are still playing) (6) $50 (and you have won) You know that when you begin playing, you are in a certain state (having $20 in the case of the very first problem). After you have played a while, lots of different things could have happened, so depending on how long you have been going, you have various probabilities of being in the various states. Chances of being in each state after the first game can be described using matrix multiplication: 1 0.5 0 0 0 0 p 0 p 0 + 0.5p 10 0 0 0.5 0 0 0 p 10 0.5p 20 T p 0 0.5 0 0.5 0 0 0 0 0.5 0 0.5 0 p 20 p 30 0.5p 10 + 0.5p 30 0.5p 20 + 0.5p 40 0 0 0 0.5 0 0 p 40 0.5p 30 0 0 0 0 0.5 1 p 50 0.5p 40 + p 50 If you ve played 2, 3,..., 200, times, your chances to be in any of the six states are equal T 2 p, T 3 p, T 200 p,

MATRIX MAGIC 7 Let s use Maple to see what happens, when we start from p 0 0 p 10 0 p 20 p 30 1 0 p 40 0 0 p 50 Use Maple to solve the remaining questions. 7. Cryptography Before we get to encrypting and decrypting messages let s find out how we can divide matrices. Well, in math we don t call it that way. But..., with numbers, what does it really mean to divide a by b? a b a b 1, so we can say that division is the same as multiplication by an inverse. Same with matrices. For any given matrix A we may attempt to find its inverse A 1. Problem 1. How should we define A 1?. Problem 2. Find a matrix A whose none of the entries is zero, but whose inverse A 1 does not exist. Problem 3. What does your matrix A do to vectors? Problem 4. Find a formula for an inverse matrix to ( ) a b A c d To encrypt a message using matrices, we first assign numbers 1 26 to letters. Blank A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 The message: SECRET CODE corresponds to a sequence 19 5 3 18 5 20 0 3 15 4 5. Let s use an encoding matrix ( ) 4 3 E 1 1 and the plain text matrix T ( 19 3 5 0 15 ) 5 5 18 20 3 4 0 We have used Blank or 0 at the end to make the columns come out even. Problem 5. Encrypt the message by multiplying matrices A B and arranging letters, column by column, in one row.

8 DR. LESZEK GAWARECKI Problem 6. Find the inverse matrix E 1, the decoding matrix. How can you use it to decode the message? Problem 7. Use Maple to encrypt and decrypt messages. Activity Encrypt a message and give it to your neighbour together with your encoding matrix. Your neighbour needs to decrypt your message. 8. Systems of linear equations How about just one equation first. How do we solve x + 3 7x 9? Problem 1. Write the following equation using matrix algebra { x + 2y 1 x + 3y 3 Problem 2. Solve the above system of equations using matrices. Problem 3. A concert hall has 10,000 seats and two categories of ticket prices, $25 and $35. Since Lady Gaga was performing the concert was sold out. How many tickets in each category were sold if the return was $300, 000? $325, 000? Could the return be $400, 000? Problem 4. Solve 3x + 3y + 6z + 5w 10 4x + 5y + 8z + 2w 15 3x + 6y + 7z + 4w 30 4x + y + 6z + 3w 25 See you next time!!! Department of Mathematics, Kettering University, Flint, MI 48504, U.S.A. E-mail address: lgawarec@kettering.edu URL: http://bulldogs.kettering.edu/saturdaymath/