Robert Blair 4 سال پیش
کامیت
78a7d20c95
100فایلهای تغییر یافته به همراه229 افزوده شده و 0 حذف شده
  1. 108 0
      .gitignore
  2. 1 0
      CNAME
  3. 21 0
      Gemfile
  4. 8 0
      Guardfile
  5. 38 0
      Makefile
  6. 53 0
      README.md
  7. BIN
      _build/.DS_Store
  8. BIN
      _build/.doctrees/README.doctree
  9. BIN
      _build/.doctrees/content/chapters/01/1/1/computational-tools.doctree
  10. BIN
      _build/.doctrees/content/chapters/01/1/2/statistical-techniques.doctree
  11. BIN
      _build/.doctrees/content/chapters/01/1/intro.doctree
  12. BIN
      _build/.doctrees/content/chapters/01/2/why-data-science.doctree
  13. BIN
      _build/.doctrees/content/chapters/01/3/1/Literary_Characters.doctree
  14. BIN
      _build/.doctrees/content/chapters/01/3/2/Another_Kind_Of_Character.doctree
  15. BIN
      _build/.doctrees/content/chapters/01/3/Plotting_the_Classics.doctree
  16. BIN
      _build/.doctrees/content/chapters/01/what-is-data-science.doctree
  17. BIN
      _build/.doctrees/content/chapters/02/1/observation-and-visualization-john-snow-and-the-broad-street-pump.doctree
  18. BIN
      _build/.doctrees/content/chapters/02/2/snow-s-grand-experiment.doctree
  19. BIN
      _build/.doctrees/content/chapters/02/3/establishing-causality.doctree
  20. BIN
      _build/.doctrees/content/chapters/02/4/randomization.doctree
  21. BIN
      _build/.doctrees/content/chapters/02/5/endnote.doctree
  22. BIN
      _build/.doctrees/content/chapters/02/causality-and-experiments.doctree
  23. BIN
      _build/.doctrees/content/chapters/03/1/Expressions.doctree
  24. BIN
      _build/.doctrees/content/chapters/03/2/1/Growth.doctree
  25. BIN
      _build/.doctrees/content/chapters/03/2/Names.doctree
  26. BIN
      _build/.doctrees/content/chapters/03/3/Calls.doctree
  27. BIN
      _build/.doctrees/content/chapters/03/4/Introduction_to_Tables.doctree
  28. BIN
      _build/.doctrees/content/chapters/03/programming-in-python.doctree
  29. BIN
      _build/.doctrees/content/chapters/04/1/Numbers.doctree
  30. BIN
      _build/.doctrees/content/chapters/04/2/1/String_Methods.doctree
  31. BIN
      _build/.doctrees/content/chapters/04/2/Strings.doctree
  32. BIN
      _build/.doctrees/content/chapters/04/3/Comparison.doctree
  33. BIN
      _build/.doctrees/content/chapters/04/Data_Types.doctree
  34. BIN
      _build/.doctrees/content/chapters/05/1/Arrays.doctree
  35. BIN
      _build/.doctrees/content/chapters/05/2/Ranges.doctree
  36. BIN
      _build/.doctrees/content/chapters/05/3/More_on_Arrays.doctree
  37. BIN
      _build/.doctrees/content/chapters/05/Sequences.doctree
  38. BIN
      _build/.doctrees/content/chapters/06/1/Sorting_Rows.doctree
  39. BIN
      _build/.doctrees/content/chapters/06/2/Selecting_Rows.doctree
  40. BIN
      _build/.doctrees/content/chapters/06/3/Example_Trends_in_the_Population_of_the_United_States.doctree
  41. BIN
      _build/.doctrees/content/chapters/06/4/Example_Gender_Ratio_in_the_US_Population.doctree
  42. BIN
      _build/.doctrees/content/chapters/06/Tables.doctree
  43. BIN
      _build/.doctrees/content/chapters/07/1/Visualizing_Categorical_Distributions.doctree
  44. BIN
      _build/.doctrees/content/chapters/07/2/Visualizing_Numerical_Distributions.doctree
  45. BIN
      _build/.doctrees/content/chapters/07/3/Overlaid_Graphs.doctree
  46. BIN
      _build/.doctrees/content/chapters/07/Visualization.doctree
  47. BIN
      _build/.doctrees/content/chapters/08/1/Applying_a_Function_to_a_Column.doctree
  48. BIN
      _build/.doctrees/content/chapters/08/2/Classifying_by_One_Variable.doctree
  49. BIN
      _build/.doctrees/content/chapters/08/3/Cross-Classifying_by_More_than_One_Variable.doctree
  50. BIN
      _build/.doctrees/content/chapters/08/4/Joining_Tables_by_Columns.doctree
  51. BIN
      _build/.doctrees/content/chapters/08/5/Bike_Sharing_in_the_Bay_Area.doctree
  52. BIN
      _build/.doctrees/content/chapters/08/Functions_and_Tables.doctree
  53. BIN
      _build/.doctrees/content/chapters/09/1/Conditional_Statements.doctree
  54. BIN
      _build/.doctrees/content/chapters/09/2/Iteration.doctree
  55. BIN
      _build/.doctrees/content/chapters/09/3/Simulation.doctree
  56. BIN
      _build/.doctrees/content/chapters/09/4/Monty_Hall_Problem.doctree
  57. BIN
      _build/.doctrees/content/chapters/09/5/Finding_Probabilities.doctree
  58. BIN
      _build/.doctrees/content/chapters/09/Randomness.doctree
  59. BIN
      _build/.doctrees/content/chapters/10/1/Empirical_Distributions.doctree
  60. BIN
      _build/.doctrees/content/chapters/10/2/Sampling_from_a_Population.doctree
  61. BIN
      _build/.doctrees/content/chapters/10/3/Empirical_Distribution_of_a_Statistic.doctree
  62. BIN
      _build/.doctrees/content/chapters/10/Sampling_and_Empirical_Distributions.doctree
  63. BIN
      _build/.doctrees/content/chapters/11/1/Assessing_Models.doctree
  64. BIN
      _build/.doctrees/content/chapters/11/2/Multiple_Categories.doctree
  65. BIN
      _build/.doctrees/content/chapters/11/3/Decisions_and_Uncertainty.doctree
  66. BIN
      _build/.doctrees/content/chapters/11/4/Error_Probabilities.doctree
  67. BIN
      _build/.doctrees/content/chapters/11/Testing_Hypotheses.doctree
  68. BIN
      _build/.doctrees/content/chapters/12/1/AB_Testing.doctree
  69. BIN
      _build/.doctrees/content/chapters/12/2/Deflategate.doctree
  70. BIN
      _build/.doctrees/content/chapters/12/3/Causality.doctree
  71. BIN
      _build/.doctrees/content/chapters/12/Comparing_Two_Samples.doctree
  72. BIN
      _build/.doctrees/content/chapters/13/1/Percentiles.doctree
  73. BIN
      _build/.doctrees/content/chapters/13/2/Bootstrap.doctree
  74. BIN
      _build/.doctrees/content/chapters/13/3/Confidence_Intervals.doctree
  75. BIN
      _build/.doctrees/content/chapters/13/4/Using_Confidence_Intervals.doctree
  76. BIN
      _build/.doctrees/content/chapters/13/Estimation.doctree
  77. BIN
      _build/.doctrees/content/chapters/14/1/Properties_of_the_Mean.doctree
  78. BIN
      _build/.doctrees/content/chapters/14/2/Variability.doctree
  79. BIN
      _build/.doctrees/content/chapters/14/3/SD_and_the_Normal_Curve.doctree
  80. BIN
      _build/.doctrees/content/chapters/14/4/Central_Limit_Theorem.doctree
  81. BIN
      _build/.doctrees/content/chapters/14/5/Variability_of_the_Sample_Mean.doctree
  82. BIN
      _build/.doctrees/content/chapters/14/6/Choosing_a_Sample_Size.doctree
  83. BIN
      _build/.doctrees/content/chapters/14/Why_the_Mean_Matters.doctree
  84. BIN
      _build/.doctrees/content/chapters/15/1/Correlation.doctree
  85. BIN
      _build/.doctrees/content/chapters/15/2/Regression_Line.doctree
  86. BIN
      _build/.doctrees/content/chapters/15/3/Method_of_Least_Squares.doctree
  87. BIN
      _build/.doctrees/content/chapters/15/4/Least_Squares_Regression.doctree
  88. BIN
      _build/.doctrees/content/chapters/15/5/Visual_Diagnostics.doctree
  89. BIN
      _build/.doctrees/content/chapters/15/6/Numerical_Diagnostics.doctree
  90. BIN
      _build/.doctrees/content/chapters/15/Prediction.doctree
  91. BIN
      _build/.doctrees/content/chapters/16/1/Regression_Model.doctree
  92. BIN
      _build/.doctrees/content/chapters/16/2/Inference_for_the_True_Slope.doctree
  93. BIN
      _build/.doctrees/content/chapters/16/3/Prediction_Intervals.doctree
  94. BIN
      _build/.doctrees/content/chapters/16/Inference_for_Regression.doctree
  95. BIN
      _build/.doctrees/content/chapters/17/1/Nearest_Neighbors.doctree
  96. BIN
      _build/.doctrees/content/chapters/17/2/Training_and_Testing.doctree
  97. BIN
      _build/.doctrees/content/chapters/17/3/Rows_of_Tables.doctree
  98. BIN
      _build/.doctrees/content/chapters/17/4/Implementing_the_Classifier.doctree
  99. BIN
      _build/.doctrees/content/chapters/17/5/Accuracy_of_the_Classifier.doctree
  100. BIN
      _build/.doctrees/content/chapters/17/6/Multiple_Regression.doctree

+ 108 - 0
.gitignore

@@ -0,0 +1,108 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# pyenv
+.python-version
+
+# celery beat schedule file
+celerybeat-schedule
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+
+# Jekyll
+_site/
+.sass-cache

+ 1 - 0
CNAME

@@ -0,0 +1 @@
+www.inferentialthinking.com

+ 21 - 0
Gemfile

@@ -0,0 +1,21 @@
+source 'https://rubygems.org'
+
+group :jekyll_plugins do
+  gem 'github-pages'
+  gem 'jekyll-feed', '~> 0.6'
+
+  # Textbook plugins
+  gem 'jekyll-redirect-from'
+  gem 'jekyll-scholar'
+end
+
+# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
+gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
+
+# Performance-booster for watching directories on Windows
+gem 'wdm', '~> 0.1.0' if Gem.win_platform?
+
+# Development tools
+gem 'guard', '~> 2.14.2'
+gem 'guard-jekyll-plus', '~> 2.0.2'
+gem 'guard-livereload', '~> 2.5.2'

+ 8 - 0
Guardfile

@@ -0,0 +1,8 @@
+guard 'jekyll-plus', serve: true do
+  watch /.*/
+  ignore /^_site/
+end
+
+guard 'livereload' do
+  watch /.*/
+end

+ 38 - 0
Makefile

@@ -0,0 +1,38 @@
+.PHONY: help book clean serve
+
+help:
+	@echo "Please use 'make <target>' where <target> is one of:"
+	@echo "  install     to install the necessary dependencies for jupyter-book to build"
+	@echo "  book        to convert the content/ folder into Jekyll markdown in _build/"
+	@echo "  clean       to clean out site build files"
+	@echo "  runall      to run all notebooks in-place, capturing outputs with the notebook"
+	@echo "  serve       to serve the repository locally with Jekyll"
+	@echo "  build       to build the site HTML and store in _site/"
+	@echo "  site 		 to build the site HTML, store in _site/, and serve with Jekyll"
+
+
+install:
+	# Check to see whether bundler is already installed. If not, install it.
+	if [ hash bundler 2>/dev/null ]; then \
+	gem install bundler;\
+	fi
+	bundle install
+
+book:
+	jupyter-book build ./
+
+runall:
+	jupyter-book run ./content
+
+clean:
+	python scripts/clean.py
+
+serve:
+	bundle exec guard
+
+build:
+	jupyter-book build ./ --overwrite
+
+site: build
+	bundle exec jekyll build
+	touch _site/.nojekyll

+ 53 - 0
README.md

@@ -0,0 +1,53 @@
+# The Data 8 Jekyll textbook
+
+This repository holds a Jekyll-based version of the Data 8 textbook.
+
+All textbook content is primarily stored in Jupyter notebooks in the `content/` folder.
+This can be converted to Jekyll-ready markdown and served on github pages.
+
+## How this repository is deployed to `inferentialthinking.com`
+
+The Data 8 textbook has a slightly more complex deploy process. This is because
+[GitHub doesn't work well for using a custom domain name for an organization's non-root
+repository](https://help.github.com/articles/custom-domain-redirects-for-github-pages-sites/).
+
+So, here's how the textbook deploy works:
+
+* The textbook at `inferentialthinking.com` is actually being served from this repository:
+
+  https://github.com/inferentialthinking/inferentialthinking.github.io
+
+  **You should not ever directly edit the inferentialthinking.github.io repository**
+* Updates to the textbook should be made at **this** repository (`github.com/data-8/texbook`)
+* When you make a change to this repository and push it to the `data-8/textbook` gh-pages
+  branch, these changes should automatically be copied to https://github.com/inferentialthinking/inferentialthinking.github.io.
+* This is done with CircleCI, and the [configuration for this can be found](.circleci/config.yml)
+
+## Building the textbook
+Here are steps to get started building the textbook on your own machine:
+
+1. **Install the jupyter-book command line tool**. This allows you to create
+   and modify Jupyter Books:
+
+   ```
+   pip install jupyter-book
+   ```
+
+2. **Follow the build instructions on the Jupyter Book guide**. The guide
+   has information for how to use the Jupyter Book CLI to build this book.
+   You can find the [Jupyter Book build instructions here](https://jupyter.org/jupyter-book/guide/03_build.html#build-the-books-markdown).
+
+   A short summary (see the link for full details):
+   If you have Ruby and bundle installed,
+   install the dependencies by running
+   `bundle install`, then running `gem pristine ...` for each warning.
+   Once the dependencies are installed, run `make book` and then `make build`.
+
+**To preview your built site** using Jekyll on your computer, follow
+the steps on the [Jupyter Book guide](https://jupyter.org/jupyter-book/guide/03_build.html#build-the-books-site-html-locally-optional).
+The short version is to run `make serve`, then visit `http://127.0.0.1:4000/chapters/intro` in your browser.
+
+## Relevant files
+
+An explanation of the various files in this textbook can be found in
+the [Jupyter Book guide](https://jupyter.org/jupyter-book/guide/01_overview.html#a-quick-tour-of-a-jupyter-book).

BIN
_build/.DS_Store


BIN
_build/.doctrees/README.doctree


BIN
_build/.doctrees/content/chapters/01/1/1/computational-tools.doctree


BIN
_build/.doctrees/content/chapters/01/1/2/statistical-techniques.doctree


BIN
_build/.doctrees/content/chapters/01/1/intro.doctree


BIN
_build/.doctrees/content/chapters/01/2/why-data-science.doctree


BIN
_build/.doctrees/content/chapters/01/3/1/Literary_Characters.doctree


BIN
_build/.doctrees/content/chapters/01/3/2/Another_Kind_Of_Character.doctree


BIN
_build/.doctrees/content/chapters/01/3/Plotting_the_Classics.doctree


BIN
_build/.doctrees/content/chapters/01/what-is-data-science.doctree


BIN
_build/.doctrees/content/chapters/02/1/observation-and-visualization-john-snow-and-the-broad-street-pump.doctree


BIN
_build/.doctrees/content/chapters/02/2/snow-s-grand-experiment.doctree


BIN
_build/.doctrees/content/chapters/02/3/establishing-causality.doctree


BIN
_build/.doctrees/content/chapters/02/4/randomization.doctree


BIN
_build/.doctrees/content/chapters/02/5/endnote.doctree


BIN
_build/.doctrees/content/chapters/02/causality-and-experiments.doctree


BIN
_build/.doctrees/content/chapters/03/1/Expressions.doctree


BIN
_build/.doctrees/content/chapters/03/2/1/Growth.doctree


BIN
_build/.doctrees/content/chapters/03/2/Names.doctree


BIN
_build/.doctrees/content/chapters/03/3/Calls.doctree


BIN
_build/.doctrees/content/chapters/03/4/Introduction_to_Tables.doctree


BIN
_build/.doctrees/content/chapters/03/programming-in-python.doctree


BIN
_build/.doctrees/content/chapters/04/1/Numbers.doctree


BIN
_build/.doctrees/content/chapters/04/2/1/String_Methods.doctree


BIN
_build/.doctrees/content/chapters/04/2/Strings.doctree


BIN
_build/.doctrees/content/chapters/04/3/Comparison.doctree


BIN
_build/.doctrees/content/chapters/04/Data_Types.doctree


BIN
_build/.doctrees/content/chapters/05/1/Arrays.doctree


BIN
_build/.doctrees/content/chapters/05/2/Ranges.doctree


BIN
_build/.doctrees/content/chapters/05/3/More_on_Arrays.doctree


BIN
_build/.doctrees/content/chapters/05/Sequences.doctree


BIN
_build/.doctrees/content/chapters/06/1/Sorting_Rows.doctree


BIN
_build/.doctrees/content/chapters/06/2/Selecting_Rows.doctree


BIN
_build/.doctrees/content/chapters/06/3/Example_Trends_in_the_Population_of_the_United_States.doctree


BIN
_build/.doctrees/content/chapters/06/4/Example_Gender_Ratio_in_the_US_Population.doctree


BIN
_build/.doctrees/content/chapters/06/Tables.doctree


BIN
_build/.doctrees/content/chapters/07/1/Visualizing_Categorical_Distributions.doctree


BIN
_build/.doctrees/content/chapters/07/2/Visualizing_Numerical_Distributions.doctree


BIN
_build/.doctrees/content/chapters/07/3/Overlaid_Graphs.doctree


BIN
_build/.doctrees/content/chapters/07/Visualization.doctree


BIN
_build/.doctrees/content/chapters/08/1/Applying_a_Function_to_a_Column.doctree


BIN
_build/.doctrees/content/chapters/08/2/Classifying_by_One_Variable.doctree


BIN
_build/.doctrees/content/chapters/08/3/Cross-Classifying_by_More_than_One_Variable.doctree


BIN
_build/.doctrees/content/chapters/08/4/Joining_Tables_by_Columns.doctree


BIN
_build/.doctrees/content/chapters/08/5/Bike_Sharing_in_the_Bay_Area.doctree


BIN
_build/.doctrees/content/chapters/08/Functions_and_Tables.doctree


BIN
_build/.doctrees/content/chapters/09/1/Conditional_Statements.doctree


BIN
_build/.doctrees/content/chapters/09/2/Iteration.doctree


BIN
_build/.doctrees/content/chapters/09/3/Simulation.doctree


BIN
_build/.doctrees/content/chapters/09/4/Monty_Hall_Problem.doctree


BIN
_build/.doctrees/content/chapters/09/5/Finding_Probabilities.doctree


BIN
_build/.doctrees/content/chapters/09/Randomness.doctree


BIN
_build/.doctrees/content/chapters/10/1/Empirical_Distributions.doctree


BIN
_build/.doctrees/content/chapters/10/2/Sampling_from_a_Population.doctree


BIN
_build/.doctrees/content/chapters/10/3/Empirical_Distribution_of_a_Statistic.doctree


BIN
_build/.doctrees/content/chapters/10/Sampling_and_Empirical_Distributions.doctree


BIN
_build/.doctrees/content/chapters/11/1/Assessing_Models.doctree


BIN
_build/.doctrees/content/chapters/11/2/Multiple_Categories.doctree


BIN
_build/.doctrees/content/chapters/11/3/Decisions_and_Uncertainty.doctree


BIN
_build/.doctrees/content/chapters/11/4/Error_Probabilities.doctree


BIN
_build/.doctrees/content/chapters/11/Testing_Hypotheses.doctree


BIN
_build/.doctrees/content/chapters/12/1/AB_Testing.doctree


BIN
_build/.doctrees/content/chapters/12/2/Deflategate.doctree


BIN
_build/.doctrees/content/chapters/12/3/Causality.doctree


BIN
_build/.doctrees/content/chapters/12/Comparing_Two_Samples.doctree


BIN
_build/.doctrees/content/chapters/13/1/Percentiles.doctree


BIN
_build/.doctrees/content/chapters/13/2/Bootstrap.doctree


BIN
_build/.doctrees/content/chapters/13/3/Confidence_Intervals.doctree


BIN
_build/.doctrees/content/chapters/13/4/Using_Confidence_Intervals.doctree


BIN
_build/.doctrees/content/chapters/13/Estimation.doctree


BIN
_build/.doctrees/content/chapters/14/1/Properties_of_the_Mean.doctree


BIN
_build/.doctrees/content/chapters/14/2/Variability.doctree


BIN
_build/.doctrees/content/chapters/14/3/SD_and_the_Normal_Curve.doctree


BIN
_build/.doctrees/content/chapters/14/4/Central_Limit_Theorem.doctree


BIN
_build/.doctrees/content/chapters/14/5/Variability_of_the_Sample_Mean.doctree


BIN
_build/.doctrees/content/chapters/14/6/Choosing_a_Sample_Size.doctree


BIN
_build/.doctrees/content/chapters/14/Why_the_Mean_Matters.doctree


BIN
_build/.doctrees/content/chapters/15/1/Correlation.doctree


BIN
_build/.doctrees/content/chapters/15/2/Regression_Line.doctree


BIN
_build/.doctrees/content/chapters/15/3/Method_of_Least_Squares.doctree


BIN
_build/.doctrees/content/chapters/15/4/Least_Squares_Regression.doctree


BIN
_build/.doctrees/content/chapters/15/5/Visual_Diagnostics.doctree


BIN
_build/.doctrees/content/chapters/15/6/Numerical_Diagnostics.doctree


BIN
_build/.doctrees/content/chapters/15/Prediction.doctree


BIN
_build/.doctrees/content/chapters/16/1/Regression_Model.doctree


BIN
_build/.doctrees/content/chapters/16/2/Inference_for_the_True_Slope.doctree


BIN
_build/.doctrees/content/chapters/16/3/Prediction_Intervals.doctree


BIN
_build/.doctrees/content/chapters/16/Inference_for_Regression.doctree


BIN
_build/.doctrees/content/chapters/17/1/Nearest_Neighbors.doctree


BIN
_build/.doctrees/content/chapters/17/2/Training_and_Testing.doctree


BIN
_build/.doctrees/content/chapters/17/3/Rows_of_Tables.doctree


BIN
_build/.doctrees/content/chapters/17/4/Implementing_the_Classifier.doctree


BIN
_build/.doctrees/content/chapters/17/5/Accuracy_of_the_Classifier.doctree


BIN
_build/.doctrees/content/chapters/17/6/Multiple_Regression.doctree


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است