Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
artifacts: list<item: struct<bytes: int64, path: string, sha256: string>>
  child 0, item: struct<bytes: int64, path: string, sha256: string>
      child 0, bytes: int64
      child 1, path: string
      child 2, sha256: string
id: string
license: string
schemaVersion: int64
sourceUrls: list<item: string>
  child 0, item: string
title: string
type: string
version: string
text: string
source: string
document_id: string
to
{'document_id': Value('string'), 'title': Value('string'), 'source': Value('string'), 'license': Value('string'), 'text': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3052, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 558, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              artifacts: list<item: struct<bytes: int64, path: string, sha256: string>>
                child 0, item: struct<bytes: int64, path: string, sha256: string>
                    child 0, bytes: int64
                    child 1, path: string
                    child 2, sha256: string
              id: string
              license: string
              schemaVersion: int64
              sourceUrls: list<item: string>
                child 0, item: string
              title: string
              type: string
              version: string
              text: string
              source: string
              document_id: string
              to
              {'document_id': Value('string'), 'title': Value('string'), 'source': Value('string'), 'license': Value('string'), 'text': Value('string')}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Mathematics: Introductory Statistics β€” offline packs for Field Atlas

Two builds of the same knowledge pack, made for the poidh bounty "Mathematics: Introductory statistics" (https://poidh.xyz/base/bounty/1554), built with the Field Atlas pack tools (packtool and tools/packs/stream_pack.py) and shaped like the existing Mathematics: Prealgebra pack: one passage per numbered book section in the book's own words, worked examples, exercises, problems and their solutions kept in the order the book prints them, tables written one row to a line, formulas carried as LaTeX converted from the book's MathML, and each section followed by its glossary.

Import either file in the app with Library, then Import.

The two builds

1. openstax-introductory-statistics-0.1.0.fapack β€” the pack claimed on the bounty.

  • 3,488,059 bytes, SHA-256 a6dc535ce0d9db6ba521e4d139c243a8e2cea183b1e0c61d4e02d63278310013
  • 80 documents β€” the 80 numbered sections of the 13 chapters β€” and 1,513 passages
  • builder: build_stats_pack.py, in this repo. Its input corpus is pinned inside that script by SHA-256 22d2aafcdfeaef0656d910d3185667879cfede30381348c96f3c207d3293423f
  • verify_pack passes: 1,513 passages, FTS5 table present, manifest hashes match, sample hit resolves to "Discrete Random Variables β€” Poisson Distribution"

2. openstax-introductory-statistics-0.1.0+appendix-fh.fapack β€” the same book plus the two reference appendices.

  • 3,554,291 bytes, SHA-256 4c72b55875ecad4cbe0bab7d0ddb36cf138deb5a756c5d2544aa6fb3d7743218
  • 82 documents β€” the same 80 sections plus Appendix F (Mathematical Phrases, Symbols, and Formulas) and Appendix H (Tables) β€” and 1,522 passages
  • builder: build_introductory_statistics_pack.py; input: corpus.jsonl in this repo, SHA-256 7ab9b24f44cb772bf8ae4f818d2aaf4944b5667d5c9f5ea38c16f780a3319f2a
  • rebuilt twice into two separate output directories; both runs produced this same SHA-256 byte for byte
  • verify_pack passes on it as well

Either file answers the same questions with the same citations. The second adds the book's formula and distribution tables, which the bounty lists among the things the collection should carry.

What is inside

13 chapters, 80 numbered sections: sampling and data, descriptive statistics, probability, discrete and continuous random variables, the normal distribution, the central limit theorem, confidence intervals, hypothesis tests with one and two samples, the chi-square distribution, linear regression and correlation, the F distribution and one-way ANOVA.

Worked examples, exercises, tables and glossaries are kept. Images are left out; their captions and descriptions are kept. The preface, the chapter introductions and the appendices outside F and H (review exercises, practice tests, data sets, group projects, solution sheets, calculator notes) are not included.

Each pack also carries its own ATTRIBUTION.txt inside the archive, listed in the manifest with its hash.

How the second build was made

git clone https://github.com/openstax/osbooks-introductory-statistics-bundle
git -C osbooks-introductory-statistics-bundle checkout 50ec91749080bb040b57bb40c34337cacc994cba
python3 tools/packs/extract_openstax_introductory_statistics.py --osbooks osbooks-introductory-statistics-bundle
python3 tools/packs/build_introductory_statistics_pack.py

Both scripts are in this repo, and the extractor's output is the corpus.jsonl above, so the whole chain from the pinned book revision to the pack can be rerun.

Checks run

  • verify_pack from tools/packs/fapack_convert.py passes on both packs: every artifact's byte count and SHA-256 match the manifest, the database opens, PRAGMA quick_check returns ok, the FTS5 table holds the passages, and an FTS MATCH returns a hit.
  • Retrieval, run the way the app runs it (bm25 with the title weighted 3 and the text 1, the query built as in FtsQuery.kt): for twelve ordinary statistics questions β€” confidence interval, Poisson, hypothesis and p-value, IQR, standard deviation, binomial, normal and z-score, regression, chi-square, central limit theorem, random variable β€” the section carrying the asked-about concept came back in the top three every time. The app's query requires every word of the question, so a literal "how to compute a z-score" misses: the book does not use the word "compute" in that section. Asked as "z-score" or "standard normal distribution z score", the same search returns The Normal Distribution β€” The Standard Normal Distribution first.
  • No CNXML or MathML markup survives into a passage; formulas are LaTeX.

Licence

The text is OpenStax's own, under Creative Commons Attribution 4.0 International (CC BY 4.0), from the revision of openstax/osbooks-introductory-statistics-bundle at commit 50ec91749080bb040b57bb40c34337cacc994cba (17 March 2026) β€” the last revision before OpenStax moved the book to CC BY-NC-SA on 19 March 2026. A CC licence cannot be taken back, so the text published before that change stays under CC BY 4.0; only the pinned revision is used. The book is by Barbara Illowsky and Susan Dean, OpenStax, Rice University.

No OpenStax logo is used, and OpenStax does not endorse Field Atlas. This repo is a submission, not an official Field Atlas release.

Downloads last month
74