<?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 Aradhna Singh on Medium]]></title>
        <description><![CDATA[Stories by Aradhna Singh on Medium]]></description>
        <link>https://medium.com/@aradhna-usf?source=rss-88da05778441------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6ch_ezGjcMPR_l9aryzUxw.jpeg</url>
            <title>Stories by Aradhna Singh on Medium</title>
            <link>https://medium.com/@aradhna-usf?source=rss-88da05778441------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 22:42:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aradhna-usf/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[Understanding Hypothesis Testing: Unraveling the Key Components]]></title>
            <link>https://aradhna-usf.medium.com/understanding-hypothesis-testing-unraveling-the-key-components-c64657f3b0ea?source=rss-88da05778441------2</link>
            <guid isPermaLink="false">https://medium.com/p/c64657f3b0ea</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[hypothesis-testing]]></category>
            <category><![CDATA[p-value]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[inferential-statistics]]></category>
            <dc:creator><![CDATA[Aradhna Singh]]></dc:creator>
            <pubDate>Fri, 15 Dec 2023 18:28:13 GMT</pubDate>
            <atom:updated>2023-12-15T18:28:13.901Z</atom:updated>
            <content:encoded><![CDATA[<p>Hypothesis testing is a fundamental concept in statistics, and while it may initially appear straightforward, it often becomes daunting when delving into its mathematical underpinnings. The complexities emerge as we grapple not only with understanding null and alternative hypotheses but also with navigating concepts such as p-values, alpha levels, and test statistics. These components are closely interconnected and form the foundation for comprehending a wide range of statistical topics.</p><p>In this article, our aim is to provide you with a clear path to achieve a lasting understanding of hypothesis testing. We will begin by establishing the core principles of hypothesis testing and then delve into the various interconnected concepts that underpin it.</p><p><strong>Population and Sample</strong>:</p><p><em>Hypothesis testing is an inferential statistics technique where we seek to understand the behavior of a population based on a sample.</em></p><p>Population: This term refers to the entire group of individuals, objects, or items that are the subject of a statistical study. For instance, if we are observing the voting preferences of a town, the population comprises all the individuals eligible to vote in that town.</p><p>Sample: A sample is a subset of the population that is selected to represent the larger population. It provides insights about the entire population when collecting data for the entire population is not feasible. In our voting preference example, the randomly selected group of individuals from the population is the sample.</p><p><strong>Hypothesis Testing Basics</strong>:</p><p><em>Hypothesis testing begins by posing a research question and testing it against an existing claim or a situation representative of no change.</em></p><p><strong>Null Hypothesis (H0)</strong>: The null hypothesis represents the existing claim or the situation of no change. For example, “The new drug has no effect” or “The mean temperature over the years has remained constant.”</p><p><strong>Alternative Hypothesis (Ha)</strong>: The alternative hypothesis is the research question at hand. For instance, “Is the new drug effective in combating Type 1 diabetes?” or “Is climate change causing the temperature to rise?”</p><p><strong>Test Statistics</strong>:</p><p>Test statistics serve as mathematical tools in hypothesis testing, similar to how measures of central tendency like the mean or median provide insights into data. Test statistics provide an estimate of how far the alternative hypothesis is from the null hypothesis. The choice of test statistics depends on the specific requirements of the analysis and can include z-tests, t-tests, F-tests, chi-squared tests, among others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*9F6ZFNCWJpaXgBZOK7yjNg.png" /><figcaption>Example of test-statistics (m is observed mean, U is assumed mean, n is sample size and s is standard deviation.)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gn22md2vVnxqRzqQioVVfw.png" /><figcaption>This image is taken from -<a href="https://www.automacaodedados.com.br/en/stories/estatistica-em-testes-para-nao-matematicos-parte-5/">https://www.automacaodedados.com.br/en/stories/estatistica-em-testes-para-nao-matematicos-parte-5/</a></figcaption></figure><p><strong>Hypothesis Testing and Comparisons</strong>:</p><p><em>Hypothesis testing involves comparing two essential elements: the p-value and alpha (significance level) comparison, and the critical value versus test statistics comparison.</em></p><p>These comparisons are at the heart of hypothesis testing and help us determine the validity of a research question.</p><p><strong>1. p-Value vs. Alpha (Probability against Probability)</strong>:</p><p>The comparison between p-values and alpha levels centers around the probability of Type I errors — those that occur when we wrongly reject a true null hypothesis.</p><ul><li>p-Value (Probability Value): The p-value is a measure that indicates the probability of rejecting the null hypothesis when it is, in fact, true. It quantifies the likelihood of observing a result as extreme as the one obtained, assuming the null hypothesis holds. In simpler terms, it represents the probability of an event occurring randomly under the assumption that the null hypothesis is true.</li><li>Alpha (Level of Significance): Alpha represents the predetermined threshold for making decisions in hypothesis testing. It sets the maximum allowable probability of committing a Type I error. For instance, if alpha is set at 0.05 (5%), it implies that you are willing to accept a 5% chance of rejecting the null hypothesis when it is true. This threshold helps control the rate of Type I errors.</li></ul><p><strong>Decision Rule for p-Value and Alpha Comparison</strong>:</p><ul><li>If the p-value is less than the chosen alpha level (p-value &lt; alpha), you reject the null hypothesis. This indicates that the observed result is unlikely to have occurred by random chance alone, providing evidence in favor of the alternative hypothesis.</li><li>If the p-value is greater than or equal to the alpha level (p-value ≥ alpha), you fail to reject the null hypothesis. This suggests that there is insufficient evidence to conclude that the null hypothesis should be rejected.</li></ul><p><strong>2. Critical Value vs. Test Statistics Comparison (Value against Value):</strong></p><p>This comparison assesses whether the test statistic derived from the sample data is sufficiently extreme to warrant rejecting the null hypothesis.</p><ul><li>Test Statistics: The test statistic is a numerical value calculated from the sample data during hypothesis testing. It measures how far the sample result deviates from what is expected under the null hypothesis. Different tests use specific test statistics, such as t-statistics, F-statistics, or chi-squared statistics.</li><li>Critical Value: The critical value is a threshold derived from the chosen alpha level (significance level). It represents a value that the test statistic must exceed to provide evidence against the null hypothesis. The critical value is determined based on the desired level of significance and the distribution associated with the test.</li></ul><p><strong>Decision Rule for Critical Value and Test Statistics Comparison:</strong></p><ul><li>If the calculated test statistic is greater than the critical value, you reject the null hypothesis. This indicates that the observed result is unlikely to be due to random chance alone and provides support for the alternative hypothesis.</li><li>If the calculated test statistic is less than or equal to the critical value, you fail to reject the null hypothesis. This suggests that there is insufficient evidence to conclude that the null hypothesis should be rejected.</li></ul><p>Hypothesis testing involves comparing probabilities, values, and thresholds to determine the validity of a research question. In mathematical terms, we use these comparisons to assess the likelihood of Type I errors and the extremeness of sample results. This rigorous methodology underlies hypothesis testing, making it a powerful tool used across a diverse range of fields, from web design and agriculture to economics, public policy, and IT. It’s a blend of mathematics and reasoning that enables informed decision-making based on empirical evidence.</p><p>I hope this article has provided clarity on the fundamental concepts of hypothesis testing and its mathematical underpinnings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c64657f3b0ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering SQL- Window Functions.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://aradhna-usf.medium.com/mastering-sql-window-functions-8c7c008fb765?source=rss-88da05778441------2"><img src="https://cdn-images-1.medium.com/max/970/1*tX_-y8BppI987utTv-UwJw.png" width="970"></a></p><p class="medium-feed-snippet">When embarking on a journey in the realm of Data Science or preparing for Data Science interviews, you are bound to encounter window&#x2026;</p><p class="medium-feed-link"><a href="https://aradhna-usf.medium.com/mastering-sql-window-functions-8c7c008fb765?source=rss-88da05778441------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://aradhna-usf.medium.com/mastering-sql-window-functions-8c7c008fb765?source=rss-88da05778441------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c7c008fb765</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[window-functions]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Aradhna Singh]]></dc:creator>
            <pubDate>Fri, 01 Dec 2023 20:27:47 GMT</pubDate>
            <atom:updated>2023-12-01T20:27:47.193Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Crafting the Perfect AI Prompt: Unlocking Character Insights from Harry Potter]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://aradhna-usf.medium.com/crafting-the-perfect-ai-prompt-unlocking-character-insights-from-harry-potter-6ee0cc302604?source=rss-88da05778441------2"><img src="https://cdn-images-1.medium.com/max/1088/1*a0uKlpX1gH7TKfG70eLTSA.png" width="1088"></a></p><p class="medium-feed-snippet">As you embark on, or perhaps deepen, your journey into the world of Language Models and their expansive potential, it&#x2019;s easy to feel&#x2026;</p><p class="medium-feed-link"><a href="https://aradhna-usf.medium.com/crafting-the-perfect-ai-prompt-unlocking-character-insights-from-harry-potter-6ee0cc302604?source=rss-88da05778441------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://aradhna-usf.medium.com/crafting-the-perfect-ai-prompt-unlocking-character-insights-from-harry-potter-6ee0cc302604?source=rss-88da05778441------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ee0cc302604</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[prompt]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <dc:creator><![CDATA[Aradhna Singh]]></dc:creator>
            <pubDate>Wed, 22 Nov 2023 22:59:58 GMT</pubDate>
            <atom:updated>2023-11-22T22:59:58.940Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Time is of the Essence: Introduction to Time Series Data]]></title>
            <link>https://aradhna-usf.medium.com/time-is-of-the-essence-introduction-to-time-series-data-88824229c3de?source=rss-88da05778441------2</link>
            <guid isPermaLink="false">https://medium.com/p/88824229c3de</guid>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[time-series-data]]></category>
            <category><![CDATA[industrial-application]]></category>
            <dc:creator><![CDATA[Aradhna Singh]]></dc:creator>
            <pubDate>Sat, 04 Nov 2023 17:45:59 GMT</pubDate>
            <atom:updated>2023-11-04T17:45:59.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUVnJZ4kirxLxJk-joc11w.png" /></figure><p>I am a Data Scientist who has been working in the Energy sector for a long time. Whether it’s analyzing turbine data readings captured over time at a coal power facility or examining data from the pricing market in renewables, a common thread ties all my analyses together: tracking the history of data over time. This is the essence of time series analysis, a technique that transcends the Energy sector. It finds its place in finance, healthcare, retail, and many more sectors, often being a more common part of a data scientist’s experience than what is typically discussed.</p><p>But what exactly is time series data? Is it merely a value tagged with time? What insights does the relationship between time and value offer us? The simple answer is — a lot. Let’s dive in to understand why analyzing data over time can drive valuable insights about the past, present, and future. Welcome to Part 1 of my series on time series analysis.</p><p>WHAT IS A TIME SERIES?</p><p>Is every set of data recorded over time considered a time series? While we won’t delve into the intricacies of trends, seasonality, and stationarity just yet, it’s important to first understand the fundamental aspects that define a time series. The crucial aspects to consider are:</p><ol><li>Temporal Order</li><li>Temporal Dependence</li><li>Measurement Consistency</li><li>Time Intervals</li></ol><p><strong>Temporal Order</strong> implies that data points are observed in a sequence, each associated with a specific point in time or timestamp. This ordering is essential for a dataset to be classified as a time series.</p><p><strong>Temporal Dependence</strong> Temporal Dependence implies that data points in a time series may be influenced by previous ones, a relationship measured by autocorrelation. However, it’s not a prerequisite for a dataset to be a time series. Even without clear patterns, like in white noise or random walks, a dataset can still qualify as a time series. Occasionally, a lack of autocorrelation suggests that external factors, not included in the dataset, could explain the variations.</p><p><strong>Measurement Consistency</strong> refers to the idea that data points in a time series should be collected using the same method, scale, and criteria across all time periods. This ensures that the time series is coherent and that any trends, patterns, or anomalies observed are genuine and not artifacts of variations in measurement techniques.</p><p>Time Intervals: Time series data is often collected at regular intervals (e.g., hourly, daily, monthly).Most time series models require regular intervals. However, data collected at irregular intervals can still be analyzed as time series data. Later in this series, we will explore models like Facebook Prophet that can handle the irregular nature of time series data.</p><p>Examples:</p><ol><li><strong>Weather Data</strong>: In the renewable energy sector, weather data is invaluable. Tracking metrics such as wind speed and temperature over time is essential for assessing performance. These weather patterns may exhibit temporal dependence and seasonality. Given the escalating concern over climate change, closely monitoring variables like air quality and sea levels becomes even more crucial, underscoring the relevance and urgency of time series analysis in this field.</li><li><strong>Healthcare</strong>: My experience in a tech start-up showed me how time series finds its way into healthcare. Remember the trending COVID time series dataset on Kaggle? Many interesting insights were derived from this data. What about a patient’s history of vital signs recorded sequentially over time? These may exhibit temporal dependence, with current readings influenced by previous ones. In this case, it’s crucial that the same medical devices and units (e.g., beats per minute for heart rate) are used for measurements.</li><li><strong>Stock Market</strong>: Engaging with stock market websites or checking stocks on your iPhone, you’re delving into time series data. By choosing filters for day, year, or month, you observe trends in stock prices, which are recorded sequentially every minute during trading. Although these prices often show some autocorrelation, external elements like news or market sentiments can significantly influence them.</li></ol><figure><img alt="This is an image of time series data from stock market" src="https://cdn-images-1.medium.com/max/942/1*veJj3pRD7o6uZZ7WC1uDxQ.png" /><figcaption><a href="https://www.wsj.com/market-data/stocks">https://www.wsj.com/market-data/stocks</a></figcaption></figure><p><strong>4. Website Traffic</strong>: Website visits are tracked in chronological order, recording user interactions over time. Traffic might show patterns such as spikes during promotional periods, suggesting dependence on past data points.</p><p>In this introductory piece, my primary objective was to lay the groundwork by elucidating the fundamental essence of time series data. In Part 2, I will delve deeper, providing a more detailed exploration of time series analysis. We will examine the constituents of a time series, explore its composition and decomposition, and employ visualization techniques to enhance our understanding. I trust this has piqued your interest and that you are looking forward to the insights that will unfold in the subsequent discussion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88824229c3de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unraveling A/B Testing: My Journey from Theory to Insight]]></title>
            <link>https://aradhna-usf.medium.com/unraveling-a-b-testing-my-journey-from-theory-to-insight-68ebb60e6a22?source=rss-88da05778441------2</link>
            <guid isPermaLink="false">https://medium.com/p/68ebb60e6a22</guid>
            <category><![CDATA[data-driven-decisions]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[statistical-analysis]]></category>
            <category><![CDATA[ab-testing]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Aradhna Singh]]></dc:creator>
            <pubDate>Thu, 26 Oct 2023 21:55:49 GMT</pubDate>
            <atom:updated>2023-10-26T21:55:49.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TGINScLenRSJL30XcD39xg.png" /></figure><p>Have you ever found yourself in the shoes of a Data Scientist or ML practitioner, familiar with a concept through coursework but lacking the hands-on experience in the professional realm? Often, we encounter vital topics poised for future interviews, yet they remain untouched in our day-to-day roles. For me, A/B testing was that elusive concept. While I recognized its importance, my firsthand experience with it was nil. In this article, I’ll delve into my understanding of this essential topic after I started reading more about it.</p><p>At the outset of my A/B testing journey, my understanding was quite rudimentary. I saw it as a method to test a new feature against an existing one. The classic example that often comes to mind is comparing a screen with a red button to one with a blue button, keeping all other elements consistent. The goal? To determine if the blue button leads to more clicks. But as my curiosity grew, I realized there was so much more depth to this concept. Let’s delve deeper into the nuanced definition of A/B testing and explore its various facets.</p><p><strong>WHAT IS AB TESTING IS ALL ABOUT?</strong></p><p>As an Industrial Engineer, I’ve always been intrigued by Statistical Design of Experiments. It familiarized me with terms like ‘control’, ‘variant’ or ‘treatment’, and ‘blocks’. During my journey in understanding of of A/B testing , I realize that the underlying mathematical principles remain consistent with that of randomized controlled experiments. Whether you’re examining the effects of increased fertilizer on agricultural land or assessing the impact of a more contrasting button color in a digital environment, the foundational concepts are the same. So lets go with the AB testing definition first.</p><p><em>“A/B testing, often termed split testing, is fundamentally a method to compare two versions (control and variant) of a webpage or app against each other to determine which one performs better in achieving a specific goal. The core idea is to show two variants, A and B, to similar visitors simultaneously. By the end of the test, you’ll measure which version was more successful based on a predetermined metric, such as conversion rate, click-through rate, or any other relevant KPI.”</em></p><p><strong>Starting Off Right</strong>: Remember, when addressing any statistical problem, the initial approach is paramount. For A/B testing, ensuring you’re on the right track involves several key considerations:</p><ol><li><strong>Randomization</strong>: Properly allocating subjects (be they users or visitors) is essential. They should be randomly assigned to either group A or group B, safeguarding against any sample bias. This stratification enhances the reliability and generalizability of results. If you suspect certain variables might introduce bias in randomization — say, the preponderance of one group accessing the website predominantly via mobile devices while another uses laptops — it’s crucial to account for these. Mobile users, for instance, may not click as frequently as those on laptops. In such cases, consider utilizing “blocking.” Blocking is a statistical technique that controls for certain variables, ensuring they don’t unduly influence outcomes.</li><li><strong>Control vs. Variant</strong>: At the heart of every A/B test are two entities: the control group (representing the existing version) and the variant (the new iteration under examination). The control group establishes a baseline metric, providing a reference point to assess the variant’s performance.</li><li><strong>Statistical Significance</strong>: Merely observing a difference between A and B isn’t sufficient. The distinction has to be statistically significant to negate the possibility of random chance. There are myriad tools and calculators to assist with this determination. At first glance, the variant in an experiment might seem superior. But is the difference genuinely significant? Have you accounted for implementation costs, should you implement the change?</li><li><strong>Secondary Metrics</strong>-Consider secondary metrics that could be affected by the feature under test. <a href="https://netflixtechblog.com/what-is-an-a-b-test-b08cc1b57962">Netflix’s Tech Blog</a> features an insightful piece discussing the importance of understanding the causal chain when examining correlated metrics. Such an understanding can shed light on the potential long-term impact and novelty of the change being evaluated.</li></ol><p>Let’s understand it through an example -</p><h3><strong>Practical Example: A/B Testing with the hypothetical “ListenNow” App</strong></h3><p>Background: ListenNow is a popular video streaming app. They’ve been noticing a drop in the number of users initiating new streams recently. The product team hypothesizes that the current “Play” button might not be appealing or visible enough. They decide to test a new design for the button to see if it increases the number of streams.</p><p>(Set <strong>Control and Variant- essentially what we mean with A/B</strong>)<br>Existing Feature (Control Group — A): The current “Play” button is small and green.<br>Variant (Test Group — B): The new “Play” button design is larger and features a vibrant blue color.</p><p>(Keep <strong>randomization’s</strong> importance in mind while assigning user) <br>Dataset: After running the test for a month, the data is as follows<br>Total users in Group A: 10,000 <br>Number of streams initiated: 2,500 (25% conversion rate)<br>Total users in Group B: 10,000<br>Number of streams initiated: 3,000 (30% conversion rate)</p><p><strong>Understand Statistical Significance</strong>: To determine if the observed difference is statistically significant and not just due to chance, we conduct a hypothesis test.<br><em>Null Hypothesis (H0):</em> The change in the “Play” button design has no effect on the number of streams initiated. <br><em>Alternative Hypothesis (H1):</em> The change in the “Play” button design has a positive effect on the number of streams initiated.</p><p><strong>Result</strong>-Using a statistical significance calculator (or conducting a z-test or chi-square test), we find a p-value of 0.02. Given a significance level (alpha) of 0.05, since 0.02 &lt; 0.05, we reject the null hypothesis. This suggests that the increase in the number of streams initiated in Group B is statistically significant.</p><p>Conclusion: The change in the “Play” button design, from small and green to larger and blue, has led to a significant increase in the number of streams initiated by users. ListenNow can confidently roll out the new design to all users, expecting similar positive results.</p><p><strong>Secondary Factors</strong>- Can you expand it to some secondary factor as well? Imagine testing it considering day and night time?</p><p><strong>The Promises of A/B Testing</strong>:</p><ol><li><strong>Risk Reduction</strong>: A/B testing allows for the phased introduction of new features or changes. In the digital realm, this means you can gauge the impact of a change on a smaller scale before full rollout. Should anything go awry, you have the flexibility to revert without extensive ramifications.</li><li><strong>Data-Driven Decisions</strong>: All decision-makers have their hits and misses. However, backing decisions with empirical data either validates a successful move or offers insights to refine strategy.</li><li><strong>Understanding User Behavio</strong>r: At the heart of digital innovation lies the quest to understand and cater to user behavior. A/B testing can offer valuable insights into what resonates with users, potentially benefiting both the user and the business.</li><li><strong>Continuous Improvements</strong>: A/B testing facilitates iterative refinement. The feedback loop it creates enables consistent enhancements in user experience.</li></ol><p>However, it’s not without its pitfalls:</p><ol><li><strong>Potential Misinterpretation</strong>: Random fluctuations are part and parcel of data sets. It’s essential to guard against reading too much into them. Also, by monitoring too many metrics simultaneously, there’s a risk of spotting spurious correlations. Prioritize and focus to derive meaningful insights.</li><li><strong>Temporal Issues</strong>: The timing of a test can influence outcomes. For instance, a feature rolled out during holiday seasons might behave differently than during regular periods.</li><li><strong>Retesting</strong>: It’s vital to periodically retest to ensure that observed outcomes aren’t mere anomalies or false positives. Continuous validation reinforces the robustness of findings.</li><li><strong>Ethical Concerns</strong>: If users are unknowingly part of an experiment, could it impact them adversely? The ethics of A/B testing touch on transparency, informed consent, and the potential emotional or behavioral impact on users.</li><li><strong>Current Audience Limitation</strong>: While A/B testing provides insights based on current users, it might not account for potential or future users. Over-relying on the feedback from existing users might lead to biases, overlooking the preferences or behaviors of newcomers or prospective audiences.</li></ol><p>From my journey, as you’ve likely gathered by now, I haven’t had hands-on experience with A/B testing. Yet, my exploration revealed its prominence as a primary method for testing features in today’s digital landscape. While A/B testing holds its unique value, there are other sophisticated methodologies like multivariate testing, factorial design, and sequential testing. At its core, A/B testing offers a swift insight into audience or customer behavior, and its flexible nature means you can always revert if outcomes don’t align with expectations.</p><p>To those seasoned in A/B testing, I’d love to hear your deeper insights. And if you’re a novice like me, did this article enhance your understanding? Has it piqued your curiosity to delve further into the realm of A/B testing?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68ebb60e6a22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Highlighting Text on PDF using Python]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://aradhna-usf.medium.com/highlighting-text-on-pdf-using-pypdf2-59f1639dd62f?source=rss-88da05778441------2"><img src="https://cdn-images-1.medium.com/max/998/1*YxeAp1vwdp_XGVNpdHWsCw.png" width="998"></a></p><p class="medium-feed-snippet">Diving into the vast world of PDF processing, it&#x2019;s incredible how a few lines of code can transform static pages into dynamic, annotated&#x2026;</p><p class="medium-feed-link"><a href="https://aradhna-usf.medium.com/highlighting-text-on-pdf-using-pypdf2-59f1639dd62f?source=rss-88da05778441------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://aradhna-usf.medium.com/highlighting-text-on-pdf-using-pypdf2-59f1639dd62f?source=rss-88da05778441------2</link>
            <guid isPermaLink="false">https://medium.com/p/59f1639dd62f</guid>
            <category><![CDATA[pypdf2]]></category>
            <category><![CDATA[document-automation]]></category>
            <category><![CDATA[highlighting]]></category>
            <category><![CDATA[pdf-manipulation]]></category>
            <category><![CDATA[text-processing]]></category>
            <dc:creator><![CDATA[Aradhna Singh]]></dc:creator>
            <pubDate>Wed, 20 Sep 2023 17:32:19 GMT</pubDate>
            <atom:updated>2023-09-25T04:23:01.917Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Custom Layers In AWS Lambda]]></title>
            <link>https://aradhna-usf.medium.com/custom-layers-in-aws-lambda-7880b6594b7e?source=rss-88da05778441------2</link>
            <guid isPermaLink="false">https://medium.com/p/7880b6594b7e</guid>
            <category><![CDATA[aws-lambda-layer]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[lambda-architecture]]></category>
            <category><![CDATA[custom-layer]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <dc:creator><![CDATA[Aradhna Singh]]></dc:creator>
            <pubDate>Mon, 21 Jun 2021 22:48:05 GMT</pubDate>
            <atom:updated>2021-08-15T17:08:17.256Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jI3uIie513-wMXXIsq5oqw.jpeg" /><figcaption>Layers — way to make them a piece of cake</figcaption></figure><p>The logic is clear, the requirements are clear and you are really geared up to write your code in Lambda for some automation. You proceed writing your code. Pretty confident it would work but when you try to test it. You realise you cannot move forward because of a certain library not properly imported in your lambda. You go through couple of online sources to see how to package and build your own Lambda layer. Seems like a piece of cake!</p><p>You add this custom layer on to your Lambda.However, still running it causes one or another error to appear. You want to focus more on your code rather than worrying about these layers. So what is the fastest and most reliable way to do it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*ysvaDQuc2Dgzr63dDmTqjw.jpeg" /><figcaption>Error that mostly occur.</figcaption></figure><p>Let’s see and understand in more details as to what is going on!</p><p>AWS Lambda is a computing service provided by AWS that is event driven and serverless. It runs your code without you to worry about various computing resources. All you have to do is the create Lambda function, chose an IAM role , attach policies/permissions to the role and let it know what runtimes you would like to choose e.g Python 3.8. So far so good.</p><p>Layers are zip files that contains additional codes, libraries,configuration files and other dependencies. Once you have created the Lambda function. You might need to add such layers on to your function. There are layers already available in Lambda .You can directly add them on to your function. Example — The Scipy/Numpy Layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*rJnErAfcHjExGtCDz3EtRg.jpeg" /></figure><p>For other you need to create your own custom layer. This article is about these custom layers.Certain steps are required to create them. The first is the preperation of the zip file. You need to install Docker, if you have not already .</p><p>Docker is a container that include code and dependencies so that you can run the code reliably from one computing enviornment to other.Containers allow packaging of an application with all of the parts it needs, such as libraries and other dependencies, and deploy it as one package.</p><p>Now that we have docker installed, let’s prepare our zip file.</p><ol><li>Start by creating an empty folder on your local computer. E.g “mylayer”</li><li>Inside this folder create a “requirements.txt” file. Write the name of the library or dependency that you would like to use. Example-Here I would like to install “requests” . You can add more than one libraries that you want to install, if required.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*bGfALRrzwHYrgS_YOglwLw.jpeg" /></figure><p>3. On your terminal ,check your present working directory by typing “<em>$pwd</em>”. change the directory using command “ <em>% cd yourpath/mylayer</em>”</p><p>4. Run the following to install the libraries-</p><p><em>docker run -v “$PWD”:/var/task “lambci/lambda:build-python3.8” /bin/sh -c “pip install -r requirements.txt -t python/lib/python3.8/site-packages/; exit”</em></p><p>Note-Remember to include the runtime same as the one that your Lambda has. If you have the python 3.7 configured as runtime for Lambda. Then replace “<em>python/lib/</em><strong><em>python3.8</em></strong><em>/site-packages/” to 3.7 in step 4.</em></p><p>5. Zip the content by running the following command.”<em>zip -r requests.zip python &gt; /dev/null</em>” . Sometimes you may face problem with zipping this way. For that you can manually go to the folder that you created and zip the “python” file that appears after you have ran the Step 4.</p><p>This is how you get your zip file ready. Now you need to go to the layers in AWS Lambda. Click on create layers icon and name the layer. Next step involves uploading of prepared zip file. If the zip file you created is less than 10 mb, you can directly upload it by selecting “upload a .zip file” option. Else you will have to upload your zip file to s3 and paste the link to it on the “upload a file from s3 “ option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*LYjFRLYUKex0GsfhrmVr_g.jpeg" /></figure><p>Once the layer is created. Go to your Lambda and scroll down to “Layers”. In the layers you will find the option “add a new layer”. Click on it and just add the Custom layer that you prepared.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*78xT2r0Yt6-DWmpKR2Znyg.jpeg" /></figure><p>Having to spend less and less time on these issues always help us to be more focused on development of the logics and algorithms. I came across this particular post that helped me a lot to overcome the issues I was previously getting while creating these zip files. Hope my post be as helpful to you as this was for me.</p><p><a href="https://stackoverflow.com/questions/62808166/how-to-create-a-layer-in-lambda-function">How to create a layer in lambda function</a></p><p>References</p><ol><li>Image — <a href="https://www.coengoedegebure.com/osi-model/">https://www.coengoedegebure.com/osi-model/</a></li><li><a href="https://stackoverflow.com/questions/62808166/how-to-create-a-layer-in-lambda-function">https://stackoverflow.com/questions/62808166/how-to-create-a-layer-in-lambda-function</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7880b6594b7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>