semvec/pypi-packages huggingface dataset:
fattails 0.0.4
A package for fat-tailed statistics
Requires Python: >=3.7

# Fat Tails
Python package and Jupyter notebooks for fat-tailed statistics. Inspired by Nassim Taleb's Technical Incerto.

[![PyPI](https://img.shields.io/pypi/v/fattails)](https://pypi.org/project/fattails/)
[![PyPI - License](https://img.shields.io/pypi/l/fattails)](https://github.com/FergM/fattails/blob/main/LICENSE)

## Content

### Notebooks
See the [notebooks/README.md](https://github.com/FergM/fattails/blob/main/notebooks/README.md) for more detail.

My favourite notebooks so far:
* [Central Limit Theorem: How the sum of Uniform values is Gaussian](https://github.com/FergM/fattails/blob/main/notebooks/NB-22%20-%20Visual%20Central%20Limit%20Theorem.ipynb)
* [S&P500: How geometric average return is impossible](https://github.com/FergM/fattails/blob/main/notebooks/Notebook-11%20-%20Ergodicity%20and%20S%26P500.ipynb)
* [GameStop: January 2021 was not an outlier if you assume Power Law tails.](https://github.com/FergM/fattails/blob/main/notebooks/NB-25%20-%20Survival%20Plot%20-%20Gamestop.ipynb)

### Functions
Quick Access:
* `fattails.mad()`: Calculates mean absolute deviation.
* `fattails.plot_MS_moments()`: Plots the cumulative max/sum ratio of moments 1 to 4.

Other:
* `fattails.metrics.get_survival_probability()`: Calculate survival probabilities for a given dataset.
* `fattails.metrics.calculate_moments()`: Generate dataframe with the chosen moments for each datapoint
* `fattails.metrics.max_over_sum()`: Calculate the cumulative max/sum ratio

Example:
```
$ pip install fattails
$ python

>>> import fattails
>>>
>>>
>>> fattails.mad([1,2,3]) # Calculate Mean Absolute Deviation of [1,2,3]
0.6666666666666666
>>>
>>>
>>> fattails.metrics.get_survival_probability([1,2,3]) # Get survival probability for each value in your data
0    0.75
1    0.50
2    0.25
Name: survival_probability, dtype: float64
```

### Derivations
* [How much data do I need?](https://github.com/FergM/fattails/blob/main/docs/Notes-02%20-%20Derivation%20-%20How%20much%20data%20do%20I%20need.pdf)

## Contact
Jump straight to [discussions](https://github.com/FergM/fattails/discussions) or check out the [contributing guidelines](./docs/CONTRIBUTING.md). Feedback and suggestions are really appreciated!

### Contributors
Special thanks to:
* Daniel Reti: [github.com/drettt](https://github.com/drettt)

# External Resources
Technical Incerto Book One:
* Free PDF: [researchers.one](https://researchers.one/articles/20.01.00018), [arxiv.org](https://arxiv.org/abs/2001.10488)
* Errata: [fooledbyrandomness.com](https://www.fooledbyrandomness.com/Errata2020FirstEdition.pdf)

More Links:
* Incerto Reading Club: [Website](http://www.techincertoreadingclub.com/), [GitHub](https://github.com/Technical-Incerto-Reading-Club/code-examples)
* [`StatisticalConsequencesOfFatTails`](https://github.com/MarcosCarreira/StatisticalConsequencesOfFatTails): Code and Links collected by [Marcos Carreira](https://github.com/MarcosCarreira)
beasy 1.0.0
Simple Python API client for accessing data on the Bureau of Economic Analysis application programming interface.
Requires Python: >=3.6, <4

# Simple BEA Client

------------

## Installation

`pip install beasy`

## Description

This library is an unofficial Python API client for [U.S Bureau of Economic Analysis](https://www.bea.gov/ "U.S Bureau of Economic Analysis") API.

You can view the developer guide for the API [here](https://apps.bea.gov/api/_pdf/bea_web_service_api_user_guide.pdf "here"). This is **not** the user guide for this client library. However, it will provide useful information on how this library interacts with the API.

## Purpose

Other BEA client libraries exist for accessing the API. However, in my opinion, they are either too complicated or poorly conceived. Therefore, this library is a simple and straightforward client.

If complicated sorting, filtering, or formatting functions are desired, they will be added as utility functions that are not part of the client module.

## Usage

Currently, the library is designed to return JSON response objects from the BEA API, not XML.

````
from beasy.beasy import Bea
API_KEY = 'your_api_key'
client = Bea(API_KEY)
````

### **Get Dataset List**

"...retrieves a list of the datasets currently offered."

`client.getDatasetList()`

### **Get Parameter List**

"...retrieves a list of the parameters(required and optional) for a particular dataset."

*client.[table_name].getParameterList()*

`client.Regional.getParameterList()`

### **Get Parameter Values**

"...retrieves a list of the valid values for a particular parameter."

*client.[table_name].getParameterValues(parameter)*

`client.Regional.getParameterValues('LineCode')`

### **Get Parameter Values Filtered**

"...retrieves a list of the valid values for a particular parameter based on other provided parameters."

*client.[table_name].getParameterValuesFiltered(targetParameter, \*\*kwargs)*

`client.Regional.getParameterValuesFiltered('LineCode', 'SAINC1')`


### **Get Data**

*client.[table_name].getData(\*\*kwargs)*

`client.Regional.getData(TableName='CAINC1',
    LineCode='3',
    GeoFIPS='DE',
    Year='2014')`
repocache 0.3.3
Universal caching and proxying server for pypi/maven/npm/yum

# repocache
Universal caching and proxying repository server for pypi/maven/npm/yum/rustup, speedup local using.

3.5, 3.6, 3.7, 3.8 ![main workflow](https://github.com/pedia/repocache/actions/workflows/main.yml/badge.svg)

## How to startup?
```bash
pip install repocache

python -m repocache.main -f default.cfg
# listen at 0.0.0.0:5000
```

## How to use repocache as YUM repository?
```bash
cd /etc/yum.repos.d

# base
curl -O http://192.168.1.2:5000/centos/huawei/Centos-7.repo
# sclo
curl -O http://192.168.1.2:5000/centos/sclo/Centos-7.repo

yum makecache
```

## How to use repocache as NPM repository?
```bash
npm config set registry https://127.0.0.1:5000/npm/default/
npm config set prefix=$HOME/.node_modules_global
npm --verbose install smallest-png@2.0.0 -g
```

NPM Search is support.

## How to use repocache as MVN repository?

Change $HOME/.m2/settings.xml as:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <profiles>
        <profile>
            <id>repocache</id>
            <repositories>
                <repository>
                    <id>repocache</id>
                    <url>http://127.0.0.1:5000/mvn/default/</url>
                </repository>
                <repository>
                    <id>jitpack.io</id>
                    <url>http://127.0.0.1:5000/mvn/jitpack/</url>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>repocache</activeProfile>
    </activeProfiles>
    <mirrors>
        <mirror>
            <id>repocache</id>
            <url>http://127.0.0.1:5000/mvn/default/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
    </mirrors>
</settings>
```

```shell
cd /path/to/java-project
mvn install
```



## How to use repocache as PIP repository?
Simply install in shell:
```bash
pip install -i http://127.0.0.1:5000/pypi/simple --trusted-host=127.0.0.1:5000 click==7.1.2
```

Or change $HOME/.pip/pip.conf as:
```
[global]
trusted-host=127.0.0.1:5000
index-url=http://127.0.0.1:5000/pypi/simple
```

## How to use repocache as Rustup?
```bash
export RUSTUP_DIST_SERVER=http://127.0.0.1:5000/rust/default

curl http://127.0.0.1:5000/rust/rustup.sh | sh
```


## Settting file
See [default.cfg](default.cfg)


## Open source
This repository was copy from pypicache early, but fully rewrite later.
PR wellcome.