Python tools for geobootstrapping
Project description
Geobootstrap
geobootstrap
is a novel computer simulation method that extends the classic bootstrap method (Efron 1979) in statistical analysis, to generate representative statistical measures e.g. standard deviations, confidence intervals and probability based values).
Instead of passing the default None weights to pandas.sample, which results in equal probability weighting, kernel-based weights are used.
The weights are determined by a distance decay function, that determines how quickly weights decrease as distances increase.
This means that key statistical measures are computed by pooling or borrowing strength from neighbouring units.
Thus, geobootstrap takes advantage of the spatial structure of GeoDataFrames.
Geobootstrap is based on pandas.sample
and operates on geopandas.GeoDataFrames
.
The resampling takes place for each spatial entity and the fraction of samples returned is based on the fraction of the original dataset.
So a GeoDataFrame with 10 spatial entities and a fraction of 1.0 (default) will return a list of 10 entries, each containing 10 different spatial entities.
If the fraction was set to 0.8, then a list of 10 entries, each containing 8 different spatial entities would be returned.
Further descriptions about the methodology will be later provided but the contents of the package should provide enough detail for now. The potential use cases of this methodology include areal interpolation, which are illustrated in the coss package.
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
File details
Details for the file geobootstrap-0.12.tar.gz
.
File metadata
- Download URL: geobootstrap-0.12.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90cb75e6328b6f508130895caa22a5622751722d48434b4cdaa4b626761653d7 |
|
MD5 | 0281ebf21526c365753ac66cc63548f8 |
|
BLAKE2b-256 | d90d419c5c45b57cffb2e3b838c04887aeaba79c099bffa4e58b7f5ae7f14207 |
File details
Details for the file geobootstrap-0.12-py3-none-any.whl
.
File metadata
- Download URL: geobootstrap-0.12-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be75c96bfb708c02e8b004fb0569159f81f64fdbb86c12ea4f82cff0ef63f3d1 |
|
MD5 | 3621ee0e827021d4045604dbe3af1042 |
|
BLAKE2b-256 | bf15e4bd3911698834d3e6368ab5d9f1f469de0cbbf351f8967474c9df1e34d9 |