Prediction Revisited module for observation-based prediction
Project description
Prediction Revisited
Version 1.0.0
This python module implements the core statistical concepts from the book "Prediction Revisited: The Importance of Observation" by Megan Czasonis, Mark Kritzman and David Turkington. In short, these methods form predictions by interpreting data as 'experiences' rather than variables, which builds from a rigorous base of information theory and facilitates intuitive interpretation of predictions as averages of prior outcomes. This procedure works on the principle of relevance, which is determined using the Mahalanobis distance.
The baseline predictions from a relevance-weighted average match those of ordinary least squares linear regression. However, this view allows us to gain additional insight from the importance of each observation, and it allows us to extend linear regression to Partial Sample Regression, which relies on a subset of the most relevant data and is therefore locally conditional to the circumstances of every prediction.
Relevance-weighted prediction also allows us to evaluate the fit of every individual prediction, which is distinct from the R-squared of a model. In fact, for a full-sample regression the R-squared is equal to the information- weighted average fit of every prediction trial. We also define a measure of precision and asymmetry, as well as co-occurrence which is a single- observation component of correlation.
"Prediction Revisited" also uses pairwise comparisons between observations to elucidate new intuition. While theoretically elegant, pairwise comparisons are often computationally inefficient, so this code module offers the flexibility to perform most computations more efficiently with shortcut=True.
Most of the module is built on top of numpy for matrix manipulation, but we also include ancillary features and a demo that ingests Pandas DataFrames. Note that for clarity, we keep results as 2-dimensional arrays in most cases.
For more information, see: www.predictionrevisited.com
Dependencies
numpy (for all matrix calculations) pandas (for ancillary features involving data formatted in DataFrames)
License
MIT (see LICENSE.md)
"""
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file predictionrevisited-1.0.0.tar.gz.
File metadata
- Download URL: predictionrevisited-1.0.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb0c3e3174bdbc7a07c6b6d5ff65f7390c7d268e627cdc343bb91c392a13ad00
|
|
| MD5 |
8d22495978573909b953f1021778fc03
|
|
| BLAKE2b-256 |
1fcb3cb8c2921cd8036bb431661c859bd62ad25409571cf4565712a2b7a9b825
|
File details
Details for the file predictionrevisited-1.0.0-py3-none-any.whl.
File metadata
- Download URL: predictionrevisited-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a7a98dd9ffd686f6fd46bc99df6a3b649db03b357622db965879ffc8451618c
|
|
| MD5 |
7dc7fc5689aaa79a8e8933969d528f89
|
|
| BLAKE2b-256 |
d6bcf5385cdaa2239d45162ef3b767b3430994ec20037adc3c8dd9c5da16974e
|