<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator><link href="https://jeremysalfen.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://jeremysalfen.com/" rel="alternate" type="text/html" /><updated>2020-04-23T06:35:32-04:00</updated><id>https://jeremysalfen.com/feed.xml</id><title type="html">Jeremy Salfen</title><subtitle></subtitle><author><name>Jeremy Salfen</name></author><entry><title type="html">Recent Readings in Experimentation and Causal Inference</title><link href="https://jeremysalfen.com/recent-readings-in-experimentation-and-causal-inference/" rel="alternate" type="text/html" title="Recent Readings in Experimentation and Causal Inference" /><published>2020-04-23T00:00:00-04:00</published><updated>2020-04-23T00:00:00-04:00</updated><id>https://jeremysalfen.com/recent-readings-in-experimentation-and-causal-inference</id><content type="html" xml:base="https://jeremysalfen.com/recent-readings-in-experimentation-and-causal-inference/">&lt;p&gt;I’ve worked on experimentation platforms at Kickstarter, Spotify, and, most recently, Sawyer. At Sawyer I’m starting from scratch, designing the architecture for assigning treatment groups and tracking outcomes, thinking through the methodology for analyzing results, and building organizational processes for running rigorous experiments and learning from them. Meanwhile, I’m trying to keep things simple, use off-the-shelf technology whenever possible, and ensure buy-in from across the company.&lt;/p&gt;

&lt;p&gt;To guide this work, I’ve been diving back into the A/B testing literature. A few papers and blog posts have been particularly helpful, so I’m documenting them here (for others, and for my future self).&lt;/p&gt;

&lt;h2 id=&quot;architecture&quot;&gt;Architecture&lt;/h2&gt;
&lt;p&gt;I don’t think much of Uber as an organization, but it’s hard not to be impressed by their technology. This &lt;a href=&quot;https://eng.uber.com/xp/&quot;&gt;deep dive into XP&lt;/a&gt;, Uber’s experimentation platform, hits all my buttons, from “Bayesian optimization with contextual multi-armed-bandit tests” to “block bootstrap and delta methods to estimate standard errors.”&lt;/p&gt;

&lt;p&gt;As a bonus feature, it’s also worth checking out &lt;a href=&quot;https://eng.uber.com/analyzing-experiment-outcomes/&quot;&gt;Uber’s post on analyzing quantile treatment effects in experiments&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;sample-sizes&quot;&gt;Sample sizes&lt;/h2&gt;
&lt;p&gt;Optimizing sample sizes is particularly important for early-stage companies without a lot of traffic. Chris Said has &lt;a href=&quot;https://chris-said.io/2020/01/10/optimizing-sample-sizes-in-ab-testing-part-I/&quot;&gt;an interesting series of posts&lt;/a&gt; on the subject.&lt;/p&gt;

&lt;p&gt;Also worth checking out is &lt;a href=&quot;https://arxiv.org/abs/1811.00457&quot;&gt;this paper by Elea McDonnell Feit and Ron Berman on “profit-maximizing A/B tests”&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;analysis&quot;&gt;Analysis&lt;/h2&gt;
&lt;p&gt;There’s no shortage of writing on analyzing A/B tests, but a few recent posts caught my attention. Etsy wrote about &lt;a href=&quot;https://codeascraft.com/2020/02/24/the-causal-analysis-of-cannibalization-in-online-products/&quot;&gt;the causal analysis of cannibalization in online products&lt;/a&gt;.  LinkedIn has a piece on &lt;a href=&quot;https://engineering.linkedin.com/blog/2019/06/detecting-interference--an-a-b-test-of-a-b-tests&quot;&gt;detecting network effects in experiments&lt;/a&gt;. And Convoy has &lt;a href=&quot;https://medium.com/convoy-tech/the-power-of-bayesian-a-b-testing-f859d2219d5&quot;&gt;a good overview of Bayesian approaches to A/B testing&lt;/a&gt;.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;There’s a common misconception that A/B testing simply involves figuring out your minimum sample size, running a test, and calling a winner. But experimentation and causal inference are hard. There are so many places where bias may creep in, where your statistical assumptions break down, where the amount of uncertainty is not definitive enough to make a decision. As the data experts, it’s up to us to understand and manage that complexity while delivering actionable insights to our stakeholders. Hopefully the readings above can help with that critical work.&lt;/p&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">New papers and blog posts from the A/B testing literature.</summary></entry><entry><title type="html">Datamoshing and Deep Learning</title><link href="https://jeremysalfen.com/datamoshing-and-deep-learning/" rel="alternate" type="text/html" title="Datamoshing and Deep Learning" /><published>2019-02-18T00:00:00-05:00</published><updated>2019-02-18T00:00:00-05:00</updated><id>https://jeremysalfen.com/datamoshing-and-deep-learning</id><content type="html" xml:base="https://jeremysalfen.com/datamoshing-and-deep-learning/">&lt;p&gt;I’ve started playing around with video art.&lt;/p&gt;

&lt;p&gt;In particular, I’m exploring how to make destructive effects with &lt;a href=&quot;https://knowyourmeme.com/memes/datamoshing&quot;&gt;datamoshing&lt;/a&gt; and how to generate &lt;a href=&quot;https://github.com/jcjohnson/neural-style&quot;&gt;style transfers with deep learning&lt;/a&gt;. The results are unpredictable and weird. It’s fun.&lt;/p&gt;

&lt;p&gt;I’ve made a &lt;a href=&quot;https://github.com/selftext/video-art&quot;&gt;video art repo&lt;/a&gt; to track my work. It has links to resources I’ve found helpful and code for manipulating video and running command-line scripts.&lt;/p&gt;

&lt;p&gt;Here are my findings so far.&lt;/p&gt;

&lt;h2 id=&quot;datamoshing&quot;&gt;Datamoshing&lt;/h2&gt;

&lt;h3 id=&quot;avidemux&quot;&gt;Avidemux&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;http://avidemux.sourceforge.net/&quot;&gt;Avidemux&lt;/a&gt; is a free tool commonly used for datamoshing. You can also do basic video editing with it, though many people edit the original videos in some other software (e.g. Premiere).&lt;/p&gt;

&lt;p&gt;Here are some good introductions to Avidemux:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;http://datamoshing.com/2016/06/26/how-to-datamosh-videos/&quot;&gt;How to datamosh videos&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://forum.glitchet.com/t/tutorial-make-video-glitch-art-how-to-datamosh-in-plain-english/36&quot;&gt;How to Datamosh, in Plain English&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=UKmhWnFnlh4&quot;&gt;Asap Mob - Yamborghini High Music Video Effect  (Premiere Pro &amp;amp; Avidemux Tutorial) - YouTube&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Other handy tools to have are &lt;a href=&quot;https://www.videolan.org/vlc/index.html&quot;&gt;VLC&lt;/a&gt; for viewing and converting a variety of video files and &lt;a href=&quot;https://www.ffmpeg.org/&quot;&gt;ffmpeg&lt;/a&gt; as a general command-line video utility.&lt;/p&gt;

&lt;p&gt;Many people report that Avidemux doesn’t work as well for datamoshing on newer versions of OS X (I don’t know about Windows or Linux). Some people recommend using a different operating system (e.g. with &lt;a href=&quot;https://www.virtualbox.org/&quot;&gt;VirtualBox&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;I tried downloading Avidemux 2.5.4 based on these instructions — &lt;a href=&quot;http://forum.glitchet.com/t/tutorial-how-to-install-avidemux-for-datamoshing-on-mac-os-x/33&quot;&gt;TUTORIAL How to install avidemux for datamoshing on Mac OS X - Art! - Glitchet Forum&lt;/a&gt;  — but it wouldn’t load on my system (OSX Mojave).&lt;/p&gt;

&lt;p&gt;That said, Avidemux 2.7.1 seems to be stable on a fully updated Mac. Here are instructions for using a later version (&amp;gt; 2.7) of Avidemux: &lt;a href=&quot;https://www.hellocatfood.com/datamoshing-using-avidemux-2-7-0/&quot;&gt;Datamoshing using Avidemux 2.7.0&lt;/a&gt;. Using these settings, I was able to get some glitch effects, but they were hit or miss. Your mileage may vary.&lt;/p&gt;

&lt;h3 id=&quot;other-tools&quot;&gt;Other tools&lt;/h3&gt;
&lt;p&gt;This is a comprehensive list of resources for making glitch art: &lt;a href=&quot;http://www.glitchet.com/resources&quot;&gt;Glitchet: Art Resources&lt;/a&gt;&lt;/p&gt;

&lt;h4 id=&quot;scripts&quot;&gt;Scripts&lt;/h4&gt;
&lt;p&gt;These are command-line tools for datamoshing and glitching videos:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://parkerhiggins.net/2017/07/making-mosh-ups-automated-datamoshing-from-multiple-video-sources/&quot;&gt;Making mosh-ups: automated datamoshing from multiple video sources&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/happyhorseskull/you-can-datamosh-on-linux&quot;&gt;GitHub - happyhorseskull/you-can-datamosh-on-linux: it’s a script that makes datamoshing with python fun and easy&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/grampajoe/Autodatamosh&quot;&gt;GitHub - grampajoe/Autodatamosh: Perl script that automatically datamoshes MPEG4-encoded AVI videos.&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/amgadani/Datamosh-python&quot;&gt;GitHub - amgadani/Datamosh-python: Datamoshing scripts written in python&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/fand/node-aviglitch&quot;&gt;GitHub - fand/node-aviglitch: A node.js porting of aviglitch rubygem by ucnv.&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/ucnv/aviglitch&quot;&gt;GitHub - ucnv/aviglitch: A Ruby library to destroy your AVI files.&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/wayspurrchen/byebyte&quot;&gt;GitHub - wayspurrchen/byebyte: Destroys your files (on purpose).&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;audacity&quot;&gt;Audacity&lt;/h4&gt;
&lt;p&gt;Someone used Audacity successfully to do datamoshing - &lt;a href=&quot;https://www.reddit.com/r/datamoshing/comments/9s0los/datamoshd_a_screenshot_with_audacity_came_out/&quot;&gt;Datamosh’d a screenshot with Audacity, came out pretty vibrant. : datamoshing&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;general-resources&quot;&gt;General resources&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;http://datamoshing.com/&quot;&gt;Datamoshing&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://forum.glitchet.com/&quot;&gt;Glitchet Forum&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/topics/glitch-art&quot;&gt;Topic: glitch-art · GitHub&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/datamoshing/&quot;&gt;r/datamoshing&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/glitch_art/&quot;&gt;r/glitch_art&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;how-tos&quot;&gt;How-tos&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/datamoshing/comments/ajiih4/i_know_the_how_of_datamoshing_but_i_cant_get_a/&quot;&gt;I know the &lt;em&gt;how&lt;/em&gt; of datamoshing but I can’t get a specific effect to work. : datamoshing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;neural-networks&quot;&gt;Neural Networks&lt;/h2&gt;
&lt;p&gt;I’m just starting to dabble here:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/deepdream/&quot;&gt;Dreaming Neural Nets&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/manuelruder/artistic-videos&quot;&gt;GitHub - manuelruder/artistic-videos: Torch implementation for the paper “Artistic style transfer for videos”&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.jackalope.tech/how-artists-can-set-up-their-own-neural-network-part-2-neural-network-install/&quot;&gt;How Artists Can Install Neural Networks to Make Art&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/jcjohnson/neural-style/wiki&quot;&gt;Home · jcjohnson/neural-style Wiki · GitHub&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/jcjohnson/neural-style&quot;&gt;GitHub - jcjohnson/neural-style: Torch implementation of neural style algorithm&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/deepdream/&quot;&gt;r/deepdream&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.reddit.com/r/deepstyle/&quot;&gt;r/deepstyle&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">Diving into the video art deep end.</summary></entry><entry><title type="html">Building a Data Practice from Scratch</title><link href="https://jeremysalfen.com/building-a-data-practice-from-scratch/" rel="alternate" type="text/html" title="Building a Data Practice from Scratch" /><published>2018-11-11T00:00:00-05:00</published><updated>2018-11-11T00:00:00-05:00</updated><id>https://jeremysalfen.com/building-a-data-practice-from-scratch</id><content type="html" xml:base="https://jeremysalfen.com/building-a-data-practice-from-scratch/">&lt;p&gt;In August I left Spotify. It was fascinating to see how sophisticated machine learning is done at such a large scale, and I learned a great deal about the music industry. But I had an opportunity to work at a startup focused on something I care deeply about — children’s education.&lt;/p&gt;

&lt;p&gt;I’m now at &lt;a href=&quot;https://www.sawyertools.com/company&quot;&gt;Sawyer&lt;/a&gt;, a platform for children’s educational activities. At this point, I have experience at a variety of tech companies, and I’ve seen what works and what doesn’t, particularly for data teams. With this in mind, I wrote a post on Locally Optimistic with advice for the first data hires at early stage startups: &lt;a href=&quot;https://www.locallyoptimistic.com/post/building-a-data-practice/&quot;&gt;Building a Data Practice from Scratch&lt;/a&gt;. I hope someone finds it helpful.&lt;/p&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">Reflections on data work at an early stage startup.</summary></entry><entry><title type="html">New Year, New Job</title><link href="https://jeremysalfen.com/new-year-new-job/" rel="alternate" type="text/html" title="New Year, New Job" /><published>2018-01-13T00:00:00-05:00</published><updated>2018-01-13T00:00:00-05:00</updated><id>https://jeremysalfen.com/new-year-new-job</id><content type="html" xml:base="https://jeremysalfen.com/new-year-new-job/">&lt;p&gt;Life is change. I’ve found a new job. These are interrelated.&lt;/p&gt;

&lt;p&gt;Later this month I’m starting at Spotify as a Product Insights Manager, working with data scientists and user researchers to understand how users engage with recommendations, personalization, and search. I’m pumped.&lt;/p&gt;

&lt;p&gt;During my last few years at Kickstarter, I learned how to be a manager by first diving into the deep end and then taking the time to reflect on my experience. The challenge now is to apply the knowledge I’ve gained to a new role, to discover what translates directly, what needs to be adapted, and what I still need to learn.&lt;/p&gt;

&lt;p&gt;In preparation, I’ve read two books: Camille Fournier’s &lt;em&gt;The Manager’s Path&lt;/em&gt; and Michael D. Watkins’s &lt;em&gt;The First 90 Days.&lt;/em&gt; These books have helped to structure my thinking about my transition, to assess my strengths and weaknesses, to anticipate what challenges I may face, and to plan for how I can drive impact as quickly as possible.&lt;/p&gt;

&lt;p&gt;In particular, I like Camille Fournier’s mantra: “Stay curious.” In other words, ask questions, and be open to new perspectives and experiences. This is as true in management as it is in all aspects of life. My purpose now, as it has always been, is to keep learning while accepting that life will continue to change.&lt;/p&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">How I'm preparing for a new role.</summary></entry><entry><title type="html">Making Talks a Thing</title><link href="https://jeremysalfen.com/making-talks-a-thing/" rel="alternate" type="text/html" title="Making Talks a Thing" /><published>2017-09-17T00:00:00-04:00</published><updated>2017-09-17T00:00:00-04:00</updated><id>https://jeremysalfen.com/making-talks-a-thing</id><content type="html" xml:base="https://jeremysalfen.com/making-talks-a-thing/">&lt;p&gt;I’ve given a few talks this year. Two were focused on data work at Kickstarter, and one was a presentation of a paper by Eytan Bakshy and Dean Eckles on bootstrap methods for experiment analysis.&lt;/p&gt;

&lt;p&gt;Although I tend to be quiet in small groups, I enjoy public speaking. Maybe it’s because presentations are a form of performance, and I’ve always loved playing music for people. Presentations are something I can prepare and practice for, and they’re akin to teaching.&lt;/p&gt;

&lt;p&gt;I’ve uploaded slides from my last three talks to a new &lt;a href=&quot;https://github.com/selftext/talks&quot;&gt;Github repo&lt;/a&gt;, and I added a &lt;a href=&quot;/talks/&quot;&gt;Talks&lt;/a&gt; section to this site.&lt;/p&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">Want some slides? You've come to the right place.</summary></entry><entry><title type="html">Get Fit - Resources for Deriving the Method of Least Squares</title><link href="https://jeremysalfen.com/get-fit-resources-for-deriving-the-method-of-least-squares/" rel="alternate" type="text/html" title="Get Fit - Resources for Deriving the Method of Least Squares" /><published>2017-04-08T00:00:00-04:00</published><updated>2017-04-08T00:00:00-04:00</updated><id>https://jeremysalfen.com/get-fit-resources-for-deriving-the-method-of-least-squares</id><content type="html" xml:base="https://jeremysalfen.com/get-fit-resources-for-deriving-the-method-of-least-squares/">&lt;p&gt;Stephen Stigler’s &lt;em&gt;The History of Statistics&lt;/em&gt; is not for the faint of heart. It’s a deep exploration of the origins of statistics as a form of mathematical inquiry, from astronomy and geodesy in the late 18th century to social science in the 19th century. It assumes you’re familiar with modern proofs of results like the weak law of large numbers and the normal approximation to the binomial distribution. It’s an intellectual challenge, and I’m loving it.&lt;/p&gt;

&lt;p&gt;As I’ve been working through Stigler’s book, I’ve been taking the time to learn (or relearn) derivations that are unfamiliar to me. One of those is Legendre’s original exposition of the method of least squares. I’m comfortable with modern approaches to find the best-fitting curve to a set of points, but there were parts of Legendre’s formulation that felt foreign to me.&lt;/p&gt;

&lt;p&gt;In order to shore up my own understanding and connect it to Legendre’s exposition, I worked through a number of resources, which I share below:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Here is &lt;a href=&quot;https://www.stat.ucla.edu/history/legendre.pdf&quot;&gt;Legendre’s original work&lt;/a&gt;, translated into English&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.710.4069&amp;amp;rep=rep1&amp;amp;type=pdf&quot;&gt;Steven Miller’s explanation of the proof&lt;/a&gt; in modern terms is remarkably clear&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://math.mit.edu/~gs/linearalgebra/ila0403.pdf&quot;&gt;This textbook explanation&lt;/a&gt; offers different perspectives from geometry, algebra, and calculus&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://mathworld.wolfram.com/LeastSquaresFitting.html&quot;&gt;The MathWorld article&lt;/a&gt; has a deep yet concise explanation, along with some simplifications that appear in many statistics textbooks&lt;/li&gt;
  &lt;li&gt;Though dry, &lt;a href=&quot;https://www.youtube.com/watch?v=3hz6Tb1i2FY&quot;&gt;this video&lt;/a&gt; covers the modern derivation thoroughly&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=YwZYSTQs-Hk&quot;&gt;This video&lt;/a&gt; demonstrates an application of least squares&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Finally, there is some debate about who developed the method first, Gauss or Legendre. Legendre published first in 1805, but Gauss claimed he had discovered the method by 1795. Stephen Stigler has &lt;a href=&quot;https://projecteuclid.org/euclid.aos/1176345451&quot;&gt;a fascinating essay&lt;/a&gt; on this priority dispute.&lt;/p&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">Exploring one of the fundamental results of mathematical statistics.</summary></entry><entry><title type="html">Pair Learning at Kickstarter</title><link href="https://jeremysalfen.com/pair-learning-at-kickstarter/" rel="alternate" type="text/html" title="Pair Learning at Kickstarter" /><published>2017-03-05T00:00:00-05:00</published><updated>2017-03-05T00:00:00-05:00</updated><id>https://jeremysalfen.com/pair-learning-at-kickstarter</id><content type="html" xml:base="https://jeremysalfen.com/pair-learning-at-kickstarter/">&lt;p&gt;A few months ago, &lt;a href=&quot;/learning-to-lead/&quot;&gt;I wrote about the importance of rigorous thinking in the work I do&lt;/a&gt;. Continual learning plays a key role to support that.&lt;/p&gt;

&lt;p&gt;One way we’ve approached continual learning at Kickstarter is through small study groups. As an exercise in pair learning, my colleague Jeffrey Doker and I recently finished working through Hadley Wickham’s &lt;a href=&quot;https://adv-r.had.co.nz/&quot;&gt;Advanced R&lt;/a&gt;. We enjoyed the experience so much &lt;a href=&quot;https://kickstarter.engineering/always-be-learning-f4a496dc3085&quot;&gt;we wrote about it on the Kickstarter engineering blog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I think our takeaways are useful for anyone who wants to incorporate continual learning into their work culture. If you try it, I’d love to hear about your experience.&lt;/p&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">How we've incorporated continual learning into our work culture.</summary></entry><entry><title type="html">Learning to Lead</title><link href="https://jeremysalfen.com/learning-to-lead/" rel="alternate" type="text/html" title="Learning to Lead" /><published>2016-11-13T00:00:00-05:00</published><updated>2016-11-13T00:00:00-05:00</updated><id>https://jeremysalfen.com/learning-to-lead</id><content type="html" xml:base="https://jeremysalfen.com/learning-to-lead/">&lt;p&gt;I’ve been managed in many jobs. I’ve got a pretty good idea I know what bad management looks like. But have those experiences prepared me to be a leader myself? I’m not so sure.&lt;/p&gt;

&lt;p&gt;As a new leader, I’ve approached the role as something to be learned. Ari Weinzweig, co-founder of Zingerman’s, has written extensively on this learning process. In &lt;a href=&quot;https://www.zingtrain.com/content/servant-leadership&quot;&gt;an essay on servant leadership&lt;/a&gt;, he urged new leaders to answer “a seemingly simple question, ‘What kind of leader do I want to be?’”&lt;/p&gt;

&lt;p&gt;At first, I didn’t even know how to approach the question. What did an answer look like? What were my options? I didn’t want my thinking to be derivative of the management literature, so I avoided reading anything about it until I’d figured some things out on my own.&lt;/p&gt;

&lt;p&gt;I spent months going through rounds of self-reflection, writing down my thoughts, and talking to others. I shared my thinking with people on my team and elsewhere, and I asked for feedback.&lt;/p&gt;

&lt;p&gt;I don’t want to make it sound so straightforward and obvious. It wasn’t easy. I faced an enormous amount of self-doubt. The screaming skulls were always there in the back of my mind. But I sucked up my fear and pushed on, despite my anxiety about how others perceived me.&lt;/p&gt;

&lt;p&gt;At this point, I’m ready to share where I’m at. I still don’t think I have all the answers, but I’m confident that I’m on the right path. What follows is an account of how I got here.&lt;/p&gt;

&lt;h2 id=&quot;what-the-hell-am-i-even-doing&quot;&gt;What the Hell Am I Even Doing?&lt;/h2&gt;

&lt;p&gt;In the spring of 2016, I became the head of the Data team at Kickstarter. Aside from a few roles managing student assistants at past library jobs, this was my first time in a leadership position.&lt;/p&gt;

&lt;p&gt;I wish I could say I threw myself into the role with confidence and gusto, but the truth is I suffered from tremendous uncertainty. It felt like I was winging it day to day, with no solid foundation to fall back on, and I had far more questions than answers.&lt;/p&gt;

&lt;p&gt;What did it mean to be a leader, both for my team and for the company? Where should I focus? How could I balance all the competing demands and make time for both short-term and long-term projects? What did I want to get out of this role, and what did I expect my impact to be? And, to be brutally honest, is this even something I wanted to do?&lt;/p&gt;

&lt;p&gt;Thinking through all this led me to a central question about values: What were my leadership values, and how should I communicate those values and put them into practice?&lt;/p&gt;

&lt;h2 id=&quot;getting-a-handle-on-it&quot;&gt;Getting a Handle on It&lt;/h2&gt;

&lt;p&gt;I had the opportunity to participate in a series of coaching sessions during the summer of 2016. One of the goals I set for these sessions was to reflect on leadership. But it wasn’t enough just to think about it; I wanted to write about it and share my thinking with my team and with a broader audience.&lt;/p&gt;

&lt;p&gt;I started off with some brainstorming, doing free writing to get my ideas on paper. When engaged in this kind of thinking, I work best with actual pencil and paper, away from a screen.&lt;/p&gt;

&lt;p&gt;Scribbling in my notebook, I reflected on the differences and similarities between technical and people leadership. I thought about how I like to be managed, and I challenged myself to think about different ways other people might like to be managed.&lt;/p&gt;

&lt;p&gt;I found myself gravitating toward a few key concepts: intellectual curiosity, love of learning, and a desire to have an impact. I explored these further in writing and in conversations with my coach and with folks inside and outside the company.&lt;/p&gt;

&lt;p&gt;After a few months of reflecting, writing, and talking, I distilled my thinking down to several core ideas, and I drafted a document. I shared this with my team and a few others, got feedback, revised, rinsed, repeated.&lt;/p&gt;

&lt;p&gt;As I thought about how to put these ideas into practice, I focused on an important question: How can I create a safe space for candid intellectual discussion? It’s one thing to say you value &lt;a href=&quot;https://firstround.com/review/radical-candor-the-surprising-secret-to-being-a-good-boss/&quot;&gt;candor&lt;/a&gt;, but it’s another thing to foster a culture where candid speaking is the norm. This is something I’m currently focused on.&lt;/p&gt;

&lt;p&gt;And so that leads us to the present day, and another important part of this process: sharing the document with the wider world.&lt;/p&gt;

&lt;p&gt;Here it is:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;My Leadership Values&lt;/strong&gt;&lt;/p&gt;

  &lt;p&gt;What do I care about most?&lt;/p&gt;

  &lt;p&gt;Rigorous thinking. Candid speaking. In service to others.&lt;/p&gt;

  &lt;p&gt;My role as a leader is to foster these values on my team and put them into practice in my work for the company and the users it serves.&lt;/p&gt;

  &lt;p&gt;Rigorous thinking requires curiosity, skepticism, critical self-reflection, and continual learning.&lt;/p&gt;

  &lt;p&gt;Candid speaking requires humility, integrity, empathy, and the courage to speak honestly and plainly.&lt;/p&gt;

  &lt;p&gt;These values are in service to one another. Without rigorous thinking, candid speaking may be misdirected or biased. Without candid speaking, rigorous thinking may be ineffectual or uncaring.&lt;/p&gt;

  &lt;p&gt;These values are also in service to a larger cause: other people. Whether for the people on my team, in the larger organization, or the rest of the world, my ultimate goal is to put these values to work to make things better, for them. I measure my success by the success of others.&lt;/p&gt;

  &lt;p&gt;Fostering these values and putting them into practice requires constant diligence. They require careful listening, where I ask more questions than I answer. They require time and energy devoted to challenging my own assumptions. And they require direct, honest communication with the courage to challenge the assumptions of others.&lt;/p&gt;

  &lt;p&gt;As a leader, I am in service to my team, the company, and its community of users. My calling is to ensure that the work we do makes a difference in the world. My promise is to support that work through rigorous thinking and candid speaking, always mindful that these are in service to those around me and the world at large.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;where-do-i-go-from-here&quot;&gt;Where Do I Go From Here?&lt;/h2&gt;

&lt;p&gt;I expect this document to evolve over time, so I’ve also committed it to a &lt;a href=&quot;https://github.com/selftext/leadership&quot;&gt;Github repository&lt;/a&gt;. Because it’s under version control, it’ll be interesting to see what changes in this document and what remains constant.&lt;/p&gt;

&lt;p&gt;I’m a private person, and so, honestly, it’s scary as hell to share something like this. But if I’ve learned anything about leadership over the past six months, it’s this:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Self-reflection is essential. Take the time to reflect on what you’re doing, how you’re doing it, and how you could be doing it better. You can never stop learning, and you can never stop striving to improve.&lt;/li&gt;
  &lt;li&gt;Document and communicate those thoughts. Write things down. Share them with others. Ask for feedback. Be brave because being a leader means &lt;a href=&quot;https://medium.com/servant-leadership/failure-as-a-service-937473b0c9b8&quot;&gt;being vulnerable&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Candid, thoughtful feedback is a central pillar of my leadership values. In the spirit of that, then, I ask all of you: What do you think?&lt;/p&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">Pushing myself to do scary things.</summary></entry><entry><title type="html">Matching and Randomization in Experiments</title><link href="https://jeremysalfen.com/matching-and-randomization-in-experiments/" rel="alternate" type="text/html" title="Matching and Randomization in Experiments" /><published>2016-10-03T00:00:00-04:00</published><updated>2016-10-03T00:00:00-04:00</updated><id>https://jeremysalfen.com/matching-and-randomization-in-experiments</id><content type="html" xml:base="https://jeremysalfen.com/matching-and-randomization-in-experiments/">&lt;p&gt;I recently read Donald Rubin’s classic paper &lt;a href=&quot;https://dx.doi.org/10.1037/h0037350&quot;&gt;Estimating Causal Effects of Treatments in Randomized and Nonrandomized Studies&lt;/a&gt; (&lt;a href=&quot;https://www.biostat.jhsph.edu/~dscharf/Causal/rubin.journ.psych.ed.pdf&quot;&gt;PDF&lt;/a&gt;) as part of the Kickstarter Data team’s reading group.&lt;/p&gt;

&lt;p&gt;Two arguments in this paper jumped out at me, the first about the value of matching and the second about the costs and benefits of conducting a randomized versus observational study.&lt;/p&gt;

&lt;h2 id=&quot;matching&quot;&gt;Matching&lt;/h2&gt;

&lt;p&gt;Rubin proposes a hypothetical experiment on 2&lt;em&gt;N&lt;/em&gt; units in which the experimental treatment E is assigned to &lt;em&gt;N&lt;/em&gt; units while the control treatment C is assigned to a different set of &lt;em&gt;N&lt;/em&gt; units. If for every unit receiving E there is a matched unit receiving C such that we expect the pair to react identically to the same treatment, then there are &lt;em&gt;N&lt;/em&gt; identically matched pairs. Rubin observes that&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;if one had &lt;em&gt;N&lt;/em&gt; identically matched pairs, a “thoughtless” random assignment could be worse than a nonrandom assignment of E to one member of the pair and C to the other. By “thoughtless” we mean some random assignment that does not assure that the members of each matched pair get different treatments. (692)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In this case, “thoughtless” randomization “could be worse” in the sense that the statistical power of the experiment will suffer, and you will be less likely to detect an effect if there really is one.&lt;/p&gt;

&lt;p&gt;Geography is a good example of this. If you’re running an experiment on users across the United States, matching similar geographic regions might be more effective than a completely randomized trial because the variation &lt;em&gt;between&lt;/em&gt; regions might be higher than variation within &lt;em&gt;regions&lt;/em&gt;, diluting the effect.&lt;/p&gt;

&lt;p&gt;Of course, a multilevel model that takes into account region is one solution. For an insightful description of how Google has approached this problem, see &lt;a href=&quot;https://www.unofficialgoogledatascience.com/2016/06/estimating-causal-effects-using-geo.html&quot;&gt;Estimating causal effects using geo experiments&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;randomized-vs-observational-studies&quot;&gt;Randomized vs. Observational Studies&lt;/h2&gt;

&lt;p&gt;Another one of Rubin’s claims that stood out to me is a comparison of the costs and benefits of typical randomized and observational studies.&lt;/p&gt;

&lt;p&gt;One major advantage of randomized studies is that, with a large enough sample size, you often don’t have to worry about controlling for confounding factors that might bias your results.&lt;/p&gt;

&lt;p&gt;There can be downsides to randomized studies though. They can have nontrivial setup costs, and running a randomized study over a long window (e.g. years) is often not feasible. Moreover, because randomized trials are often conducted in a controlled environment, Rubin claims that they tend to be less natural than an observational study — that is, the units of analysis are often constrained to a particular setting or selected to be a subset of the population of interest.&lt;/p&gt;

&lt;p&gt;Granted, this is more the case for experiments in fields like psychology than in online experiments on the web, but it does suggest that generalizability is a factor we should consider when interpreting the results of a randomized trial.&lt;/p&gt;

&lt;p&gt;Comparing these costs and benefits, Rubin argues that&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;the first issue, the effect of variables not explicitly controlled, is usually more serious in nonrandomized than in randomized studies, while the second, the applicability of the results to a population of interest, is often more serious in randomized than in nonrandomized studies. (698)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I take this as a reminder to think carefully about the generalizability of the results of an experiment. When we run experiments on specific parts of a website or on particular subsets of users, often our goal is to generalize these results to the entire website or to all users. Rubin reminds us that observational studies, when analyzed properly, may in fact be better suited to those kinds of claims, particularly when matching can be used.&lt;/p&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">Thoughts on a classic paper on causality.</summary></entry><entry><title type="html">Who Measures the Measurers?</title><link href="https://jeremysalfen.com/who-measures-the-measurers/" rel="alternate" type="text/html" title="Who Measures the Measurers?" /><published>2016-09-19T00:00:00-04:00</published><updated>2016-09-19T00:00:00-04:00</updated><id>https://jeremysalfen.com/who-measures-the-measurers</id><content type="html" xml:base="https://jeremysalfen.com/who-measures-the-measurers/">&lt;p&gt;Let’s say you’re a data-driven internet business. How do you know something is good? You measure it with metrics, of course. This has become &lt;a href=&quot;https://codeascraft.com/2011/02/15/measure-anything-measure-everything/&quot;&gt;gospel&lt;/a&gt; for a lot of organizations.&lt;/p&gt;

&lt;p&gt;Fair enough, it’s hard to argue against metrics, though there’s a tendency to trust in them as objective truth, which can fuck things up if you’re not careful.&lt;/p&gt;

&lt;p&gt;But how do you know if the metrics themselves are any good? Do you measure them with more metrics? &lt;em&gt;Is it metrics all the way down?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Indeed, that’s the lesson from Alex Deng and Xiaolin Shi in their KDD 2016 paper &lt;a href=&quot;https://www.kdd.org/kdd2016/subtopic/view/data-driven-metric-development-for-online-controlled-experiments-seven-less&quot;&gt;Data-Driven Metric Development for Online Controlled Experiments: Seven Lessons Learned&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Deng and Shi propose a framework for evaluating metrics, particularly those used in online experiments. I’m not going to provide a full summary — e.g. there are parts about validation sets and degradation experiments you should read if you’re interested. Rather, I’m going to explore how Deng and Shi answer an essential question: &lt;em&gt;What makes a metric good?&lt;/em&gt;&lt;/p&gt;

&lt;h2 id=&quot;yo-dawg-i-heard-you-like-metrics&quot;&gt;Yo dawg, I heard you like metrics&lt;/h2&gt;
&lt;p&gt;Which metrics should you use to measure your metrics? According to Deng and Shi, the answer is &lt;em&gt;directionality&lt;/em&gt; and &lt;em&gt;sensitivity&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Directionality measures the interpretability of the direction a metric moves. If a metric goes up, is that always a good thing, a bad thing, or does it depend?&lt;/p&gt;

&lt;p&gt;Sensitivity measures how reactive a metric is to underlying changes. If the user experience changes, how quickly or accurately can you detect that?&lt;/p&gt;

&lt;h2 id=&quot;why-do-you-care&quot;&gt;Why do you care?&lt;/h2&gt;
&lt;p&gt;Metrics may exhibit differing amounts of directionality and sensitivity depending on the purposes they serve:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Goal metrics — what Deng and Shi call “Overall Evaluation Criteria” (or OEC) — measure the fundamental health or success of a business. These are the most likely to be referred to by a cryptic acronym.&lt;/li&gt;
  &lt;li&gt;Guardrail metrics are sanity checks for cases where goal metrics might be misleading or inapplicable. For example, you might optimize one user experience metric to the point that you end up hurting revenue, so it’s good to have a guardrail to protect against that.&lt;/li&gt;
  &lt;li&gt;Debugging metrics help make sense of goal metrics by decomposing them into understandable pieces or putting them into context. For example, if you have a metric that’s a rate (e.g. pageviews per user), debugging metrics would be the numerator and denominator of that rate so you can interpret its movements.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Take the time to understand and communicate the purpose of a metric — why you’re using a metric makes a difference for how much you should care about its directionality and sensitivity. For example, you may not care if a revenue guardrail metric is particularly sensitive as long as its movement is clearly unambiguous. For a lot of folks, decreasing revenue is always bad. Is it for you?&lt;/p&gt;

&lt;h2 id=&quot;metrics-for-metrics-for-metrics&quot;&gt;Metrics for metrics for metrics&lt;/h2&gt;
&lt;p&gt;Sensitivity itself is composed of two measurable quantities:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Statistical power&lt;/li&gt;
  &lt;li&gt;Probability of movement&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A metric may track user behaviors that are hard to change. In this case, the metric will be insensitive because its underlying probability of movement will be low.&lt;/p&gt;

&lt;p&gt;On the other hand, a metric may track something that’s highly skewed or exhibits big fluctuations. This metric will be insensitive because of low statistical power.&lt;/p&gt;

&lt;p&gt;How can you determine the sensitivity composition of your particular metric? See the paper for Deng and Shi’s approach using observations from historical experiment data.&lt;/p&gt;

&lt;h2 id=&quot;best-rates-in-town&quot;&gt;Best rates in town!&lt;/h2&gt;
&lt;p&gt;Rates are commonly used as metrics because they’re bounded between 0 and 1 and can be relatively insensitive to outliers.&lt;/p&gt;

&lt;p&gt;The problem with rates lies in their composition. Because rate metrics are composed of two numbers — the numerator and the denominator — change can be ambiguous, leading to poor directionality. Did your rate metric increase because the numerator went up? Or because the denominator went down? Or because the numerator went up while the denominator remained stable? Or some other plausible reason?&lt;/p&gt;

&lt;p&gt;Given that rates can be difficult to interpret, Deng and Shi present some helpful considerations:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Keep the numerator and denominator as debugging metrics.&lt;/li&gt;
  &lt;li&gt;Choose a rate metric where the denominator is fairly stable.&lt;/li&gt;
  &lt;li&gt;Think about whether to compute your rate as a ratio of averages or an average of ratios.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here’s a little more on that last point. Let’s say you’re measuring the conversion rate of users on a particular page.&lt;/p&gt;

&lt;p&gt;With an average of ratios, you first compute the conversion rate per user and then average that rate across all users. With a ratio of averages, you sum up all the conversions and divide by the number of pageviews — this is equivalent to an average of ratios weighted by pageviews per user.&lt;/p&gt;

&lt;p&gt;An average of ratios weights users equally, while a ratio of averages weights pageviews equally. They generally move in the same direction. When they don’t, it’s a sign that heavy users are behaving differently than average users.&lt;/p&gt;

&lt;p&gt;Deng and Shi note that if you’re using a ratio of averages to measure an experiment and users are the randomization units, you should use the &lt;a href=&quot;https://en.wikipedia.org/wiki/Delta_method&quot;&gt;delta method&lt;/a&gt; to estimate variance.&lt;/p&gt;

&lt;h2 id=&quot;measure-twice&quot;&gt;Measure twice…&lt;/h2&gt;
&lt;p&gt;Often the hardest things when working with data are the most deceptively simple. If you care about measurement, you should think deeply about your metrics. So ask yourself:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What purpose does my metric serve? How can I quantify its directionality and sensitivity? To what extent is the sensitivity a result of statistical power or probability of movement? And how the fuck can I even wrap my mind around the complexity of rates?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Then close your eyes, say “data-driven” ten times fast, and start on the documentation. You &lt;em&gt;are&lt;/em&gt; documenting all this, right?&lt;/p&gt;</content><author><name>Jeremy Salfen</name></author><summary type="html">How you think about metrics matters.</summary></entry></feed>