Basic Statistics 2024
Setup
Schedule
- Wed 9:30-11:00 in room 520
- Wed 12:15-14:00 in room 215k
Grading
TBA
GitHub Repository
All course materials for the exercise classes will be available in the GitHub repository:
GitHub Account
Open a GitHub account at https://github.com/signup. While you don’t need an account to download the course materials, you will need one to receive and submit assignments (this will be explained in details during the exercise classes). You can also apply for the GitHub student benefits at https://education.github.com/benefits. If approved you can receive free access to the GitHub Pro plan and to GitHub Copilot, an AI tool that helps you write code.
Google Account
We will be using Python through Jupyter notebooks in the exercise classes. The recommended way to work Google Colab, a cloud service that allows you to run Python code in the browser (and includes a generous free tier). You will need a Google account to use Google Colab. If you don’t have one, please register here: https://accounts.google.com/signup.
Local Software Setup (Optional)
The recommended way to run the notebooks is Google Colab. However, if you prefer to work locally, you will need to install a recent version of Python (3.7 or later) and the dependencies listed in the environment.yml file in the GitHub repository.
- Install Git for you operating system from https://git-scm.com/downloads/. During the installation, leave the default options.
- Install
minicondafrom https://docs.conda.io/en/latest/miniconda.html. Again, do not change the default options unless you know what you are doing. - Install Visual Studio Code (VSC) from https://code.visualstudio.com/. Once more, install with the default options.
Click on the Windows start button and type
cmd. Right-click on theCommand Promptand selectRun as administrator.Copy and paste the following command and press enter:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" choco install git vscode miniconda3
This will install Chocolatey, Git, Visual Studio Code, and Miniconda 3.
In case you have any issues, please refer to the Chocolatey installation instructions.
After installing the software, you can open a command prompt (you don’t need administrative privileges at this point) and run the following command:
git clone https://github.com/febse/stat2024.git %USERPROFILE%
This will clone the repository to your user profile folder (you can move it to another location afterwards or clone it directly to the desired location by replacing %userprofile% with the desired path).
Open VSC and click on File -> Open Folder and select the folder where you cloned the repository. Wait for VSC to load.
- It will ask you whether you trust the authors of the repository. Click on
Trust the authors. - A notification will appear at the bottom right corner of the screen asking you to install the recommended extensions. Click on
Install. - Press
Ctrl+Shift+Pand typePython: Create Environment. Select the.condaoption, then selectPython 3.12from the dropdown menu. This will create a new folder called.condain the repository folder and will install the Python packages listed in theenvironment.ymlfile. - Open one of the
.ipynbfiles in the repository, click onSelect Kernelbutton (top right of the notebook window) then choosePython Environmentsfrom the dropdown and select the.condaenvironment.
