<?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 Manasa Gudimella on Medium]]></title>
        <description><![CDATA[Stories by Manasa Gudimella on Medium]]></description>
        <link>https://medium.com/@manasa.gudimella?source=rss-d8f8b9423faf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gc87ZnSKVE7ojeQb3l9rBA.jpeg</url>
            <title>Stories by Manasa Gudimella on Medium</title>
            <link>https://medium.com/@manasa.gudimella?source=rss-d8f8b9423faf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:29:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manasa.gudimella/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[Writing technical papers in data science]]></title>
            <link>https://medium.com/data-science-at-microsoft/writing-technical-papers-in-data-science-01a2fe618ced?source=rss-d8f8b9423faf------2</link>
            <guid isPermaLink="false">https://medium.com/p/01a2fe618ced</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[technical-writing]]></category>
            <dc:creator><![CDATA[Manasa Gudimella]]></dc:creator>
            <pubDate>Tue, 11 Jun 2024 07:17:13 GMT</pubDate>
            <atom:updated>2024-06-11T07:17:13.536Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*CXk73Yx4RRjos0r7AmBM9A.png" /><figcaption>Wordcloud generated in Python from the reviews I’ve provided as a peer reviewer for various research papers.</figcaption></figure><p>Congratulations on completing your first technical paper after extensive research and hard work. Now, you might be wondering, what’s next? If you’re aiming to publish in a reputable journal, it’s crucial to familiarize yourself with the peer review process and ensure that your submission is polished and ready — either for direct acceptance or for minor revisions leading to publication. In this article, I share essential tips and insights that I’ve learned to enhance your paper’s readiness and maximize its chances of acceptance. The guidelines presented here are based on my experience in ML and AI research; however, they may need adjustments for other fields. I focus on key topics that can help you avoid major pitfalls, so use this article as both a navigation tool through reviewer comments — identifying major versus minor revisions — and a practical checklist to align your paper with the journal’s standards and expectations.</p><h3><strong>Crafting the title and abstract</strong></h3><p>When reviewers assess a paper, they typically start with the abstract and then examine the results and conclusions. This initial review determines the paper’s relevance and whether further examination is warranted. Thus, clarity in the abstract is crucial. Make the problem statement clear and concise, devoid of unnecessary jargon. Use simple language that is accessible to a broad audience, and if specialized terminology is essential, provide a brief explanation to ensure understanding.</p><p>In the abstract, it is important to succinctly highlight the methods used in the study, giving just enough context to clarify what was done and how it builds upon or differs from previous work. Emphasize your most significant findings and be specific to substantiate your conclusions.</p><p>Keep in mind that most journals and conferences strictly enforce word limits for abstracts, which are intended to be succinct summaries of your work.</p><p>Ensure that the title of your paper accurately reflects its content. Make it concise and yet descriptive enough to convey the topic and outcomes without being overly lengthy.</p><p>Incorporating keywords relevant to your field can enhance the visibility of your paper in search results. Consider what terms researchers might use to locate your work; these keywords can also be included in the paper’s keywords section.</p><p>Avoid jargon and abbreviations unless absolutely necessary, as they can obscure meaning and alienate readers unfamiliar with the terminology.</p><p>While the primary goal of publishing a paper is not merely to garner citations, a well-crafted abstract and title significantly enhance the likelihood of your work being cited and recognized in the field.</p><blockquote><strong>Pro tip</strong>: Although they come first when the final article is presented to readers when published, consider writing the abstract and title last, after you’ve written your paper. It’s much easier to sum up what you’ve written in an abstract and title after you’ve written it than it is to try to think ahead to a “capsule” version of what you want to say.</blockquote><h3><strong>Results and discussion structure</strong></h3><p>In my view, this is arguably the second most scrutinized section of any research paper, following the abstract. Readers seek concrete numerical evidence to assess the impact of your findings. Therefore, this section must be precise and clear. Utilize tables and charts as necessary to effectively present data, and ensure that each table and figure is explicitly explained.</p><p>When relevant, it’s crucial to distinguish key performance indicators (KPIs) from model performance metrics. Additionally, incorporating statistical measures such as p-values and confidence intervals can substantiate your findings. Augmenting these with qualitative results, when applicable, can enrich the reader’s understanding of your data. Consider using narratives, case studies, or excerpts from data, such as interview transcripts, to provide deeper insights.</p><p>Integrity and transparency are paramount. Enhance these qualities by including error analysis where applicable. Identify and discuss sources of error in your data or methodology and be transparent about your research’s limitations.</p><p>Consider contextualizing your results by comparing them with leading works or benchmarks in your field. Such comparisons can underscore the advancements your research introduces or how it addresses existing gaps. Discuss how your methodology diverges from existing approaches and the impact of these differences on your results. This is particularly crucial in fields like AI, where even incremental improvements can have significant implications.</p><p>Overall, it’s essential to structure this section clearly as readers often skim through information quickly. Presenting the material in an organized, structured way helps them find what they need efficiently, enhancing their engagement with your work.</p><h3>Methodology precision</h3><p>Sections on methodology hold particular importance for me when reviewing papers, partly due to my enthusiasm for details (yes, I’m a bit of a nerd!) and because they are crucial in any technical research paper, especially in AI and data science. A meticulously detailed methodology section ensures that your study can be critically evaluated, replicated, and built upon by others. For clarity, let’s consider a hypothetical research paper that utilizes Convolutional Neural Networks (CNNs) for object detection.</p><h4><strong>Algorithm description</strong></h4><p>Providing detailed descriptions of the algorithms, or at least properly citing works that can be referenced to understand the used algorithms, is vital. This clarity allows readers to grasp the exact mechanics behind your results, which is essential for critical analysis. For instance, when discussing CNNs, detail the architecture, including convolutional layers, pooling layers, fully connected layers, and activation functions. Moreover, explaining how parameters, such as learning rates, were chosen and tuned can significantly affect the algorithm’s performance and outcomes.</p><p>What information is essential for reproducibility? By thoroughly describing the algorithms, including their parameters and configurations, you enable other researchers to accurately reproduce your results. For the CNN example, specify the number of convolutional layers, any padding used for inputs, input shape, kernel size, and so on. A precise algorithm description aids in validating the results through testing in different scenarios or with various datasets.</p><h4><strong>Preprocessing and data integrity</strong></h4><p>Clear documentation of data preprocessing steps, such as normalization, handling of missing values, and data augmentation, is crucial to maintain data integrity and ensure the data is suitable for analysis. It’s important to note that data processing techniques may vary for different ML tasks, such as supervised learning using regression, decision trees, random forests, and xgboost, versus deep learning for text or image data. In the CNN example, preprocessing for image data might include changing the resolution of images, tilting them, or basic steps like normalization and cropping. These techniques are specific to the data at hand and the objective of the research. Detailed documentation of preprocessing can significantly influence the outcome of an experiment. Clarifying these steps in the paper adds a layer of robustness to your methodology.</p><h4><strong>Data sources</strong></h4><p>Detailing the sources of your data, whether they are public datasets, proprietary data, or synthetic data, provides context for your results and allows others to assess the validity and generalizability of your findings. Ethical considerations, such as transparency about data sources, also address critical issues like privacy and bias, which are increasingly important in AI research.</p><h4><strong>Reproducibility</strong></h4><p>While not mandatory, there is a growing trend toward open science practices, including data and code sharing. Providing details about the computational environment (such as software versions and hardware specifications) aids in replicating the study under similar conditions. A reproducible methodology enhances the scientific rigor of your paper, laying a firm foundation for trust in your results and contributing to the cumulative knowledge building in the field, allowing future research to stand on solid, verifiable grounds.</p><h3>Literature review</h3><p>The literature review is often the most time-consuming part of writing a research paper. It requires identifying relevant literature and spending considerable time reading and understanding it. If possible, effectively demonstrate the historical progression of ideas, key debates, and existing gaps that your research aims to address. This sets the context, demonstrating the relevance and necessity of your work.</p><p>Typically, journals have specific formatting preferences for this section and provide clear guidelines in their templates. For example, IEEE citation style often requires listing the names of one or more author(s) of works reviewed. For each body of research you mention, it is crucial to explain the research questions addressed and link them back to your own research area. This not only demonstrates scholarly rigor but also establishes that your research is built on a solid foundation.</p><p>When you mention each body of work deemed relevant in your literature review, introduce your unique perspective by adopting various approaches and maintaining a balance between breadth and depth, which is necessary to support your argument. For instance, include critiques of various methods. The most critical aspect is to properly cite relevant works. Often, papers specify how they should be properly cited — so follow suit. This practice ensures appropriate visibility and gives credit to the authors you reference.</p><h3>Formatting and citations</h3><p>Although it may be the most tedious and least creative task, proper formatting and citation are crucial to the acceptance of your paper. Ensure that headings and subheadings are formatted correctly, which includes appropriate use of size, font, color, and styles like bold or italics. Verify that the page layout and column structure — whether single or double-column — adhere to the journal’s guidelines. Tables and figures must comply with the journal’s requirements regarding numbering and presentation. For tables, ensure that editable versions or images meet the acceptance criteria.</p><p>Headings, font sizes, and keywords should align with the template guidelines provided by the journal. References must be meticulously revised to match the specified format. For instance, IEEE formatting requires references to be listed alphabetically. The standard format should begin with the author’s last name and first initial, followed by the title of the work, the publication journal in italics, and the year published. It is crucial to ensure that all citations are accurate and unmanipulated, including strict adherence to the guidelines concerning self-citations — both author self-citations and journal self-citations may or may not be allowed.</p><h3>Conclusion</h3><p>Writing a research paper is no easy feat; it is a time-consuming process that demands attention to detail and significant dedication. However, it is equally important to allocate sufficient time for a second pass to refine the paper for peer reviewers and eliminate potential major red flags by addressing the points discussed in this article. I like to think of the review process not just as a hurdle, but as an opportunity to enhance and polish the work, bringing it one step closer to publication. Envisioning the greater reward that awaits — the satisfaction of passing the peer review “litmus test” and seeing your work published — is not just a milestone, but a testament to your commitment to advancing in your field. Embrace this process with enthusiasm as each step in refining your paper contributes significantly to your professional growth and the impact of your research.</p><p><em>Manasa Gudimella is on </em><a href="https://www.linkedin.com/in/manasa-gudimella/"><em>LinkedIn</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01a2fe618ced" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-at-microsoft/writing-technical-papers-in-data-science-01a2fe618ced">Writing technical papers in data science</a> was originally published in <a href="https://medium.com/data-science-at-microsoft">Data Science + AI at Microsoft</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From reviews to insights: Building analytic applications with Large Language Models in e-commerce]]></title>
            <link>https://medium.com/data-science-at-microsoft/from-reviews-to-insights-building-analytic-applications-with-large-language-models-in-e-commerce-ad28ee60e2a7?source=rss-d8f8b9423faf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad28ee60e2a7</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[e-commerce-business]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Manasa Gudimella]]></dc:creator>
            <pubDate>Tue, 11 Jul 2023 07:18:17 GMT</pubDate>
            <atom:updated>2024-07-11T20:57:43.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*uviNxgikqly3pVpAXFQ4Vw.jpeg" /><figcaption>Image generated by Microsoft-internal implementation of DALL·E 2.</figcaption></figure><p>Recently, I had the opportunity to co-present a guest lecture for business graduate students, the future program managers and technical program managers of the corporate world. Intending to present them with a use case reflective of problems they might face in the business world, I chose to focus on generative AI applications for analyzing a product review dataset.</p><p>In the modern e-commerce landscape, one key application of Generative AI is its utilization in analytics, particularly in the analysis of customer product reviews. These reviews, provided by customers post-purchase, form a rich dataset that is present across numerous businesses, particularly e-commerce platforms.</p><p>This type of dataset, similar to a gold mine, holds wealth — in this case, of business opportunities. From it, we can derive personalized recommendations, rank products based on sentiment, and even compare specific product aspects. Additionally, we can identify customer preferences, craft targeted marketing campaigns, and detect areas needing improvement. This introduction to the power of Generative AI in analytics merely scratches the surface, hinting at the depth of possibilities this technology offers.</p><p>How does one delve into such a dataset? Fortunately, the process is straightforward. In this article I show how, beginning with extracting reviews using a reviews API and followed by deploying Machine Learning models to identify product aspects and sentiment.</p><p>In a conventional Machine Learning workflow, extracting sentiment involves collecting a labeled dataset and training numerous models for different tasks. For each task — whether sentiment analysis, product aspect extraction, or topic clustering — different models must be trained and maintained. But these models are often still considered “black boxes” as they lack explainability, further complicating the process. Indeed, this methodology is not only intensive, but also consumes a great deal of time.</p><p>But the landscape has dramatically shifted with the advent of Large Language Models (LLMs). These models have revolutionized the analysis process, presenting new avenues for more efficient and effective examination. By using one model to handle multiple tasks, LLMs enable significant speed improvements in application development.</p><p>Before diving into the analysis of customer review data, let’s first set up the necessary environment. Start by loading the <a href="https://openai.com/">OpenAI</a> library. (! pip install openai in the related Python Jupyter notebook) and acquiring your API key. For security, store this key using an environment variable or a secret management service. Here are the instructions to set up your API key in your environment variables: <a href="https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety">Best practices for API key safety</a>.</p><p>Familiarize yourself with OpenAI’s various models to understand which one suits your needs and check their pricing details to gauge potential costs. Here’s documentation on their handy completions endpoint that I’ve used in my code: <a href="https://platform.openai.com/docs/api-reference/completions/create">Endpoint completions</a>.</p><p>Once set up, execute the Python code via the completions endpoint. The meticulously crafted prompt in the code below instructs the model on multiple tasks while ensuring a properly formatted output for easier downstream processing. This includes handling reviews with no expressed sentiment, lengthy off-topic discussions, or missing data.</p><p>Detailed model instructions are crucial for successful deployment in production environments, emphasizing the importance of robust prompt engineering. Despite requiring iterative efforts, prompt engineering can be mastered with numerous available resources. In our example, we have set the model’s temperature to 0 to ensure mostly deterministic outputs, as OpenAI’s models are non-deterministic by default. Adjusting the temperature is crucial based on application needs: lower for deterministic responses (as in AI chatbots), or higher for creative applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*lwokM6M3DF_AniDO-LitRA.png" /></figure><p>Here is the formatted output produced by the model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*LIKusnFmJo3w5XNkfCl88w.png" /></figure><p>The use of LLMs in this way enhances transparency for stakeholders compared to traditional models by allowing for a deeper dive into the reviews sentiments. Not only can stakeholders see which sentiment was assigned, but LLMs can also pinpoint and highlight the specific sections in the review that contributed to this sentiment. This level of justification, which contrasts with the limited explainability in many traditional models, empowers stakeholders with a more comprehensive understanding. It also allows for programmatic sentiment and aspect extraction, which I have illustrated in my <a href="https://github.com/manasagudimella/reviews-analysis/tree/main">GitHub repository</a>. For further exploration, try modifying the prompt to extract emotions, which enables responding directly to highly dissatisfied customers.</p><p>Large Language Models (LLMs) offer a host of applications, including content generation, summarization, classification, categorization, sentiment analysis, data extraction, translation, and more. One significant extension of the application we are building next involves text clustering, which is crucial in grouping product aspects in customer reviews. Customers often express their thoughts using a variety of terms. For example, “brightness,” “contrast,” and “color accuracy,” all refer to the overarching topic of picture quality. To enhance customer feedback comprehension and provide greater explainability, we must group these similar aspects under broader topics, which can be achieved through prompt engineering with LLMs.</p><p>Let us understand this more through a product like a television, where terms like “contrast,” “brightness,” or “pixel numbers” are used, all contributing to picture quality. When summarizing reviews for TV product pages, it makes sense to group these aspects into broader categories, and LLMs can be harnessed to do so using topic clustering, summarization, or grouping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*RzyEWsepS3bTs7tb8i35vw.png" /></figure><p>The approach above employs a <a href="https://www.w3schools.com/gen_ai/chatgpt-4/chatgpt-4_few_shot.php">few-shot</a> prompt template, providing the model with explicit instructions and a handful of examples in the desired input-output format. The advantages of few-shot learning include reducing the need for extensive fine-tuning — saving time and computational resources — and promoting generalization, enhancing the model’s adaptability to different tasks and scenarios.</p><p>For the full implementation, refer to the linked <a href="https://github.com/manasagudimella/reviews-analysis/tree/main">GitHub repository</a>. If you enjoyed this article, please consider following my work and suggest ideas for new content on generative models in the Comments section below.</p><p><em>Manasa Gudimella is on </em><a href="https://www.linkedin.com/in/manasa-gudimella/"><em>LinkedIn</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad28ee60e2a7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-at-microsoft/from-reviews-to-insights-building-analytic-applications-with-large-language-models-in-e-commerce-ad28ee60e2a7">From reviews to insights: Building analytic applications with Large Language Models in e-commerce</a> was originally published in <a href="https://medium.com/data-science-at-microsoft">Data Science + AI at Microsoft</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modeling customer behavior with Markov chains]]></title>
            <link>https://medium.com/data-science-at-microsoft/modeling-customer-behavior-with-markov-chains-61b19e36d2b?source=rss-d8f8b9423faf------2</link>
            <guid isPermaLink="false">https://medium.com/p/61b19e36d2b</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Manasa Gudimella]]></dc:creator>
            <pubDate>Tue, 16 May 2023 07:16:19 GMT</pubDate>
            <atom:updated>2023-05-16T07:16:19.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ae_Ubt-fazLLP5a3EuyKPw.png" /><figcaption>Image generated by Microsoft-internal implementation of DALL·E 2.</figcaption></figure><p>It’s natural for customers to differ in their consumption patterns and behaviors. As cloud services professionals who serve these customers, we must understand these patterns and how they evolve over time. Developing the ability to predict customer behavior offers a strategic business advantage, as it allows cloud service providers to tailor strategies to serve customers across different economic scenarios. In fact, given the competitive nature of the cloud services industry, it may be considered a necessity to have such predictive models in place.</p><p>In this article, I cover approaches to modeling and predicting customer behavior. Specifically, I consider modeling the behaviors of cloud customers with regard to their usage of various cloud products, such as Microsoft Sentinel. The behavior is measured in terms of data consumed by the customer during usage. The unit of consumption I use in this article is GB (gigabytes).</p><p>Consumption is associated with a period over which consumption is measured and the billing cycle is a useful practical unit of time to use. For the problem under consideration the billing cycle is a month. Let 𝑥ₖ be the consumption by a customer in the kᵗʰ month. Usually, the values of 𝑥ₖ have a range of, for example, 0 to 2000 GB. Our interest is in understanding the behavior of 𝑥ₖ over k = 1,2,3,…. In other words, if we know the past behavior of these customers, can we predict the future? For a cloud service provider, the aggregate of the customers’ behaviors is of primary interest.</p><p>It may be desirable to categorize customers into different homogeneous groups to serve each group with relevant promotions. So, to provide better comprehension, we discretize consumption into buckets. This enables us to model the problem as a <em>Markov process</em>. We shall model our problem using Markov chains and try to get some insights into the problem.</p><h3><strong>Markov chains</strong></h3><p>A <em>Markov chain</em> (MC) is a sequence of random variables 𝑥₀, 𝑥₁, 𝑥₂, … with a relaxed concept of independence. It states that for any 𝑛 ≥ 1, the conditional distribution of 𝑥<em>ₙ</em> given 𝑥₀, 𝑥₁, 𝑥₂, … , 𝑥<em>ₙ</em>₋₁ is same as that of 𝑥<em>ₙ</em> given 𝑥<em>ₙ</em>₋₁. As a simple example of a MC, let 𝑥<em>ₙ</em> be the number of heads in a series of coin tosses up to the first 𝑛 tosses. If there are seven heads in the first 10 tosses (i.e., 𝑥₁₀ = 7), then either 𝑥₁₁ = 7 or 𝑥₁₁ = 8 with equal probability. It does not matter how the seven heads were obtained in the first 10 tosses. For the following discussion, we shall assume that 𝑥<em>ₙ</em>, 𝑛 = 0, 1, 2, … is a MC.</p><p><strong>State Space, or 𝑆</strong>, is the set of all possible values of 𝑥<em>ₙs</em>. The elements of 𝑆 are called states of the system. If 𝑥<em>ₙ</em> = 𝑖, we say that the system is in state 𝑖 at time 𝑛. For this article, we shall assume that 𝑆 is a finite set.</p><p><strong>Transition probabilities</strong> involve the conditional probabilities 𝑝ᵢⱼᵐ (𝑘) = 𝑝(𝑥ₖ₊ₘ = 𝑗|𝑥ₖ = 𝑖), which are called 𝑚-step transition probabilities. A MC is said to have <em>stationary transition probabilities</em> provided 𝑝ᵢⱼᵐ (𝑘) is independent of 𝑘. <strong>Unless stated otherwise, we shall assume that the MCs under discussion have stationary transition probabilities</strong>. The one-step transition probabilities play a crucial role in the analysis of systems that are modeled as MCs. For brevity, the one-step transition probabilities are denoted by 𝑝ᵢⱼ instead of 𝑝ᵢⱼ¹. The one-step transition probabilities can be presented by a square matrix 𝑃 where 𝑝ᵢⱼ is its (𝑖, 𝑗)ᵗʰ element. The order of 𝑃 is 𝑁, the number of states in the system. What follows is a simple example of a MC.</p><h4><strong>Example 1</strong></h4><p>Let us consider the example of a cloud customer. On any given month 𝑘, the customer is in one of the following four states:</p><ul><li><strong>State 1 (low usage)</strong>: usage is between 0 to 25 GB.</li><li><strong>State 2 (moderate usage)</strong>: usage is above 25 GB but ≤ 200 GB.</li><li><strong>State 3 (high usage)</strong>: usage is above 200 GB.</li><li><strong>State 0 (left the product)</strong>: stopped using the product for good.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*XvH3ws83XCpI-9iULkqTRg.png" /></figure><p><em>Note that entries in each row add to 1. This is the generic feature of any one-step transition matrix (in fact, it is true also for any 𝑛-step transition matrix where 𝑛 ≥ 1). Next, state 0 is a special state — once the system enters it, it is stuck there forever. Such states are called </em>absorbing states<em>. Because 𝑝</em>₁₀<em> &gt; 0, there is a positive chance that the system starting in 1 may get stuck in 0 forever. For this reason, state 1 is called a </em>transient state<em>. Because there is a positive probability of going from 3 to 1, there is a positive probability of going from 3 to 0 as well. In other words, 3 is also a transient state. Because it is possible to go from 2 to 3, even 2 is transient state</em>.</p><p>There are some important questions to consider regarding the example above. Suppose there is revenue that is generated from the customer that is commensurate with usage. If the customer is in state 1, the charge is $3 per month (pm), for state 2 it is $7 pm, and for state 3, it is $10 pm. An interesting question would then be: How much revenue can be expected from a customer with the above one-step transition matrix?</p><p>Note that the one-step transition matrix entirely determines the behavior of the customer (under the assumption of stationarity, of course). Let’s simplify and look at the revenue of this customer in the first year assuming the customer started out in the low usage state (𝑥₀ = 1). Suppose the behavior of the customer in the first one year is as follows: 𝑥₁= 2, 𝑥₂= 2, 𝑥₃= 2, 𝑥₄=3, 𝑥₅= 2, 𝑥₆= 3, 𝑥₇=1, 𝑥₈= 2, 𝑥₉= 3, 𝑥₁₀= 2, 𝑥₁₁= 1. This means that in the first 12 months, the customer was in state 1 three times, in state 2 six times and in state 3 three times. Therefore, the revenue in the first 12 months is 3𝑟₁ + 6𝑟₂ + 3𝑟₃, where 𝑟₁= 3, 𝑟₂= 7 and 𝑟₃= 10. Therefore, for the given or known behavior in the first 12 months, the revenue is $81.</p><p>As we see, it’s easy to compute revenue when the behavior is known. However, what we don’t know is the <em>future</em> behavior of a customer who is initially trying out a cloud product. All that we know is that first-month consumption is low, i.e., 𝑥₀ = 1. Given this information, let us compute the expected revenue for month 𝑘. Note that this is 𝑟₁ with probability 𝑝⁽<em>ᵏ</em>⁾₁₁ , 𝑟₂ with probability 𝑝⁽<em>ᵏ</em>⁾₁₂, and 𝑟₃ with probability 𝑝⁽<em>ᵏ</em>⁾₁₃. Therefore, the expected revenue for month 𝑘 is 𝑅₁⁽<em>ᵏ</em>⁾ = 𝑟₁𝑝⁽<em>ᵏ</em>⁾₁₁ + 𝑟₂𝑝⁽<em>ᵏ</em>⁾₁₂ + 𝑟₃𝑝⁽<em>ᵏ</em>⁾₁₃. Note that 𝑅₁⁽<em>ᵏ</em>⁾ is nothing but the first entry of the matrix product 𝑃⁽<em>ᵏ</em>⁾<em>r</em>, where the (𝑖, 𝑗)ᵗʰ entry of 𝑃⁽<em>ᵏ</em>⁾ and 𝑟 = (𝑟₁ , 𝑟₂ , 𝑟₃)<em>ᵗ</em>. An interesting and very useful property of a MC with stationary transition probabilities is 𝑃⁽<em>ᵏ</em>⁾=<em>Pᵏ</em>. That is, 𝑝⁽<em>ᵏ</em>⁾<em>ᵢⱼ</em> is the (𝑖, 𝑗)ᵗʰ entry of 𝑃 raised to the power 𝑘. Therefore, the total expected revenue over the first 12 months is given by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*KySy0VdLtqwV1P2m0MosmA.png" /></figure><p>If we wish to find the expected revenue given that the customer started with moderate usage, i.e., 𝑥₀ = 2, the answer is the second entry of the vector (∑𝑃<em>ᵏ</em>) 𝑟.</p><p>For a MC, any sequence of possible values of 𝑥₀, 𝑥₁, 𝑥₂, … is called a <em>random path</em>. Thus, the behavior of a customer is nothing but a random path. In the above example, we had 𝑥₀ = 1, 𝑥₁= 2, 𝑥₂= 2, 𝑥₃= 2, 𝑥₄=3, 𝑥₅= 2, 𝑥₆= 3, 𝑥₇=1, 𝑥₈= 2, 𝑥₉= 3, 𝑥₁₀= 2, 𝑥₁₁= 1. If 𝑥₁₂ = 0, then 𝑥<em>ₙ</em> = 0 for all 𝑛 ≥ 12. The resulting path is (12223231232100 …). This brings us to our second question: What is the expected number of months that the customer is going stay with the product? Fortunately, there are some nice mathematics that provide an answer to this question. Let 𝑄 be the submatrix of 𝑃 that corresponds to only the transient states. For the problem in question:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*R_3Zx5eCRyc8UOJemQoB8A.png" /></figure><p>compute the inverse of 𝐼 − 𝑄 where 𝐼 is the identity matrix of order 3 and then add the columns of the resulting matrix. In matrix notation, compute (𝐼 − 𝑄)⁻¹<em>e</em>. The result is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*KL9eFf9y5vcSbXthPUyEsg.png" /></figure><p>So, a customer who starts with low usage is expected to stay for 33.75 months. A customer starting with high usage is expected to stay for 45 months.</p><h4><strong>Example 2</strong></h4><p>Consider a cloud product that is offered by two different companies, such as a spreadsheet. A new customer wants to take a lifetime membership in one of these two companies. But before deciding, the customer tries the two products. What is the state space to model this problem as MC? Let us define four states: (i) temporarily with Spreadsheet A (state 1); (ii) temporarily with Spreadsheet B (state 2); (iii) permanently with Spreadsheet A (state 3); and (iv) permanently with Spreadsheet B (state 4). Suppose the one-step transition matrix for this is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*XLdvTxx7EDp9h370vHjmhg.png" /></figure><p>Note that 1 and 2 are transient states but also that there are two absorbing states 3 and 4. As before, we can raise two questions here:</p><ol><li>How long does the customer maintain the trial period?</li><li>What is the probability that the customer ultimately decides to become a lifelong customer of Spreadsheet A?</li></ol><p>The answers are in (𝐼 − 𝑄)⁻¹, where:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/513/1*0r1aaOIdOWsE5-qEZa56_A.png" /></figure><p>Therefore, a customer who starts with the Spreadsheet A trial is expected to take 2.083 (= 1.250 + 0.833) months before becoming a lifetime member, and the one who starts with Spreadsheet B is expected to take 1.944 months. This answers the first question. For the second question, we compute (𝐼 − 𝑄)⁻¹𝑞<em>ᴬ</em>, where 𝑞<em>ᴬ</em> = (0.4, 0.3)<em>ᵗ</em>. The result is (0.75, 0.67)<em>ᵗ</em>. So, the probability that a customer who starts with Spreadsheet A and becomes a lifetime member of Spreadsheet A is 0.75; and the probability that someone who starts with Spreadsheet B and becomes a lifetime member of Spreadsheet A is 0.67. To compute similar probabilities of merging into Spreadsheet B, use 𝑞<em>ᴮ</em> = (0.1, 0.3)<em>ᵗ</em>.</p><h4><strong>Example 3</strong></h4><p>Let us now consider a cloud customer who will not leave the company. This is the same set up as in Example 1 with the difference that there is no state 0. In other words, state space 𝑆 consists of three states: low usage (1), moderate usage (2), and high usage (3). Suppose the one-step transition matrix for this problem is given by:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*RiD8gJFJtU3-BOq-7NkFnQ.png" /></figure><p>We say that a state 𝑖 leads to another state 𝑗 if we can find a sequence of states 𝑖₁, 𝑖₂, … , 𝑖<em>ₖ</em> such that <em>pᵢᵢ</em>₁, <em>pᵢ</em>₁<em>ᵢ</em>₂, … , 𝑝<em>ᵢₖ</em>₋₁<em>ᵢₖ</em> and <em>pᵢₖⱼ</em> are positive for some nonnegative integer 𝑘. When 𝑖 leads to 𝑗, we write 𝑖 ⇝ 𝑗. In Example 1, note that 1 ⇝ 2, 2 ⇝ 3 as 𝑝₁₂ and 𝑝₂₃ are positive. Also, 1 ⇝ 3. To see that, take 𝑘 = 1 and 𝑖₁ = 2. A nice tool to understand which states lead to which other states is the graphical presentation of a one-step transition matrix. The 𝑃 of Example 1 can be presented as shown in Figure 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qNKnDT2zWIHplbUGcgmN7A.png" /><figcaption>Figure 1: Graphical representation of a one-step matrix.</figcaption></figure><p>A MC is said to be irreducible if 𝑖 ⇝ 𝑗 for any 𝑖, 𝑗 ∈ 𝑆. MC of Example 3 is an example of an irreducible MC. The behavior of customers represented by an irreducible MC has an interesting property. Over time, they tend to develop a pattern of usage and their behavior becomes more predictable. Such a customer state is called <em>the steady state condition</em>. Under steady state conditions, we can figure out the probabilities of customers being in different states. For the customer of Example 3, under steady state conditions, the customer is in state 1 with probability 0.17, in state 2 with probability 0.44, and in state 3 with probability 0.39. We can present this in the form of a vector as 𝜋 = (0.17, 0.44, 0.39). This 𝜋 is called <em>the steady state distribution</em>. If 𝑃 is the one-step transition matrix of an irreducible aperiodic MC with finite state space, then all the rows of 𝑃<em>ⁿ</em> converge to the steady state distribution. The time taken for stabilization (time to reach the steady state condition) depends on 𝑃. For 𝑃 of Example 2.3, 𝑛 = 5. That is, the customer’s behavior becomes predictable from the fifth month onward.</p><p>An important and useful implication is that we can forecast the expected revenue from the customer under steady-state conditions. The expected revenue from a customer of Example 3 under steady-state conditions is 3 × 0.17 + 7 × 0.44 + 10 × 0.39 = 7.49, or $7.49 per month.</p><h3><strong>Conclusion</strong></h3><p>In this article, we have seen how Markov chains can be used to model the patterns and behavior of cloud customers. In the sequel to this article, I will show how we can apply these learnings to a real-world scenario, which involves understanding different behaviors of customers and categorizing them into homogeneous groups. Once the homogeneous groups are identified, then each group can be analyzed using the models proposed in this article. A brief and nice presentation of Markov chains can be found in the book: <a href="https://www.pearson.com/en-us/subject-catalog/p/operations-research-an-introduction/P200000003528/9780134444017"><em>Operations Research: An Introduction</em></a> by<em> </em>Hambdy A. Taha.</p><p>In conclusion, as a famous quote by Richard Feynman says, “You do not really understand something unless you can explain it to your grandmother.” In the spirit of deepening our understanding, programming in Python to solve problems — such as simulating Markov chains — can be an engaging and insightful experience. It’s surprisingly easy too, requiring just a few lines of code. If you’re interested, feel free to check out my Python notebook <a href="https://github.com/manasagudimella/markov_chain/blob/master/notebooks/mc_simulation_exercise.ipynb">here</a>.</p><p><em>Manasa Gudimella is on </em><a href="https://www.linkedin.com/in/manasa-gudimella/"><em>LinkedIn</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61b19e36d2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-at-microsoft/modeling-customer-behavior-with-markov-chains-61b19e36d2b">Modeling customer behavior with Markov chains</a> was originally published in <a href="https://medium.com/data-science-at-microsoft">Data Science + AI at Microsoft</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn the basics of building interactive data visualizations with Dash using ChatGPT]]></title>
            <link>https://medium.com/data-science-at-microsoft/learn-the-basics-of-building-interactive-data-visualizations-with-dash-using-chatgpt-f5fcb898a2df?source=rss-d8f8b9423faf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5fcb898a2df</guid>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Manasa Gudimella]]></dc:creator>
            <pubDate>Tue, 04 Apr 2023 07:16:57 GMT</pubDate>
            <atom:updated>2023-04-04T07:16:57.989Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QLFp16mWfR1K1Qb2WnumvQ.png" /><figcaption>Image generated by a Microsoft-internal implementation of DALL·E 2.</figcaption></figure><p>My five-year-old son has recently developed a fascination for art and colors. He stumbled upon a show called “<a href="https://www.learningblocks.tv/colourblocks/home">Colorblocks</a>” on YouTube that explores mixing colors and the resulting outcomes. As an example, mixing black and white in equal proportions produces gray. My son was intrigued and asked me what happens when you mix red and cyan. I didn’t know the answer, but I saw this as an opportunity to challenge myself to build an interactive visualization that would act as a color mixing game. What I learned from ChatGPT and my background knowledge of Python resulted in a fun application my son loves to play. As an added bonus, he’s now interested in learning programming one day to make his own games.</p><p>Without prior experience in building applications or using HTML, I turned to <a href="https://openai.com/blog/chatgpt">ChatGPT</a> for assistance. <a href="https://www.python.org/">Python</a> is my go-to language, and I’m a big fan of <a href="https://plotly.com/python/">Plotly</a> for data visualizations. I appreciate its interactivity, flexibility, and ease of use, and its graphs are of great quality, allowing users to hover over and explore data in a user-friendly manner. I knew that Plotly has the ability to build visualizations that can be hosted locally on a browser through Dash, so that’s where I began.</p><p>In this article I describe the process I followed to generate the output below. My aim is to provide you, by the end of the walkthrough, with a comprehensive understanding of the process from start to finish to help you use this knowledge to build your own interactive data visualizations using ChatGPT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oc-Wak2z9_moth99uSewmA.png" /><figcaption>Color mixing demonstration app by the author. Background image by <a href="https://unsplash.com/@parktroopers?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Park Troopers</a> on <a href="https://unsplash.com/photos/RAtKWVlfdf4?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>.</figcaption></figure><h3>Starting to code</h3><p>To get started, I asked ChatGPT to provide some code by entering the following prompt:</p><p><em>I want to build a plotly visualization hosted on my web browser using Dash that will perform the described tasks.<br> — It should have a background image of a file that is in my local folder.<br> — Underneath the image I want it to have two buttons. Each button will display the RGB co-ordinates and the color it represents for these color options: Red, Green, Blue, Yellow, Orange, Indigo, Purple, Black, White and Other. The Other color option should intake the R, G, B co-ordinates (within 0–255, floating point values allowed) from the user. <br> — The input from the buttons will be the RGB co-ordinates of the colors. <br> — After user makes the selections / input, the colors should be displayed below the selection boxes as the input colors. <br> — These two input colors should be taken in and produce the mixed color and the mixed color should be displayed below the input colors. <br> Can you write this code in Python?</em></p><p>ChatGPT started generating a response. There was a lot of code to display, so it stopped abruptly. After I prompted it to continue, ChatGPT started producing the rest of the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*4hNY4Ftb13Dt-0JuePR0pw.png" /></figure><p>As I’ve shown, ChatGPT initially began writing the second half of the code in Python but then switched to <a href="https://daringfireball.net/projects/markdown/">Markdown</a> after a few lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*ZDJBRga-n5WiIBQE_vJf7A.png" /></figure><p>Although the switch in format confused me a bit, the generated code was helpful, particularly in helping me to understand the code’s intended purpose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*8N2QYOTxhTHjjYeJVvoWjQ.png" /></figure><p>After I had the code, I tried it out. I liked the “copy code” feature in ChatGPT’s generated code.</p><p>To format the rest of the code properly, I asked ChatGPT for assistance. As a Python programmer I know how to run .py files from the terminal and I found it amusing when ChatGPT warned me against separating the code across files!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*yXF2CQzFkWW2IvaCDEBKuA.png" /></figure><h3>Debugging</h3><p>I opened my Visual Studio Code environment and pasted the correctly formatted code into a Python (.py) file. Then, I tried to run the file from my <a href="https://www.anaconda.com/">Anaconda</a> prompt. However, I encountered some warnings that indicated that some of the import statements needed to be corrected. It’s understandable that ChatGPT might not be familiar with the latest changes in libraries, so I corrected the import statements first to ensure that the code would run correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*gJN3KkT3yb12tLFjBgXR5g.png" /></figure><p>After encountering several errors while running the code, I attempted to resolve them one by one. The first error I encountered was a ValueError with the message “invalid literal for int() with base 10: ‘(0’.” Upon investigating this issue, I realized that the input colors might not have been passed to the function in the correct format.</p><p>In addition, I noticed that the image I wanted to display on the HTML output page was not being displayed. So, I began to examine the code to determine the root of this problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zx8KAyNc-FnUtz4941JVKw.png" /></figure><p>As I went through the code, I noticed several issues that needed to be addressed. The most familiar part of the code for me was the mix_color Python function. However, I knew that Plotly uses hex color format, and it wasn’t being referenced in the generated code inside the mix_color function. I did a <a href="https://dash.plotly.com/dash-daq/colorpicker">quick search</a> to confirm that Plotly uses hex color format, so I needed to add a transformation from RGB to the <a href="https://en.wikipedia.org/wiki/CIE_1931_color_space">CIE XYZ</a> spectrum so that Plotly could understand and display the selected color format.</p><p>Additionally, I didn’t notice any plot figures in the code, so I needed to add those as well. To start, I asked ChatGPT to write a function to perform the necessary transformations from RGB to CIE XYZ, which was the first step toward getting the correct plot figures. Here is my prompt to ChatGPT to modify this function:</p><p><em>Can you re-write the mix_colors function as follows: Outside the function initialize numpy array rgb_to_xyz for RGB to XYZ transformation matrix and numpy array xyz_to_rgb defined as the XYZ to RGB transformation matrix. The inputs to the functions should be n_clicks, color1, color2. First parse the input color strings and convert them to numpy arrays. Convert the input colors from RGB to CIE XYZ using matrix multiplication. Mix the chromaticity coordinates of each color. Mix the chromaticiy coordinates by taking their average. Calculate the XYZ values of the mixed color. Convert the mixed XYZ values back to RGB using matrix multiplication. Convert color1, color2, and mixed_color to hex strings for display in Dash. Create a Plotly figure to display the input colors and the mixed colors and return all figures as a list.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*1aeIW2xW6o4_U-W5l5QQ2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*gQzcOjL9Jx3KFH037waKgg.png" /></figure><p>After examining the code, I realized that the image I had requested earlier was not displaying properly. So, I asked ChatGPT to modify the image display code. It added the following code snippet to the original code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*hP39TI0oSw2SYEGsH8fnGQ.png" /></figure><h3><strong>Resolving an unfamiliar error</strong></h3><p>Next, I returned to the webpage and carefully examined the errors that were generated. I began addressing each issue one by one. However, at one point, I encountered a callback error that I wasn’t familiar with. So, I asked ChatGPT to provide an explanation.</p><p>ChatGPT was definitely a helpful resource for both generating the code and explaining complex concepts to the user. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*HuaGFbW38MYzeJKPnp7iCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*Mn9rw1njE0nzAB8oo1UW2g.png" /></figure><p>ChatGPT’s response was great! It taught me what the callbacks were doing and after going through the explanation I understood that the code it generated was also flawed.</p><p>Upon closer inspection of the code, I realized the default colors were not coded to work properly. ChatGPT clearly explained “color1_input”: the input value from the color1-input text box (if “other” is selected from the color1-dropdown menu). The “color1_input” variable was being generated only when the value of the “color1_dropdown” variable was set to “other” and not in the else block. This variable is necessary for the Mix Colors button to function correctly, as seen in the mix_colors function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*QL5Z86LeU06_435K2in0zg.png" /></figure><p>As I continued to debug the code, I noticed that the size of the input and mixed colors being displayed were not ideal. The generated code superimposed the input colors in the display not yielding the desired output. I realized this was a result of the default size in the ChatGPT generated code. To address this issue, I began playing with the size option in the <strong>go.Scatter</strong> plots, which are used to display the colors.</p><p>After some experimentation, I found that setting the size between 50 and 100 made the colors more visible and easier to work with. By adjusting the size of the plots, I was able to improve the overall appearance of the interactive visualization and create a better user experience. This highlights the importance of paying attention to the details of the code and adjusting as needed to achieve the desired results when working with ChatGPT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*izzdzEheWHZ87j2EzFtBQg.png" /></figure><p>After making the changes described above, I finally arrived at a working version of the code. It’s important to note that the code was working only when the “other” option was selected from the dropdown menus and the RGB coordinates for the input colors were provided. While this was not ideal, it was progress, and it allowed me to see that the interactive visualization was functioning as intended.</p><p>Here is the output as a result of the last version of the code: (You can find the final working code after all error handling on GitHub <a href="https://github.com/manasagudimella/color_mixer">here</a>.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*rX6QuVNi5Y0Q53o2_pD8bg.png" /></figure><h3><strong>Reflections</strong></h3><p>Even though the code was now working, I found that there was still more work to be done. The interactive visualization needed to be cleaned up and improved in various ways to make it more user friendly and visually appealing. This is an important step in the app-building process, as it helps to ensure that the final product is as good as it can be.</p><p>Despite the challenges I faced along the way, I found that using ChatGPT to build the interactive visualization was a great experience. It allowed me to learn and build the app much faster than if I had tried to do it on my own. I hope that this exercise demonstrates the power of ChatGPT and the potential of using it to achieve goals and learn new skills.</p><p>In conclusion, ChatGPT is a great helper, but given the judgment involved in getting to a useful result as I’ve shared here, it needs several iterative user interventions to produce relevant, functioning, and meaningful results. Through this experience I’ve found some words of wisdom from a professor at Wharton University very useful (as captured in this <a href="https://www.linkedin.com/posts/brentbrewington_chatgpt-ethicsinai-education-activity-7036298670652211201-TRin?utm_source=share&amp;utm_medium=member_desktop">syllabus</a> excerpt as shared on Twitter). He encourages his students to utilize AI technology in his course, citing that AI is an emerging field. While ChatGPT can be a powerful tool, it also has limitations that must be considered. As indicated by the professor, providing minimum-effort prompts can lead to low quality results, and so refinement through iterative work is necessary to achieve better outcomes. Additionally, it is crucial to test and fact-check all results obtained through ChatGPT. Despite these limitations, the use of ChatGPT can be an effective way to learn and build applications in a shorter amount of time. Proper use of the technology can lead to increased efficiency and productivity. We must continue to explore the potential of AI in education and beyond, while also remaining aware of its limitations.</p><p><strong>Credits</strong>: The idea for this article was inspired by my five-year-old son. The code snippets and technical guidance for building the interactive dashboard using Dash were generated by OpenAI’s ChatGPT. Special thanks to Deepsha Menghani, Lisa Minas, Casey Doyle, and Haribabu Inuganti for providing valuable feedback and editing support for this article.</p><p><em>Manasa Gudimella is on </em><a href="https://www.linkedin.com/in/manasa-gudimella/"><em>LinkedIn</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5fcb898a2df" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-at-microsoft/learn-the-basics-of-building-interactive-data-visualizations-with-dash-using-chatgpt-f5fcb898a2df">Learn the basics of building interactive data visualizations with Dash using ChatGPT</a> was originally published in <a href="https://medium.com/data-science-at-microsoft">Data Science + AI at Microsoft</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>