This is the repository for Homework 1 for BEE 4850.
After completing this lab, students will be able to:
- identify spurious correlations;
- simulate from data-generating models corresponding to hypotheses about data;
- reason about the consistency of data with hypotheses about data generating processes.
The repository consists of the following files:
hw01.ipynb: Jupyter Notebook for the homework assignment. Students should create code or Markdown blocks as necessary to answer questions, or can write their code and solutions in a different file format.Project.toml,Manifest.toml: Julia environment files. These should just work, but feel free to add other packages as needed using thePkgpackage manager.hw01.qmd: Source file for Jupyter notebook generation. You could modify this file to write your solution if you want to use Quarto.LICENSE: This material is licensed using the MIT license. You can ignore this for working on the problem set.README.md: This file. You shouldn't need to touch this..gitignore: This tellsgitwhat files to ignore. You shouldn't need to touch this.
These are the prerequisites for using the Julia package environment and the notebook. If using a different language (in a modified version of the notebook or elsewhere), the steps will be different.
- Install Julia before beginning this lab. This notebook was developed with version 1.10.4, but any 1.10.x should work (there could be some issues with other versions, depending on what's changed).
- If necessary, install git and create a GitHub account.
- Clone the repository. I recommend doing this in a dedicated
BEE4850/folder, which can also house homework assignment repositories and lecture notes. You can clone directly into theBEE4850/folder. For Windows (or from another graphical interface), just create aBEE4850folder, then ahwfolder inside of that, then clone into that folder. Or to clone into aBEE4850/hwfolder, from a command prompt:cd BEE4850/ mkdir hw cd hw/ git clone https://github.com/BEE4850/hw01.git
- To interact (view and run) the notebook, there are two options:
- Install an integrated development environment, or IDE (I recommend VS Code with the Julia extension).
- Use the
IJulia.jlpackage. I've included this in the project environment (discussed below), so no further steps are needed.
- Opening the notebook will depend on what you decided to do in the previous step.
- If you installed VS Code, you should be able to just open
hw01.ipynband everything should just work. - If you're using a different IDE, Google how to make sure that it is set up to run a Julia notebook.
- If you want to use
IJulia.jl, open a Julia prompt. You can do this by:-
Using the
Julia-1.10or equivalent graphical program, typecd("BEE4850/hw")or whatever path points to your lab notebook folder; -
Navigating to your
BEE4850/hw/hw01folder and typingjuliato open the prompt.Then:import Pkg Pkg.activate(".") using IJulia notebook()
and you can navigate to and open
hw01.ipynb.
-