<?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 Sucheta Jawalkar on Medium]]></title>
        <description><![CDATA[Stories by Sucheta Jawalkar on Medium]]></description>
        <link>https://medium.com/@sucheta-jawalkar?source=rss-3a0eeb003852------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Xu9p8QndtiYPvb56AfSz_w.jpeg</url>
            <title>Stories by Sucheta Jawalkar on Medium</title>
            <link>https://medium.com/@sucheta-jawalkar?source=rss-3a0eeb003852------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:49:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sucheta-jawalkar/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[What separates a great data scientist from a good one? — updated for AI!]]></title>
            <link>https://sucheta-jawalkar.medium.com/what-separates-a-great-data-scientist-from-a-good-one-updated-for-ai-058cae618a29?source=rss-3a0eeb003852------2</link>
            <guid isPermaLink="false">https://medium.com/p/058cae618a29</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[soft-skills]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[context]]></category>
            <category><![CDATA[curiosity]]></category>
            <dc:creator><![CDATA[Sucheta Jawalkar]]></dc:creator>
            <pubDate>Mon, 01 Dec 2025 17:03:36 GMT</pubDate>
            <atom:updated>2025-12-01T17:03:36.454Z</atom:updated>
            <content:encoded><![CDATA[<h3>What separates a great data scientist from a good one? — updated for AI!</h3><blockquote><em>Good Data Scientist: Python, R, SQL, engineering skills, Spark, AI assisted coding + longer list of technical skills</em></blockquote><blockquote><em>Great Data Scientist: Subset of the above + Curiosity, Context building, Clarity in communication, Reproducibility in work.</em></blockquote><p>AI-assisted coding tools have changed how we do our work, making it easier to get coding projects off the ground. This is great!</p><p>The skills to level yourself up from a good data scientist to a great one can be learned with practice, and I describe two additional ways that can help updating the four ways here — <a href="https://sucheta-jawalkar.medium.com/what-separates-a-great-data-scientist-from-a-good-one-6058ee1800cd">What separates a great data scientist from a good one?</a></p><p><em>A key thing to keep in mind before moving forward — similar to technical skills, building up your people skills is an investment in yourself and does take time and effort. This is worth it!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/0*cML4TkYLLKM0NwGO.png" /></figure><p><strong>1. Build context</strong></p><p>Plug and play AI assisted coding tools have little to no context for your use case. This means it is still the data scientist’s job to gather context for the value proposition at hand. For-example, we have seen the memes of <a href="https://www.reddit.com/r/aiArt/comments/ybnj7n/the_ai_prompt_was_salmon_in_the_river/">salmon jumping in a stream</a> — which was the early example of missing context.</p><blockquote>Spend time with your product team and subject matter experts to identify edge cases and sanity checks and context guardrails for your AI-assisted code. Adding context can be done manually in the code or by tuning the AI-models/adding weights to prompts.</blockquote><h4><strong>2. Be curious</strong></h4><p>I was SO excited to see the AI-assisted code reviews. My role has evolved from IC to lead and I spend a lot of time on code reviews. My initial excitement was dampened when I saw the first results of the AI-reviewer. For starters, the AI-reviewer was missing context for our work and sending that review to the developer without any edits would be “work-slop” on my part.</p><p>I started using the AI reviewer as a starting point, and then became curious what could be and could not be leveraged.</p><blockquote>Ask 3 questions to yourself and then ask as many people that will engage — does the AI-produced result need more context? Does the data exist to support this work in deployment? Is this work scalable?</blockquote><p>Thank you to my many human code reviewers, product managers, engineering partners that know how to move beyond that snazzy POC and serve customers at scale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=058cae618a29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploration of Econometrics Modeling to study Promotion Profitability in the CVS Front Store]]></title>
            <link>https://medium.com/cvs-health-tech-blog/exploration-of-econometrics-modeling-to-study-promotion-profitability-in-the-cvs-front-store-64c795d0e141?source=rss-3a0eeb003852------2</link>
            <guid isPermaLink="false">https://medium.com/p/64c795d0e141</guid>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[econometrics]]></category>
            <dc:creator><![CDATA[Sucheta Jawalkar]]></dc:creator>
            <pubDate>Fri, 17 May 2024 18:24:52 GMT</pubDate>
            <atom:updated>2024-05-17T18:24:52.198Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Sucheta Jawalkar, Duygu Yasar, Haotian Wu, Tarjani Shah, Duygu Dagli</em></p><p>We use econometric modeling and basket analyses to study the challenging problem of measuring the true impact of promotion profitability faced by retailers like CVS. The work was inspired by Ailawadi et al (2006), who used CVS data and claimed that about 45% of promotions [yellow tags] do not generate the expected margin. We complemented this work by reviewing the updated methods from the 2018 master’s thesis by Pesonen.</p><p>When an item (SKU) is promoted, it generally stimulates demand temporarily and generates a unit lift. Measuring the performance of a promotion based on this lift only provides a partial view. There are three more major effects to consider. These are:</p><ol><li>Halo</li><li>Cannibalization via Switching</li><li>Cannibalization via Stockpiling</li></ol><figure><img alt="A CVS yellow tag promotion with 20% off sales offer." src="https://cdn-images-1.medium.com/max/370/1*jy9YiWhs3UYKZiEmxTHSiQ.jpeg" /></figure><p><strong>Halo</strong> refers to the item being placed on promotion in one category and as a result there are other purchases across the store as the customer takes advantage of that promotion. Concretely, if there is a promotion on peanut butter, the accompanying halo will include bread.</p><p><strong>Cannibalization via Switching</strong> refers to an item placed on promotion transferring demand from non-promoted items in the same category. For example, if CVS brand Ibuprofen is on promotion, demand could be transferred from name-brand Ibuprofen.</p><p><strong>Cannibalization via Stockpiling</strong> refers to the impact of the customer buying large quantity of items that are on promotion and then no longer needing that item for a long time in the future. In the CVS Front store context, an example would be promotions on Cereal that lead to stockpiling of Cheerios.</p><p>As a start we focused our study on Halo and Cannibalization via Switching.</p><p><strong>Halo</strong></p><p>To study Halo, we conducted a basket analysis over one year to study the most purchased categories together in customer transactions. At the fortune 4 scale, this represents a significant computational exercise, and we were able to get significant code optimization enhancements by switching our tech stack from pandas to NumPy to get the basket analysis computed in under 5 mins for the entire CVS assortment.</p><p>We saw a clear trend of consumables purchased in the same customer basket demonstrating the association needed for the Halo effect.</p><figure><img alt="Market basket analysis." src="https://cdn-images-1.medium.com/max/1024/1*65QOk3MvN7Wgp0zSYafAJw.jpeg" /></figure><p><strong>Cannibalization via Switching</strong></p><p>For the case of cannibalization, we built a regression model leveraging the CVS Front Store Product Hierarchy I.e. Category, Sub-category, Segment, SKUs. An example of this product hierarchy is Personal Cleansing Category has a Sub-category for Body Wash Products which has a Segment for Bodywash Men’s. We assumed that the switching would happen at the segment level.</p><p>At CVS, planned promotions generally cover a group of products (SKUs) called an ad block. For example, a Buy 1 Get 1 50% off Vitamin promotion will impact multiple vitamin SKUs. These SKUs will generally be promoted together throughout the year. As the SKUs in the same ad-block will be on or off promotion at the same time, we built our model at the segment — ad-block level:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*_DTTqmWgqSIHqD1Ch4JRfA.jpeg" /></figure><p>The left-hand side of the model equation is the segment-level units sold, in week <em>t</em> and the right-hand side of the equation is the ad block level gross lifts for each ad block in geography <em>i</em>, in week <em>t</em> in that respective segment. The Adblock Lift is defined as the incremental unit sales generated by the promotion:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*yFPu0BEic38h3soU-B2C5w.jpeg" /></figure><p>During promotion periods, we only observe sales while the promotion is active and do not know what the baseline sales would have been without the promotion. To predict baseline sales, we used our proprietary promotion forecasting models.</p><p>As CVS has over 8000 stores with local demand variations, we controlled for geographic effects. We interpreted the significant coefficients associated with each ad-block in the segment.</p><p>The Switching percentage, <em>(1 — βn )</em> for each ad block<em> n</em> is interpreted as the percentage of demand transferred from non-promoted SKUs. Our study indicated that over 10% of gross lift from promotions in the CVS Front store showed demand transference with statistical significance.</p><p>We recommended an actionable insight by creating a new margin calculation by including the negative impact of demand transference on the yellow tag promotions to best inform our business partners in setting promotion strategy for the front store.</p><figure><img alt="Simulated Data." src="https://cdn-images-1.medium.com/max/1024/1*tqdJITtAm8oU9sbrjdpDRQ.jpeg" /></figure><p>We deprioritized <strong>cannibalization via stockpiling</strong> effects as our literature review indicated that was more applicable to larger grocery style retailers as compared to the CVS Front Store convenience retail model. Additionally, the methodology has certain limitations as it does not capture the stockpiling between different sizes of the same item.</p><p>This is only the beginning for using modeling methods for cannibalization and halo in promotion decisions. We strongly recommend retailers re-reevaluate their promotion strategies considering the margin impact caused by promotion secondary effects.</p><p>We are grateful to our engineering partners and business partners for supporting this work.</p><p><strong>References:</strong></p><ol><li>Ailawadi Kusum, Harlam Bari, César Jacques, Trounce David. (2006). Promotion Profitability for a Retailer: The Role of Promotion, Brand, Category, and Store Characteristics. Journal of Marketing Research — J MARKET RES-CHICAGO. 43. 518–535. 10.1509/jmkr.43.4.518.</li><li>Pesonen, Aleksi. (2018). Quantifying Promotion Effectiveness for a Retailer. Master’s Thesis, Aalto University School of Business, Spring 2018.</li></ol><p><strong>© 2024 CVS Health and/or one of its affiliates. All rights reserved.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64c795d0e141" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cvs-health-tech-blog/exploration-of-econometrics-modeling-to-study-promotion-profitability-in-the-cvs-front-store-64c795d0e141">Exploration of Econometrics Modeling to study Promotion Profitability in the CVS Front Store</a> was originally published in <a href="https://medium.com/cvs-health-tech-blog">CVS Health Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What separates a great data scientist from a good one?]]></title>
            <link>https://sucheta-jawalkar.medium.com/what-separates-a-great-data-scientist-from-a-good-one-6058ee1800cd?source=rss-3a0eeb003852------2</link>
            <guid isPermaLink="false">https://medium.com/p/6058ee1800cd</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[soft-skills]]></category>
            <category><![CDATA[data-science-training]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[management-and-leadership]]></category>
            <dc:creator><![CDATA[Sucheta Jawalkar]]></dc:creator>
            <pubDate>Thu, 15 Apr 2021 18:37:53 GMT</pubDate>
            <atom:updated>2025-12-01T15:15:08.374Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Good Data Scientist: Python, R, SQL, engineering skills, Spark + longer list of technical skills</blockquote><blockquote>Great Data Scientist: Subset of the above + Empathy, Tailored communication, Active Listening, Adaptability</blockquote><p>The skills to level yourself up from a good data scientist to a great one can be learned with practice, and I describe four ways that can help. For each of the four examples, my work with undergraduates helped me enormously.</p><p>Your stories and experiences may be different from mine, but you may recognize common themes. Perhaps the model and metrics looked great to you but the stakeholder was unconvinced; or there was organizational pushback to putting your model in production; or there were engineering constraints you had not taken into account and you felt like you wasted work or there was a lot of rework, etc.</p><p>A key thing to keep in mind before moving forward — similar to technical skills, building up your people skills is an investment in yourself and does take time and effort. This is worth it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*xG0TrZtvxZtc1YGp8vNwJg.png" /></figure><h3>1. Show, not tell</h3><p>There is nothing more demoralizing for a professor than a student who regularly sleeps in your class which starts at 11:30 a.m. This happened to me and I was determined to keep this person awake and hopefully teach them something. Determined and prepared, I ceremoniously filled a rusty, metal bucket with water, tied the bucket handle to a rope and then spun the bucket over my head to demonstrate the centripetal force. I had the rapt attention of over 60 people all waiting for their professor to be doused by a bucketful of water. Once everyone was properly awake, it was a lot easier to introduce involved calculus.</p><p>The skill to capture and maintain interest from a stake holder has been key in my Data Science career. This skill has helped me tailor my language, gauge my audience and demonstrate concrete examples of use cases without losing my audience in the technical jargon of a model.</p><blockquote>Work your way through the <a href="https://www.amazon.com/Craft-Scientific-Presentations-Critical-Succeed/dp/0387955550">The Craft of Scientific Presentations: Critical Steps to Succeed and Critical Errors to Avoid by Michael Alley</a>. This is a completely practical guide and has some great pointers on tailoring to an audience.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bDWbknQg3FHlK4RwouHBzQ.png" /><figcaption>Screenshot of the Table of Contents from the The Craft of Scientific Presentations by Michael Alley — <a href="https://www.amazon.com/Craft-Scientific-Presentations-Critical-Succeed/dp/0387955550">https://www.amazon.com/Craft-Scientific-Presentations-Critical-Succeed/dp/0387955550</a></figcaption></figure><h3>2. Managing expectations and creating transparency</h3><p>Setting up murky grading expectations generally invites the wrath of a class-full of 19 year olds and does not lead to good learning outcomes. I learned early on as an undergraduate instructor the importance of setting expectations early and often. It was much easier to communicate information at a regular cadence — three times a week, every week, fully knowing that deadlines could move if a health situation came up or there were other extenuating circumstances.</p><p>The practiced ability to set expectations and create transparency with my manager and my colleagues meant that I was able to contribute to the team right away, and when I made a commitment, I was generally able to follow through unless there were clear extenuating circumstances. Communicating at a regular cadence also meant that my colleagues were quickly able to point out when something was not right, which led to early diagnosis and quicker resolution of blockers. I found that this had an empowering effect on the team. It was rare that I was the only person facing a particular technical issue and during my “over-communication” people would chime in with solutions or indicate solidarity by demonstrating that they were having the same problem.</p><blockquote>Keep a daily log of what you have accomplished for the day, similar to a daily standup with yourself. Share it with your manager and colleagues. When annual performance review time rolls around refer back to your log to steer yourself and your manager away from recency bias. Over time, the list will also help you be reflective and help find blindspots, get better estimates for work, and make sure projects are aligned with your career goals.</blockquote><h3>3. Leverage organizational support</h3><p>I developed and taught a hands-on, lab based class that taught physics to people that did not care about physics and had no mathematical background but were required (re:forced) to take a lab based course as a graduation requirement. A legally blind student walked into my office and told me that she had heard good things about my version of the course and would like to take it. I know she felt my incredulity even though she could not see me. I reminder her that she would be required to build projects and work with circuits to get a passing grade. She was persistent. Not knowing what to do, I walked straight into my chairs office and told her that I would like to help a blind student take my course but I had no clue how. My chair was incredibly supportive with words and with a budget. She connected me with disabilities services and a talented TA; and found the budget to hire the TA. A legally blind young woman thrived in my hands-on, project based class.</p><p>I learned the skill of being persistent and asking for organizational support for asks that I felt were impossible for me to handle on my own. I found that my managers and leads are very open to clearing roadblocks if I concretely communicate what I need — even if the ask seems impossible at first.</p><blockquote>If you have a creative idea that can deliver business value but don’t have the resources you need — speak up! Talk to your colleagues in engineering, product, and data science. They may have a broader view of resource allocation, may have more access and be completely supportive.</blockquote><h3>4. Empathy, Safety and Active Listening</h3><p>I would often get students that wanted to work on improving their grades, when this happened I was able to leverage a solution that was right for them. Sometimes that solution was a metacognition exercise where we would go through a quantitative form to measure their effort versus result to locate areas where they were not preparing enough. My goal was to witnessed a person have an “Aha” moment that diagnosed their issue and then they had something concrete to overcome. Other times the solution to a performance issue was to ask them to get a good nights sleep and find ways to reduce testing anxiety. These different solutions require some focussed listening, empathy and creating an environment where a person feels safe sharing their struggles. For example, poor listening leads to asking an over-prepared student to study more leading to more anxiety and worse test grades.</p><p>In the corporate context, the skills of empathy, safety and listening translated over seamlessly. Data scientists also appreciate a judgement free zone where they could fail and learn to get back up again. I am often able diagnose issues for colleagues mostly by listening and providing a judgement free zone. I enable individuals to arrive to a realization on their own. The temporary discomfort of sitting with the issue in a consequence-free setting is enormously helpful when coming up an effective, and lasting solution.</p><blockquote>You can start your journey with the help of this 2015 PyCon talk by Sasha Laundy — <a href="https://www.youtube.com/watch?v=hY14Er6JX2s">Your Brain’s API: Giving and Getting Technical Help.</a> Sasha primarily focusses on how to ask for help without being scared and how to provide help without being a jerk.</blockquote><p><em>Thank you to Michele Callson, Pauline Ugalde, Kyle Takeuchi, Grace Chesmore and so many students that were all my mentors. They gave me the courage to change career paths. Thank you to John Birmingham, Keith Griffioen, and Betty Young for showing me that empathy is my strength and not my weakness.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6058ee1800cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Daily Demand Sensing Enhancements for Weekly Forecasting Models]]></title>
            <link>https://medium.com/walmartglobaltech/daily-demand-sensing-enhancements-for-weekly-forecasting-models-dee7a494dce4?source=rss-3a0eeb003852------2</link>
            <guid isPermaLink="false">https://medium.com/p/dee7a494dce4</guid>
            <category><![CDATA[forecasting]]></category>
            <category><![CDATA[retail]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Sucheta Jawalkar]]></dc:creator>
            <pubDate>Fri, 28 Aug 2020 03:12:44 GMT</pubDate>
            <atom:updated>2020-08-28T03:12:44.895Z</atom:updated>
            <content:encoded><![CDATA[<h3>Weekday Demand Sensing for Weekly Forecasting Models</h3><p><em>Authors: Sucheta Jawalkar, Chinmay Jha</em></p><p>The SMART Forecasting team at Walmart Labs is tasked with providing demand forecasts for over 500 million store-item combinations every week! For example, just how many strawberries need to go to every Walmart store in the U.S., every week for the next 52 weeks, with the goal of improving in stocks and reducing food waste.</p><p>We demonstrate a simple linear modeling approach to introduce forecast enhancements based on weekend sales. This algorithmic approach has been readily adopted by our business partners and has consistently delivered business impact over the past year.</p><blockquote>In addition to boosting the quality of the demand forecasts the algorithm reduces forecast adjustment touches for busy demand managers without adding additional ETL overhead.</blockquote><p>Our store forecasting models are trained at scale every week and weekly forecasts delivered every Monday. We do not incorporate the most recent weekend sales into our models as our ETL processes start after Friday data has come in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*FZWZanJ4Psae7yhfSx5s6w.jpeg" /></figure><p>The idea for <strong>In Week Adjustments (IWA)</strong> project came from a Demand Manager in the produce department that had a similar adjustment tool he devised and implemented which we will call <strong>Weekend Sales Correction</strong> from the <strong>Store Optimization Tool (SOT)</strong>. The “Weekend Sales” correction which uses “replenishment rules” to make practical-for-store forecast adjustments by accounting for factors such as days of supply and case pack sizes. IWA algorithm introduces Store-level historical sales patterns and linear models to predict the demand.</p><p>On Monday morning, use the weekend produce sales and the weekly SMART forecast to determine if the items are over or under selling, and adjust forecast for Tuesday through Friday if needed.</p><p>Use a simple linear model to forecast demand for Tuesday through Friday</p><p>demand = A*Saturday sales + B*Sunday sales + C* system forecast</p><p><strong>Model Training</strong></p><p>We estimate of the proportion of expected weekend sales, based on historical data which we use to classify an item-store combination as overselling if it sells more than 110% of the weekly forecast and as underselling if it sells less than 60% of the weekly forecast. These values have been hardcoded to mimic the “Weekend Sales Correction” tool. We then train separate linear models for underselling and overselling item-store combinations, using the Saturday sales, Sunday sales and weekly forecast as the independent variables.</p><p><strong>Model Scoring</strong></p><p>On Monday morning, we have the latest weekend sales data. We repeat the process of flagging an item-store combination as overselling or underselling. For those item-store combinations as overselling (underselling), we use the trained overselling (underselling) linear models to generate a new predicted forecast. The predicted forecast is then distributed across Tuesday to Friday, depending on historical proportion of sales on these days of the total weekly sales. Finally, we ensure that the adjustments being recommended by the algorithm for Tuesday to Friday adhere to the business rules for replenishment accounting for factors such as case packs, safety stock, max/min adjustments, promotions etc.</p><p><strong>Impact</strong></p><p>To evaluate how well the IWA model performed, we performed a comprehensive backtest across all categories in produce and grocery for a period of 12 weeks. As shown in the plot below, IWA showed tremendous promise as evidenced by BPS improvement in over 70% of produce categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NzlYeYuYK8JekfiZn0Ohvg.png" /><figcaption>72% of categories showed a basis point improvement in a backtest across 12 weeks</figcaption></figure><p>For the produce department, the algorithm has consistently delivered week on week 40+ basis improvement in the forecast accuracy metric. It has successfully caught the forecast shoulders at the beginning and end of highly seasonal items like strawberries providing over 70+ basis points improvements for the week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OkKxu1ZpZkiqlw5T_bxurQ.png" /><figcaption>Improved SMAPE week on week for strawberries</figcaption></figure><p>Since its implementation in March 2019, the IWA algorithm has successfully delivered hundreds of basis points improvements week on week and helped reduce food waste and improve in stocks.</p><p><em>Thanks to Micah Nichols for many conversations explaining the SOT tool, Sasanka Katta for the product idea and product support, Lachlan Bubb for the algorithm development and implementation; John Bowman and Anton Bubna-Litic for technical feedback; Avi Dixit for ETL and Tableau support.</em></p><p>I have a Ph.D. in experimental nuclear physics from <a href="https://www.wm.edu/as/physics/">The College of William and Mary</a>, was a postdoctoral associate at <a href="https://phy.duke.edu/">Duke University</a> and <a href="https://www.scu.edu/cas/physics/faculty/sucheta-jawalkar/">Physics faculty</a> at Santa Clara University where I modeled petabytes of scattering data to understand the structure of the tiny building blocks of the known universe. I am an Insight Data Science Fellow, an Aspen scholar and love working on machine learning at scale!</p><p>Chinmay completed his Masters in Business Analytics from Massachusetts Institute of Technology and Bachelors in Technology from Indian Institute of Technology, Madras. As an Associate Product Manager in the SMART Forecasting team, he helps build machine learning products to solve business problems in the retail and e-commerce space.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dee7a494dce4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/walmartglobaltech/daily-demand-sensing-enhancements-for-weekly-forecasting-models-dee7a494dce4">Daily Demand Sensing Enhancements for Weekly Forecasting Models</a> was originally published in <a href="https://medium.com/walmartglobaltech">Walmart Global Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random Forests for Store Forecasting at Walmart Scale]]></title>
            <link>https://medium.com/walmartglobaltech/random-forests-for-store-forecasting-at-walmart-scale-82af5b55a4db?source=rss-3a0eeb003852------2</link>
            <guid isPermaLink="false">https://medium.com/p/82af5b55a4db</guid>
            <category><![CDATA[walmart]]></category>
            <category><![CDATA[scale-models]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sucheta Jawalkar]]></dc:creator>
            <pubDate>Tue, 16 Jul 2019 21:53:39 GMT</pubDate>
            <atom:updated>2019-07-16T21:53:39.191Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Written by Sucheta Jawalkar, John Bowman</em></p><p>The SMART Forecasting team at Walmart Labs is tasked with providing demand forecasts for over 70 million store-item combinations every week! For example, just how much of every type of ginger needs to go to every Walmart store in the U.S., every week for the next 52 weeks, with the goal of improving in stocks and reducing food waste.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*rNZ_wlRBzJ-dSM5rbFUeZQ.jpeg" /></figure><p>Our algorithm strategy was to build a suite of machine learning models and deploy them at scale to generate bespoke solutions for (oh so many!) store-item-week combinations. Random Forests would be part of this suite.</p><p>We went through the traditional model development workflow of data discovery, identifying demand drivers, feature engineering, training, cross validation and testing.</p><p><strong>Feature Engineering and Proof of Concept</strong></p><p>The model inputs are drawn from domain expertise and include</p><ul><li>Store level features like geographical location, size of the store, days since the store was opened</li><li>Date features like month, and day of the week</li><li>Event uplift features like Christmas, Thanksgiving and the like</li><li>Uplift features coming from the Supplemental Nutritional Assistance Program (SNAP) for low income families</li><li>Lag features such as the average sales over the last two weeks</li></ul><p>We established the proof of concept for bananas which is one of Walmart’s highest velocity items and evaluated the Symmetric Mean Absolute Percent Error as our forecast accuracy metric. We found that the SNAP features are among the most important ones for bananas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3lIryUBP8590FO8CeyJLQ.png" /></figure><p>We then looked at the results for</p><ul><li>apples</li><li>packaged salads</li><li>spare ribs and back ribs</li></ul><p>The three categories each come with unique issues for demand forecasting and tend to be good tests for any model entering the algorithm suite. Random Forests outperformed the existing Gradient Boosting Machine and state space model for apples, indicating a viable solution with large scale business impact.</p><p>We then ran the Random Forests model for all the categories in meat and produce and evaluated our metric on the test set, which is a period of 52 consecutive weeks held back from the training data.</p><p>Our models are trained on features built from seven years of sales history. The training happens mid week and the prediction happens after the Friday sales have come in. The prediction has to happen in a short time window and all forecasts have to go to replenishment over the weekend.</p><p>The Random Forests model was pickled, zipped and stored in an object store in the middle of the week. The model was then pulled out of the object store on Friday and used to predict demand.</p><p><strong>Research Matters (bad pun alert!)</strong></p><p>We evaluated three options to get around the adoption blocker —</p><p>The <strong>first</strong> was to see if we could reduce the number of features and throw ourselves down the rabbit hole of hyper parameter tuning. Turns out there is a super cool paper by <a href="https://hal.archives-ouvertes.fr/hal-00436358/document">S. Bernard. L. Heutte and S. Adam</a> which has many valuable insights about tuning the number of features selected at each node. We took the <a href="https://medium.com/@antoine_savine/sobol-sequence-explained-188f422b246b">Sobol’ Sequence</a> route over the multidimensional hyperparameters instead of a grid search with promising early results. Hyperparameter tuning is a slow process. Hyperparameter tuning at Walmart scale is a <em>very</em> slow process.</p><p>The <strong>second</strong> was to evaluate alternate implementations of the Random Forests. Scikit-learn gave the best metric performance so we planned to stick with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*Ke4pHGB4p-8HlYc2WWGTLg.jpeg" /></figure><p>The <strong>third</strong> solution was a High Performance Computing option. Python stores all conceivably useful information in its model file. A minimal model file can be constructed by parsing the model object before writing it out, saving only the relevant data. We can also store fields using minimal size representation for example, thresholds, values as floats (half the size of doubles), feature IDs as short integers (half the size of integers; node IDs as integers. We used zstd multithreaded compression instead of gzip compression (everywhere!)</p><p>We tested the HPC solution and found an order of magnitude improvement. Concretely for mangoes, the model size went from 12.58 GB in Python to 1.02 GB in C++; and the scoring time went from 30 minutes to 27 seconds.</p><p>Pause for quiet reflection.</p><p><strong>Outlook</strong></p><p>We concluded that Random Forests are a viable, scalable option to forecast demand for high velocity items with broad seasonal trends that don’t have a lot of spiky behavior e.g. apples, mangoes, ginger and garlic. We are currently in the process of extending our work to categories in produce and testing the model on several other departments!</p><p><em>Thanks to John Bowman for technical leadership, HPC work; Ritesh Agarwal for HPC work; to Amir Motaei for technical feedback; Anton Bubna-Litic for feature engineering work; Abhishek Kumar for ML engineering support; and Abhinav Prateek for product support.</em></p><p>I have a Ph.D. in experimental nuclear physics from <a href="https://www.wm.edu/as/physics/">The College of William and Mary</a>, was a postdoctoral associate at <a href="https://phy.duke.edu/">Duke University</a> and <a href="https://www.scu.edu/cas/physics/faculty/sucheta-jawalkar/">Physics faculty</a> at Santa Clara University where I modeled petabytes of scattering data to understand the structure of the tiny building blocks of the known universe. I am an Insight Data Science Fellow, an Aspen scholar and love working on machine learning at scale!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82af5b55a4db" width="1" height="1" alt=""><hr><p><a href="https://medium.com/walmartglobaltech/random-forests-for-store-forecasting-at-walmart-scale-82af5b55a4db">Random Forests for Store Forecasting at Walmart Scale</a> was originally published in <a href="https://medium.com/walmartglobaltech">Walmart Global Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Where do we fit in?]]></title>
            <link>https://sucheta-jawalkar.medium.com/where-do-we-fit-in-6a788cab077d?source=rss-3a0eeb003852------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a788cab077d</guid>
            <category><![CDATA[biracial]]></category>
            <category><![CDATA[diversity]]></category>
            <category><![CDATA[census]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[middle-class]]></category>
            <dc:creator><![CDATA[Sucheta Jawalkar]]></dc:creator>
            <pubDate>Thu, 19 Oct 2017 22:52:58 GMT</pubDate>
            <atom:updated>2018-01-31T20:16:23.125Z</atom:updated>
            <content:encoded><![CDATA[<p>The <a href="https://blog.insightdatascience.com/preparing-for-the-transition-to-data-science-e9194c90b42c">Insight Data Science</a> blog recommends the best way to put your data science tools to work is to</p><blockquote>Determine a question you may be interested in answering by using data. What are you passionate about? What would make your life more efficient? What would improve the city you live in?</blockquote><p>then use your Data Science tools to answer that question.</p><p>My partner and I often talk about what city we could move to or where we could live in the U.S. that would be a good fit for our values and priorities. We are a mixed couple with graduate degrees and a biracial child.</p><p>On the quest to “fit in” I asked the question, “where are the people that are like us?”</p><p>That is my daughter below with her “question” face also similar to “confused” face and “I am not eating that” face.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*9kxnVTN3NFh-Wo07OYAisw.jpeg" /></figure><h3>Preprocessing</h3><p>I generated a census API key and queried data from the 2000 Census Summary File 3 and used Pandas and the SciKit Maching Learning package in a Jupyter notebook to look at 23 <a href="https://api.census.gov/data/2000/sf3/variables.html">census variables</a> for 3219 counties in the U.S.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C5w1e6UkaIDuIj40BKXs3A.png" /></figure><p>I imported the csv file into a Jupyter notebook. The data frame above includes population based on race, marital couples with children under 18, home ownership, education level, and aggregate family income. For example, the variable name H011002 in the above data frame corresponds to owner occupied housing units.</p><p>I then created a smaller data frame of 17 columns to look at populations of non-white citizens with family income over $100K, black males over age 25 and a graduate degree, and Asian females over age 25 and a graduate degree. To make sense of these data I wanted to be able to visualize or rank it in some way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yfi2x9nbyXd4D5yQ5NC-vQ.png" /></figure><h3>PCA</h3><p>I used Principal Component Analysis (PCA) method to reduce the dimensions of the data from 17 to 2. The first step was to find the mean and variance of the data and normalize each data column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dq8oh65CYl_sIxGvqYbYng.png" /></figure><p>The next step was to compute the covariance matrix and get the U matrix using single value decomposition. After implementing this, I found that the Sci-Kit package had a PCA library that could be used directly so I used that and the tools that came with it to look at the variance captured by the first two principal components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TGu2ADlq6htGYcLuNAYMzw.png" /></figure><p>The first principal components captures over 80% of the variance and the second is around 8.4%. It would be nice if the numbers were higher but their sum was close enough to 90% so I felt comfortable using this is an good enough method to make sense of these data.</p><p>I used <a href="http://sebastianraschka.com/Articles/2015_pca_in_3_steps.html">Sebastian Raschka’s PCA in the 3 Simple steps</a> method to get the eigenvectors for the new feature space and reconstruct 3219 rows of data in the new feature space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQhE_Vy5q9B5lTOlOBlaOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w6I20Sxt4hbRB1C409I2aQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SZuVqUVrb0795y5qlzarPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AM3HZ7gEu2hnP-iwqFaCkQ.png" /></figure><h3>Ranking PCA 1</h3><p>I took the reconstructed data in the Y matrix above and appended a counter starting at 0 to match the data frame with the raw data. I then sorted the new feature array using the first Principal component. I struggled with if this was the correct thing to do even though it seemed like the natural thing to do. I would love some feedback here! Looking at the results was somewhat comforting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CfAoW8mRfj0dXzzslFKgqA.png" /></figure><p>I selected the first 10 and last 10 rows of the column and matched the counter in column 3 to the counter in the raw data to get the top 10 and bottom 10 counties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9El70ZuE2u8S59Zrw3-MYw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T3q0Ck5IG30qcTYCyMJG6Q.png" /></figure><h3>Results</h3><p>Here are my results!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*uGKvy8b-Nu_Z-CYg3LmPhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*U5psEDDai7MBE2xrIWRKTQ.png" /></figure><p>The results of the first component ranking indicates several California counties, Queens NY, Phoenix and Chicago area. All seem like diverse population counties. I intentionally did not normalize the data because we favor large cities with major airports.</p><h3>Double Check</h3><p>As this was my first independent data science project and I needed some type of check to look for gross errors. I repeated the analysis above selecting white populations, white homeowners, families with children under 18, and aggregate family income over 100K. I have a data frame of 10 columns for the 3219 counties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SLoJXoh9MLDYAVkIarizPQ.png" /></figure><p>I was expecting at least a few common counties. The results for this new smaller data frame were!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*rD4HI32uc3MXC93UUQoVfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*D-Xt6-PkkhOOuDVp9XsNGQ.png" /></figure><p>I had multiple counties match!</p><h3>PCA Second Component</h3><p>I wanted to investigate further and come up with an interpretation for the second principal component from my original census data sample. I used the housing_edit data frame for the results below. As a first attempt, I looked at the top and bottom ten counties using the second principal component ranking. The results for the bottom 10 included several Bay Area counties, some even from the top 10 of the first component ranking!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*47Ib6GON2msIG2bEIgEjqw.png" /></figure><p>Here is a list of the top 10. Not a single California county!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*YfMbGafSHCB2OHTK6Tnwag.png" /></figure><p>All diverse city areas with a large population of educated, black males. PCA 1 is a general measure of asian or mixed, high population areas whereas PCA 2 is partial to counties with large educated population of black males over 25. Tech recruiters — here are the counties you can recruit from!</p><h3>Next Steps</h3><p>The next steps for this project would be run the code for the 1960, 1970, 1980, 1990, and 2010 census data files and plot the ranking for the TOP and BOTTOM 10 counties as a function of time.</p><p>I could then fit the time dependencies with a realistic model and predict what the ranking would be for the next few decades.</p><h3>Conclusion</h3><p>I was stunned that the data tend to confirm the Bay Area Tech diversity problem. I also realized that I still wasn’t sure I wanted to live in any of those counties listed in my TOP 10. I learned that maybe I do not care all that much about “fitting in”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*L77t24HzDOWkfcNieQebgQ.jpeg" /></figure><p>In retrospect, maybe I should have asked “How far do I want to travel for Thanksgiving?”, or “Where could me and my partner both have happy careers?”, “Where would we find a place so my family is treated with kindness and civility?”</p><p>I hope you had fun reading this! I would love to hear any feedback you have.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a788cab077d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>