Publications by Nicole Radziwill
A Discrete Time Markov Chain (DTMC) SIR Model in R
Image Credit: Doug Buckley of http://hyperactive.to There are many different techniques that be used to model physical, social, economic, and conceptual systems. The purpose of this post is to show how the Kermack-McKendrick (1927) formulation of the SIR Model for studying disease epidemics (where S stands for Susceptible, I stands for Infecte...
4651 sym R (1379 sym/8 pcs) 10 img
Course Materials for Statistics (The Easier Way) With R
Are you an instructor with a Spring 2016 intro to statistics course coming up… and yet you haven’t started preparing? If so, I have a potential solution for you to consider. The materials (lecture slides, in-class practice problems in R, exams, syllabus) go with my book and are about 85% compiled, but good enough to get a course started this...
1729 sym 6 img
Analytic Hierarchy Process (AHP) with the ahp Package
On my December to-do list, I had “write an R package to make analytic hierarchy process (AHP) easier” — but fortunately gluc beat me to it, and saved me tons of time that I spent using AHP to do an actual research problem. First of all, thank you for writing the new ahp package! Next, I’d like to show everyone just how easy this package ...
3054 sym R (3596 sym/5 pcs) 6 img
Analytic Hierarchy Process (AHP) using preferenceFunction in ahp
Yesterday, I wrote about how to use gluc‘s new ahp package on a simple Tom-Dick-Harry one level decision making problem using Analytic Hierarchy Process (AHP). One of the cool things about that package is that in addition to specifying the pairwise comparisons directly using Saaty’s scale (below, from https://kristalaace2014.wordpress.com/20...
3386 sym R (6435 sym/6 pcs) 8 img
Using xda with googlesheets in R
Image Credit: Doug Buckley of http://hyperactive.to Want to do a quick, exploratory data analysis in R of your data that’s stored in a spreadsheet on Google Drive? You’re in luck, because now you can use the new xda package in conjunction with Jenny Bryan‘s googlesheets. There are some quirks, though, and that’s what this post is all abou...
3213 sym R (1932 sym/3 pcs) 6 img
Taking a Subset of a Data Frame in R
I just wrote a new chapter for my students describing how to subset a data frame in R. The full text is available at https://docs.google.com/document/d/1K5U11-IKRkxNmitu_lS71Z6uLTQW_fp6QNbOMMwA5J8/edit?usp=sharing but here’s a preview: Let’s load in ChickWeight, one of R’s built in datasets. This contains the weights of little chickens at ...
1987 sym R (1772 sym/6 pcs) 4 img
Where Do Z-Score Tables Come From? (+ how to make them in R)
Every student learns how to look up areas under the normal curve using Z-Score tables in their first statistics class. But what is less commonly covered, especially in courses where calculus is not a prerequisite, is where those Z-Score tables come from: by evaluating the integral of the equation for the bell-shaped normal curve, usually from -In...
2386 sym R (5714 sym/3 pcs) 8 img
A Newbie’s Install of Keras & Tensorflow on Windows 10 with R
This weekend, I decided it was time: I was going to update my Python environment and get Keras and Tensorflow installed so I could start doing tutorials (particularly for deep learning) using R. Although I used to be a systems administrator (about 20 years ago), I don’t do much installing or configuring so I guess that’s why I’ve put this t...
5670 sym R (2210 sym/23 pcs) 4 img
Reinforcement Learning: Q-Learning with the Hopping Robot
Overview: Reinforcement learning uses “reward” signals to determine how to navigate through a system in the most valuable way. (I’m particularly interested in the variant of reinforcement learning called “Q-Learning” because the goal is to create a “Quality Matrix” that can help you make the best sequence of decisions!) I found a to...
8375 sym R (4479 sym/6 pcs) 8 img
A Simple Intro to Q-Learning in R: Floor Plan Navigation
This example is drawn from “A Painless Q-Learning Tutorial” at http://mnemstudio.org/path-finding-q-learning-tutorial.htm which explains how to manually calculate iterations using the updating equation for Q-Learning, based on the Bellman Equation (image from https://www.is.uni-freiburg.de/ressourcen/business-analytics/13_reinforcementlearni...
3804 sym R (628 sym/2 pcs) 16 img