---output: html_document: default pdf_document: default word_document: default---
J.S.
May 11th, 2022
Rankings are very important for all sports including local sports!
I will be doing my own ranking of the top 5 seeded teams in the RMAC basketball Tournament for 2022.
\[ \begin{aligned} A & = b \\ A*A' & = b*A' \end{aligned} \]
I have identified the top 5 ranked teams in the RMAC for the 2022 Men's Basketball Tournament
I then looked up the 10 games these teams played against each other to obtain my data and put it in a matrix.
To give the class a visual I have done a smaller example.
A is the matrix representing wins and loses and b is a matrix representing the point difference in each game.
A = [-1,0,1;0,1,-1;-1,1,0]
b = [5;20;8]
A =
-1 0 1
0 1 -1
-1 1 0
b =
5
20
8
The Next step is to use the Method of Least Squares to put this matrix into a solvable form.
The primary method I will be using from class is Guass-Jordan Elimination
The octave code for the Method of Least Squares is very simple in octave.
A = [-1,0,1;0,1,-1;-1,1,0];
b = [5;20;8];
T = A'
T =
-1 0 -1
0 1 1
1 -1 0
Final Matrix to Run Gauss-Jordan Elimination on.
A = [-1,0,1;0,1,-1;-1,1,0];
b = [2;7;10];
T = A';
S = T*A;
P = T*b;
F = [S,P]
F =
2 -1 -1 -12
-1 2 -1 17
-1 -1 2 -5
Run Guass-Jordan Elimination
c = [S,P]
\[ \begin{aligned} A = \begin{bmatrix} 1 & 0 & 0 & -5.5\\ 0 & 1 & 0 & 4\\ 0 & 0 & 1 & 1 \end{bmatrix} \end{aligned} \]
\[ \begin{aligned} A = \begin{bmatrix} 1 & 0 & 0 & -5.5\\ 0 & 1 & 0 & 4\\ 0 & 0 & 1 & 1 \end{bmatrix} \end{aligned} \]
Notice that because we transposed our original matrix that the rows now correspond to each team and their x value is their rank.
For example
Team 1 is the lowest ranking team, and Team 2 is the Highest rank Team.
\[ \begin{aligned} A = \begin{bmatrix} 1 & 0 & 0 & 0& 0 & 5.6\\ 0 & 1 & 0 & 0 & 0 & -1.6\\ 0 & 0 & 1 & 0 & 0 & 4\\ 0 & 0 & 0 & 1 & 0 & -7 \\ 0 & 0 & 0 & 0 & 1 & 2 \end{bmatrix} \end{aligned} \]