<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrea Brown on Medium]]></title>
        <description><![CDATA[Stories by Andrea Brown on Medium]]></description>
        <link>https://medium.com/@abrown004?source=rss-8c1d3edec5e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*F9GkkSKtZg2y8AvLJ9HCSw.jpeg</url>
            <title>Stories by Andrea Brown on Medium</title>
            <link>https://medium.com/@abrown004?source=rss-8c1d3edec5e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:33:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abrown004/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Four Resume Tips for Transitioning from Civil Engineering to Data Science]]></title>
            <link>https://abrown004.medium.com/four-resume-tips-for-transitioning-from-civil-engineering-to-data-science-a7685d46942f?source=rss-8c1d3edec5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7685d46942f</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[career-switch]]></category>
            <dc:creator><![CDATA[Andrea Brown]]></dc:creator>
            <pubDate>Tue, 09 Feb 2021 07:18:36 GMT</pubDate>
            <atom:updated>2021-02-09T07:27:23.847Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reframing your civil engineering experience for a role in analytics</h4><p>I frequently receive friendly messages from fellow civil engineers seeking to switch careers to data science after I posted an article describing how I personally <a href="https://medium.com/@abrown004/making-the-switch-from-civil-environmental-engineering-to-data-science-6be980cc55c7">made the switch to data science from civil engineering</a>. Several people have asked how to frame previous civil engineering experience on a resume when applying to data science or analytics jobs. I’ll share the 4 tips I recommend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e-YJ9IcqpaXtdArF" /><figcaption>Photo by <a href="https://unsplash.com/@scdisilviabrazzoduro?utm_source=medium&amp;utm_medium=referral">Silvia Brazzoduro</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Having been on both sides of the interview process now — interviewing and hiring — I’ve learned to pick good interview candidates by skimming through resumes. Things I look for when reviewing resumes include:</p><ul><li>Advanced statistics knowledge</li><li>Proven coding experience in Python or R</li><li>Previous experience on a data science team</li><li>Knowledge of the current best practices in data science</li></ul><p>Keeping these core principles in mind, these are the four resume tips I recommend when coming from a civil background. I’ll describe each in more detail below.</p><ol><li>Lead with your education</li><li>Reframe your civil engineering job experience</li><li>Highlight any coding experience</li><li>Fill in the gap with your portfolio</li></ol><p><strong>Tip #1. Lead with your education</strong></p><p>Demonstrate a strong background in math. If you don’t have at least a Master’s degree in math, science, or engineering, I strongly recommend earning one in data science or statistics (and complete an internship while in the program!). Otherwise, you should consider applying to analytics roles instead. An MS is typically a minimum requirement for data science positions in the San Francisco Bay Area (many candidates have a PhD).</p><p>If your degree is not specifically in math, statistics, or physics, I recommend listing the statistics courses you’ve completed. Make it clear that you’ve had training in advanced statistics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*9byaWrNKEOyd-EKo" /></figure><p>I’ve heard mixed opinions about whether to list data science bootcamps or certificate programs in the education section. I put my data science certificate in a <em>Certifications &amp; Memberships</em> section on my resume. In that same section I listed my P.E. license, the data science meetups I participate in, and that I authored data science articles in the <em>Towards Data Science</em> publication.</p><p><strong>Tip #2. Reframe your civil engineering job experience</strong></p><p>First off, let’s acknowledge that this part is hard. You’re smart, motivated, and a creative problem solver — that’s how you successfully became a civil engineer! However, set that engineering ego aside for this task. HR is not going to consider the ability to design and draft a building foundation using AutoCAD Civil 3D as a technical skill. You’ll need to reframe this technical experience into something a recruiter can classify as “useful”. My recommendation is to describe your engineering experience as analytics-related or use it to highlight a soft skill.</p><p>Here are a few examples:</p><ol><li><em>Engineering reports: </em>The ability to write technical reports demonstrates you can document your technical work and communicate technical concepts. These are important skills in data science.</li><li><em>Excel work: </em>Engineers love spreadsheets. Data scientists abhor them (a terrible place to store data!). Despite these differences of opinion, list any relevant technical problems you solved in Excel. For example, an optimization problem solved programmatically or a VBA program that performs data transformations. Highlight the task itself, not the fact that you are an Excel wizard.</li><li><em>Plots:</em> Business leaders love effective data visualizations. Highlight the fact that you can create effective data visualizations that have been used to inform business decisions.</li><li><em>Design calculations</em>: Typically, engineering calculations have an optimization problem or applied statistics at the root of them. Describe the design calculations as solving a complex mathematical problem. In my case, the hydrologic modeling I’d performed was an example of both applied statistics (what is the 100-year storm event based on historical data) <em>and</em> optimization (what’s the optimal infrastructure design given a volume of inflowing and infiltrating stormwater over a period of time).</li></ol><p><em>Construction management</em>: Creating workflow processes, staying organized, project planning. Important soft skills worth highlighting! <em>Side note: if you come from a background in project management, consider learning Agile product management and entering the data science field as a product manager for data science teams.</em></p><p><strong>Tip #3. Highlight any coding experience</strong></p><p>One of the primary things your resume should convey is your Python, R, and SQL knowledge. This should be demonstrated on your personal GitHub page, which your resume should include a link to. If you don’t have a GitHub page, you need to create one and regularly contribute to it.</p><p>Aside from your experience with these primary data science languages, on-the-job coding experience is also worth listing (regardless of the language). On-the-job coding experience in the civil engineering industry is typically performed within a software platform (Excel, Access, ArcGIS) or in more research-oriented programming languages like MATLAB. Did you use SQL to query data in MS Access? Mention it! Did you utilize Python to spatially analyze data in ArcGIS? Mention it!</p><p><strong>Tip #4. Fill in the gap with your portfolio</strong></p><p>Your data science project portfolio should fill in any gaps between your job experience and the job description for the position you’re applying for. Include a link to the GitHub code. Include any data science volunteer work, research work, or perhaps a capstone project. State the goal of the project, data science skills used (i.e. the coding language, packages, and machine learning algorithm), and the outcome of the project (include metrics, if possible).</p><p>Here are a couple examples from one of my old resumes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p5IGV42mB_xmnoXe" /></figure><p>In summary, be disciplined about making your resume relevant to each job you’re applying for. That civil engineering experience <em>can</em> be useful if you can frame it to demonstrate analytics experience or to highlight soft skills. Build a portfolio of projects that demonstrate your stellar data science skills not listed in your job experience. When you’re ready to prepare for technical interviews, check out my article on <a href="https://towardsdatascience.com/a-girls-guide-to-surviving-bay-area-data-science-interviews-40b66ba4d7e8">data science interviews</a>. You can do it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7685d46942f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A girl’s guide to surviving Bay Area data science interviews]]></title>
            <link>https://medium.com/data-science/a-girls-guide-to-surviving-bay-area-data-science-interviews-40b66ba4d7e8?source=rss-8c1d3edec5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/40b66ba4d7e8</guid>
            <category><![CDATA[towards-data-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <dc:creator><![CDATA[Andrea Brown]]></dc:creator>
            <pubDate>Fri, 13 Mar 2020 05:15:50 GMT</pubDate>
            <atom:updated>2020-03-13T05:15:50.369Z</atom:updated>
            <content:encoded><![CDATA[<h4>Key takeaways after six-months of interviewing for mid-level data science positions in the San Francisco Bay Area.</h4><p>About 1.5 years into my first data science position, I decided to start applying to new positions because my current position lacked career growth, engaging projects, and applications of data science weren’t a priority for the small startup. So I embarked on a voyage through Bay Area Tech interview culture to figure out what the next step in my data science career should be.</p><p>Prior to switching to data science, I was working as a civil engineer in the construction industry (read about my transition to data science <a href="https://medium.com/@abrown004/making-the-switch-from-civil-environmental-engineering-to-data-science-6be980cc55c7">here</a>). I lucked out by obtaining my first data science job through my network and didn’t spend much time interviewing. That meant most of my previous interview experience was in the construction industry. Needless to say, navigating Tech interviews took some trial and error before figuring out a process that worked.</p><p>Here are six key lessons I learned that I’ll explain in more depth below:</p><ol><li>There is a Tech interview culture in the San Francisco Bay Area and an entire industry built around it. Learn how to play the game.</li><li>Data science is a broad field. Find your niche and spend your time focusing on those positions.</li><li>Code every day.</li><li>Practice one interview question every day.</li><li>Memorize all the bold terms in <a href="http://themlbook.com/">The Hundred-page Machine Learning Book</a>.</li><li>Recruiters for a Big Tech company can be helpful. Third-party recruiters can be a waste of time.</li></ol><h3>1. There is a Tech interview culture in the San Francisco Bay Area and an entire industry built around it. Learn how to play the game.</h3><p>Because data science positions are so competitive, there is almost a secret ‘code’ to getting through the interview process. It took me some time to truly grasp this concept even though I’d attended a number of Meetups aimed at getting women hired in Tech that tried to explain this.</p><p>The typical interview process looks like this:</p><ol><li>Submit your resume and cover letter.</li><li>Find someone at the company to give you a referral.</li><li>The recruiter will reach out to set up an initial call.</li><li>Have a call with the recruiter to discuss your past experience and potentially answer a couple of generic technical questions.</li><li>Have a first-round technical interview that typically involves one or more of the following: (i) Live coding over a platform that shares your screen. (ii) Discussing a take-home exam that you previously completed. (iii) Walking through a case study. (iv) Statistics and modeling questions.</li><li>Have an in-person final-round technical interview that also assesses culture fit with the team.</li></ol><p>Here are a few secrets I uncovered to optimize that process:</p><h4>Make sure your resume looks “modern”</h4><p>Resume formats that would make recruiters in the construction industry cringe are fair game in Tech. Add some color. Add some symbols. Make it stand out! Adding little stars on my resume to convey my level of experience with certain skills seemed to appeal to hiring managers. However, a friend pointed out that I was probably rating myself too critically compared to how a male would rate himself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/0*xa9Ezy4QKvgiztAZ" /><figcaption>An example section from my resume demonstrating my level of proficiency with certain technical skills.</figcaption></figure><p>As an aside, my advice for critically evaluating or rating yourself (or even for negotiating salary) is to think about a person in your life who always asks for what he or she wants. It might be a coworker, a friend, or a mentor. For me, I think about how I watched my ex negotiate a big salary bump year after year until he made significantly more than me even though we were in the same industry. I try to think about how he would rate himself or what he would ask for in my situation. I’m sure at some point in your life you’ve seen someone negotiate confidently and relentlessly. Try to mimic that, even if you don’t feel it. If all else fails, I think about how I would be doing a disservice to women everywhere and playing into gender stereotypes if I don’t negotiate. Yes, I need that much urgency to push myself to negotiate. There’s already a ton of great articles on negotiating salary, so I won’t dive into it here. I’d recommend reading <a href="https://medium.com/product-popcorn/a-beginners-guide-to-negotiating-salary-for-women-in-tech-83ca40733d04">A (Beginner’s) Guide to Negotiating Salary for Women in Tech</a> as a starting point.</p><h4><em>When in doubt, submit a cover letter</em></h4><p>I’ve heard arguments for and against submitting a cover letter. If there’s an option to submit one, do it. Take the time to write a good cover letter that specifically addresses why you want to work at <em>that</em> company. If there’s a role for the cover letter in Tech, it’s to explain why you are interested in this specific position for this specific company. It only needs to be a couple of paragraphs. Don’t submit a long, generic cover letter that restates what’s listed on your resume.</p><h4><em>A referral is a golden ticket</em></h4><p>If you want to ensure a recruiter or hiring manager looks at your resume, you need someone at the company to refer you. Or you better be phenomenal at resume SEO.</p><h4><em>Your previous experience and portfolio are necessary but irrelevant</em></h4><p>You should be able to <em>discuss</em> your previous data science experience and the projects in your portfolio, but ultimately they are irrelevant. Although they will get your foot in the door, you have to be able to pass the technical interviews to convey that you are qualified for the position.</p><h4><em>Ask clarifying questions during your interview</em></h4><p>Multiple times I was corrected by a recruiter for making an assumption when I should have clarified the question instead. This holds true for take-home assignments as well. It doesn’t hurt to ask for clarification, even multiple times. I definitely failed one take-home exam because after I asked for clarification once I was too embarrassed to ask for clarification a second time.</p><h4><em>Be smart about where you spend your time and money</em></h4><p>Technical interviews have become an industry; don’t get tricked into spending money on getting interviews. People will reach out to you about adding your profile to their recruitment site, paying for technical interview help, paying for resume writing, paying for practice interview questions, etc. In my opinion, it’s about discipline and trial and error, and you don’t need to pay for most of these services.</p><h4><em>Negotiation starts on the first call</em></h4><p>I struggled a bit with the salary expectation question that recruiters ask on the first call. I would typically give a range or median value, and that number would scare some recruiters off while other recruiters would hint that it was too low. The salary range for a position seemed to vary widely between companies. It’s helpful to have a lower limit to your expected salary range in mind, and, if you think you may be overqualified for the position, try asking the recruiter the salary range for the position during the first call. Most resources say to avoid answering the salary expectation question entirely, but recruiters were pretty adamant about knowing if they were in the range of what you’re expecting.</p><h4><em>Don’t take rejection personally</em></h4><p>Realize that getting an offer in the Bay Area is about luck and gaining interview experience. If you don’t get an offer, it’s not because you weren’t skilled enough or smart enough for that company. Try to stay positive, take note of how you can improve, and move your attention to the next application. If you’re having trouble staying positive or feel like technical interviews are burning you out, it may be time to take a break for a couple weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*XUQgNrbp69ITeTUQ" /><figcaption>Source: <a href="https://media.giphy.com/media/3oz8xHL8780wscO8hi/giphy.gif">https://media.giphy.com/media/3oz8xHL8780wscO8hi/giphy.gif</a></figcaption></figure><h3>2. Data science is a broad field. Find your niche and spend your time focusing on those positions.</h3><p>At one point while I was interviewing, I went to a Meetup in San Francisco and asked a few people how they decided which jobs to apply to because there were <em>so many</em>. They all said ‘just apply to everything.’ I thought this logic was flawed because tailoring a resume and cover letter to a position and finding a connection to give you a referral is <em>incredibly</em> time-consuming. Not to mention the technical interview process that can take 2–4 weeks and may involve a take-home assignment. I wanted to spend the majority of my time studying for technical interviews and only a limited amount of time applying for positions.</p><p>I argue that it’s necessary to narrow down specific types of data science jobs you’re excited about (research vs. application, modeling vs. statistics vs. analytics, generalist vs. specialist) as well as the type of company you want to join (private vs. public, startup vs. established, B2C vs. B2B). In order to optimize my time, I developed the following process to decide which jobs to apply to.</p><ul><li>The first step was to make sure I met the minimum /required qualifications for the position. Some people argue to apply even if you don’t have enough experience yet, but I think minimum qualifications are typically a deal-breaker for the company. The “nice-to-haves” are where there’s wiggle room. Companies are looking for ways to narrow down the massive candidate pool, and minimum qualifications are an easy way to do that.</li><li>Since I already had a couple years of experience, I also needed to make sure I wasn’t overqualified for the position. I went through a couple interview processes where I was already completing technical interviews before realizing the company couldn’t beat my current salary and was looking for someone more entry-level.</li><li>The third step was to evaluate whether my skill set matched well with the job description. Could I tailor my resume so that the recruiter would want to talk to me? In order to make sure my skills fit with the positions I was interested in, I spent some time studying new skills or Python libraries to fill in any gaps in my experience. For example, I was interested in statistical decision making, so I took an online Coursera class on inferential statistics and worked with a Kaggle dataset of product analytics to build out a project for my portfolio. Ultimately, I found a niche within risk analysis and product analytics that would consistently get me at least a call with the recruiter.</li><li>The next step was to make sure I was excited about the position (obviously). Generally, I could gauge my excitement for the position while writing the cover letter. If I had a hard time explaining my enthusiasm for the position in the cover letter, then I would stop the application process there.</li><li>The last step was to check if I had someone in my network that could refer me, especially if I was applying to a big company. This wasn’t necessarily a deal-breaker, but it ensured my application was moved to the top of the pile.</li></ul><p>Using this process, I would get a call with the recruiter and at least make it to the first-round technical interview roughly 2/3 of the time. I like those odds.</p><h3>3. Code every day.</h3><p>Live coding interviews were definitely my kryptonite. Not because I didn’t know how to code, but because I lacked confidence in my coding abilities. I would panic knowing that someone was watching me type and judging my thought process. I would rush myself because I was worried I was going too slow. The combination of panicking and rushing caused me to overcomplicate simple questions and prevented me from effectively debugging my code. I have a theory that this may affect women more often than men.</p><p>In order to gain confidence, I made sure I was coding every day and comparing my code to other people’s code on <a href="https://www.kaggle.com/">Kaggle</a>. I should have tried some of the following resources to get better at live coding interviews, but I ended up getting an offer before exploring these options:</p><ul><li>Attend an all-female coding workshop (like <a href="https://www.girldevelopit.com/chapters/san-francisco">Girl Develop It</a>).</li><li>Try out <a href="https://www.pramp.com/">Pramp</a>, a software platform for practicing live coding interviews with peers.</li><li>Attend a Hackathon and try to pair up with a software developer.</li><li>Try out <a href="https://www.hackerrank.com/">HackerRank</a>, a software platform with practice code interview questions.</li></ul><h3>4. Practice one interview question every day.</h3><p>Once you solve enough practice technical interview questions, you start to see a pattern and gain confidence in your abilities. There are a couple services I found that will email you a question a few times a week and then send a separate email with the solution (for a subscription fee).</p><ul><li><a href="https://www.interviewquery.com/">Interview Query</a></li><li><a href="https://www.interviewqs.com/">InterviewQs</a></li></ul><p>However, be skeptical of online solutions to practice questions. The Facebook reading materials I was given for my technical interview included the following warning: “While we recognize that candidates may utilize outside sites/resources with posted interview questions and answers, we encourage caution, as we’ve found many of the proposed solutions to be incorrect.”</p><h3>5. Memorize all the bold terms in The Hundred-page Machine Learning Book.</h3><p>I bought <a href="http://themlbook.com/">The Hundred-page Machine Learning Book</a> intending to use it as a resource for my job. The book was actually super helpful for passing technical interview questions. I recommend memorizing the key terms in the book and making sure you understand and can explain the key concepts.</p><p>More specifically, I was repeatedly asked the following questions:</p><ul><li>What’s the formula to calculate accuracy? precision? recall?</li><li>Explain the bias, variance tradeoff.</li><li>Explain logistic regression.</li><li>What is regularization?</li><li>What’s the difference between classification and regression?</li></ul><p>On a lighter note, I was also asked these questions:</p><ul><li>What is your spirit animal?</li><li>What is the best interview question someone else has asked you?</li><li>What is the lowest salary you would accept?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*hdg6vWPny3OVZ1KF" /><figcaption>Source: <a href="https://makeameme.org/meme/My-face-when-p0u24n">https://makeameme.org/meme/My-face-when-p0u24n</a></figcaption></figure><h3>6. Recruiters for a Big Tech company can be helpful. Third-party recruiters can be a waste of time.</h3><p>Once you have about a year of data science experience, you will experience the four stages of dealing with 3rd party recruiters. At first (stage one), the attention is flattering. You’ll think “I’ve made it! Companies are contacting <em>me</em> for interviews.” Then (stage two), it becomes frustrating. You’ll think “Did this recruiter even read my LinkedIn profile? I’m obviously not a good fit for the position.” Stage three is feeling overwhelmed. You have to respond to recruiters to keep your LinkedIn job search status as “actively applying”, but there are so many irrelevant ones. Stage four is indifference. You actively ignore all 3rd party recruiters.</p><p>The stacked bar chart below shows how far along in the process I got for the 20 positions I applied to. The positions I applied to myself or went through a company recruiter resulted in six interview processes where I made it to the 1st-round interview, one interview process where I made it to the final-round interview, and three interview processes where I received offers. The six positions I applied to by taking calls with third-party recruiters who were screening candidates before passing resumes along to a hiring manager ultimately resulted in zero interviews with the actual company. Even though they typically lasted only 15-minutes, I would have to plan my day around the calls. They took away from time I could have spent doing something more impactful. Sometimes, I felt that the recruiter had been given a requirement to find a certain number of ‘diverse’ candidates, and I was added to the mix to meet that threshold even though my skill set didn’t necessarily match well with the job description. But that could just be in my head. Regardless, if you want to work with 3rd party recruiters, ask for the job description first and assess whether you’d be a good fit for the position before scheduling a call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z87DtRp6arBaSKfg" /><figcaption>A stacked column chart displaying how far along in the interview process I got for the 20 positions I applied to. The left column shows jobs I found on my own or through a company recruiter, and the right column shows jobs I found through a 3rd party recruiter.</figcaption></figure><p>On the other hand, I thought the recruiter for my Facebook interview was really helpful in navigating the interview process. Facebook seemed to level the playing field by giving me time to update my resume prior to sending it to the hiring manager, explaining in detail how the technical interview would go, and giving me materials to read and links to practice questions before the technical interview. At other companies, I was just shooting in the dark about what skills should be highlighted on my resume and the types of questions I would face.</p><h3>Summary</h3><p>To recap, the interview process is stressful, time-consuming, and, at times, a little humiliating. Make the best use of your time by finding the types of positions that more often than not will get you to the first-round technical interview. Practice makes perfect in conquering technical interviews. Failing a technical interview is just a part of practicing technical interviews, so don’t be too hard on yourself. With a little luck and a lot of discipline, you will get that offer.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FtvWi7KBvkTLP2%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FtvWi7KBvkTLP2%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FtvWi7KBvkTLP2%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="239" frameborder="0" scrolling="no"><a href="https://medium.com/media/4614cdc765d8a3fc750c9d9f13c2cc4b/href">https://medium.com/media/4614cdc765d8a3fc750c9d9f13c2cc4b/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40b66ba4d7e8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/a-girls-guide-to-surviving-bay-area-data-science-interviews-40b66ba4d7e8">A girl’s guide to surviving Bay Area data science interviews</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Lessons Learned from Presenting Metrics to Leadership]]></title>
            <link>https://medium.com/data-science/4-lessons-learned-from-presenting-metrics-to-leadership-5d2d060a090a?source=rss-8c1d3edec5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d2d060a090a</guid>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Andrea Brown]]></dc:creator>
            <pubDate>Wed, 09 Oct 2019 03:07:50 GMT</pubDate>
            <atom:updated>2019-10-09T03:07:50.863Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Enabling Leadership to Take Action</em></p><p>Venture capital firm, Sequoia Capital, defines data science as “<a href="https://medium.com/sequoia-capital/why-data-science-matters-ee583f785a55">a scientific and truth-seeking discipline that uses data to extract knowledge and insights</a>” in their <a href="https://medium.com/sequoia-capital/tagged/sequoia-data-science">data science publication</a> on Medium. Meaningful insights are difficult to achieve without defining and tracking good metrics. However, “s<a href="https://medium.com/sequoia-capital/the-building-blocks-of-a-data-informed-company-70cc5908143d">imply having a unifying metric is not enough. How it gets used matters just as much. It must be deployed by senior leadership to determine and inform what goals and metrics matter</a>.” In other words, metrics need to be actionable.</p><p>But I don’t want to write another article about creating actionable metrics instead of vanity metrics. Instead, I intend to share my personal evolution in presenting metrics that allow leadership to trust the data and feel comfortable (and maybe even confident) they’re making a data-informed decision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sa4O1GqdX_OQ-s0o" /><figcaption>Photo by <a href="https://unsplash.com/@youxventures?utm_source=medium&amp;utm_medium=referral">You X Ventures</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Why make data-informed decisions? We all have our biases, and biases make our intuition less trust-worthy. “O<a href="https://medium.com/sequoia-capital/the-building-blocks-of-a-data-informed-company-70cc5908143d">ur intuition is very fallible, and in many cases, it is no better than random selection</a>.” Without the ability to make a data-informed decision, we often end up selecting the opinion of the loudest (or most expressive, or most senior, or most experienced, or most stubborn, etc.) person in the room, which is equivalent to randomly drawing a decision out of a hat filled with all the potential decisions.</p><p>Here are four important lessons I’ve learned to present metrics in a way that allows leadership to draw meaningful insights and produce data-informed decisions.</p><p><strong>tl;dr</strong></p><ol><li>Numbers are Hard; Lots of Numbers are Overwhelming</li><li>Metrics are Time Series Data</li><li>Metrics aren’t Insightful without Goals</li><li>Insights aren’t Actionable without Detail</li></ol><h3><strong>Lesson 1 - Numbers are Hard; Lots of Numbers are Overwhelming</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/0*riP5DhTN0R9ffdxP" /><figcaption><em>A snapshot of my initial list of metrics. So many numbers…</em></figcaption></figure><p>I kicked off my metrics endeavor with the theory that a list of results for each enterprise customer (there were only 60 at the time) was a good starting point to pinpoint customers at risk of churning. When I presented the spreadsheet of results to the representatives from product, customer success, and leadership, I figured everyone would quickly sort and filter the spreadsheet to assess which customers were doing “poorly”. What happened in reality, though, was that no one ever opened the spreadsheet.</p><p>I personally believe that metrics are fascinating and enjoy thinking about how they represent business or product performance. It turns out that most people don’t share my sentiment. My coworkers wanted to hear an easily digestible story with any deficiencies already identified, and a spreadsheet full of numbers did not provide this.</p><p>As a result, I made a couple of adjustments prior to my next presentation:</p><ol><li>I switched from spreadsheets to data visualizations to communicate results.</li><li>I converted as many metrics as possible to percentages to make the numbers more intuitive.</li></ol><h3><strong>Lesson 2 - Metrics are Time Series Data</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/199/0*SMJ9JsBrpuoUZ7ft" /><figcaption><em>This metric is 80%. Cool story bro. </em>🤷</figcaption></figure><p>For my second presentation, I upgraded to a metric displayed as a portion of a whole in the infamous donut chart. You can see the metric above resulted in a value of 80%, but what data were included in that metric? Did that represent the past week, month, or year? Even if you knew, for example, that the data covered the past month, a single result is essentially meaningless without comparison to other results. Leadership needs to understand how the metric is changing over time. The metric should be plotted over time so that the daily, weekly, monthly, quarterly, or yearly change is understood.</p><p>Additionally, the data should be presented as close to real-time as possible. If you run the numbers and then present to leadership two-weeks later, your insights are likely already outdated and irrelevant. The development of automated data flows and real-time dashboards solve this problem but keep in mind that dashboards are time-consuming to create and require maintenance to ensure the data pipelines don’t break.</p><h3><strong>Lesson 3 - Metrics aren’t Insightful without Goals</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/0*vONOj1ceoPXqEvYK" /><figcaption><em>My data visualization displaying the metric’s quarterly change. But no goal…</em></figcaption></figure><p>Now I have a chart displaying how the metric has changed between quarters for the past year. Great! But are these results good or bad? It looks like the percentage is decreasing over time — should we be panicking…or celebrating?</p><p>In order to gain insights from these results, stakeholders need to agree on what the goal for the metric should be. For this metric, we agreed that the goal should be to exceed 60%. That means we successfully met our goal in Q1, Q2, and Q3 last year, but the more recent quarters (Q4 and Q1) are performing well below our goal and require action. That’s a good insight!</p><h3><strong>Lesson 4 - Insights aren’t Actionable without Detail</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*hnt7lvG_-u67n4BsRGJhLQ.png" /><figcaption><em>This chart demonstrates that Type 2 and Type 3 are specifically not meeting the goal to exceed 60%.</em></figcaption></figure><p>We now have insight into the fact that the metric performance is not meeting goals for the most recent quarters, but how do we know what actions to take to improve the overall metric? Breaking the metric data down into categories, buckets, or groups can help identify specific areas that should be focused on for improvement. The visualization above demonstrates that breaking the metric into subtypes (Type 1, Type 2, and Type 3) reveals that Type 1 has been meeting the goal every quarter, Type 2 has been missing the goal, and Type 3 is well below the goal. With this added detail, leadership can focus efforts on a specific group to improve overall metric performance.</p><p>Note that I also included sample size in the legend to understand the weight of each type on the overall metric.</p><h3><strong>Conclusions</strong></h3><p>In summary, metrics are not useful unless they reveal current deficiencies to leadership. To reveal deficiencies, metrics should be displayed in simple data visualizations that show the change over time and whether or not the goal is being met. Metrics should be broken out into subgroups to identify specific areas requiring improvement.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d2d060a090a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/4-lessons-learned-from-presenting-metrics-to-leadership-5d2d060a090a">4 Lessons Learned from Presenting Metrics to Leadership</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Ease the Pain of Working with Imbalanced Data]]></title>
            <link>https://medium.com/data-science/https-medium-com-abrown004-how-to-ease-the-pain-of-working-with-imbalanced-data-a7f7601f18ba?source=rss-8c1d3edec5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7f7601f18ba</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[imbalanced-data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Andrea Brown]]></dc:creator>
            <pubDate>Thu, 18 Jul 2019 04:08:41 GMT</pubDate>
            <atom:updated>2019-07-18T04:08:41.484Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>A summary of methods and resources for creating a model using an imbalanced dataset</em></h4><p>You’ve finally collected and cleaned your data and have even completed some exploratory data analysis (EDA). All that hard work has finally paid off — time to start playing with models! However, you quickly realize that 99% of your binary labels are of the majority class while only 1% are of the minority class. Using accuracy as the primary evaluation metric, your models are classifying all predictions as the majority class and are still <em>99% accurate</em>. You do a little Googling to find the right search terms for Stack Overflow, and then you sigh deeply as you read about the pains of working with imbalanced data…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*QVNW0uy9aJmqK76JGWrEZw.jpeg" /></figure><h3>What is Imbalanced Data?</h3><p>Fraud detection is commonly used as an example of imbalanced datasets. Maybe only 1 out of every 1,000 transactions is fraudulent, which means only 0.1% of labels are of the minority class. Disease data is also likely to be imbalanced. In environmental health, a typical threshold for an elevated risk of developing cancer is 1 in 10^6, or one in a million people. For my project, I was working with lawsuit data, and the companies that had been sued were minimal compared to the dataset as a whole. In summary, imbalanced data is exactly what it sounds like: the labels for the minority class are far and few between, making the accuracy metric somewhat useless for evaluating model results.</p><h3>What Should I do Differently?</h3><h4>Use Different Metrics</h4><p>Another key difference is to use alternative metrics to the traditional accuracy metric. Since I was primarily interested in identifying <em>True Positives</em> and avoiding <em>False Negatives</em> rather than maximizing accuracy, I used the area under the curve receiving operator characteristic (AUC ROC) metric. <a href="https://towardsdatascience.com/understanding-auc-roc-curve-68b2303cc9c5">This TDS post</a> has a great explanation of the AUC ROC metric. To summarize, AUC ROC = 0.5 essentially means the model is equivalent to a random guess and AUC ROC = 1 implies the model can perfectly differentiate between the minority and majority classes.</p><p>I also relied on the confusion matrix to maximize the number of <em>True Positives</em> and <em>False Positives</em> and minimize the number of <em>False Negatives</em>. Since I was working with lawsuit data, I decided to consider a <em>False Positive</em> result as an indication of a high likelihood of being sued in the future. Therefore, <em>False Positive</em> results were also very important to me. I liked the code in <a href="https://www.kaggle.com/qianchao/smote-with-imbalance-data">this Kaggle kernel</a> to visualize the confusion matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*fSCGe8eDj9o6XcHD5JMiSw.png" /><figcaption>Summary of True Positives and False Negatives using the Confusion Matrix</figcaption></figure><p>I also calculated the more traditional precision and recall metrics (equations below for quick reference) to compare different learning algorithms, and I added the less traditional miss rate (false positive rate) to the list of metrics to compare as well.</p><blockquote>Precision = TP / (TP + FP)</blockquote><blockquote>Recall (True Positive Rate) = TP / (TP + FN)</blockquote><blockquote>Miss Rate (False Positive Rate) = FN / (FN +TP)</blockquote><h4>Methodology</h4><p>There are <a href="https://pdfs.semanticscholar.org/95df/dc02010b9c390878729f459893c2a5c0898f.pdf">two primary classes of methodologies</a> to working with imbalanced data: (1) at the algorithm level and (2) at the data level. I’ll summarize the methods for each in the following sections.</p><h3>Algorithm-Related Methods</h3><h4>Cost-Sensitive Learning</h4><p>Considering solutions to an imbalanced dataset at the algorithm level requires an understanding of algorithms that enable cost-sensitive learning. In my case (and likely for disease and fraud detection as well), identifying <em>True Positives</em> was the primary goal of the model, even at the expense of selecting some <em>False Positives</em>. This is where cost-sensitive learning comes in handy. <a href="https://cling.csd.uwo.ca/papers/cost_sensitive.pdf">Cost-sensitive learning</a> takes into account the different types of misclassification (<em>False Positives</em> &amp; <em>False Negatives</em>).</p><h4>Logistic Regression</h4><p>A classic logistic regression algorithm is a robust model for imbalanced datasets. The logistic regression algorithm includes a <a href="https://hackernoon.com/introduction-to-machine-learning-algorithms-logistic-regression-cbdd82d81a36">loss function</a> that calculates the cost for misclassification. Using SciKit-Learn, the loss function can be manipulated with a penalty weight that includes either ‘L1’ or ‘L2’ Regularization depending on the solver used.</p><h4>Support Vector Machines</h4><p>In SciKit-Learn, the <a href="https://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html">Support Vector Classifier</a> includes a ‘class_weight’ parameter that can be used to give more weight to the minority class. “The ‘balanced’ mode “uses the values of y to automatically adjust weights inversely proportional to class frequencies in the input data.” <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.303.4068&amp;rep=rep1&amp;type=pdf">This paper</a> further details developing a cost-sensitive SVM.</p><h4>Naive Bayes</h4><p>SciKit-Learn includes a <a href="https://scikit-learn.org/stable/modules/naive_bayes.html">Complement Naive Bayes</a> algorithm that is a cost-sensitive classifier that “uses statistics from the complement of each class to compute the model’s weights.” Optimizing the model weights is an effective way of handling imbalanced datasets.</p><h4>Ensemble Method — Boosting</h4><p>Boosting algorithms are <a href="https://medium.com/urbint-engineering/using-smoteboost-and-rusboost-to-deal-with-class-imbalance-c18f8bf5b805">ideal for imbalanced datasets</a> “because higher weight is given to the minority class at each successive iteration.” For example, “<a href="https://medium.com/urbint-engineering/using-smoteboost-and-rusboost-to-deal-with-class-imbalance-c18f8bf5b805">AdaBoost iteratively builds an ensemble of weak learners by adjusting the weights of misclassified data during each iteration.</a>”</p><h3>Data-Related Methods</h3><h4>Re-sampling</h4><p>Solving a class imbalance problem at the data level typically involves manipulating the existing data to force the dataset used to train the algorithm to be balanced. This method is called re-sampling, and typical <a href="https://pypi.org/project/imbalanced-learn/">re-sampling techniques</a> include:</p><ul><li>Over-sampling the minority class,</li><li>Under-sampling the majority class,</li><li>Combining over- and under-sampling, or</li><li>Creating ensemble balanced sets.</li></ul><h4>Over-sampling the Minority Class</h4><p>Over-sampling involves balancing the dataset by creating synthetic data to increase the number of outcomes in the minority class. A common method for over-sampling is called the Synthetic Minority Oversampling Technique (SMOTE), which uses k-nearest neighbors to create synthetic data.</p><p>Taking this a step further, SMOTEBoost combines over-sampling with boosting. <a href="https://medium.com/urbint-engineering/using-smoteboost-and-rusboost-to-deal-with-class-imbalance-c18f8bf5b805">SMOTEBoost</a> is “an over-sampling method based on the SMOTE algorithm that injects the SMOTE method at each boosting iteration.”</p><h4>Under-sampling the Majority Class</h4><p>Under-sampling involves decreasing the data included in the majority class to balance the training dataset. Note that this <em>decreases</em> the size of the dataset. A common technique for under-sampling is random undersampling (RUS), which randomly and selects a subset of the majority class. <a href="https://medium.com/anomaly-detection-with-python-and-r/sampling-techniques-for-extremely-imbalanced-data-part-i-under-sampling-a8dbc3d8d6d8">This Medium post</a> goes into more detail on the various under-sampling methods.</p><p>RUSBoost combines under-sampling with boosting. Similar to SMOTEBoost, “<a href="https://medium.com/urbint-engineering/using-smoteboost-and-rusboost-to-deal-with-class-imbalance-c18f8bf5b805">RUSBoost</a> achieves the same goal by performing random undersampling (RUS) at each boosting iteration instead of SMOTE.”</p><h4>Ensemble Method — Bagging</h4><p><a href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.BaggingClassifier.html">Bagging</a> is an example of an ensemble technique at the data level. <a href="https://machinelearningmastery.com/ensemble-machine-learning-algorithms-python-scikit-learn/">Bagging involves</a> “building multiple models (typically of the same type) from different subsamples of the training dataset.” Bagging can reduce variance and prevent overfitting in algorithms such as the Random Forest Decision Trees algorithm.</p><h3>Conclusion</h3><p>For my dataset, the best approach was to use combine an ensemble method of boosting with over-sampling of the minority class (SMOTEBoost) and use the logistic regression algorithm to achieve an AUC ROC value of 0.81. With additional time spent on feature engineering, I could increase the AUC ROC value even more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7f7601f18ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/https-medium-com-abrown004-how-to-ease-the-pain-of-working-with-imbalanced-data-a7f7601f18ba">How to Ease the Pain of Working with Imbalanced Data</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Ways to Instantly Add Value as a Data Scientist at a Small Startup]]></title>
            <link>https://abrown004.medium.com/https-medium-com-abrown004-5-ways-to-instantly-add-value-as-a-data-scientist-at-a-small-start-up-384233c56df4?source=rss-8c1d3edec5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/384233c56df4</guid>
            <category><![CDATA[business-analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Andrea Brown]]></dc:creator>
            <pubDate>Mon, 21 Jan 2019 00:07:57 GMT</pubDate>
            <atom:updated>2019-01-21T01:51:01.434Z</atom:updated>
            <content:encoded><![CDATA[<h3>Warning — no machine learning or AI involved!</h3><p><em>Imagine this scenario:</em> You’ve been hired as the token data scientist at a small startup to work on a machine learning project. However, as you set out to complete your project, you realize it could be months or even years until your machine learning project is fully integrated into production software. Data science is a broad field, so when you’re the first data hire at a small startup, you’ll want to leverage your data skills across the company to help the company grow while your machine learning contribution comes to fruition. Here are five ways I’ve found to instantly add value when I have slow-downs in moving my machine learning project forward.</p><ol><li>Contribute to the Product</li><li>Create Marketing Content</li><li>Estimate the Product ROI</li><li>Create Data-Driven Processes</li><li>Define and Track KPIs</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JHuEqBlIhFiPFDBE" /><figcaption>Photo by <a href="https://unsplash.com/@rawpixel?utm_source=medium&amp;utm_medium=referral">rawpixel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Contribute to the Product</h3><p>Given your coding experience, there are likely small contributions you can make to the software product being developed. In my case, this was contributing some of the <a href="https://d3js.org/">D3.js</a> code to create visualizations for the analytics dashboard in the software platform. Since my JavaScript coding is limited, I also created mock-ups of the best way for users to visualize the data. Your experience creating simple yet effective data visualizations is definitely an asset at a small start-up.</p><h3>Create Marketing Content</h3><p>Generating qualified marketing and sales leads is critical for a small business. My company’s sales strategy is particularly focused on inbound marketing, so creating interesting content is key to our growth. Since I was already accumulating large amounts of data for my machine learning project, I crunched some preliminary numbers to be used for infographics and data visualizations for sales decks and marketing content. Your ability to create meaningful, digestible statistics that catch the eye of potential customers is crucial for the sales and marketing teams.</p><h3>Estimate the Product ROI</h3><p>Nearly every B2B startup is going to want some sort of <a href="https://www.forbes.com/sites/forbestechcouncil/2018/05/31/determining-the-return-on-investment-on-a-new-software-purchase/#10ed3ca04054">Return on Investment (ROI)</a> estimation to convey the value of the product to potential customers. It’s also very likely that the data to estimate the <em>gain on investment </em>(i.e. monetary benefit from purchasing your product) does not exist, so you’ll need to be creative to calculate a reasonable estimate. This is definitely not a simple task, but who better to draft a plan, gather the data, clean the data, create a model, and crunch the numbers than the data scientist?</p><h3>Create Data-Driven Processes</h3><p>Being efficient while still being nimble is a delicate balance at a startup. Keeping that in mind, implementing a few strategic data-driven processes can save <em>a lot</em> of employee time and potentially reduce hiring needs. For a data scientist, this could entail setting up data pipelines to give the customer success team more details about customers, auto-magically combining data sources to give the sales team more insights into their target accounts, or setting up a dashboard for the company’s business analytics. This will likely need some creativity, a deep understanding of internal operations, and buy-in from your coworkers. However, increasing efficiency can have a big positive impact on the company.</p><h3>Define and Track KPIs</h3><p>Your ability to help teams <a href="https://www.klipfolio.com/resources/kpi-examples">brainstorm and track Key Performance Indicators (KPIs)</a> will prove beneficial when assessing how the company is improving over time. For me, this was tracking user KPIs (like figuring out how to measure monthly active users) and tracking KPIs related to business analytics (such as Net Promoter Score (NPS) results). Larger businesses with lots of KPI data are even trying to <a href="https://medium.com/mit-initiative-on-the-digital-economy/q-a-with-michael-schrage-how-to-make-key-performance-indicators-key-again-1b2201e12788">use metrics to train machine learning models</a> aimed at spurring future growth (I guess I lied in the subtitle, I did mention machine learning).</p><p>Working at a small startup often involves wearing many hats. If you’re the team’s data guru, then you’ll likely be incorporating data into various aspects of the company. I personally think this is the best part of working at a startup — the variety of day to day tasks and the creativity required to solve the company’s problems with limited resources. Figuring out how to apply one of the above five projects at your company may be a great way to get started!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=384233c56df4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making the Switch from Civil / Environmental Engineering to Data Science]]></title>
            <link>https://abrown004.medium.com/making-the-switch-from-civil-environmental-engineering-to-data-science-6be980cc55c7?source=rss-8c1d3edec5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6be980cc55c7</guid>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Andrea Brown]]></dc:creator>
            <pubDate>Fri, 10 Aug 2018 22:43:52 GMT</pubDate>
            <atom:updated>2021-02-09T07:29:36.989Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I’d like to start with a disclaimer that this is my personal experience entering the data science field and may not reflect the path the majority of data scientists take. Data scientists come from all different backgrounds and everyone’s journey is unique.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/0*Krw7Xq3ta_RN1ybF.jpg" /></figure><p>Since I’ve started working as a data scientist, I’ve received inquiries from fellow civil and environmental engineers about how I made the switch. This post summarizes my responses to the questions I am typically asked:</p><ol><li>When did you decide to make the switch to data science?</li><li>How did you get started learning data science?</li><li>How are you liking it so far?</li><li>Were you able to leverage your civil engineering background to help you get an edge?</li><li>Is getting a P.E. license worth it?</li><li>Did you have enough statistics and programming background to feel comfortable transitioning into data science?</li><li>What are some other data science resources?</li></ol><p><em>Edit 2/2021</em>: I’ve also frequently been asked about how to frame civil engineering job experience when applying to data science positions. Here’s an <a href="https://abrown004.medium.com/four-resume-tips-for-transitioning-from-civil-engineering-to-data-science-a7685d46942f">article I wrote to answer that question</a>.</p><p><strong>When did you decide to make the switch to data science?</strong></p><p>Like many data scientists of today, data science was not a degree option when I was in college. I took one computer science class to complete my engineering degree, and it was my least favorite undergrad class. Primarily because the teacher was awful and C++ is probably the least useful coding language for civil engineering (even Fortran would be have been more useful!). I never in a million years thought I would consider coding as a profession. My brother was the computer scientist — he grew up building computers and having LAN parties. I, on the other hand, dreamed of a career where I gathered water samples in the mountains and wrote detailed analyses about the water quality and would eventually save the world from climate change. It turns out very few people in the civil engineering industry get paid to research the water quality of mountain streams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*6XHJ1tRWQWqSTsxo" /><figcaption>What I thought I would be doing with my MS in Water Resources Engineering</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/0*WGRkF1DjRzWoodK2" /><figcaption>Closer to what I was actually doing with my MS in Water Resources Engineering.</figcaption></figure><p>After I graduated, I diligently put my bachelors and masters degrees to use by working as an environmental consultant. And I LOVED it … for about two years until I got burned out from working too many hours. I lost all my motivation to advance my career in environmental consulting. I kept getting more and more frustrated by how inefficient, bureaucratic, and archaic the industry was (don’t get me wrong, I still have mad respect for civil engineers).</p><p>Then I was conveniently offered a new position at a tiny start-up company to guide a team of software developers to build out software related to environmental compliance. I took the position as a product manager and dove into the Tech industry. I even took a Product Management night class at General Assembly to learn as much as possible as quickly as possible. After 6-months working at the tiny start-up, we burned through our funding and I was laid off. This turned my world upside down and forced me to make a decision about which career I wanted to pursue. After applying to a few product management positions, I realized that I didn’t really like product management. I wanted something more technical. I wanted to feel like I was contributing to building something innovative. So I started learning to code.</p><p>I quickly realized that I did not want to be a programmer. I was not a person who could spend all day coding; I needed more variety in my tasks. That’s when I stumbled across data science back in 2015. After looking more into it, I realized that I had already used data science to complete my masters’ thesis research in grad school, and I really enjoyed it! But I had a lot to learn before starting a career as a data scientist.</p><p><strong>How did you get started learning data science?</strong></p><p>Once I realized that I wanted to pursue data science as a career, I kicked off my training by learning to code. I built a few rough websites from scratch using an <a href="https://www.udemy.com/">Udemy</a> course as a guide (I don’t recommend the one I completed because it’s very out of date now). Building a website gives you an idea of how software applications read from and write to databases, which is very important for data science. I also started to learn SQL and Python via <a href="https://www.codecademy.com/">Codecademy</a> to get an intro to the languages (I had already used R in graduate school). Eventually, I started the <a href="https://www.udacity.com/course/data-analyst-nanodegree--nd002">Udacity Data Analyst Nanodegree</a> to solidify my Python, SQL, and intro to machine learning skills. I took a year to complete the Nanodegree (I did the class work in the mornings before work and on the weekends). Udacity now has a <a href="https://www.udacity.com/course/data-scientist-nanodegree--nd025">Data Science Nanodegree</a>, which is probably much more applicable than the Data Analyst one.</p><p>After the Nanodegree, I applied for a few jobs and quickly realized that I didn’t have the right skills yet. I needed to build out a portfolio of projects to prove I could complete useful tasks as a data scientist. I joined<a href="https://www.kaggle.com/"> Kaggle</a> and participated in a couple machine learning competitions, but primarily Kaggle was a great resource to understand how other data scientists were approaching data analysis and machine learning in R and Python. I also went to a conference to try and network to find a job, but data scientists are not the most social bunch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*dYpTDFOzMbPPepsM" /></figure><p>What I did get out of the conference is an understanding of all the latest tech that companies need data scientists for (chat bots, text mining, machine learning, etc), and there were super helpful tutorials! I highly recommend attending a conference with workshops although it’s incredibly expensive if you don’t have an employer cover it.</p><p>At this point I was hitting a roadblock: I was starting to forget things I’d learned the year before because I could only study before work and on the weekends. So I decided to quit my full-time job to build out a portfolio of projects and apply to jobs full-time. I expected to be unemployed for at least 6-months.</p><p>About 2 weeks into my (f)unemployment, the software company I previously worked at reached out to see if I’d be interested in building out a risk model for their software. They just received a big round of seed funding. Of course I said yes - what an opportunity! So that is the story of how I got to my first data science job (2 years after I decided to embark on the career change).</p><p><strong>How are you liking it so far?</strong></p><p>I love it! I think it’s challenging, requires creative solutions, and I’m building something innovative (everything I thought civil engineering would be…)!</p><p>That said, I’m enjoying the product I’m working on, I have a diverse range of tasks at a small start-up company, I find it rewarding, and I have great mentorship from a CTO when I get stuck. Without each of those pieces, I would probably like it less. I’ve spoken to others who switched to something like advertising on social media… they do not like it because they don’t find it rewarding. They’d rather do something more related to the civil/environmental industry that they started in.</p><p>Also, if you’re just starting out in the field, you want to be sure to set yourself up for success with great mentorship at your first position. I had multiple interviews where my takeaway was that the company needed to hire a data engineer, not a data scientist. If I had taken a job like that, I may have set myself up to fail or at least not meet the company’s expectations.</p><p><strong>Were you able to leverage your civil engineering background to help you get an edge?</strong></p><p>I think the only way I was able to get a job as a data scientist is by leveraging my civil engineering background. I can’t state it enough: it’s a very competitive industry to break into. While data science may be the <a href="https://economicgraph.linkedin.com/resources/linkedin-workforce-report-august-2018">most in-demand position of 2018</a>, companies are looking for data scientists with proven experience. Hiring someone great is already difficult, so it’s a big (expensive) gamble to hire a data scientist who has no proven coding experience.</p><p><strong>Is getting a P.E. license worth it?</strong></p><p>I’m really glad I got my P.E. license. It makes it easier to return to the civil engineering field if I need to. Plus, I actually use it at my current position to review technical reports and design calculations. That’s just me personally, I think there’s no right or wrong answer to this question — it just depends on the person.</p><p><strong>Did you have enough statistics and programming background to feel comfortable transitioning into data science?</strong></p><p>I was actually applying data science as part of my masters’ thesis research in grad school, but it was called biostatistics. I took a lot of statistics classes as part of my MS degree, which helped immensely when breaking into data science. I had some coding experience in R, but not in Python or SQL. I don’t think it’s a barrier not having either a coding or statistics background to start with, but it’s definitely a challenge and it will take longer to learn the field.</p><p><strong>What are some other data science resources?</strong></p><p><strong>Masters Degree. </strong>This is probably the best way to go if you want to get hired quickly. I didn’t choose this because I already had an MS degree that I was still paying off.</p><p><strong>Bootcamps.</strong> There are quite a few bootcamps out there. Supposedly, certain companies hire from certain bootcamps, so it’s best to pick your bootcamp based on the company you’d ideally work at. I personally didn’t choose the bootcamp route because: (1) I felt that I had already learned enough on my own, (2) I didn’t want to quit my full-time job, and (3) it only gets you part of the way to a job (expect to be unemployed 4–6 months post-bootcamp). However, it is a great resource for developing a network and gets you up to speed much quicker than learning on your own part-time. I have specifically heard good things about these bootcamps:</p><ol><li><a href="https://www.galvanize.com/pick-a-location?page=">Galvanize</a></li><li><a href="https://www.thisismetis.com/">Metis</a></li><li><a href="https://www.thedataincubator.com/">The Data Incubator</a></li></ol><p><strong>Websites not previously mentioned. </strong>The internet is a great resource — there is an overwhelming amount of free data science classes and materials.</p><ol><li><a href="https://www.coursera.org/browse/data-science">Coursera</a> was founded by Andrew Ng, who is kind of like the godfather of machine learning and deep learning.</li><li><a href="http://www.fast.ai/">Fast.ai</a> is a highly recommended free course on practical deep learning.</li><li><a href="https://medium.com/">Medium</a> data science blogs.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6be980cc55c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Text Mining to Explore Similarities between Trump, Hillary, and Bernie Supporter Tweets]]></title>
            <link>https://abrown004.medium.com/using-text-mining-to-explore-similarities-between-trump-hillary-and-bernie-supporter-tweets-e6ff2f075b33?source=rss-8c1d3edec5e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6ff2f075b33</guid>
            <category><![CDATA[tweet]]></category>
            <category><![CDATA[donald-trump]]></category>
            <category><![CDATA[hillary-clinton]]></category>
            <category><![CDATA[bernie-sanders]]></category>
            <category><![CDATA[text-mining]]></category>
            <dc:creator><![CDATA[Andrea Brown]]></dc:creator>
            <pubDate>Mon, 13 Nov 2017 20:51:27 GMT</pubDate>
            <atom:updated>2017-11-13T20:51:27.535Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Spoiler Alert:</strong> I couldn’t find any similarities!</p><p>Given the amount of<a href="https://www.nytimes.com/2017/11/08/technology/russia-election-reality-tv.html"> effort Russia has put into dividing the US</a>, I decided to look into potential similarities (rather than differences) in tweets from Trump, Hillary, and Bernie supporters. Perhaps there is something outside of politics that we can all relate to? Idealistic - I know.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*C98vNjDW1bnq3EyPneEAKg.jpeg" /><figcaption>Time magazine cover Nov. 6, 2017 issue</figcaption></figure><p>To set the political scene, I downloaded tweets for the week of 10/30 to 11/6 2017. This was the week prior to the<a href="https://www.politico.com/story/2017/11/06/15-elections-you-should-be-watching-244601"> 2017 elections</a> when the revelation about<a href="https://www.nbcnews.com/politics/elections/memo-reveals-details-hillary-clinton-dnc-deal-n817411"> Hillary entering a deal with the DNC</a> before completion of the 2016 Primary Elections was released. It was also the week the Paradise Papers leaked, showing<a href="https://www.politico.com/story/2017/11/05/trump-paradise-papers-finance-244577"> connections to the Trump administration</a>. Conveniently for me, Trump, Hillary, and Bernie supporters all had a lot to tweet about.</p><p><strong>Task 1 — Set up Twitter Authorization using R</strong></p><p>First things first — I created my first Twitter account. I guess I couldn’t avoid the fad forever. Next, I went to the<a href="https://developer.twitter.com/"> Twitter Developer Platform</a> to create a new Twitter app that enabled me to automatically download tweets meeting my search criteria. The app settings assigned me a Twitter token and key that I used with the “twitteR” library in R to access Twitter using the “setup_twitter_oauth” function. I think<a href="http://thinktostart.com/twitter-authentification-with-r/"> this article</a> summarizes the process well. Except I left the callback URL in the Twitter app settings as ‘oob’.</p><pre># Load libraries<br>library(&quot;twitteR&quot;)<br>library(&quot;RSQLite&quot;)</pre><pre># Create twitter authentication<br>setup_twitter_oauth(consumer_key=&#39;xxxxxxx&#39;,<br>                    consumer_secret=&#39;xxxxxxx&#39;,<br>                    access_token = &#39;xxxxxxx&#39;,<br>                    access_secret = &#39;xxxxxxx&#39;)</pre><p><strong>Task 2 — Download Tweets</strong></p><p>I decided to search Twitter for the campaign slogan hashtags for each candidate to find tweets from supporters. The campaign slogans seemed more likely to be used by supporters rather than sarcastically by rivals.</p><pre># Pro Trump hashtag<br>trump &lt;- c(&quot;MakeAmericaGreatAgain&quot;)</pre><pre>#Pro Hillary hashtag<br>hillary &lt;- c(&quot;ImWithHer&quot;)</pre><pre>#Pro Bernie hashtag<br>bernie &lt;- c(&quot;FeelTheBern&quot;)</pre><p>I downloaded the tweets directly to a SQLite database with the tweets for each candidate in different tables so they could be analyzed separately. One thing I realized during this process was that Twitter only allows access to tweets from the past week. I was originally looking for tweets from 2016, but my database tables were empty because I wasn’t receiving any data. Luckily, all supporters were still very active on Twitter, so I switched my timeline to the present week (10/30 to 11/6).</p><pre># Register db backend<br>register_sqlite_backend(&#39;text.db&#39;)</pre><pre># Function to extract and store tweets<br>user_tweets &lt;- function(hashtag) {<br>  # Extract tweets by campaign hashtag<br>  no_of_tweets &lt;- 100<br>  tweets &lt;- searchTwitter(hashtag,<br>                          n=no_of_tweets,<br>                          lang=&quot;en&quot;)<br>  <br>  # Convert tweets to Dataframe<br>  df &lt;- twListToDF(tweets)<br>  <br>  # Extract tweets by screen name<br>  for (user in unique(df$screenName)) {<br>    search_twitter_and_store(paste(&#39;from:&#39;,user,sep=&quot;&quot;),<br>                             table_name = hashtag,<br>                             lang=&quot;en&quot;, <br>                             retryOnRateLimit=3)<br>  }<br>}</pre><p>Since I was looking for similarities between supporters (i.e. non-political tweets), I used the political tweets to pick out the screen names of supporters. Then I searched for tweets sent by those screen names. And THAT was my actual dataset. My dataset included 404 Hillary tweets, 838 Bernie tweets, and 2,499 Trump tweets.</p><p><strong>Task 3 — Transform the Data</strong></p><p>After downloading supporter tweets into my database, I proceeded to load the tweets from the database tables into R as separate data frames. Then I converted each data frame to a corpus using the “<a href="https://cran.r-project.org/web/packages/tm/vignettes/tm.pdf">tm</a>” library in R.</p><p>Next I applied transformations to the corpuses (corpi?) to remove punctuation, strange characters, extra spaces, and stop words and to apply stemming. I converted the cleaned corpuses to document term matrices and viewed the words appearing most frequently for each candidate’s supporters.</p><pre>clean_corpus &lt;- function(corpus) {<br>  # Clear Extra Whitespace<br>  clean_corpus &lt;- tm_map(corpus, stripWhitespace)<br>  <br>  # Remove punctuation<br>  clean_corpus &lt;- tm_map(clean_corpus, removePunctuation)<br>  <br>  # Remove weird characters<br>  clean_corpus$content &lt;- sapply(clean_corpus$content, function(row)            <br>                          iconv(row, &quot;latin1&quot;, &quot;ASCII&quot;, sub=&quot;&quot;))<br>  <br>  # Convert to lowercase<br>  clean_corpus &lt;- tm_map(clean_corpus, tolower)<br>  <br>  # Convert to Plain Text Document<br>  clean_corpus &lt;- tm_map(clean_corpus, PlainTextDocument)<br>  <br>  # Remove stop words<br>  clean_corpus &lt;- tm_map(clean_corpus, removeWords,   <br>                         c(stopwords(&quot;english&quot;), political_words))<br>  <br>  # Stemming<br>  clean_corpus &lt;- tm_map(clean_corpus, stemDocument)<br>  <br>  return(clean_corpus)<br>}</pre><p>After taking a first look at the data, I decided to remove political words such as “democrats” and “trump” from the corpus in order to find the frequently used non-political words.</p><p><strong>Task 4 — Explore the Data</strong></p><p>I observed a few interesting trends. The first observation I made was that ‘iphone’ and ‘ipad’ were frequent words for Trump supporters while ‘android’ was a frequent word for Hillary supporters. Even the phones used by supporters to tweet are different!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*w7t9CCaHSPwtToxesQW_KQ.png" /><figcaption>Word cloud of Hillary supporters’ tweets</figcaption></figure><p>Hillary tweets generally fit into two categories. One category contained the words ‘black’, ‘white’, and ‘women’ describing race and gender. The other category had the words ‘like’, ‘shit’, ‘f*#k’, which seemed to be almost defensive words. Perhaps related to the DNC scandal?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*pPwfBeG5f4Xu0kKq-B-XtA.png" /><figcaption>Word cloud of Trump supporters’ tweets</figcaption></figure><p>Trump tweets demonstrated the paranoia of his supporters: ‘break’, ‘corrupt’, ‘just’, ‘investigate’, ‘charge’. There were also a few odd words such as ‘uranium’ and ‘Brazil’. A quick Google search revealed that uranium seemed to be related to a<a href="http://nypost.com/2017/10/25/trump-says-uranium-deal-probe-is-the-new-watergate/"> uranium deal made with Russia</a> during the Obama administration. The word ‘Brazil’ seemed to be related to a<a href="https://www.usnews.com/opinion/world-report/articles/2017-10-20/could-jair-bolsonaro-become-brazils-next-president"> Brazilian candidate running for office</a> that is stated to be similar to Trump.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*akiI3Hfj-QToYR9plC4Z3A.png" /><figcaption>Word cloud of Bernie supporters’ tweets</figcaption></figure><p>Bernie tweets were less political and reflected American culture that week: ‘Halloween’, ‘costume’, ‘Game of Thrones’, and ‘love.’ There were also plenty of Progressive words: ‘progress’, ‘climate’, and ‘power’.</p><p><strong>Conclusions</strong></p><p>Ultimately, I was unable to find similarities between tweets from supporters of Trump, Hillary, and Bernie. Stripping out common political words revealed more of the emotional state of Hillary and Trump supporters than similarities. It seems that Trump and Hillary supporters (likely an older crowd) exclusively use Twitter to express political opinions whereas Bernie supporters (likely younger users) use Twitter to express a variety of sentiments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6ff2f075b33" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>