How jiajing-sun/regression_with_r_and_python works
This repository is a Python and R computational companion to an applied regression textbook, not a standalone analysis service. The main user workflow is to run a chapter script alongside the book and inspect the calculations and analyses it demonstrates; box-level snippets offer smaller code examples. The Python materials span probability and inference, correlation and regression, and prediction, time-series, and causal methods. The appendix provides programming and data-work topics, including external-data examples. Chapter scripts and appendix files are grouped by their documented subject; unsampled integrations and data paths are not inferred.
Main entry points: chapter02.py Covariation · chapter03.py Probability inference · chapter04.py Correlation inference · chapter05.py Simple regression
Components 17
Foundations
- Covariation
Chapter02_Covariation_in_data/python/chapter02.py - Probability inference
Chapter03_Basic_probability_theory_and_statistical_inference_ch_probability_theory/python/chapter03.py - Correlation inference
Chapter04_Correlation_and_inference_about_a_population_ch_population_korrelation/python/chapter04.py
Regression
- Simple regression
Chapter05_The_simple_linear_regression_model/python/chapter05.py - Multiple regression
Chapter06_Multiple_Linear_Regression/python/chapter06.py - Nonlinear forms
Chapter07_Nonlinear_functional_form/python/chapter07.py - Dependent errors
Chapter08_Regression_analysis_with_dependent_error_terms_ch_reg_dep_error/python/chapter08.py
Applied extensions
- Binary outcomes
Chapter09_Binary_dependent_variable_ch_logit/python/chapter09.py - Prediction methods
Chapter10_Prediction_ch_prediction/python/chapter10.py - Nonparametric methods
Chapter11_Nonparametric_Regression_chapter_nonparametric/python/chapter11.py - Time series
Chapter12_Time_series_analysis/python/chapter12.py - Causal analysis
Chapter13_Causal_analyses_ch_causality/python/chapter13.py
Python appendix
- Appendix collection
Appendix_Python_code/appendix_python_all.py - Dataset manipulation
Appendix_Python_code/by_topic/07_basic_dataset_manipulation_in_python.py - Data visualisation
Appendix_Python_code/by_topic/08_data_visualisation_in_python.py - External data topics
Appendix_Python_code/by_topic/06_importing_data_and_accessing_external_sources.py
Other components
- Textbook reader
Connections 16
- Textbook reader → Covariation: runs chapter
README.md - Textbook reader → Probability inference: runs chapter
README.md - Textbook reader → Correlation inference: runs chapter
README.md - Textbook reader → Simple regression: runs chapter
README.md - Textbook reader → Multiple regression: runs chapter
README.md - Textbook reader → Nonlinear forms: runs chapter
README.md - Textbook reader → Dependent errors: runs chapter
README.md - Textbook reader → Binary outcomes: runs chapter
README.md - Textbook reader → Prediction methods: runs chapter
README.md - Textbook reader → Nonparametric methods: runs chapter
README.md - Textbook reader → Time series: runs chapter
README.md - Textbook reader → Causal analysis: runs chapter
README.md - Textbook reader → Appendix collection: uses appendix
README.md - Textbook reader → Dataset manipulation: uses appendix
README.md - Textbook reader → Data visualisation: uses appendix
README.md - Textbook reader → External data topics: uses appendix
README.md