Skip to main content

A library for wrangling data for University of Oxford Intro to Probability Theory and Statistics

Project description

oxford-stats-lib

Example

clouds = pd.read_csv('https://raw.githubusercontent.com/jillxoreilly/StatsCourseBook_2025/main/data/cloudSeeding.csv')

test = HypothesisTest(clouds)
test.measuring_column('rainfall').query_on_column('status').set_datapoints('Unseeded', 'Seeded')

print(test.using_permutation().exec())

This yields:

H0: The difference in mean rainfall between group Unseeded and group Seeded is zero.
H1: The difference in mean rainfall between group Unseeded and group Seeded is two-sided than zero.
This is a two-sided (non-directional) alternative hypothesis.

Test statistic: difference in mean rainfall between group Unseeded and group Seeded (-277)
Alpha: 0.05

P-value: 0.052 (after 10000 permutations)

0.052 > 0.05.
There is insufficient evidence to reject the null hypothesis.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oxford_stats_lib-1.1.7.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oxford_stats_lib-1.1.7-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file oxford_stats_lib-1.1.7.tar.gz.

File metadata

  • Download URL: oxford_stats_lib-1.1.7.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for oxford_stats_lib-1.1.7.tar.gz
Algorithm Hash digest
SHA256 481243437df5f55dd3a9b57a9addc8f639234c541a7b7e79e14e34c12f3b9c55
MD5 1ce0efb754498f9b784b7eadbc7ec09b
BLAKE2b-256 61cba3b3f332805eea17b6d14550b9a2c0aef1140b1dc70d6c826bd9067eeb90

See more details on using hashes here.

File details

Details for the file oxford_stats_lib-1.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for oxford_stats_lib-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4dcdb2d1fdcd999ff98c6da15f6f80d5b4e14d210b1696fa13e85f57d3211688
MD5 f9ba4bc9b5da50c2618aa19e559b8c5a
BLAKE2b-256 35278cf946475c907a2661f1efd5e31ad933f700d8a2b25bdb233a01ec42584d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page