<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog—Max Turgeon</title><link>https://maxturgeon.ca/blog/</link><description>Recent content on Blog—Max Turgeon</description><generator>Hugo -- gohugo.io</generator><language>en-ca</language><lastBuildDate>Thu, 21 Sep 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://maxturgeon.ca/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>Hidden powerful features of the tidyverse</title><link>https://maxturgeon.ca/blog/2023-09-21-hidden-powerful-features-of-the-tidyverse/</link><pubDate>Thu, 21 Sep 2023 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2023-09-21-hidden-powerful-features-of-the-tidyverse/</guid><description>Lately, I have had to write R code that would run from the command line (through Rscript) and whose expected behaviour was to summarise datasets that have standardized column names, but where the existing columns may differ from project to project.
In developing this code, I ran into a couple of (new to me) features of the tidyverse, and specifically the packages tidyselect and dplyr. These are:
tidyselect::any_of: variable selection by character vector that ignores missing variable.</description></item><item><title>PCA and MDS</title><link>https://maxturgeon.ca/blog/2021-09-21-pca-and-mds/</link><pubDate>Tue, 21 Sep 2021 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2021-09-21-pca-and-mds/</guid><description>Principal Component Analysis (PCA) and classical Multidimensional Scaling (MDS) are two closely related dimension reduction methods. In fact, under certain conditions, there are exactly the same. Their main difference is the type of input they take:
PCA: A dataset where each row is an observation, and each column is a feature. MDS: A distance matrix. Let’s look at an example. We will apply PCA to the USArrests data that is included with base R.</description></item><item><title>Multivariate t distribution</title><link>https://maxturgeon.ca/blog/2020-02-06-multivariate-t-distribution/</link><pubDate>Thu, 06 Feb 2020 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2020-02-06-multivariate-t-distribution/</guid><description>&lt;p>I am currently teaching a graduate course in Multivariate Analysis (the course website can be found &lt;a href="https://www.maxturgeon.ca/w20-stat7200/">here&lt;/a>). A few weeks ago, I introduced the family of elliptical distributions. In this blog post, I want to discuss the multivariate &lt;em>t&lt;/em> distribution, how to generate samples, and highlight the issue of uncorrelatedness vs independence.&lt;/p>
&lt;h2 id="elliptical-distributions">Elliptical distributions&lt;/h2>
&lt;p>If we generate samples from a multivariate normal, we can easily see that the contour lines are &lt;em>ellipses&lt;/em>:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4">&lt;code class="language-r" data-lang="r">&lt;span style="color:#a6e22e">set.seed&lt;/span>(&lt;span style="color:#ae81ff">7200&lt;/span>)
&lt;span style="color:#a6e22e">library&lt;/span>(mvtnorm)
n &lt;span style="color:#f92672">&amp;lt;-&lt;/span> &lt;span style="color:#ae81ff">10000&lt;/span>
p &lt;span style="color:#f92672">&amp;lt;-&lt;/span> &lt;span style="color:#ae81ff">2&lt;/span>
Sigma &lt;span style="color:#f92672">&amp;lt;-&lt;/span> &lt;span style="color:#a6e22e">matrix&lt;/span>(&lt;span style="color:#a6e22e">c&lt;/span>(&lt;span style="color:#ae81ff">1&lt;/span>, &lt;span style="color:#ae81ff">0.5&lt;/span>, &lt;span style="color:#ae81ff">0.5&lt;/span>, &lt;span style="color:#ae81ff">1&lt;/span>), ncol &lt;span style="color:#f92672">=&lt;/span> p)
Y &lt;span style="color:#f92672">&amp;lt;-&lt;/span> &lt;span style="color:#a6e22e">data.frame&lt;/span>(&lt;span style="color:#a6e22e">rmvnorm&lt;/span>(n, sigma &lt;span style="color:#f92672">=&lt;/span> Sigma))
&lt;span style="color:#75715e"># Plot the data&lt;/span>
&lt;span style="color:#a6e22e">library&lt;/span>(ggplot2)
&lt;span style="color:#a6e22e">ggplot&lt;/span>(Y, &lt;span style="color:#a6e22e">aes&lt;/span>(X1, X2)) &lt;span style="color:#f92672">+&lt;/span>
&lt;span style="color:#a6e22e">geom_point&lt;/span>(alpha &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#ae81ff">0.2&lt;/span>) &lt;span style="color:#f92672">+&lt;/span>
&lt;span style="color:#a6e22e">geom_density_2d&lt;/span>() &lt;span style="color:#f92672">+&lt;/span>
&lt;span style="color:#a6e22e">theme_minimal&lt;/span>()
&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;img src="unnamed-chunk-1-1.png" alt="Elliptical contours of multivariate normal">&lt;/p>
&lt;p>Elliptical distributions are a generalization of the multivariate normal distribution that retain this property that lines of constant density are ellipses.&lt;/p></description></item><item><title>Oscar 2019 predictions</title><link>https://maxturgeon.ca/blog/2019-02-23-oscar-predictions-2019/</link><pubDate>Sat, 23 Feb 2019 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2019-02-23-oscar-predictions-2019/</guid><description>&lt;p>Again this year, I will be using a prediction model to try and predict the winners in the top four categories: Best Picure, Best Director, Best Actor, and Best Actress. As in previous years, I still provide predictions for the other categories, but they were derived on a more &lt;em>ad hoc&lt;/em> basis.&lt;/p>
&lt;p>According to most pundits, the Best Picture race is wide open. But as you&amp;rsquo;ll see below, my prediction is less equivocal. To see this, it&amp;rsquo;s informative to look at how the winning probabilities have changed over time as more information was coming in:&lt;/p>
&lt;p>&lt;img src="oscar2019_bestPic.png" alt="Winning probabilities" title="Winning probabilities over time">&lt;/p>
&lt;p>As we can see, my model does not weight all guild awards the same way: a win at the Producers' Guild Awards (PGA) is worth a lot less than a win at the Directors' Guild Awards (DGA) or at the Bafta. Still, given the preferential ballot system used by the academy, my model is probably underestimating the chances of a movie with broad appeal like Green Book.&lt;/p>
&lt;p>My predictions are below, in bold. After the Academy Awards tomorrow, I will update this post and point out the winners&amp;ndash;I will indicate them in italics.&lt;/p>
&lt;p>&lt;em>Update (2019/02/25)&lt;/em>: I got 16 out of 24 right. This year really convinced me that my model for Best Picture is missing something about the broad appeal movies like Spotlight, The Shape of Water, and Green Book, and so it may be time to update it&amp;hellip; Stay tuned!&lt;/p></description></item><item><title>What I (currently) do at the Saskatchewan Health Authority</title><link>https://maxturgeon.ca/blog/2018-09-28-what-i-currently-do/</link><pubDate>Fri, 28 Sep 2018 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2018-09-28-what-i-currently-do/</guid><description>&lt;p>During the summer of 2016, my wife and I moved to Saskatoon so that she could pursue her medical residency training at the University of Saskatchewan. At the point, I was only wrapping up the third year of my PhD, and so I wasn&amp;rsquo;t necessary looking for a job. But one thing led to another, and I ended up applying for a new biostatistician position with the Saskatoon Health Region (SHR).&lt;/p>
&lt;p>The job description talked about being a connection point between the health care system and the Saskatchewan Centre for Patient-Oriented Research (&lt;a href="scpor.ca">SCPOR&lt;/a>), by providing both study design and methodological support for researchers. I thought I would be a good fit: McGill&amp;rsquo;s focus on data analysis and report writing provided me the tools to do the job; meanwhile I could learn more about the health care system itself and use my academic background to provide effective consultation to researchers.&lt;/p></description></item><item><title>Predictive model for the Oscars</title><link>https://maxturgeon.ca/blog/2018-02-25-oscar-prediction-model/</link><pubDate>Sun, 25 Feb 2018 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2018-02-25-oscar-prediction-model/</guid><description>&lt;p>A few years ago, as part of the graduate course &lt;em>Data Analysis and Report Writing&lt;/em> in the Department of Epidemiology, Biostatistics and Occupational Health at McGill University, we explored the topic of predictive modeling using a dataset containing movies, directors and actors who were nominated for an Academy Award. The goal was to select some variables and build a predictive model for the winner in four categories: Best Picture, Best Director, Best Actor, and Best Actress. As a movie fan, this was the dream assignment: I could combine my love of movies with my love of statistics! And it payed off: I was the only one in my class to correctly predict all four winners.&lt;/p></description></item><item><title>Oscar 2018 predictions</title><link>https://maxturgeon.ca/blog/2018-02-24-oscar-predictions-2018/</link><pubDate>Sat, 24 Feb 2018 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2018-02-24-oscar-predictions-2018/</guid><description>&lt;p>For the past few years, I have tried to predict the winners in all categories at the Academy Awards. Again, I will be using statistics and data analysis to inform my decision in some categories: Best Picure, Best Director, Best Actor, Best Actress, Best Supporting Actor, and Best Supporting Actress.&lt;/p>
&lt;p>As for the last three years, I stick to what the model tells me for my prediction in these categories. However, I&amp;rsquo;m skeptical about the predictions I have for best picture: several pundits see &lt;em>The Shape of Water&lt;/em> as a front runner, but my model only gives it a 16% chance of winning. Due to rule changes that now require a preferential ballot for Best Picture, the winner has been difficult to predict in recent years. Since &lt;em>The Shape of Water&lt;/em> possibly has a broader appeal than &lt;em>Lady Bird&lt;/em> and &lt;em>Three Billboards Outside Ebbing, Missouri&lt;/em>, it may prevail in the end. But I still believe &lt;em>Three Billboards Outside Ebbing, Missouri&lt;/em> is the actual front-runner; but I do think my model is under-estimating &lt;em>The Shape of Water&lt;/em>&amp;rsquo;s chances and over-estimating &lt;em>Lady Bird&lt;/em>&amp;rsquo;s.&lt;/p>
&lt;p>In the next few days, I will write another post in which I&amp;rsquo;ll describe how my model works. I&amp;rsquo;ll take the opportunity to try and explain why my model is so bearish for &lt;em>The Shape of Water&lt;/em>.&lt;/p>
&lt;p>My predictions are below, in bold. After the Academy Awards next weekend, I will update this post and point out the winners&amp;ndash;I will indicate them in italics.&lt;/p></description></item><item><title>First steps with Leaflet</title><link>https://maxturgeon.ca/blog/2017-07-05-leaflet-saskatoon/</link><pubDate>Wed, 05 Jul 2017 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2017-07-05-leaflet-saskatoon/</guid><description>I should probably be working on my thesis, but instead I started reading through the introduction to the R package leaflet. And the following made me feel excited: Code for America has GeoJSON data on their Github page for several cities in the world. In particular, they have both Saskatoon and Montreal! I used the leaflet package to draw the boundaries of each neighbourhoods. You can see the results here. (I wasn&amp;rsquo;t able to host the maps directly on this webpage.</description></item><item><title>Installing multiple R versions</title><link>https://maxturgeon.ca/blog/2017-04-01-multiple-r-versions/</link><pubDate>Sat, 01 Apr 2017 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2017-04-01-multiple-r-versions/</guid><description>&lt;p>&lt;a href="https://sahirbhatnagar.com/">Sahir Bhatnagar&lt;/a> and I are currently wrapping up the first version of our package &lt;a href="https://sahirbhatnagar.com/casebase/">casebase&lt;/a>. In short, it&amp;rsquo;s an R package for survival analysis, where we use case-base sampling to fit smooth-in-time hazards. (I could write a post on this package, but there&amp;rsquo;s no need: check out the &lt;a href="https://sahirbhatnagar.com/casebase/">website&lt;/a> and the four vignettes.) As part of our workflow, we perform continuous integration using &lt;a href="https://travis-ci.org/">Travis CI&lt;/a>, and we test our package against both the current and development versions of R. Recently, some tests began to fail against the development version, and so I had to install R-devel on my local machine in order to debug our code. This blog post is a summary of how I did it.&lt;/p>
&lt;p>To be fair, this is already documented online, and I made use of these resources; see the &lt;a href="https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Installation">official R installation docs&lt;/a> and this &lt;a href="https://support.rstudio.com/hc/en-us/articles/215488098-Installing-multiple-versions-of-R">RStudio support post&lt;/a>. I&amp;rsquo;m writing yet another post simply as a reference for myself and my colleagues. But I also ran into a compilation error that I wanted to document here. That error was &amp;ldquo;caused&amp;rdquo; by following closely the (amazing) book &lt;a href="http://r-pkgs.had.co.nz/">&lt;em>R packages&lt;/em>&lt;/a> by &lt;a href="http://hadley.nz/">Hadley Wickham&lt;/a>. Stick around to learn what the problem was!&lt;/p></description></item><item><title>Oscar 2017 predictions</title><link>https://maxturgeon.ca/blog/2017-02-12-oscar-predictions-2017/</link><pubDate>Sun, 12 Feb 2017 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2017-02-12-oscar-predictions-2017/</guid><description>&lt;p>For the past few years, I have tried to predict the winners in all categories at the Academy Awards. And &lt;a href="oscar-predictions-2016">for the past two years&lt;/a>, I&amp;rsquo;ve also used statistics and data analysis to inform my decision in four categories: Best Picure, Best Director, Best Actor, and Best Actress.&lt;/p>
&lt;p>As for the last two years, I stick to what the model tells me for my prediction in these categories. However, I&amp;rsquo;m skeptical about the predictions I have for the acting categories. First, for best actor, Denzel Washington and Casey Affleck are the only two front-runners&amp;ndash;there is no way Ryan Gosling will win this award. Second, for best actress, although I would argue that Emma Stone is now the favourite, Isabelle Huppert definitely has a chance too. Therefore, I expect to miss one of these categories.&lt;/p>
&lt;p>Finally, this year is definitely &lt;em>La La Land&lt;/em>&amp;rsquo;s show: 14 nominations, tied with &lt;a href="https://www.imdb.com/title/tt0120338/">&lt;em>Titanic&lt;/em>&lt;/a> and &lt;a href="https://www.imdb.com/title/tt0042192/">&lt;em>All About Eve&lt;/em>&lt;/a> for the most ever. I don&amp;rsquo;t think it will set a new record (which is 11 wins), but I expect them to win around 10 awards. I don&amp;rsquo;t expect them to run the tables in the sound/music categories&amp;ndash;which would be a first for a musical. I think the only one of these four awards they could miss is Best Sound Editing, which I predict will probably go to &lt;em>Arrival&lt;/em>.&lt;/p>
&lt;p>My predictions are below, in bold. After the Academy Awards, I will update this post and point out the winners&amp;ndash;I will indicate them in italics.&lt;/p>
&lt;p>&lt;strong>Update (2017/02/27)&lt;/strong>: Wow! What a &lt;a href="https://youtu.be/rvK-g1rehpU">finale&lt;/a>! As for my predictions, I did better than last year: 16/24.&lt;/p></description></item><item><title>US Presidential Inaugural Addresses</title><link>https://maxturgeon.ca/blog/2017-01-20-trump-inauguration/</link><pubDate>Fri, 20 Jan 2017 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2017-01-20-trump-inauguration/</guid><description>&lt;p>Earlier this week, on January 20th 2017, Donald J. Trump was inaugurated as the 45th president of the USA. He also gave what seemed like a very short inaugural address, and so I was curious to see how short it really was compared to previous addresses. It was also an opportunity to have a quick look at other properties of his speech.&lt;/p></description></item><item><title>The Instability of Forward and Backward Selection</title><link>https://maxturgeon.ca/blog/2016-05-29-forward-backward-selection/</link><pubDate>Sun, 29 May 2016 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2016-05-29-forward-backward-selection/</guid><description>&lt;p>Classical statistics often assumes that the analyst knows which variables are important and which variables are not. Of course, this is a strong assumption, and therefore many variable selection procedures have been developed to address this problem. In this blog post, I want to focus on two subset selection methods, and I want to address their instability. In other words, I want to discuss how &lt;strong>small changes&lt;/strong> in the data can lead to &lt;strong>completely different solutions&lt;/strong>.&lt;/p></description></item><item><title>Removing all R CMD check warnings</title><link>https://maxturgeon.ca/blog/2016-04-08-check-warnings/</link><pubDate>Fri, 08 Apr 2016 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2016-04-08-check-warnings/</guid><description>&lt;p>Making R packages is an important aspect of the statistician&amp;rsquo;s work. Or at least it should be: it is quite annoying when a new method appears in the literature but no implementation is readily available.&lt;/p>
&lt;p>A favourite mantra of mine when making R packages is the following: &lt;strong>an R package is more than the sum of its functions&lt;/strong>. A functioning R package needs to be able to interact properly with the R environment (through the &lt;code>NAMESPACE&lt;/code>); a good R package also needs great documentation; a great R package will also include a vignette to guide new users and explain how all the functions interact with one another.&lt;/p>
&lt;p>The main reference for how to make R packages is &lt;a href="https://cran.r-project.org/doc/manuals/r-release/R-exts.html">&lt;em>Writing R extensions&lt;/em>&lt;/a>. Everything you need to know is there, if you know what you are looking for. Another, very useful reference is Hadley Wickam&amp;rsquo;s &lt;a href="http://r-pkgs.had.co.nz/">book on R packages&lt;/a>. This book explains the different components of an R package, and it also serves as an introduction to his &lt;a href="https://cran.r-project.org/package=devtools">&lt;code>devtools&lt;/code> package&lt;/a>.&lt;/p>
&lt;p>In what follows, I don&amp;rsquo;t want to go over how to make an R package; the above references do a better job than I could hope to do. Rather, I want to share my experience about some of the most annoying part of making an R package: passing the &lt;code>R CMD check&lt;/code>. Removing the errors is the most important part, and what kind of errors you get really depends on the package (the log file is typically quite useful in figuring out what triggered the errors). On the other hand, you also want to minimize the number of warnings and notes, and most warnings you probably want to remove altogether.&lt;/p></description></item><item><title>By how much will Clinton win?</title><link>https://maxturgeon.ca/blog/2016-03-08-democratic-primary/</link><pubDate>Tue, 08 Mar 2016 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2016-03-08-democratic-primary/</guid><description>&lt;p>American politics is great for statistics: there are huge amounts of polls being conducted every week, some positions are up for re-election every other year, and there is really only two parties. Moreover, the complicated nature of the whole election process, which for example involves the electoral college for the presidential election, makes it more interesting than most democracies around the world. It&amp;rsquo;s for all these reasons that an incredible website like &lt;a href="https://fivethirtyeight.com/">FiveThirtyEight&lt;/a> is possible.&lt;/p></description></item><item><title>Oscar 2016 predictions</title><link>https://maxturgeon.ca/blog/2016-02-07-oscar-predictions-2016/</link><pubDate>Sun, 07 Feb 2016 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2016-02-07-oscar-predictions-2016/</guid><description>&lt;p>For the past three years, I have tried to predict the winners in all categories at the Academy Awards. But last year, I was able to combine my passion for both movies and statistics: as part of my Data Analysis course at McGill University, we had to come up with a prediction model for four categories: Best Picture, Best Director, Best Actor, and Best Actress. And my model performed quite well: it was the only one to predict correctly the four winners.&lt;/p>
&lt;p>This year, I decided to repeat the experience again, especially since the Best Picture category is more competitive this year than last year. I have shared my predictions below, for all categories; however, I have used a statistical model only for the four categories mentionned above. All other categories are based on my own judgement (and readings I have done). My predictions are in bold font.&lt;/p>
&lt;p>After the Academy Awards, I will update this post and point out the winners (I will indicate them in italics). I may also write a post on my prediction model.&lt;/p>
&lt;p>&lt;strong>Update (2016/02/28)&lt;/strong>: Well, I didn&amp;rsquo;t do as well as I would have liked: 14/24.&lt;/p></description></item><item><title>Makefile and Beamer presentations</title><link>https://maxturgeon.ca/blog/2015-12-07-makefile-beamer/</link><pubDate>Mon, 07 Dec 2015 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2015-12-07-makefile-beamer/</guid><description>&lt;p>I have been wondering about Makefiles for some time now, and recently I finally got around learning about them so that I could use &lt;code>make&lt;/code> to regenerate all the different versions of a manuscript I&amp;rsquo;m working on. And I thought I would take the opportunity to explain how they can be useful for Beamer presentations.&lt;/p></description></item><item><title>Test case: Optimising PCEV</title><link>https://maxturgeon.ca/blog/2015-09-11-optimisation-test-case/</link><pubDate>Fri, 11 Sep 2015 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2015-09-11-optimisation-test-case/</guid><description>&lt;p>I will give an example of code optimisation in R, using Noam Ross&amp;rsquo;s &lt;code>proftable&lt;/code> function and Luke Tierney&amp;rsquo;s &lt;code>proftools&lt;/code> package, which I discuss in my &lt;a href="https://www.maxturgeon.ca/blog/2015-09-10-optimisation/">tutorial on optimisation&lt;/a>. The code we will optimise comes from the main function of our &lt;a href="https://github.com/GreenwoodLab/pcev">PCEV package&lt;/a>. A few months ago, while testing the method using simulations, I had to speed up my code because it was way to slow, and the result of this optimisation is given below.&lt;/p>
&lt;p>For background, recall that PCEV is a dimension-reduction technique, akin to PCA, but where the components are obtained by maximising the proportion of variance explained by a set of covariates. For more information, see this &lt;a href="https://www.maxturgeon.ca/blog/2015-08-06-pcev/">blog post&lt;/a>.&lt;/p></description></item><item><title>Tutorial: Optimising R code</title><link>https://maxturgeon.ca/blog/2015-09-10-optimisation/</link><pubDate>Thu, 10 Sep 2015 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2015-09-10-optimisation/</guid><description>&lt;p>The R language is very good for statistical computations, due to its strong functional capabilities, its open source philosophy, and its extended package ecosystem. However, it can also be quite slow, because of some &lt;a href="http://adv-r.had.co.nz/Performance.html#language-performance">design choices&lt;/a> (e.g. lazy evaluation and extreme dynamic typing).&lt;/p>
&lt;p>This tutorial is mainly based on Hadley Wickam&amp;rsquo;s book &lt;a href="http://adv-r.had.co.nz/">Advanced R&lt;/a>.&lt;/p>
&lt;h3 id="before-optimising">Before optimising&amp;hellip;&lt;/h3>
&lt;p>First of all, before we start optimising our R code, we need to ask ourselves a few questions:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Is my code doing what I want it to do?&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Do I really need to make my code faster?&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Is considerable speed up even possible?&lt;/p>
&lt;/li>
&lt;/ol></description></item><item><title>Using MathJax</title><link>https://maxturgeon.ca/blog/2015-08-14-mathjax-poole/</link><pubDate>Fri, 14 Aug 2015 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2015-08-14-mathjax-poole/</guid><description>&lt;p>I had some trouble rendering correctly the mathematical equations in my &lt;a href="https://www.maxturgeon.ca/blog/2015-08-06-pcev/">previous post&lt;/a>: at first I could only see the untransformed markup, then the text simply disappeared, without being transformed, and finally the equations appeared, but coloured orange. As you can see, everything now looks fine, but to fix this I ended up learning a bit more about how markdown, HTML, CSS and javacript all work together to create the website you are currently visiting. The purpose of this post is to share some of what I learned, so that future visitors can be spared some of the pain that accompanied the learning.&lt;/p></description></item><item><title>Principal components of explained variance</title><link>https://maxturgeon.ca/blog/2015-08-06-pcev/</link><pubDate>Thu, 06 Aug 2015 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2015-08-06-pcev/</guid><description>&lt;p>I have been spending most of my time on a very interesting technique that has,
unfortunately, received little attention (I&amp;rsquo;ll come back later about some
possible reasons). The purpose of this post is to introduce this method and give
motivation for its use.&lt;/p></description></item><item><title>Hello World!</title><link>https://maxturgeon.ca/blog/2015-07-12-hello-world/</link><pubDate>Sun, 12 Jul 2015 00:00:00 +0000</pubDate><guid>https://maxturgeon.ca/blog/2015-07-12-hello-world/</guid><description>I am finally launching my personal website! It will mainly be used to share my projects and my thoughts about statistics. I will also share the slides from my talks and the occasional tutorial, whenever I feel I&amp;rsquo;ve learned some interesting stuff in my work (be it statistical or related to programming).
In the meantime, I encourage you to take a look at my Github page, where you can see some of the projects I&amp;rsquo;ve contributed to.</description></item></channel></rss>