Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion notebooks/chapter_1_introduction/start_here.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"\n",
"An applied astronomy-focused example (previously tutorial 8) now lives in\n",
"`autofit_workspace_developer/scripts/howtofit/chapter_1_introduction/tutorial_8_astronomy_example.py`,\n",
"alongside the larger `projects/cosmology/` example. These depend on astronomy-specific datasets\n",
"alongside the larger `autofit_workspace_developer/projects/cosmology/` example. These depend on astronomy-specific datasets\n",
"that only live in the developer workspace."
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"In this tutorial, we'll cover all of the output that comes from a non-linear search's `Result` object.\n",
"\n",
"We used this object at various points in the chapter. The bulk of material covered here is described in the example\n",
"script `autofit_workspace/overview/simple/result.py`. Nevertheless, it is a good idea to refresh ourselves about how\n",
"script `autofit_workspace/*/cookbooks/result.py`. Nevertheless, it is a good idea to refresh ourselves about how\n",
"results in **PyAutoFit** work before covering more advanced material.\n",
"\n",
"__Contents__\n",
Expand Down Expand Up @@ -993,7 +993,7 @@
"\n",
"By combining this with the filtering tools below, specific parameters can be included or removed from the latex.\n",
"\n",
"Remember that the superscripts of a parameter are loaded from the config file `notation/label.yaml`, providing high\n",
"Remember that the superscripts of a parameter are loaded from the config file `notation.yaml`, providing high\n",
"levels of customization for how the parameter names appear in the latex table. This is especially useful if your model\n",
"uses the same model components with the same parameter, which therefore need to be distinguished via superscripts."
]
Expand Down
110 changes: 55 additions & 55 deletions scripts/chapter_1_introduction/start_here.py
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
"""
HowToFit Lectures
=================
Welcome to the HowToFit Jupyter Notebook lectures!
At the core of data science is fitting a model to data. This process extracts meaningful patterns, relationships,
and insights, enabling accurate predictions, decision-making, and understanding of underlying processes.
However, data science can be quite challenging. With a vast array of statistical methods to choose from, it can be
difficult to determine the right one for your problem. Interpreting large volumes of results is complex, and managing big datasets requires significant computational power and sophisticated statistical methods.
The HowToFit lectures teach you how to perform effective data science analysis. Designed at an undergraduate level,
these lectures assume no prior knowledge of model-fitting, Bayesian statistics, or scientific analysis. They
introduce core concepts without formal statistical equations, aiming to provide an understanding of the
phenomenological methods used in data science. By the end of the lectures, you'll be equipped to perform your own
data analysis.
The lectures use the probabilistic programming language PyAutoFit, an open-source library for model-fitting,
scientific analysis, and big data analysis (https://github.com/PyAutoLabs/PyAutoFit).
The HowToFit lectures are composed of 3 chapters:
**Chapter 1: Introduction**: How to fit a model to data, perform statistical inference, and interpret the results
for scientific analysis.
**Chapter 2: Scientific Workflow**: Scaling model-fitting to big datasets while ensuring detailed scientific analysis
of the results.
**Chapter 3: Graphical Models**: Simultaneous model fitting of large datasets, scaling up to models with tens of
thousands of parameters.
After each chapter, it is advised that you apply what you've learned to your own model-fitting analysis based on
your scientific problem to build confidence in the techniques. Once confident, proceed to the next chapter.
__Chapter 1: Introduction__
The first chapter of the HowToFit lectures covers the basics of model-fitting, statistical inference, and scientific
interpretation. The chapter includes:
`tutorial_1_models.py`: What probabilistic models are and how to compose them using PyAutoFit.
`tutorial_2_fitting_data.py`: Fitting a model with an input set of parameters to data and quantifying the goodness of fit.
`tutorial_3_non_linear_search.py`: Searching non-linear parameter spaces to find the best-fit model.
`tutorial_4_why_modeling_is_hard.py`: Why modeling becomes difficult and how to over model-fitting problems.
`tutorial_5_results_and_samples.py`: Interpreting model-fit results and using the samples for scientific analysis.
An applied astronomy-focused example (previously tutorial 8) now lives in
`autofit_workspace_developer/scripts/howtofit/chapter_1_introduction/tutorial_8_astronomy_example.py`,
alongside the larger `projects/cosmology/` example. These depend on astronomy-specific datasets
that only live in the developer workspace.
"""
"""
HowToFit Lectures
=================

Welcome to the HowToFit Jupyter Notebook lectures!

At the core of data science is fitting a model to data. This process extracts meaningful patterns, relationships,
and insights, enabling accurate predictions, decision-making, and understanding of underlying processes.

However, data science can be quite challenging. With a vast array of statistical methods to choose from, it can be
difficult to determine the right one for your problem. Interpreting large volumes of results is complex, and managing big datasets requires significant computational power and sophisticated statistical methods.

The HowToFit lectures teach you how to perform effective data science analysis. Designed at an undergraduate level,
these lectures assume no prior knowledge of model-fitting, Bayesian statistics, or scientific analysis. They
introduce core concepts without formal statistical equations, aiming to provide an understanding of the
phenomenological methods used in data science. By the end of the lectures, you'll be equipped to perform your own
data analysis.

The lectures use the probabilistic programming language PyAutoFit, an open-source library for model-fitting,
scientific analysis, and big data analysis (https://github.com/PyAutoLabs/PyAutoFit).

The HowToFit lectures are composed of 3 chapters:

**Chapter 1: Introduction**: How to fit a model to data, perform statistical inference, and interpret the results
for scientific analysis.

**Chapter 2: Scientific Workflow**: Scaling model-fitting to big datasets while ensuring detailed scientific analysis
of the results.

**Chapter 3: Graphical Models**: Simultaneous model fitting of large datasets, scaling up to models with tens of
thousands of parameters.

After each chapter, it is advised that you apply what you've learned to your own model-fitting analysis based on
your scientific problem to build confidence in the techniques. Once confident, proceed to the next chapter.

__Chapter 1: Introduction__

The first chapter of the HowToFit lectures covers the basics of model-fitting, statistical inference, and scientific
interpretation. The chapter includes:

`tutorial_1_models.py`: What probabilistic models are and how to compose them using PyAutoFit.

`tutorial_2_fitting_data.py`: Fitting a model with an input set of parameters to data and quantifying the goodness of fit.

`tutorial_3_non_linear_search.py`: Searching non-linear parameter spaces to find the best-fit model.

`tutorial_4_why_modeling_is_hard.py`: Why modeling becomes difficult and how to over model-fitting problems.

`tutorial_5_results_and_samples.py`: Interpreting model-fit results and using the samples for scientific analysis.

An applied astronomy-focused example (previously tutorial 8) now lives in
`autofit_workspace_developer/scripts/howtofit/chapter_1_introduction/tutorial_8_astronomy_example.py`,
alongside the larger `autofit_workspace_developer/projects/cosmology/` example. These depend on astronomy-specific datasets
that only live in the developer workspace.
"""
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
In this tutorial, we'll cover all of the output that comes from a non-linear search's `Result` object.

We used this object at various points in the chapter. The bulk of material covered here is described in the example
script `autofit_workspace/overview/simple/result.py`. Nevertheless, it is a good idea to refresh ourselves about how
script `autofit_workspace/*/cookbooks/result.py`. Nevertheless, it is a good idea to refresh ourselves about how
results in **PyAutoFit** work before covering more advanced material.

__Contents__
Expand Down Expand Up @@ -678,7 +678,7 @@ def model_data_from(self, xvalues: np.ndarray):

By combining this with the filtering tools below, specific parameters can be included or removed from the latex.

Remember that the superscripts of a parameter are loaded from the config file `notation/label.yaml`, providing high
Remember that the superscripts of a parameter are loaded from the config file `notation.yaml`, providing high
levels of customization for how the parameter names appear in the latex table. This is especially useful if your model
uses the same model components with the same parameter, which therefore need to be distinguished via superscripts.
"""
Expand Down
2 changes: 1 addition & 1 deletion workspace_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"Latex"
],
"cross_refs": [
"autofit_workspace/overview/simple/result.py",
"/cookbooks/result.py",
"corner.py"
],
"notebook": "notebooks/chapter_1_introduction/tutorial_5_results_and_samples.ipynb",
Expand Down
Loading