Blog

Research insights, ideas and practical guides on transportation, data science, AI, Swift and iOS.

46 postsRSS

  1. 2026

    8 posts
  2. The Journey Home: Women, Cities and Travelling After DarkA transport researcher who studies women's night travel walks a friend through 150 years of history, the world's cities, and what the evidence says actually works.
  3. The Sound of a Green Light: How Blind and Disabled People Cross the World's StreetsOn a trip to Tokyo, a blind traveller tells his friend what crossing a street feels like, and which cities help and which get in the way.
  4. How Long Should a Yellow Light Last? The Physics Behind the AmberMeher and her transport-planner mom work out the amber-light formula, and check a famous story about where it came from.
  5. Extreme Value Theory, Explained with a Story: Counting Crashes That Haven't Happened YetEstimate crashes from near-misses with extreme value theory, step by step.
  6. Red Means Stop: A Short History of the Traffic LightA grandfather who once directed traffic by hand tells his grandson how the traffic light came to be.
  7. Round and Round the Block: A Short History of ParkingTwo friends hunt for a parking spot, and a parking professor explains how it got this hard.
  8. Why Is the Road Painted Like a Zebra? A Short History of the CrosswalkA curious kid and her transport-planner mom on how crosswalks came to be.
  9. The Empirical Bayes Method, Explained with a Story: Why Crash Counts Alone Can Fool YouHow Empirical Bayes corrects misleading crash counts, step by step.
  10. 2023

    2 posts
  11. Ordered Logistic Regression in R (research-oriented modeling and interpretation)Fit an ordered logistic regression model in R and interpret it for research.
  12. Plotting Traffic Crash Trend using Python, Matplotlib, and SeabornTurn a year-by-year crash count table into a publication-ready dodged bar plot with pandas, Matplotlib and Seaborn.
  13. 2022

    8 posts
  14. Introduction to Box and Boxen Plots — Matplotlib, Pandas and Seaborn Visualization Guide (Part 3)Learn to draw box plots and boxen (letter-value) plots with Matplotlib, pandas and Seaborn.
  15. Introduction to Dodged Bar Plot (with Numerical Stats)— Python Visualization Guide (Part 2.3)Use dodged bar plots to compare numerical statistics such as means across groups in Python.
  16. Introduction to Stacked Bar Plot — Matplotlib, Pandas and Seaborn Visualization Guide (Part 2.2)Learn to draw stacked bar plots with Matplotlib, pandas and Seaborn.
  17. Introduction to Dodged Bar Plot — Matplotlib, Pandas and Seaborn Visualization Guide (Part 2.1)Learn to draw dodged (grouped) bar plots with Matplotlib, pandas and Seaborn.
  18. Introduction to Line Plot — Matplotlib, Pandas and Seaborn Visualization Guide (Part 1)Learn data visualization in Python from scratch, starting with line plots in Matplotlib, pandas and Seaborn.
  19. Generate Numerical Correlation and Nominal Association Plots using PythonPlot Pearson correlations between numeric variables and associations between categorical variables in Python.
  20. Set Up Python and VS Code for Data Science, Step by StepInstall Miniconda and Visual Studio Code, give each project its own clean environment, and run your first Jupyter notebook — with a screenshot for every click.
  21. Start Your Data Science Journey with These Books and CoursesTwenty-six books and courses, in the order I would take them if I started over, from your first line of Python to deep learning, time series and big data.
  22. 2021

    7 posts
  23. Introduction to PySparkGet started with PySpark: create a Spark session, load data, and filter, group and aggregate it.
  24. How to use Stata and Python Together Directly from Jupyter NotebookRun Stata and Python side by side in a single Jupyter notebook.
  25. Survival Analysis in Stata (KM Estimate, Cox-PH and AFT Model)Survival analysis in Stata: Kaplan-Meier curves, Cox proportional hazards regression and accelerated failure time models.
  26. Survival Analysis in Python (KM Estimate, Cox-PH and AFT Model)Survival analysis in Python: Kaplan-Meier curves, Cox proportional hazards regression and accelerated failure time models.
  27. Finding the Best Distribution that Fits Your Data using Python’s Fitter LibraryUse Python's fitter library to find the probability distribution that best fits your data.
  28. Modelling Binary Logistic Regression using Tidymodels Library in R (Part-1)A step-by-step guide to fitting logistic regression with R's tidymodels library.
  29. Generate Publication Ready Facet, Pair, and Joint Plots using Seaborn Library (Part 2)Generate publication-ready facet, pair and joint plots with Python's Seaborn library.
  30. 2020

    21 posts
  31. Generate Publication-Ready Plots Using Seaborn Library (Part-1)Generate publication-ready histograms, box plots, bar plots and more with Python's Seaborn library.
  32. Model Hyperparameters Tuning using Grid, Random and Genetic based Search in PythonTune machine learning models in Python with grid search, random search and genetic-algorithm search.
  33. Fitting MLR and Binary Logistic Regression using Python (Research-Oriented Modeling & Interpretation)Estimate multiple linear and binary logistic regression models in Python and report them for research publications.
  34. Machine Learning Model Explanation using Shapley ValuesInterpret a black-box machine learning model with SHAP (SHapley Additive exPlanations).
  35. Combining Multiple ggplot2 Plots for Scientific PublicationsLearn how to combine several ggplot2 plots into one figure for scientific publications.
  36. Modelling Multiple Linear Regression Using R (research-oriented modelling and interpretation)Train a multiple linear regression model in R, interpret its coefficients and run a stepwise regression.
  37. Online Courses for Starting your Research JourneyThe Coursera courses students should take to build research skills.
  38. Diabetes Prediction Model Explanation using LIMETrain and test a diabetes classification model in Python, then explain its predictions with LIME.
  39. Setting Up IPython Notebook using Anaconda DistributionSet up an Anaconda environment and connect it to an IPython (Jupyter) kernel.
  40. Decision Tree-Based Diabetes Classification in RTrain, prune and tune a decision tree classifier to predict diabetes in Python.
  41. How to Create and Customize Bar Plot Using ggplot2 Package in RBuild a bar plot in R with ggplot2, then adjust its colours and labels.
  42. Diabetes Classification using PyCaretCompare models, tune hyperparameters and plot results for a diabetes classifier in a few lines of code with PyCaret.
  43. How to Generate ECDF Plot using Python and RPlot an empirical cumulative distribution function (ECDF) and compute percentiles in both Python and R.
  44. How to use Notion Note-taking Application for ResearchAn introduction to the Notion note-taking app and how to organise your research in it.
  45. Inserting and Resizing Images in IPython Notebook (Python and R)A quick fix for showing image files inside a Jupyter (IPython) notebook, in both Python and R.
  46. Hyperparameter Tuning of Keras Deep Learning Model in PythonAutomate hyperparameter tuning for a Keras deep learning model in Python.
  47. Start Your CNN Journey with PyTorch in PythonClassify handwritten digits with a convolutional neural network (CNN) in PyTorch.
  48. Make Your Data Manipulation Fast, Fluent, and Fun Using the dfply Package in PythonManipulate data in Python with dplyr-style pipes using the dfply package.
  49. Modelling Binary Logistic Regression Using R (research-oriented modelling and interpretation)A hands-on guide to fitting a binary logistic regression model in R and interpreting it for research.
  50. Modelling Binary Logistic Regression Using Python (research-oriented modelling and interpretation)A hands-on guide to fitting a binary logistic regression model in Python and interpreting it the way research papers need.
  51. Programming, Data Science and Machine Learning Books (Python and R)Books that will help you understand the data science workflow and become a data scientist in Python and R.

46 posts · RSS feed