<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/advice-to-aspiring-data-scientists-start-a-blog/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://varianceexplained.org/r/start-blog/"> Variance Explained</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Last week I shared a thought on Twitter:</p>
<blockquote class="twitter-tweet" data-lang="en">
<p lang="en" dir="ltr">When you’ve written the same code 3 times, write a function</p>
<p>When you’ve given the same in-person advice 3 times, write a blog post</p>
<p>— David Robinson (@drob) <a rel="nofollow" href="https://twitter.com/drob/status/928447584712253440?ref_src=twsrc%5Etfw" target="_blank">November 9, 2017</a></p></blockquote>
<p></p>
<p>Ironically, this tweet hints at a piece of advice I’ve given at least 3 <em>dozen</em> times, but haven’t yet written a post about. I’ve given this advice to almost every aspiring data scientist who asked me what they should do to find a job: <strong>start a blog, and write about data science</strong>.<sup><a rel="nofollow" href="http://varianceexplained.org/r/start-blog/#fn:current" target="_blank">1</a></sup></p>
<p>What could you write about if you’re not yet working as a data scientist? Here are some possible topics (each attached to examples from my own blog):</p>
<ul>
<li>Analyses of datasets you find interesting (<a rel="nofollow" href="http://varianceexplained.org/r/love-actually-network/" target="_blank">example</a>, <a rel="nofollow" href="http://varianceexplained.org/r/trump-tweets/" target="_blank">example</a>)</li>
<li>Intuitive explanations of concepts you’ve recently mastered (<a rel="nofollow" href="http://varianceexplained.org/r/empirical_bayes_baseball/" target="_blank">example</a>, <a rel="nofollow" href="http://varianceexplained.org/r/kmeans-free-lunch/" target="_blank">example</a>)</li>
<li>Explorations of how to make a specific piece of code faster (<a rel="nofollow" href="http://varianceexplained.org/r/boarding-pass-simulation/" target="_blank">example</a>)</li>
<li>Announcements about open source projects you’ve released (<a rel="nofollow" href="http://varianceexplained.org/r/broom-intro/" target="_blank">example</a>)</li>
<li>Links to interactive applications you’ve built (<a rel="nofollow" href="http://varianceexplained.org/r/cran-view/" target="_blank">example</a>, <a rel="nofollow" href="http://varianceexplained.org/r/shiny-ggvis/" target="_blank">example</a>)</li>
<li>Sharing a writeup of conferences or meetups you’ve attended (<a rel="nofollow" href="http://varianceexplained.org/r/user-jsm-conferences/" target="_blank">example</a>)</li>
<li>Expressing opinions about data science or educational practice (<a rel="nofollow" href="http://varianceexplained.org/r/teach_ggplot2_to_beginners/" target="_blank">example</a>)</li>
</ul>
<p>In a future post I’d like to share advice about the <strong>how</strong> of data science blogging (such as how to choose a topic, how to structure a post, and how to publish with blogdown). But here I’ll focus on the <strong>why</strong>. If you’re in the middle of a job search, you’re probably very busy (especially if you’re currently employed), and blogging is a substantial commitment. So here I’ll lay out three reasons that a data science blog is well worth your time.</p>
<h3>Practice analyzing data and communicating about it</h3>
<p>If you’re hoping to be a data scientist, you’re (presumably) not one yet. <em>A blog is your chance to practice the relevant skills</em>.</p>
<ul>
<li><strong>Data cleaning</strong>: One of the benefits of working with a variety of datasets is that you learn to take data “as it comes”, whether it’s in the form of a <a rel="nofollow" href="http://varianceexplained.org/r/tidy-genomics/" target="_blank">supplementary file from a journal article</a> or a <a rel="nofollow" href="http://varianceexplained.org/r/love-actually-network/" target="_blank">movie script</a></li>
<li><strong>Statistics</strong>: Working with unfamiliar data lets you put statistical methods into practice, and writing posts that communicate and teach concepts helps build your own understanding</li>
<li><strong>Machine learning</strong>: There’s a big difference between having used a predictive algorithm once and having used it on a variety of problems, while understanding why you’d choose one over another</li>
<li><strong>Visualization</strong>: Having an audience for your graphs encourages you to start polishing them and building your personal style</li>
<li><strong>Communication</strong>: You gain experience writing and get practice structuring a data-driven argument. This is probably the most relevant skill that blogging develops since it’s hard to practice elsewhere, and it’s an essential part of any data science career</li>
</ul>
<p>I can’t emphasize enough how important this kind of practice is. No matter how many Coursera, DataCamp or bootcamp courses you’ve taken, you still need experience applying those tools to real problems. This isn’t unique to data science: whatever you currently do professionally, I’m sure you’re better at it now than when you finished taking classes in it.</p>
<blockquote class="twitter-tweet" data-lang="en">
<p lang="en" dir="ltr">… and that concludes Machine Learning 101. Now, go forth and apply what you've learned to real data! <a rel="nofollow" href="http://t.co/D6wSKgdjeM" target="_blank">pic.twitter.com/D6wSKgdjeM</a></p>
<p>— ML Hipster (@ML_Hipster) <a rel="nofollow" href="https://twitter.com/ML_Hipster/status/633954383542128640?ref_src=twsrc%5Etfw" target="_blank">August 19, 2015</a></p></blockquote>
<p></p>
<p>One of the great thrills of a data science blog is that, unlike a course, competition, or job, you can analyze any dataset you like! No one was going to pay me to <a rel="nofollow" href="http://varianceexplained.org/r/love-actually-network/" target="_blank">analyze Love Actually’s plot</a> or <a rel="nofollow" href="http://varianceexplained.org/r/hn-trends/" target="_blank">Hacker News titles</a>. Whatever amuses or interests you, you can find relevant data and write some posts about it.</p>
<h3>Create a portfolio of your work and skills</h3>
<p>Graphic designers don’t typically get evaluated based on bullet points on their CV or statements in a job interview: they share a portfolio with examples of their work. I think the data science field is shifting in the same direction: the easiest way to evaluate a candidate is to see a few examples of data analyses they’ve performed.</p>
<p>Blogging is an especially good fit for showing off your skills because, unlike a technical interview, you get to put your “best foot forward.” Which of your skills are you proudest of?</p>
<ul>
<li>If you’re skilled at visualizing data, write some analyses with some attractive and informative graphs (“Here’s an interactive visualization of mushroom populations in the United States”)</li>
<li>If you’re great at teaching and communicating, write some lessons about statistical concepts (“Here’s an intuitive explanation of PCA”)</li>
<li>If you have a knack for fitting machine learning models, blog about some predictive accomplishments (“I was able to determine the breed of a dog from a photo with 95% accuracy”)</li>
<li>If you’re an experienced programmer, announce open source projects you’ve developed and share examples of how they can be used (“With my sparkcsv package, you can load CSV datasets into Spark 10X faster than previous methods”)</li>
<li>If your real expertise is in a specific domain, try focusing on that (“Here’s how penguin populations have been declining in the last decade, and why”)</li>
</ul>
<p>Just because you’re expecting employers to look at your work doesn’t mean it has to be perfect. Generally, when I’m evaluating a candidate, I’m excited to see what they’ve shared publicly, even if it’s not polished or finished. And sharing <em>anything</em> is almost always better than sharing nothing.</p>
<blockquote class="twitter-tweet" data-lang="en">
<p lang="en" dir="ltr">&quot;Things that are still on your computer are approximately useless.&quot; –<a rel="nofollow" href="https://twitter.com/drob?ref_src=twsrc%5Etfw" target="_blank">@drob</a> <a rel="nofollow" href="https://twitter.com/hashtag/eUSR?src=hash&ref_src=twsrc%5Etfw" target="_blank">#eUSR</a> <a rel="nofollow" href="https://twitter.com/hashtag/eUSR2017?src=hash&ref_src=twsrc%5Etfw" target="_blank">#eUSR2017</a> <a rel="nofollow" href="https://t.co/nS3IBiRHBn" target="_blank">pic.twitter.com/nS3IBiRHBn</a></p>
<p>— Amelia McNamara (@AmeliaMN) <a rel="nofollow" href="https://twitter.com/AmeliaMN/status/926509282874585089?ref_src=twsrc%5Etfw" target="_blank">November 3, 2017</a></p></blockquote>
<p></p>
<p><a rel="nofollow" href="http://varianceexplained.org/r/year_data_scientist/" target="_blank">In this post</a> I shared how I got my current job, when a Stack Overflow engineer saw <a rel="nofollow" href="https://stats.stackexchange.com/questions/47771/what-is-the-intuition-behind-beta-distribution/47782#47782" target="_blank">one of my posts</a> and reached out to me. That certainly qualifies as a freak accident. But the more public work you do, the higher the chance of a freak accident like that: of someone noticing your work and pointing you towards a job opportunity, or of someone who’s interviewing you having heard of work you’ve done.</p>
<p>And the purpose of blogging isn’t only to advertise yourself to employers. You also get to build a network of colleagues and fellow data scientists, which helps both in finding a job and in your future career. (I’ve found <a rel="nofollow" href="https://twitter.com/hashtag/rstats" target="_blank">#rstats users on Twitter</a> to be a particularly terrific community). A great example of someone who succeeded in this strategy is my colleague <a rel="nofollow" href="https://juliasilge.com/blog/" target="_blank">Julia Silge</a>, who started her excellent blog while she was looking to shift her career into data science, and both got a job and built productive relationships through it.</p>
<p></p>
<h3>Get feedback and evaluation</h3>
<p>Suppose you’re currently looking for your first job as a data scientist. You’ve finished all the relevant DataCamp courses, worked your way through some books, and practiced some analyses. But you still don’t feel like you’re ready, or perhaps your applications and interviews haven’t been paying off, and you decide you need a bit more practice. What should you do next?</p>
<p><strong>What skills could you improve on?</strong> It’s hard to tell when you’re developing a new set of skills how far along you are, and what you should be learning next. This is one of the challenges of self-driven learning as opposed to working with a teacher or mentor. A blog is one way to get this kind of feedback from others in the field.</p>
<p>This might sound scary, like you could get a flood of criticism that pushes you away from a topic. But in practice, you can usually sense that you’re not ready well before you finish a blog post.<sup><a rel="nofollow" href="http://varianceexplained.org/r/start-blog/#fn:community" target="_blank">2</a></sup> For instance, even if you’re familiar with the basics of random forests, you might discover that you can’t achieve the accuracy you’d hoped for on a Kaggle dataset- and you have a chance to hold off on your blog post until you’ve learned more. What’s important is the committment: it’s easy to think “I probably could write this if I wanted”, but harder to try writing it.</p>
<p><strong>Which of your skills are more developed, or more important, than you thought you were?</strong> This is the positive side of self-evaluation. Once you’ve shared some analyses and code, you’ll probably find that you were <em>underrating</em> yourself in some areas. This affects everyone but it’s especially important for graduating Ph.D. students, who spend several years becoming an expert in a specific topic while surrounded by people who are already experts- a recipe for <a rel="nofollow" href="https://en.wikipedia.org/wiki/Impostor_syndrome" target="_blank">impostor syndrome</a>.</p>
<blockquote class="twitter-tweet" data-lang="en">
<p lang="en" dir="ltr">Imposter Syndrome: be honest with yourself about what you know and have accomplished &amp; focus less on the difference. <a rel="nofollow" href="http://t.co/VTjS5KdR6Y" target="_blank">pic.twitter.com/VTjS5KdR6Y</a></p>
<p>— David Whittaker (@rundavidrun) <a rel="nofollow" href="https://twitter.com/rundavidrun/status/587671657193455616?ref_src=twsrc%5Etfw" target="_blank">April 13, 2015</a></p></blockquote>
<p></p>
<p>For instance, I picked up the principles of empirical Bayes estimation while I was a graduate student, and since it was a simplification of “real” Bayesian analysis I assumed it wasn’t worth talking about. But once I <a rel="nofollow" href="http://varianceexplained.org/r/empirical_bayes_baseball/" target="_blank">blogged about empirical Bayes</a>, I learned that those posts had a substantial audience, and that there’s a real lack of intuitive explanations for the topic. I ended up expanding the posts into an <a rel="nofollow" href="http://varianceexplained.org/r/empirical-bayes-book/" target="_blank">e-book</a>: most of the material in the book would never qualify for an academic publication, but it was still worth sharing with the wider world.</p>
<p>One question I like to ask of PhD students, and anyone with hard-won but narrow expertise, is “What’s the simplest thing you understand that almost no one outside your field does?” That’s a recipe for a terrific and useful blog post.</p>
<h3>Conclusion</h3>
<p>One of the hardest mental barriers to starting a blog is the worry that you’re “shouting into the void”. If you haven’t developed an audience yet, it’s possible almost no one will read your blog posts- so why put work into them?</p>
<p>First, a lot of the benefits I describe above are just as helpful whether you have ten Twitter followers or ten thousand. You can still practice your analysis and writing skills, and point potential employers towards your work. And it helps you get into the habit of sharing work publicly, which will become increasingly relevant as your network grows.</p>
<p>Secondly, this is where people who are already members of the data science community can help. My promise is this: <strong>if you’re early in your career as a data scientist and you start a data-related blog, tweet me a link at <a rel="nofollow" href="https://twitter.com/drob" target="_blank">@drob</a> and I’ll tweet about your first post</strong> (in fact, the offer’s good for each of your first three posts). Don’t worry if it’s polished or “good enough to share”- just share the first work you find interesting!<sup><a rel="nofollow" href="http://varianceexplained.org/r/start-blog/#fn:disclaimer" target="_blank">3</a></sup> I have a decently-sized audience, and more importantly my followers include a lot of data scientists who are very supportive of beginners and are interested in promoting their work.</p>
<p>Good luck and I’m excited to see what you come up with!</p>
<div>
<ol>
<li>
<p>It’s also a great idea to blog if you’re <em>currently</em> a data scientist! But the reasons are a bit different, and I won’t be exploring them in this post. <a rel="nofollow" href="http://varianceexplained.org/r/start-blog/#fnref:current" target="_blank">↩</a></p>
</li>
<li>
<p>Even if you do post an analysis with some mistakes or inefficiencies, if you’re part of a welcoming community the comments are likely to trend towards constructive (“Nice post! Have you considered vectorizing that operation?”) rather than toxic (“That’s super slow, dummy!”). In short, if as a beginner you post something that gets nasty comments, <strong>it’s not your fault, it’s the community’s</strong>. <a rel="nofollow" href="http://varianceexplained.org/r/start-blog/#fnref:community" target="_blank">↩</a></p>
</li>
<li>
<p>A few common-sense exceptions: I wouldn’t share work that’s ethically compromised, such as if it publicizes private data or promotes invidious stereotypes. Another exception is posts that are just blatant advertisements for a product or service. This probably doesn’t apply to you: just don’t actively try to abuse it! <a rel="nofollow" href="http://varianceexplained.org/r/start-blog/#fnref:disclaimer" target="_blank">↩</a></p>
</li>
</ol>
</div>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://varianceexplained.org/r/start-blog/"> Variance Explained</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/iB7nxTjRcZ0" height="1"></a></div>