<?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 Christian Moya on Medium]]></title>
        <description><![CDATA[Stories by Christian Moya on Medium]]></description>
        <link>https://medium.com/@christian-moya?source=rss-607b0c65e1d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MggqmrpGugwyC1DcFe7ghg.jpeg</url>
            <title>Stories by Christian Moya on Medium</title>
            <link>https://medium.com/@christian-moya?source=rss-607b0c65e1d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:08:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@christian-moya/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[Calculating How Lit is Children’s Lit Using NLP]]></title>
            <link>https://medium.com/codex/calculating-how-lit-is-childrens-lit-using-nlp-94225d14fba9?source=rss-607b0c65e1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/94225d14fba9</guid>
            <category><![CDATA[childrens-literature]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Christian Moya]]></dc:creator>
            <pubDate>Thu, 16 Mar 2023 14:01:42 GMT</pubDate>
            <atom:updated>2023-03-16T14:01:42.948Z</atom:updated>
            <content:encoded><![CDATA[<h4>Predicting Readability for Children’s Literature</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*pWgMPQ47BWMNMlcgmTr7fA.jpeg" /><figcaption>Independent Reading Time — Image by Author</figcaption></figure><p>As with most elementary school teachers, I held a dedicated block of time for independent reading. For some students, that reading block was their favorite time of the day. For others, it was<em> the worst</em>. It seemed they’d rather count up to infinity than read a book for 15 minutes.</p><p>Those 15 minutes were critical for me to confer with students individually (or take some time to rest my voice in between lessons). More importantly, those 15 minutes were meant for students to engage in stories, widen their perspectives, or learn more about the world.</p><p>I had to figure out a way to get my reluctant readers to<em> love</em> reading.</p><p>To that end, I dug more into Vygotsky’s zone of proximal development, recalling that students, or anyone for that matter, won’t enjoy a task if it’s too difficult- or on the opposite end, too easy. What entices them most is a task that targets their “zone”, a zone challenging enough to make the task at hand enjoyable. Like Goldilocks, this meant finding books that were “just right” for each student, which brought me to my final capstone project with Flatiron School.</p><p>At the time, Kaggle hosted a competition called<a href="https://www.kaggle.com/c/commonlitreadabilityprize"> “The Common Lit Readability Prize”</a>, which asked data scientists to build a machine learning model predicting the readability of texts for students grades 3–12. You can’t imagine my excitement in amalgamating my past teaching experience with my current work in data science. I hoped to help build a model and tool that helps teachers determine whether the text they’re giving to a student is too hard or too easy, allowing for a more enjoyable reading experience for the teacher and student. Find my process and findings below.</p><h4>Process</h4><p>I built a machine learning model that predicted the readability of texts for students in grades 3–12. I followed the CRISP-DM methodology and used Natural Language Procession to clean the text data. I tested with 2 vectorizers: TF-IDF and a CountVectorizer, and 3 regression models: LinearRegression, RidgeRegression, and RandomForestRegression. I hypothesized that the words in a text <strong><em>do</em></strong> affect readability as my alternate hypothesis, with the <strong><em>null hypothesis</em></strong> stating that words in a text <strong><em>do not </em></strong>affect readability.</p><h3>Pre-Test Analysis of the Data</h3><h4>The Data</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*mYkqzoRU4Xf39oBEZxIOeA.png" /><figcaption>Graph by Author</figcaption></figure><p>The Data in this text was pulled from the Kaggle competition, “<a href="https://www.kaggle.com/c/commonlitreadabilityprize">CommonLit Readability Prize</a>”. It had over 2,800 text excerpts for students ranging from grades 3–12. The most challenging text had a readability score of -3.67 and the easiest text had a score of 1.71, with an average score of -0.959. Below are two example texts and their scores.</p><h4>Easy Text</h4><blockquote>“When you think of dinosaurs and where they lived, what do you picture? Do you see hot, steamy swamps, thick jungles, or sunny plains? Dinosaurs lived in those places, yes. But did you know that some dinosaurs lived in the cold and the darkness near the North and South Pole?”</blockquote><p><em>Readability Score: 1.71</em></p><h4>Difficult Text</h4><blockquote>“The commutator is peculiar, consisting of only three segments of a copper ring, while in the simplest of other continuous current generators several times that number exists, and frequently, 120! segments can be found. These three segments are made so as to be removable in a moment for cleaning or replacement.</blockquote><p><em>Readability Score: -3.68</em></p><p>Right off the bat, we find that the “easy text” asks the reader to imagine and visualize the scenery. The author uses rich, descriptive language that taps into the 5 senses, making it easier to imagine that we’re standing there at the North pole, freezing next to dinosaurs. For the most part, the words are easy to decode and the vocabulary is accessible.</p><p>In contrast, the “difficult text” requires readers to have a richer, perhaps more scientific, vocabulary, enabling students to have a high-level understanding of commutators and generators. Not to mention, they may need to know the mathematical meaning of x! and factorials. What does it mean when I see an exclamation mark in the middle of a sentence?</p><h4>Most Common Bigrams in “Easy” and “Difficult” Text</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*Cu6EjglIpj6ngXXaKnlZKQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*_mVnR83v-QBX63b9WTRjcg.png" /><figcaption>Graphs by Author</figcaption></figure><p>As part of my pre-test analysis, I divided the dataset into 3 groups: easy, medium, and difficult, based on its readability score. The graphs above look at the most common bigrams, or two words used together, for easy and hard texts.</p><p>In the easy texts, we find that the most commonly used bigrams are “one day”, “little girl”, and “little boy”, which tells me that most of the easy texts are more story-based.</p><p>On the other hand, the most commonly used bigrams in the difficult text were “percent”, “United States”, and “years ago”, implying that the harder texts may be related to history, social studies, and science.</p><p>Now time to build our model…</p><h4>Post-Test Analysis</h4><p>After multiple iterations, the best linear regression model was a Ridge Regression model and a TF-IDF vectorizer, with max features set at 50,000.</p><p>When exploring the model’s feature importance, we find that the terms likely to increase readability scores are “you”, “mother”, “lived”, “girls” and “baby”, clarifying our pre-test assumptions that easier texts are more story-based.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*AN5IJovvroiUjP5wXMDE1A.png" /></figure><p>Terms that decrease a text’s readability score are more prepositional terms, like “of”, “as”, and “in”, signifying that difficult texts are more passive and lack direct language, making the text harder to comprehend, especially for students learning English as a second language or students with a learning disability. Unlike my pre-test analysis, scientific words like “kilogram” and “oceanic lithosphere” did not have as much impact on the model as the prepositions listed below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*3nj_UktZBE54vxr5mPChcw.png" /></figure><h3>Conclusions and Recommendations</h3><p>Our model shows that terms and words in a text do have an impact on its readability, so teachers and others interested in improving literacy for students can follow the recommendations below.</p><p><em>For struggling readers:</em></p><ul><li>Introduce tougher subjects like science and math through storytelling to provide some sort of access point.</li><li>Edit the texts to remove unnecessary prepositional phrases to make the text more direct and comprehensible.</li></ul><p><em>For talented readers:</em></p><ul><li>Provide texts a nudge more difficult than they’re comfortable with to continue developing their literacy skills.</li><li>Challenge more talented readers to write out summaries to provide access points to struggling readers as well.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94225d14fba9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/calculating-how-lit-is-childrens-lit-using-nlp-94225d14fba9">Calculating How Lit is Children’s Lit Using NLP</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wordz a Make Her Dance]]></title>
            <link>https://medium.com/codex/wordz-a-make-her-dance-ee336fb4b632?source=rss-607b0c65e1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee336fb4b632</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[naive-bayes]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[random-forest]]></category>
            <dc:creator><![CDATA[Christian Moya]]></dc:creator>
            <pubDate>Thu, 29 Apr 2021 00:35:24 GMT</pubDate>
            <atom:updated>2021-04-29T00:35:24.258Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Look at Billboard’s Hot 100 Song Lyrics from 1970–2020 featuring NLP, Random Forests, and Naive Bayes</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VfnJFQjVBcenDRt_U5oIHw.jpeg" /><figcaption>Image by Shutterstock.com</figcaption></figure><p>10 years ago, Rebecca Black released a song titled, “<a href="https://www.youtube.com/watch?v=kfVsfOSbJY0">Friday</a>”. <br>The song became an overnight sensation with over <a href="https://en.wikipedia.org/wiki/Friday_(Rebecca_Black_song)">166 million views</a>, and everybody, everywhere singing…</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FLqzgIzNWDiyFG%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FLqzgIzNWDiyFG%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FLqzgIzNWDiyFG%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="231" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb4fccc755c709ffdc5cbb36d837a7f8/href">https://medium.com/media/eb4fccc755c709ffdc5cbb36d837a7f8/href</a></iframe><p>… even if it was a Monday.</p><p>I‘ll clue you into my sentiment on the song with another subset of its lyrics:</p><blockquote>Tomorrow is Saturday<br>And Sunday comes after wards<br>I don’t want this weekend to end</blockquote><p>-___-</p><p>It may go without saying that the song’s popularity got me <em>sunk</em>. With the rise of YouTube and its access to instant fame, I thought mediocre music with mediocre lyrics was here to stay. Fortunately, music lyric geniuses like Frank Ocean and Billie Eilish emerged, but a decade after this “phenomenon”, it still has me wondering: <strong><em>what kind of lyrics make a song a hit</em></strong>?</p><p>This led me to my current project.</p><p>I wanted to look at whether song lyrics have an effect on its ranking in the Billboard Top 100. To do so, I followed the CRISP-DM methodology and used Natural Language Processing to clean, stem and lemmatize the lyric data, then used both Random Forest and Naive Bayes to classify (don’t worry if these sound unfamiliar, I’ll explain more as we go).</p><p>I proposed an alternate hypothesis, stating that song lyrics do have an impact on its rank in the Billboard Top 100, whereas my null hypothesis states that words in a song <em>do not</em> have an effect on its rank.</p><h3>Data</h3><p>I used data from <a href="https://www.billboard.com/charts/year-end/1970/hot-100-songs">Billboard</a> and <a href="https://genius.com/">Genius</a> to create my dataset. Billboard offered the song titles for the Top 100 songs from 1970–2020 and its corresponding artist, and Genius offered the lyrics for each song. Once I preprocessed all the data, I had over 2,200 songs written by 1,000 artists.</p><p>One thing to note is that the data does not include any collaborations or songs featuring other artists. A few artists had a good number of songs on the billboards, such as Madonna, Elton John, and Drake, but more than half of the artists in our dataset only had one.</p><p>Once I had all the lyrics data ready in one data frame, I removed punctuation marks using a tool called <strong>regex</strong> and all the <em>stop words</em> with the python package, NLTK<strong>. </strong><em>Stop words</em> are common words like “the” or “me” that doesn’t really mean anything on their own. Then once all that is removed, we’re able to count the frequency of words in our corpus using the function, <strong>FreqDist</strong>, also in the NLTK package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*1Fx3t5R-6hfeN4YXzcTE8A.png" /><figcaption>Scaled Word Count for 25 Most Common Words by Author</figcaption></figure><p>It may come as a surprise to no one, but “love” was the most commonly sung word in the Billboard Top 100. The frequency of words remained relatively unchanged, even as I filtered for songs in the Top 25 and not, and for songs released before 2000 and after.</p><p>(Anyone else satisfied to <em>not </em>see “Friday” in our common words?)</p><h3>Model</h3><p>Next, I made predictions with the song lyric data using two different classifiers: <strong>Random Forest</strong> and <strong>Naive Bayes</strong>.</p><p>For a quick refresher, <a href="https://www.youtube.com/watch?v=J4Wdy0Wc_xQ"><em>random forests</em></a> take a portion of the songs and build multiple decision trees that each predict a song’s outcome, in this case, whether it’s a Top 25 hit or not. The outcome with the most tree votes wins.</p><p><a href="https://www.youtube.com/watch?v=O2L2Uv9pdDA&amp;t=570s"><em>Naive Bayes</em></a>, on the other hand, calculates the likelihood that specific words found in songs, like “friend” or “cry”, would show up in a Top 25 song <em>and</em> a non-Top 25 song. The model then looks at the number of times “friend” was sung in an unknown song, then predicts its outcome by finding whether the likelihood matched the Top 25 songs more or the non-Top 25 songs. For a more thorough explanation on both, check out the videos by <a href="https://www.youtube.com/channel/UCtYLUTtgS3k1Fg4y5tAhLbw">StatQuest</a>.</p><p>To fit our data to the model, I used a <strong>tf-IDF vectorizer</strong>. Because machines and models can’t read words as humans do, the vectorizer takes the words and converts them into an array of numbers based on their frequency in the lyric corpus.</p><h3>Results</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*XKiUVA70i6aC_34hOHCVyw.png" /><figcaption>Baseline Confusion Matrix by Author</figcaption></figure><p>If you look at the confusion matrix above, we find that the Naive Bayes Classifier predicts <em>every single song</em> in our test data would <strong>NOT</strong> be a Top 25 hit, even though 182 songs actually are. Our Random Forest model did not perform much better, predicting only 2 positives out of the 182.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxUPGcBb4suoMyZ1Jfy%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxUPGcBb4suoMyZ1Jfy%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FxUPGcBb4suoMyZ1Jfy%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c8ff7d6cd61ffa82d672af4b69e3150/href">https://medium.com/media/8c8ff7d6cd61ffa82d672af4b69e3150/href</a></iframe><p>Both classification models seemingly look too scared to predict that a song would be a hit, and it may be due to the class imbalance (remember, 25% of our data actually are in the Top 25). In an effort to remediate this, I redistributed the data using SMOTE, equalizing the number of top hits vs not. This, however, did not improve our accuracy. If you look at the matrix below, we find that our classification models <em>do</em> take more of a chance to classify a song as a hit, but are <em>mis</em>classifying more often than not.</p><p>With the use of SMOTE, our accuracy scores are <strong>45%</strong> for our Naive Bayes classifier and <strong>69%</strong> for our Random Forest classifier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*rDt4Q2FtkI-WHpINCZwiVw.png" /><figcaption>Confusion Matrix with SMOTE by Author</figcaption></figure><p>Since these scores were so low, I tried additional cleaning techniques, including <strong>stemming</strong> and <strong>lemmatizing</strong>. <em>Stemming </em>basically chops off the end of the word, changing a word like “dancing” to “dance”, while <em>lemmatizing</em> gets to the root of the word and changes words like “better” to “good”.</p><p>After stemming, lemmatizing, and dealing with the class imbalance with SMOTE, our model’s performance improved to <strong>76%</strong> for both classification models, an <em>increase of 9%</em> from our baseline (refer to “Stem” iteration below). However, considering that roughly 25% of our data classify as a Top 25 hit, our model is just as good as guessing that the song will not be a Top 25 hit every single time, as seen in my baseline. The graph below shows the accuracy scores for each iteration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*2MT07YnMFPsVW-J0irDItw.png" /><figcaption>Classification Accuracy Score Graph by Author</figcaption></figure><h3>Conclusion and Recommendations</h3><p>Unfortunately, my models were not able to find what differentiates the Top 25 from the rest of the Top 100 and fail to prove that the words in a song have an impact on its rank. As a result, I recommend songwriters do the following:</p><ul><li>Focus more on the composition of the song — music is so much more than the lyrics themselves. There’s the rhyme and rhythm, the sound, and the vocals. Create something that feels good to you.</li><li>Write about relatable topics — though not specific to the Top 25, we do know that “love” is the most common word found in the Top 100. Listeners may vibe more to familiar topics that they relate to. We don’t really find people at the club rockin’ hard to songs about space.</li><li>Sing about anything you want — I couldn’t prove that songs with the word “dance” did better than songs with the word “cry”. So just write about something you are passionate about or write what feels right. Music is a form of self-expression, so don’t limit yourself to certain topics, unless you’re Rebecca Black. Just kidding, Rebecca!</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F4eoO0NSdNY11K%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F4eoO0NSdNY11K%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F4eoO0NSdNY11K%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="207" frameborder="0" scrolling="no"><a href="https://medium.com/media/729ea06da01244799ee6eca2090e28eb/href">https://medium.com/media/729ea06da01244799ee6eca2090e28eb/href</a></iframe><h3>Future Work</h3><p>I was a bit upset that I couldn’t come to any conclusions, so I began finding other ways I can classify my data. If given more time with this project, I may try the following.</p><ul><li>Include songs outside of Billboard Top 100 — I think a large reason the results were inconclusive was that the fact that songs in the database were all successful. I need to look at songs outside that perform poorly.</li><li>Add additional features — I would love to see if I could add tempo and composition as features to predict if a song is a hit or not.</li><li>Classify by year — I started to classify whether songs were produced before or after 2000 and had an accuracy score of 80%. May be worth looking into more.</li><li>Classify by genre — Rock and hip hop <em>sound</em> completely different, but would be interesting to see whether the lyrics are vastly different as well.</li></ul><p><em>Check out the code and non-technical presentation on my </em><a href="https://github.com/christianmoya/BillboardTop25_NLP"><em>github</em></a><em>. <br>How would you classify song lyrics? Comment below, I’d love to hear your thoughts.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee336fb4b632" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/wordz-a-make-her-dance-ee336fb4b632">Wordz a Make Her Dance</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Makes College Worth It?]]></title>
            <link>https://medium.com/data-science/what-makes-college-worth-it-cdbb272152cb?source=rss-607b0c65e1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdbb272152cb</guid>
            <category><![CDATA[logistic-regression]]></category>
            <category><![CDATA[hands-on-tutorials]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[editors-pick]]></category>
            <category><![CDATA[salary]]></category>
            <dc:creator><![CDATA[Christian Moya]]></dc:creator>
            <pubDate>Fri, 05 Mar 2021 07:07:30 GMT</pubDate>
            <atom:updated>2021-03-05T20:34:52.867Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="https://towardsdatascience.com/tagged/hands-on-tutorials">Hands-on Tutorials</a></h4><h4>Building a Logistic Regression Model to Predict Which Colleges Expect an Early Career Salary of $60,000 or More</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FsyBlSgDbjsMHC%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FsyBlSgDbjsMHC%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FsyBlSgDbjsMHC%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="272" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd75acef0564f6daae52bee6a27c2d64/href">https://medium.com/media/fd75acef0564f6daae52bee6a27c2d64/href</a></iframe><h3>Introduction</h3><p>Like most Asian immigrants, my parents emphasized the importance of school, with college graduation as the gateway to the American dream. Because of that, I never questioned <em>whether </em>I should go to college or not. It was more a matter of <em>which one</em>.</p><p>Back when I was deciding, I did not do a cost-benefit analysis as I’d done with the model I’ll talk about later, though maybe I should have. Instead, I thought more about two things:</p><p>1. Which college felt like Hogwarts, and more importantly, <br>2. Which college might impress my “chismosa” titas (chismosa is “gossipy” in Tagalog).</p><p>Without <em>too much</em> thought, I followed my childhood best friend over to UC San Diego for undergrad, then Columbia University for graduate school. When I finished, I ignorantly thought college would pay in itself. But when I got my first student loan bill and a job offer salary that did not match, my jaw dropped! Who was I to think I could shop for colleges as if I were Cher Horowitz with her daddy’s Credit card?</p><p>Turns out, I’m not alone. According to a survey conducted by<a href="https://lendedu.com/blog/college-graduates-salary-expectations-realities/"> LendEDU</a>, college students expected a median salary of $60,000 after graduating. 52% of college students took out student loans to attend college, and of that number, 17% had trouble paying for it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fhol56wxuWmRrO%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fhol56wxuWmRrO%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fhol56wxuWmRrO%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="184" frameborder="0" scrolling="no"><a href="https://medium.com/media/1336c590c3f439d076105d3e917963f4/href">https://medium.com/media/1336c590c3f439d076105d3e917963f4/href</a></iframe><p>This made me question: <strong><em>what makes college worth attending</em></strong>?</p><h4>Methodology</h4><p>I looked at over 900 schools (after data cleaning) and 8 school features, listed below (sourced through <a href="https://www.payscale.com/college-salary-report/bachelors">PayScale</a>, <a href="https://data.world/">Data.World</a>, and <a href="https://www.usnews.com/best-colleges/rankings/national-universities">US News &amp; Reports</a>).</p><ol><li>Meaning Percentage (continuous) — how many graduates find their work meaningful?</li><li>STEM Percentage (continuous) — what percentage of degrees conferred were STEM-related (Science, Technology, Engineering, Mathematics)</li><li>School Type (categorical) — engineering, private, religious, art, for sports fans, party school, liberal arts, state, research university, business, sober, ivy league</li><li>State (categorical) — where the school is located</li><li>Tuition (continuous) — includes in-state, out-of-state, and room-and-board costs</li><li>Total Enrollment (continuous) — how many students enrolled in the school</li><li>Diversity Enrollment (continuous) — enrollment for minority groups (Asian, Black, Hispanic, Native Hawaiian/ Pacific Islander, Native American/ Alaskan Native, women, and non-residents)</li><li>School Rank (categorical) — I binned rank by Top 50, Top 100, Top 150, Top 200, Top 250, and Over 250 to include the schools not listed in the Top 250.</li></ol><p>You can find a preview of the final DataFrame below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/47a064278b064a83d33cbf437a22082f/href">https://medium.com/media/47a064278b064a83d33cbf437a22082f/href</a></iframe><p>My baseline model used 75% of the data to build a logistic regression model that predicts whether schools have an expected income of $60,000 or more, then used the remaining 25% to test my model’s accuracy. My final model signified which features carry the most weight in predicting salary.</p><p>Our <strong><em>null hypothesis </em></strong>claims that the features do not have any impact on expected income. Our<strong><em> alternate hypothesis</em></strong> claims that features do have an impact on expected income.</p><h3>Target Variable — Expectation vs. Reality</h3><p>Our data showcases that early-career salary for college graduates average out to $50,000 and has a median of $49,000. Of all the colleges we looked at, only 10.2% actually have an early-career salary of $60,000 or more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*xrHQBr4CLeUVyj4FUkowzw.png" /><figcaption>Histogram by Author</figcaption></figure><p>Because I built a logistic regression model instead of a linear regression model, I engineered the target variable, over_60000, from the early-career salary column, with early-career salaries of $60,000 labeled as True, and early-career salaries of less than $60,000 as False.</p><h3>Baseline Model with Skikit-Learn</h3><h4>Building My Model</h4><pre># import necessary libraries<br>import statsmodels as sm <br>import sklearn.preprocessing as preprocessing <br>from sklearn.linear_model import LogisticRegression<br>from sklearn.model_selection import train_test_split <br>from scipy import stats</pre><pre>#Define dependent and independent variables<br>X = colleges_df.drop(columns=[&#39;over_60000&#39;], axis=1)<br>X = pd.get_dummies(X, drop_first=True, dtype=float)y = colleges_df[&#39;over_60000&#39;].astype(float)</pre><pre>#Split data into training and testing <br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, random_state=42)</pre><pre># Fit model <br>logreg = LogisticRegression(fit_intercept=False, C=1e12, solver=&#39;liblinear&#39;)<br>model_log = logreg.fit(X_train, y_train)</pre><p>I used Scikit-learn to build my baseline model by defining my target variable, over_60000, as y, and all the rest of the columns in the DataFrame, my features, as X. I used the get_dummies method to deal with my categorical variables.</p><p>Once I fit my data into the model, I checked the results.</p><h4>Measuring My Model</h4><p>Because I predicted whether schools will earn graduates an early-income salary of $60,000 or more, I wanted to prioritize my precision score over recall. Remember, <strong><em>precision</em></strong> is calculated from all the<em> predicted </em>values, whereas <strong><em>recall</em></strong> is calculated from all the <em>true</em> values (<a href="https://towardsdatascience.com/accuracy-precision-recall-or-f1-331fb37c5cb9">this blog</a> does a great job explaining the difference). I wouldn’t want to tell a student that the school they’re attending has an expected early-income of $60,000 or more when in reality, it doesn’t. However, it wouldn’t hurt if my model told a graduate their school <em>does not </em>expect an early-career salary of $60,000 or more, but they actually do. A pleasant surprise and delight, I’d say.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*0L7T2nZny2CBTeLtbgn_oQ.png" /><figcaption>Baseline Confusion Matrix by Author</figcaption></figure><p>The <strong><em>confusion matrix</em></strong> on the left showcases how well my baseline model predicted the test data. My baseline predicted 12 schools had an expected salary of over $60,000, but only 6 schools actually met the criteria, resulting in a 50% precision score. No bueno!</p><h4>Iterating My Model</h4><p>Clearly, I still had a lot of work to do to improve my precision score. You can find the iterative process on my<a href="https://github.com/christianmoya/Expected_Income_After_College"> GitHub</a>, but to not bore you with the details, here’s a quick summary of it all:</p><ul><li>I toyed with the training size of my data with Scikit-Learn’s train_test_split to see which training size gave the best results</li><li>I trimmed down features based on their statistical significance shown on Statsmodel</li><li>I dealt with class imbalance using SMOTE and by specifying the class weight when fitting my model (though both actually did not do anything to improve my precision score- it actually dropped down to 10%. Like how does a logistic regression model that just predicts True of False score that poorly?)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*Fq02i3YGtOwuGUaSGleLSA.png" /><figcaption>Final Confusion Matrix by Author</figcaption></figure><p>After multiple iterations, my final model predicted 24 schools met the expected salary target. Of the 24 schools, 18 hold true, resulting in a precision score of <strong>75%</strong>, <em>an increase of 25% from my baseline model</em>. Side note: my accuracy score went from 91% to 94% as well. Hallelujah!</p><h3>Results</h3><p>My finalized model used 70% of the data to train, left the class imbalance as is, and essentially only used 3 features: rank (Top 50 and Top 100), school type (engineering, for sports fans, liberal arts, and research), and enrollment of minority groups (primarily for Asian graduates and women). The results can be found below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*_ZQB_3DoR5Mnij5QQpS7Sw.png" /><figcaption>Bar Graph by Author</figcaption></figure><p>Initially, I thought my model’s findings further proved the inequality we find in society, where <a href="https://www.payscale.com/data/gender-pay-gap#section02">women make 81 cents</a>, <a href="https://www.payscale.com/data/gender-pay-gap#section03">Asian graduates make 95 cents, and other racial minority groups make 77 cents on average</a> to every dollar White men make. But when I look further at the results as a whole, it also suggests that occupation still plays a large role in salary, not the school itself.</p><p>So I wondered, are more Asian graduates going into engineering fields than women? Are the schools that rank in the top 50 primarily engineering schools? Does the income gap exist whether students graduated from college or not?</p><h4>Conclusion</h4><p>Because this model just looked at college features and their impact on early-career salary, it provides so little context to the larger picture. College graduation plays such a minute role in salary, so it’d be interesting to broaden the scope and include additional features outside of which college you attend. Perhaps with a different model, we can find ways to eliminate the gender and racial pay gap.</p><p>If you read this blog to determine if and/or which school you should attend based on my model’s findings, I’d suggest following your heart and go where it feels right. Perhaps this is the “feeling” over “thinking” part of my personality type that got me in student loan debt in the first place, but I’ll admit to no regrets. College helped me learn so much about myself and got me to where I am today, even if my major does not match what I’m doing now. It’s all about the experience. And for that, I’d gladly pay again.</p><p>More on the <a href="https://github.com/christianmoya/Expected_Income_After_College">code</a>, <a href="https://github.com/christianmoya/Expected_Income_After_College/blob/main/Is%20College%20Worth%20It_.pdf">non-technical presentation</a>, and <a href="https://www.linkedin.com/in/christian-moya/">me</a>.</p><p><em>Was college worth it for you? Why or why not?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdbb272152cb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/what-makes-college-worth-it-cdbb272152cb">What Makes College Worth It?</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[Diversity in Top-Grossing Films … or the Lack Thereof]]></title>
            <link>https://medium.com/codex/diversity-in-top-grossing-films-or-the-lack-thereof-7031b399bc49?source=rss-607b0c65e1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7031b399bc49</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[film]]></category>
            <category><![CDATA[diversity-and-inclusion]]></category>
            <dc:creator><![CDATA[Christian Moya]]></dc:creator>
            <pubDate>Thu, 04 Mar 2021 21:29:29 GMT</pubDate>
            <atom:updated>2021-03-10T20:59:31.521Z</atom:updated>
            <content:encoded><![CDATA[<h4><a href="http://medium.com/codex">CODEX</a></h4><h3>Diversity in Top-Grossing Films … or the Lack Thereof</h3><h4>A Data Science Project on the Top Grossing Actors of 2010–2020</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ARIT_FYqrjuaMdwknI4clQ.jpeg" /><figcaption>Illustration by Author</figcaption></figure><p>In previous years, film studios received criticism regarding the lack of diversity in their cast. Movements like <strong>#OscarsSoWhite</strong> in 2015 and <strong>#whitewashedOUT</strong> in 2016 demanded more representation in Hollywood.</p><p>So when assigned a project to offer business recommendations to Microsoft if the company were to enter the film industry, diversity and inclusion emerged at the forefront of my analysis. I looked into the racial makeup of the top-grossing actors to test whether the Box Office responded to those demands, asking “<em>How has the demographic of top-grossing actors changed since 2010?</em>”</p><h3>Methodology</h3><p>For this project, I gathered data on the top-grossing actors from the years 2010–2020 from <a href="https://www.the-numbers.com/">the-numbers</a> and ethnicity data from <a href="https://ethnicelebs.com/">ethnicelebs</a>, then created visualizations using Seaborn and Matplotlib to enrich the analysis. Recommendations came to follow.</p><h3>Data</h3><p><strong>Top-Grossing Actors of 2010–2020</strong><br>The-numbers offered DataFrames with the top 100 grossing actors for the years 2010–2020. The DataFrame showcased the actors’ <strong><em>star score</em></strong>, a score given to an actor based on the number of top-grossing films they’ve featured in for the last three years, and <strong><em>average billing</em></strong>, signifying their importance in the film.</p><p><strong>Racial Category Data</strong><br>Ethnicelebs provided ethnicities for each actor in the DataFrame. The <a href="https://www.census.gov/topics/population/race/about.html">Census Bureau</a> limits race to 5 <strong><em>racial categories</em></strong>: White, Black, Asian, Native Hawaiian/ Pacific Islander, and Native American/ Alaskan Native, with Native American/ Alaskan Native defined as people originating from North, Central, and South America. Hispanics and Latino are considered an ethnicity, not a race. For that reason, Hispanics and Latinx are not included as a racial category. If given more time for the project, I would look into representation for Hispanics and Latinx in Hollywood as well.</p><p>Ethnicities in Asia were classified as Asian. Ethnicities in Africa were classified as Black. Ethnicities in Hawaii or the Pacific Islands were classified as Native Hawaiian/ Pacific Islander. I understand this is in no way representative of how the actors identify themselves so there are some inaccuracies and limitations to this method.</p><p>Actors were categorized by keywords contained in their “ethnicity” string found on ethnicelebs.com. In some cases, particularly for Johnny Depp and Jeremy Renner, actors had an ounce of African blood, which led to the actor’s racial categorization as Black. Because that did not reflect the representation needed in Hollywood and significantly skewed the data for BIPOC (Black, Indigenous, People of Color), we updated the database with more accurate information.</p><p><strong>DataFrame</strong><br>Below, you’ll find the complete DataFrames for 2010 and 2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c0BS2_TDE_Lkr0AoIjYRAw.png" /><figcaption>2010 Top Grossing Actors — Photo by Author</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2IotLdq_HoDHYNFK-Z1rTg.png" /><figcaption>2020 Top Grossing Actors — Photo by Author</figcaption></figure><p>Quickly glancing at the data, we find an immediate shift from 2010 to 2020, with 2010’s top 5 grossing actors being Robert Downey, Jr., Taylor Lautner, Shia LaBeouf, Christian Bale, and Robert Pattinson (<strong><em>all White men</em></strong>), and 2020’s Top 5 being Samuel L. Jackson, Dwayne Johnson, Danai Gurira, Chadwick Boseman, and Letitia Wright (<strong><em>all People of Color</em></strong>, <strong><em>4 men and 1 woman</em></strong>). With a complete DataFrame, we can visualize a holistic picture of the top 100 grossing actors across the 11 years.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F2vr9fVPtlUfNrOP5x8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F2vr9fVPtlUfNrOP5x8%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F2vr9fVPtlUfNrOP5x8%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/25c98f95a27239d7841580fb21d8f966/href">https://medium.com/media/25c98f95a27239d7841580fb21d8f966/href</a></iframe><h3>Exploratory Data Analysis &amp; Data Visualizations</h3><p>The plot below represents the star scores for all BIPOC actors in the Top 100 Grossing Actors from 2010–2020. By 2019, average star scores have gone up by <strong>72%</strong> for Black actors, <strong>36.7%</strong> for Native American/Alaskan Native actors, <strong>21.5%</strong> for Asian actors, and from non-existent to 377.5 for Native Hawaiian/ Pacific Islander actors (Rock on, Dwayne Johnson!), signifying films with a diverse cast do better in the box office.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*fHoGNQBxKJg82W6XHrVCiQ.png" /><figcaption>Photo by Author</figcaption></figure><p>Our findings also showcase the steady growth of BIPOC actors in the top 100 across the years, especially for Black actors. This is great news, but when we look comparatively at the representation BIPOC actors carry in contrast to White actors, BIPOC actors remain<em> underrepresented, </em>accounting for<em> </em><strong>32% </strong>for all minority groups <strong><em>combined</em></strong>, as seen in the bar plot below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*sS_54YHYTgX8V_NdqAS70g.png" /><figcaption>Photo by Author</figcaption></figure><p>Additionally, we find that BIPOC actors have a higher<strong><em> billing average</em></strong>. In performing arts, billing is a number that signifies your importance in a film. Actors with a lead role get a billing of 1 (think Leonardo DiCaprio in Titanic) while supporting actors attain a higher billing (such as the hobbits like Pip and Merry in the Lord of the Rings). Our analysis shows that the billing average has gone up <em>significantly</em> for 3 racial groups: <strong>1.8 to 7.8 </strong>for Black actors, <strong>1.9 to 10.6 </strong>for Asian actors, and <strong>3.6 to 24 </strong>for Native American/ Alaskan Native actors, meaning BIPOC actors cast for less important roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*DxH4jAkj8qdkadjzFinrvQ.png" /><figcaption>Photo by Author</figcaption></figure><h3>Conclusion</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FDQV9wDZsazic8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FDQV9wDZsazic8%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FDQV9wDZsazic8%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="288" frameborder="0" scrolling="no"><a href="https://medium.com/media/615946b2065fb945636b4d25f616faa1/href">https://medium.com/media/615946b2065fb945636b4d25f616faa1/href</a></iframe><p>Hollywood has done an okay job adding more representation for BIPOC actors in top-grossing movies, but we still find that BIPOC actors aren’t getting lead roles. Their narratives wiped out. In turn, we limit ourselves when we limit the type of content we watch. Imagine how much our perspective can broaden when we learn about other people’s points of view. Microsoft understands the “transformative power of engaging many different perspectives.” Showcasing people of color’s stories carries the power to do just that.</p><p>On top of that, an audience as diverse as the United States seeks to watch films where we feel seen and represented. Diverse audience members demand films that reflect the cultures they hold. The hashtags #OscarsSoWhite and #whitewashedout got us this far, but we can still keep fighting for more.</p><p>Here’s more on the <a href="https://github.com/christianmoya/Phase1_Project">code</a>, <a href="https://github.com/christianmoya/Phase1_Project/blob/main/Microsoft%20Film%20Analysis%20Deck.pdf">non-technical presentation</a>, and <a href="https://www.linkedin.com/in/christian-moya/">me</a>.</p><p><em>What progress do you still hope to find in Hollywood? Comment below.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7031b399bc49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/diversity-in-top-grossing-films-or-the-lack-thereof-7031b399bc49">Diversity in Top-Grossing Films … or the Lack Thereof</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Teaching to Data Science]]></title>
            <link>https://medium.com/data-science/from-teaching-to-data-science-5d6d712f6a3f?source=rss-607b0c65e1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d6d712f6a3f</guid>
            <category><![CDATA[career-transitions]]></category>
            <category><![CDATA[teaching]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Christian Moya]]></dc:creator>
            <pubDate>Sun, 21 Feb 2021 23:44:25 GMT</pubDate>
            <atom:updated>2021-02-22T04:46:46.518Z</atom:updated>
            <content:encoded><![CDATA[<h4>How and Why I Transitioned from Teaching Elementary School to Data Science</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_M6R61Y1UJsJOssXWaKaA.png" /><figcaption>Photo by Author</figcaption></figure><h3>Be What You Want to Be</h3><p>When I first started browsing career choices, I <em>almost</em> immediately turned away from data science because of the requirements listed in the job postings:</p><ul><li>Coding Experience in Python, SQL and/or R</li><li>Masters or a PhD in computer science, engineering, math, or statistics</li><li>5+ years of experience as a Data Scientist</li></ul><p>At the time, my coding skills were super limited, my Masters degree had nothing to do with data science, and my career experience revolved around fighting inequities for Black and Brown children as an elementary school teacher. Already buried in student loan debt, getting another Masters degree did not seem like the best approach. I deemed a career in data science a far-fetched dream.</p><p>But one afternoon, while wrapping up our Social Studies unit on “Barrier Breakers”, like Katherine Johnson, Misty Copeland, and Sonia Sotomayor, the lesson‘s objective I planned for my students echoed back to me, boldly chanting:</p><blockquote>“You can be whatever you want to be.”</blockquote><p>I loved teaching, and I loved the purpose behind it. But I also wanted to explore ways to make a difference beyond my classroom. Already exposed to the impact data had on closing gaps in reading and math skills for my students, I was eager to use data science as a powerful tool to make a change.</p><p>Though I did not qualify for a data science job just yet, I had to <em>believe </em>in myself and put in the work, similar to the barrier breakers that came before me. Here’s how I used my experience as a teacher and gained additional technical skills needed to transition over to a field in data science.</p><h3>Transferrable Skills</h3><p>A great teacher wears many hats on a given day- we are entertainers, counselors, reporters, professional shoe-tiers, just to name a few. Because we do everything, I thought of ways my teaching experience can boost my candidacy amongst the pool of data scientists. Below is a list of a couple of teaching skills that transfer over to the data science profession.</p><ul><li><strong>Presenting to a non-technical audience — </strong>Teachers and data scientists alike must communicate information in a clear and concise manner to an audience that’s well-versed in topics outside of data science, may it be Roblox or ROI’s. I spent the majority of my day breaking down concepts, like fractions, to 6-year olds. If my first graders got excited sharing how they “<em>partitioned</em> their pancakes into halves, thirds and fourths” on their free time in the cafeteria, I feel confident that I can talk through the relevance of a z-score with business stakeholders.</li><li><strong>Math Knowledge</strong> — Though elementary, a large chunk of my day revolved around math, including data collecting and analysis. My favorite math unit, hands down, has to be the first unit in the 3rd grade curriculum, “Data and my Class Community.” In the first six weeks of school, my students learned how to collect, graph and interpret data. Each group came up with a question, something they wanted to learn about their classmates. They went around collecting that data, created a bar graph or pictograph based on the data they collected, then analyzed their results. At the end of the unit, not only did my students learn what the class’s favorite magical creature was, they learned how math is relevant to them.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bWM_-BluUF8g4taLPDAFIg.png" /><figcaption>3rd Grade “Data and my Class Community” Projects — Photo by Author</figcaption></figure><ul><li><strong>Data-Driven Analysis </strong>—The primary reason why I wanted to enter the field of data science: to use data to make better decisions. Prior to every unit, we assessed what students already knew in reading, writing and math. Based on those assessments, we figured out which topics we’d need to cover more in depth, or what we could quickly review. For students falling far behind, we held small group interventions and targeted the skills they had yet to acquire. Because we used data, we were able to monitor their progress and expedite their growth. I’m so proud to say that every student falling behind in reading and math got to grade level by the end of the year, and students already on grade level came out even stronger than before.</li></ul><h3>Gaining New Knowledge</h3><p>Though a teacher wears many hats, coding is not one of them. In order for me to successfully transition to a career in data science, I needed to develop my technical skills. I started off small, first testing to see if a career in data science was right for me. Then the more I learned, the more invested I became. I listed out my steps below, and I would definitely recommend going in this order too, given the time and financial investment for each.</p><ul><li><strong>Codecademy,</strong> $40/month — Codecademy’s Data Science Career Track built my foundation for data science, it’s where I went immediately after attending data science information sessions. I had NO coding experience at all, but Codecademy walked me through how to code in python and SQL, then gave me the opportunity to write the code out myself. It could seem elementary at first, but I really appreciate the simplicity of its curriculum. Once I gained enough coding skills, the site presented projects that put my coding skills to the test. I will admit too that I still refer to Codecademy even now for refreshers or when I’m introduced to something new.</li><li><strong>Community College, </strong>free potentially, but definitely cheaper than a university— I personally paid $800 because I lived right outside San Francisco’s border line. Taking classes at City College of San Francisco filled a lot of knowledge gaps and gave me a nice refresher on topics essential to data science. In one semester, I took Multivariable Calculus, Linear Algebra, and Statistics and Probability. It was a challenging, math-loaded semester, but fun nonetheless. If you plan on joining a bootcamp, I especially suggest taking the math courses in advance if you haven’t already. The bootcamp’s curriculum covers a semester’s worth of content in one day. It doesn’t give the learner enough time to digest the material. If your local community college offers other data science related classes too, I definitely would recommend taking those as well. The more you learn, the more prepared you are.</li><li><strong>Bootcamp, </strong>$15,000 — If you’re considering a career in data science and have no technical background, I would definitely recommend joining a bootcamp. It is a <em>big</em> financial investment, yes, but a bootcamp helps you develop the skills you need for a career in data science, and offers the support you need to do so. I’m currently enrolled in Flatiron’s part-time online program. At first, I was worried because I learn so much better in person, but the online program still offers that community feel, which helped a lot. At flatiron, you’ll have 5 projects that you can add to your profile. These projects are great because you gain so much experience from it- you’re coding, analyzing results, presenting analysis and recommendations to business stakeholders, and presenting your code to a technical audience. You’re gaining hands-on experience as a data scientist, which you can talk about to potential employers when the time comes.</li><li><strong>Internship, </strong>free — At the time of writing this, I’m just starting my internship at Apple as an MVT Data Science Analyst. I will say everything I’ve mentioned above, both transferrable skills and new knowledge, helped prep me for my interview process. I’m excited to use what I learned through my bootcamp and Codecademy to build and create models that can be applied to real world problems. An internship can also be a great networking opportunity. I’ll write more about this later as my journey continues.</li></ul><h3>Conclusion</h3><p>Transitioning out of teaching and into data science has been a long journey, but a thrilling one to say the least. I’ve been able to gain a lot of skills through Codecademy, community college, and my bootcamp, and know that my skillset will only grow with more experience. Although I miss teaching from time to time, I’m excited to use my data science skills to work on projects that make a difference.</p><p>So for those of you that don’t have a technical background, don’t fret. If there’s a will, there’s a way. Just remember, you can be whatever you want to be.</p><p><em>If you’re transitioning into the data science field, I’d love to know, how did you use your experience to help you in your journey?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d6d712f6a3f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/from-teaching-to-data-science-5d6d712f6a3f">From Teaching to Data Science</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>
    </channel>
</rss>