Posts

Install Jupyter notebook with R

 For Windows, install anaconda following the instructions in the linked article https://richpauloo.github.io/2018-05-16-Installing-the-R-kernel-in-Jupyter-Lab/ There use the following the instruction below to install IRkernel which links R with Jupyter notebook: Start a R session, (you may need to open within the Anaconda Prompt, but it worked for me with a regular R session)  install.packages("IRkernel") library(IRkernel) installspec() For MacOS, install anaconda following the above linked article.  Open a terminal and run conda install -c anaconda jupyter_client Then open a R session and install IRkernel as above. To run jupyter lab, open an terminal and first  conda activate base To start jupyter notebook, open a terminal and run jupyter lab Note: 1. In some cases, you may need to install jupyter lab manually. In terminal, under the conda environment, run pip install jupyterlab 2. Make sure that there is no R installed in the conda environment, which could lead to...

A Short Guide on Running Jupyter Notebook on CoCalc

Image
Almost all tutorials for Jupyter Notebook talk about Python, and spend significant portion of their contents on installation. Therefore I am writing this short guide for QSBR II students on running R with Jupyter notebook on CoCalc.  CoCalc runs on the cloud, so that everything has already been set up and ready to go. You don't have to install any software on your own computer and you can access it through a browser anywhere with internet connection, you can even use it with your iPad. Once you login to the CoCalc website, remember that you should use the buttons on the webpage to navigate within the website (blue frame in the figure below). Note that the controls of the browser itself (shown in the read frame in the figure below) do not work for that.  I. Create a new Jupyter notebook in CoCalc First, let us create a new Jupyter notebook, give it a name, and it will be automatically saved on CoCalc. As shown in the figures below, first, click on the new buttons (see red arrow...

Syllabus

Image
  qsbrii2022.blogspot.com We are returning to in-person meetings. There will be no ZOOM option unless in-person meetings become impossible.  The lectures is at Forch 3rd floor lecture hall,  MW 1:20-2:40, F 1:20-3:10 Goal:  Build your confidence in understanding and using at least some statistical methods that are not taught in this course when you need them in your future research. What is new:  In QSBR I, the focus is on the basic concepts of statistical inference, especial the idea of quantifying the uncertainty of estimation and reasoning of hypothesis testing. In QSBR II, we will apply the basic concepts of statistical inference to explore relations between two or more variables, and the focus of the teaching will shift from basic concepts towards the statistical reasoning and the ART of data analysis.  A few tips:  The best way to learn statistics is to apply your own common sense and reasoning and applying statistical methods to real problems e...