View Single Post
  #3   Spotlight this post!  
Unread 07-10-2016, 15:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,004
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: R Package for Downloading FIRST API Data

Quote:
Originally Posted by sirwin View Post
I'm intrigued. I'm relatively new to FIRST...
Welcome!

Quote:
so bear with me.
Not to worry.

Quote:
OPR refers to offensive power rating, correct?
yes

Quote:
You're referring to using the Choleski decomposition
I did not explicitly mention Cholesky, but yes that factorization can be used to factor the Normal Equations matrix

Quote:
to produce an estimate of how many points any single team should be expected to contribute to an alliance score, based on past performance?
Yes. A very rough estimate, since the model assumptions are not very realistic.

Quote:
There's an R package that supposedly does this -- it's called optR and it's available on the CRAN repository. It has a function called choleskilm that should do the trick.
For small matrix associated with a single event

Quote:
Of course the raw data has to be shaped into a positive definite matrix first.
... AND the Aij design matrix (attached to post9 in this thread) must be read by R before it can be used to compute the normal equations matrix N.

Quote:
The size of the matrix could be a problem.
A big problem

Quote:
The description that I found on this method for calculating OPR focused on using this method for data from a single competition -- generally no more than a 100 x 100 matrix.
Yes.

Quote:
But 2700 x 2700?
Full-matrix Cholesky is roughly proportional to O(n^3).

(2696/40)^3 = 306182

Big problem. Unless you use sparse matrix algorithms.

Quote:
I'll experiment with smaller data sets over the weekend and see if I can figure out what the computation time will be.
Please let us know what you find out


Reply With Quote