<?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 Sigma on Medium]]></title>
        <description><![CDATA[Stories by Sigma on Medium]]></description>
        <link>https://medium.com/@sigma-nitt?source=rss-95ad621f4138------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3qiLXhW0fpomnFda9kIy2w.jpeg</url>
            <title>Stories by Sigma on Medium</title>
            <link>https://medium.com/@sigma-nitt?source=rss-95ad621f4138------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:38:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sigma-nitt/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[Beyond Rivals]]></title>
            <link>https://sigma-nitt.medium.com/beyond-rivals-cc848f6a8ae1?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc848f6a8ae1</guid>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[mercedes-benz]]></category>
            <category><![CDATA[market-research-reports]]></category>
            <category><![CDATA[competition]]></category>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Sun, 22 Sep 2024 06:29:38 GMT</pubDate>
            <atom:updated>2024-09-22T06:29:38.977Z</atom:updated>
            <content:encoded><![CDATA[<p>-Navya Chawla</p><p>Creating Markets, Capturing Minds: The Future of Competition</p><h3>Introduction</h3><p>In today’s rapidly shifting business landscape, competition dynamics are evolving unprecedentedly. Traditional models of rivalry, where companies vie against direct competitors within their industry, are increasingly outdated. CEOs and industry leaders now acknowledge that their most formidable competitors often emerge from entirely different sectors, fundamentally altering their market strategies. This article delves into this fascinating shift, examining how unconventional competitors redefine market boundaries and drive companies to rethink their competitive approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6lYlmcmrSQ-S68KR" /></figure><h3>The Rise of Unconventional Competitors</h3><h3>Netflix vs. Sleep</h3><blockquote>Netflix’s CEO has famously stated that its biggest competitor is not Disney+ Hotstar or Amazon Prime Video but ‘Sleep.’</blockquote><p>This statement highlights the intense competition for one of the most <strong>finite resources — consumer attention</strong>. As of 2023, the global streaming industry was valued at approximately $372 billion, with Netflix commanding a substantial share. However, with over 222 million global subscribers, Netflix faces a <strong>unique challenge: keeping viewers engaged</strong> long enough to justify their subscription. The battle is no longer just against rival streaming platforms but against the basic human need for<strong> sleep</strong>. This has led to strategies focused on <strong>content optimization</strong>, with Netflix investing over <strong>$17 billion annually</strong> in original programming to <strong>maintain viewer engagement</strong>. The platform’s recommendation algorithms are designed to <strong>maximize binge-watching</strong>, pushing content that will keep users awake and engaged.</p><h3>Toffee Makers vs. UPI</h3><blockquote>Surprisingly, toffee makers in India have identified ‘UPI’ (Unified Payments Interface) as their primary competitor, rather than other candy brands.</blockquote><p>The rise of digital payment platforms like UPI, which saw over 8 billion transactions in December 2023 alone, has significantly <strong>altered consumer spending habits</strong>. <strong>Microtransactions</strong> that once went towards small purchases like<strong> toffees </strong>are now being diverted towards <strong>digital transactions</strong>. This shift poses a challenge to traditional candy makers, who must now adapt to a market where <strong>cash transactions are dwindling</strong>. In response, some toffee makers are exploring <strong>digital payment integration</strong> for small purchases or <strong>bundling offers</strong> to maintain consumer interest. This highlights the <strong>need for traditional industries to evolve</strong> alongside technological advancements in financial infrastructure.</p><h3>Mondelez vs. Local Sweet Shops</h3><blockquote>Mondelez, the global conglomerate behind brands like Cadbury, sees local sweet shops as its main competition — not other multinational giants like Nestlé.</blockquote><p>Global brands like <strong>Cadbury</strong> face stiff competition in a market where l<strong>ocal sweets</strong> evoke deep cultural connections and nostalgia. India’s traditional sweet market, valued at over <strong>$5 billion in 2023</strong>, thrives on its ability to offer products that <strong>resonate with local tastes</strong> and cultural practices. Mondelez, despite its global appeal, <strong>must balance its international brand image with local relevance</strong>. This has led to initiatives like the launch of<strong> region-specific flavours </strong>and <strong>limited-edition products</strong> during local festivals, aimed at bridging the gap between global and local consumer preferences. Mondelez’s strategy reflects a broader trend where global brands must increasingly <strong>localize their offerings</strong> to compete with deeply entrenched local businesses.</p><h3>Mercedes-Benz vs. Mutual Funds SIP</h3><blockquote>Mercedes-Benz’s CEO has remarked that ‘Mutual Funds SIP’ (Systematic Investment Plans) are now seen as their biggest competitor, rather than other luxury car brands.</blockquote><p>The rise of SIPs, which saw a monthly contribution of over ₹15,000 crores in India by 2023, signals a <strong>shift in consumer priorities</strong>. Potential luxury car buyers are increasingly <strong>viewing investments as a more prudent financial decision</strong>, especially in uncertain economic times. Mercedes-Benz, whose average vehicle price exceeds $50,000, must now position its cars <strong>not just as luxury items</strong> but as part of a broader <strong>lifestyle choice</strong>. The brand is exploring strategies such as offering <strong>flexible financing options</strong> tied to investment portfolios, effectively making the purchase of a luxury car an integrated financial decision. This approach reflects a broader trend where luxury brands must <strong>justify their value proposition</strong> against alternative forms of wealth accumulation.</p><h3>Market Creation and Reinvention: A New Approach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*snQ7EoQs0sQ20am4JqHKFg.jpeg" /></figure><h3>Market Creation</h3><p>Unconventional competitors are not merely disruptive; they are <strong>creating entirely new markets</strong>. The competition with sleep, UPI, local sweets, and SIPs demonstrates that these elements, while not traditional rivals, <strong>significantly influence consumer behaviour</strong>.</p><p>Example: The emergence of <strong>sleep-tracking apps</strong>, now a $14 billion industry, shows how the <strong>battle against sleep has led to new market opportunities</strong>. Companies can explore partnerships with health tech to offer integrated solutions that enhance both entertainment and well-being.</p><h3>Market Reinvention</h3><p>Retaining customers in this new landscape requires more than just product features; it demands a <strong>holistic strategy</strong> that integrates with <strong>consumers’ lifestyles.</strong></p><p>Example: Mercedes-Benz could develop comprehensive customer experiences that include financial literacy workshops, investment planning sessions, and exclusive access to lifestyle events, thereby reinventing the product and enhancing the value of their vehicles beyond mere transportation.</p><h3>Adapting to the New Competitive Landscape</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*Utd9l6MhNP88epX6" /></figure><h3>Holistic Customer Understanding</h3><p>Understanding customers in this new era goes beyond traditional demographics. Companies must delve into the intricacies of their customers’ lifestyles, preferences, and habits. This deeper understanding informs everything from product design to marketing strategies.</p><p>Action Point: Companies should invest in <strong>AI-driven consumer analytics,</strong> which will enable them to predict and respond rapidly to shifts in consumer behaviour.</p><h3>Diversify Revenue Streams</h3><p>Relying solely on traditional product sales is no longer sufficient. Diversification through subscription models, partnerships, and complementary services is essential.</p><p>Action Point: Luxury car brands could explore <strong>concierge services</strong>, travel partnerships, or <strong>lifestyle experiences</strong> as additional revenue streams, thereby embedding their products within a broader ecosystem of consumer experiences.</p><h3>Agile Innovation</h3><p>The ability to innovate swiftly in response to emerging competitors is crucial. Regularly assessing market trends and consumer behaviour allows companies to stay ahead.</p><p>Action Point: Netflix’s continuous refinement of its content recommendation algorithms is a prime example of <strong>agile innovation</strong> that keeps the platform relevant amidst fierce competition.</p><h3>Cross-Industry Collaboration</h3><p>Unconventional competitors often operate in entirely different sectors. Collaboration across industries can create synergies that enhance the customer experience.</p><p>Action Point: Mercedes-Benz could partner with fintech companies to offer investment-linked car financing options, creating a seamless blend of <strong>luxury and financial prudence</strong>.</p><h3>Brand Storytelling</h3><p>In a world where competition transcends industries, brand <strong>storytelling that resonates</strong> with consumers’ aspirations and values is more important than ever.</p><p>Action Point: Mondelez can leverage the emotional connection of local sweet shops by integrating stories of tradition and community into their brand narrative, fostering deeper consumer loyalty.</p><h3>Data-Driven Decision-Making</h3><p>Leveraging data analytics to identify early trends and make informed decisions is critical in navigating the complexities of today’s market.</p><p>Action Point: Toffee makers could use payment data to identify emerging consumer preferences and adapt their offerings accordingly, ensuring they remain relevant in a digital-first economy.</p><h3>Flexible Supply Chains</h3><p>In an era where even sleep can disrupt market dynamics (thanks to Netflix), companies must ensure their supply chains are <strong>adaptable to non-traditional peak hours and demands</strong>.</p><p>Action Point: Companies might invest in AI-driven logistics platforms that can anticipate and respond to shifts in consumer behaviour, ensuring timely delivery and customer satisfaction.</p><h3>Conclusion</h3><p>The competitive landscape has evolved beyond traditional rivalries among industry giants. It is now a multifaceted arena where consumer attention, habits, and lifestyle choices intersect in complex ways. CEOs and business leaders who recognize and adapt to these unconventional competitors will not only survive but thrive in this new era of market dynamics. As we continue to navigate this uncharted territory, the ability to create new markets and retain customers through holistic, lifestyle-integrated strategies will be the keys to sustained success.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc848f6a8ae1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PONZI SCHEMES- the fall of Albania and Jamaica.]]></title>
            <link>https://sigma-nitt.medium.com/ponzi-schemes-the-fall-of-albania-and-jamaica-e5a0707e1f3a?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5a0707e1f3a</guid>
            <category><![CDATA[fraud]]></category>
            <category><![CDATA[ponzi-scheme]]></category>
            <category><![CDATA[investment]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[pyramid-schemes]]></category>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Mon, 26 Aug 2024 07:43:15 GMT</pubDate>
            <atom:updated>2024-08-27T14:59:38.695Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is a Ponzi scheme?</strong></h3><h4><strong>Definition and Structure</strong></h4><p>A Ponzi scheme is a type of <strong>pyramid scheme</strong> and an illegal investment operation that promises significant returns with little or no risk. The scheme operates by using funds from new investors to pay returns to earlier investors, creating the illusion of a profitable venture.</p><h4><strong>Historical Background</strong></h4><p>The concept of Ponzi schemes dates back as early as the 17th century. However, the term is named after <strong>Carlo Ponzi</strong>, an Italian immigrant who defrauded thousands of New England residents between 1919 and 1920. Ponzi’s scheme involved promising to double investors’ money within 90 days through the trading of <strong>European postage stamps</strong>. Although his actual investment was only $30 worth of stamps, he managed to defraud investors of approximately $15 million before his arrest in 1920. He was charged with multiple counts of fraud and larceny and sentenced to prison.</p><blockquote>Despite the notoriety of Charles Ponzi, the scheme that carries his name appears to have been first perpetrated by <strong>Sarah Howe in Boston in 1879</strong>. Sarah Howe created the <strong>Ladies’ Deposit in Boston</strong>, claiming to invest money for women with promises to double their funds in nine months. Like Ponzi, she paid early investors with the funds from new ones.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GakCE8yJ3_ho0NWeQNd3XQ.png" /></figure><h4><strong>Key Features of Ponzi Schemes</strong></h4><ol><li><strong>High Returns:</strong> Ponzi promised a 10% return each month, far exceeding the 5% annual return offered by banks. This promise of high returns with minimal risk attracts investors.</li><li><strong>Attraction Tactics:</strong> The scheme lures investors with the promise of unbelievable profits. Operators use diverse, complex, and unique situations to make their story seem legitimate and appealing.</li><li><strong>Investor Psychology:</strong> Victims of Ponzi schemes often exhibit “irrational exuberance,” where the desire to emulate others’ perceived success overshadows logical assessment of the investment’s viability. This term, popularised by Alan Greenspan, reflects the speculative mania seen throughout history, such as the 1600s tulipmania.</li><li><strong>Key Mistake:</strong> A critical error made by victims is investing in schemes they don’t fully understand. Bernie Madoff, who defrauded investors of $50 billion, suggested that scrutiny of his methods would have revealed their impossibility.</li><li><strong>Sustainability:</strong> The scheme relies on continually attracting new investors to pay returns to earlier investors. This cycle must be maintained to avoid detection and prevent the scheme from collapsing.</li><li><strong>Inevitable Collapse:</strong> The scheme will collapse when new investors run out, as there will be no funds to pay the promised returns. This lack of new investment leads to the downfall of the operation.</li></ol><p>The economic uncertainty caused by the global pandemic has created a stimulus for Ponzi schemes. Beyond the consequences of Covid-19 pandemic from medical and economic perspectives, people had to endure restrictions.</p><h3><strong>Notable cases:</strong></h3><h4>5. Reed Slatkin — Investment Management — $593 million</h4><p>Reed Slatkin, a co-founder of EarthLink and self-proclaimed investment guru, operated a Ponzi scheme that defrauded investors of approximately $593 million. He lured friends, family, and fellow Scientologists into his scheme by promising lucrative returns through purportedly exclusive investment strategies. Slatkin’s fraud unravelled in 2001, and he was sentenced to 14 years in prison in 2003.</p><h4><strong><em>4. Scott Rothstein — Legal Settlements — $1.2 billion</em></strong></h4><p>Scott Rothstein, a lawyer from Fort Lauderdale, ran a $1.2 billion Ponzi scheme through his law firm. He persuaded investors to buy into fake legal settlements, promising high returns. In 2010, he was sentenced to 50 years in prison.</p><h4><strong><em>3. Tom Petters — Retail Merchandise — $3.7 billion</em></strong></h4><p>Tom Petters, a businessman, lured investors by promising profits from the purchase and resale of retail merchandise. However, the investments were a cover for his $3.7 billion Ponzi scheme. He was sentenced to 50 years in prison in 2010.</p><h4><strong><em>2. R. Allen Stanford — Fake Certificates of Deposit — $7 billion</em></strong></h4><p>R. Allen Stanford, a Texas tycoon, orchestrated a 20-year Ponzi scheme through his offshore bank in Antigua. He defrauded nearly 30,000 investors worldwide with fake certificates of deposit. In 2012, he was sentenced to 110 years in prison.</p><h4><strong><em>1. Bernie Madoff — Investment Management — $20 billion, estimated $50 billion</em></strong></h4><p>Bernie Madoff’s Ponzi scheme is the largest in history, defrauding thousands of investors of $20 billion. Operating under the guise of investment management, Madoff’s scheme collapsed in 2008, leading to his arrest and a 150-year prison sentence.</p><h3><strong>Finance, Politics and Psychology:</strong></h3><h4><strong>Finance:</strong></h4><p><strong>Jamaican </strong>schemes caused <strong>losses as high as 12.5 percent of GDP</strong> and spread to a number of other Caribbean jurisdictions.</p><p>The collapse of schemes in <strong>Colombia</strong>, which had taken in an estimated $1 billion, was followed by <strong>riots and violent protests in 13 cities, </strong>and the government was forced to<strong> declare a state of emergency.</strong></p><p>A scheme in <strong>Lesotho</strong> lost the<strong> money of about 100,000 investors, many of them poor and highly vulnerable.</strong> The damage these schemes can inflict requires a determined regulatory response to shut them down at an early stage, before they gain momentum. Regulators and receivers allege that these are Ponzi schemes, although in many of these instances court cases are still pending.</p><p>Victims of Ponzi schemes face severe financial repercussions:</p><p><strong>Property Sales: </strong>Many victims are forced to sell properties, often their homes.</p><p><strong>Return to Work:</strong> Some must return to work after retirement.</p><p><strong>Credit Issues:</strong><em> </em>Nearly 20% of fraud victims have difficulty obtaining credit.</p><p><strong>Bankruptcy:<em> </em></strong>In severe cases, victims face bankruptcy.</p><h4><strong>Politics:</strong></h4><p>The impact of Ponzi schemes has been greater in countries with weaker regulatory frameworks. This unfortunate pattern is illustrated by the case of <strong>Albania in 1996, when riots resulted in the fall of the government and even deaths, and by more recent cases.</strong></p><p><strong>Reluctance to Act:</strong><em> </em>Once a Ponzi scheme exceeds a significant size, authorities often hesitate to intervene. Halting the scheme’s operations prematurely had led to subscribers blaming the government rather than the scheme’s inherent flaws. Conversely, when schemes collapse naturally, governments frequently face criticism for not acting sooner.</p><p><strong>Regulatory Tools: </strong>In industrialised countries, regulators have various enforcement tools, including freezing assets as soon as a scheme is discovered. The judiciary typically supports these measures, allowing for prompt action. For example, in the Madoff case, swift action was taken once the scheme, involving $20 billion, was uncovered.</p><p><strong>Challenges in Developing Countries: </strong>Developing countries often lack robust regulatory responses and have underdeveloped financial institutions. This allows Ponzi schemes to persist even after red flags are raised.</p><blockquote>Many regulators lack the necessary enforcement tools.</blockquote><blockquote>Insufficient resources hinder effective action.</blockquote><blockquote>Lack of political independence undermines enforcement.</blockquote><blockquote>Legal limitations restrict information exchange with global regulators.</blockquote><h4><strong>Psychology:</strong></h4><p>Small victims often blame themselves and hide their losses to avoid public humiliation. Even<strong> large companies </strong>that committed or fallen victim to Ponzi scams <strong>prefer to avoid exposure and remain silent</strong>. They are afraid of being perceived as companies that are not careful in managing their assets, which can deter customers and cause losses. Even among victims of mass marketing frauds the emotional consequences included feelings of stress, anxiety and loss of self-esteem.</p><blockquote>Fraud victims <strong>feel themselves</strong> to some extent guilty of falling victim to a fraud, similar to the self-blame experienced by <strong>victims of rape and violent crime.</strong></blockquote><p><strong>Time Investment: </strong>Victims spend significant time addressing the economic harm. For instance, victims of identity theft spend an average of 48 hours clearing their name.</p><p><strong>Reporting Rates: </strong>The reporting rate for Ponzi schemes is notably low, <strong>around 1% to 3%</strong>, compared to nearly 100% for identity theft. This low reporting rate hinders efforts to combat and prevent such frauds effectively.</p><p><strong>Reduction in purchases: </strong>Study shows that over 50% of fraud victims have changed their behavioural patterns in terms of purchases and payments. It was also found that some victims <strong>stopped shopping online</strong>. This hurt legitimate companies operating in the field of telemarketing and mass marketing</p><h3><strong>Legal Framework:</strong></h3><p><strong>1. Prize Chits and Money Circulation Schemes (Banning) Act, 1978</strong></p><p><em>Objective</em>: Prohibits prize chits and money circulation schemes that promise quick and easy returns.</p><p><em>Relevance to Ponzi Schemes</em>: Prevents schemes that operate on the basis of taking money from new investors to pay earlier investors, thus curbing fraudulent activities similar to Ponzi schemes.</p><p><strong>2. Chit Funds Act, 1982</strong></p><p><em>Objective:</em> Regulates chit funds, which are legally recognized financial instruments involving pooled savings.</p><p><em>Relevance to Ponzi Schemes:</em> Ensures chit fund operations are transparent and regulated, preventing them from being used as a cover for Ponzi schemes.</p><p><strong>3. SEBI Act, 1992</strong></p><p><em>Objective: </em>Empowers the Securities and Exchange Board of India (SEBI) to protect investor interests and regulate securities markets.</p><p><em>Relevance to Ponzi Schemes</em>: Provides SEBI with the authority to monitor and regulate investment schemes, including those that may operate fraudulently as Ponzi schemes.</p><p><strong>4. SEBI Collective Investment Scheme Regulations, 1999 (CIS Regulations)</strong></p><p><em>Objective:</em> Regulates collective investment schemes, requiring them to be registered with SEBI and comply with specific rules.</p><p><em>Relevance to Ponzi Schemes:</em> Ensures that collective investment schemes are legitimate and not operating as fraudulent Ponzi schemes by imposing strict regulatory oversight.</p><p><strong>5. Companies Act, 2013 and Companies (Acceptance of Deposits) Rules, 2014</strong></p><p><em>Objective: </em>Governs the functioning of companies in India, including the acceptance of deposits from the public.</p><p><em>Relevance to Ponzi Schemes:</em> Imposes strict regulations on how companies can accept and manage deposits, preventing misuse of public funds and reducing the risk of Ponzi schemes.</p><p><strong>6. Banning of Unregulated Deposit Schemes Act, 2019 (BUDS Act)</strong></p><p><em>Objective:</em> Prohibits unregulated deposit schemes and provides a framework for punishing those involved in such activities.</p><p><em>Relevance to Ponzi Schemes: </em>Directly targets unregulated deposit schemes, which are often synonymous with Ponzi schemes, by banning them and imposing severe penalties for violations.</p><p><strong>7. Banning of Unregulated Deposit Schemes Rules, 2020 (Rules)</strong></p><p><em>Objective:</em> Provides detailed rules for implementing the BUDS Act, including procedural aspects for banning and penalising unregulated deposit schemes.</p><p><em>Relevance to Ponzi Schemes:</em> Ensures the effective enforcement of the BUDS Act, enhancing the ability to combat and shut down Ponzi schemes operating under the guise of unregulated deposit schemes.</p><h3><strong>Detection:</strong></h3><ol><li><strong>High returns with little or no risk</strong>. Every investment carries some degree of risk, and investments yielding higher returns typically involve more risk. Be highly suspicious of any “guaranteed” investment opportunity.</li><li><strong>Overly consistent returns</strong>. Investments tend to go up and down over time. Be sceptical about an investment that regularly generates positive returns regardless of overall market conditions.</li><li><strong>Unregistered investments. </strong>Ponzi schemes typically involve investments that are not registered with the SEC or with state regulators. Registration is important because it provides investors with access to information about the company’s management, products, services, and finances.</li><li><strong>Unlicensed sellers</strong>. Federal and state securities laws require investment professionals and firms to be licensed or registered. Most Ponzi schemes involve unlicensed individuals or unregistered firms.</li><li><strong>Secretive, complex strategies.</strong> Avoid investments if you don’t understand them or can’t get complete information about them.</li><li><strong>Issues with paperwork.</strong> Account statement errors may be a sign that funds are not being invested as promised.</li><li><strong>Difficulty receiving payments. </strong>Be suspicious if you don’t receive a payment or have difficulty cashing out. Ponzi scheme promoters sometimes try to prevent participants from cashing out by offering even higher returns for staying put.</li></ol><h3><strong>Prevention:</strong></h3><p><strong>Internal Auditing:</strong></p><ul><li>Continuous auditing to detect and prevent fraudulent activities.</li></ul><p><strong>Effective Enforcement:</strong></p><ul><li>Specialised Training: Training for regulatory staff (e.g., Certified Fraud Examiners).</li><li>Severe Punishments: Implementing strong penalties as a deterrent.</li><li>International Cooperation: Facilitating global regulatory collaboration.</li></ul><p><strong>Public Education:</strong></p><ul><li>Investor Awareness: Educate on identifying Ponzi scheme red flags (high returns with low risk, pressure to invest quickly, etc.)</li><li>Social Phenomenon: Treat financial fraud as a broad social issue.</li></ul><p><strong>Reform and Sanctions:</strong></p><ul><li>Increased Sanctions: Enhance penalties for financial fraud.</li><li>Legislation Clarity: Clarify laws and business practices for better enforcement.</li></ul><p><strong>Professional Expertise:</strong></p><ul><li>Expert Recruitment: Hire financial and accounting experts for risk assessments.</li><li>Due Diligence: Equip stakeholders with fraud detection tools.</li></ul><p><strong>Active Engagement:</strong></p><ul><li>Resource Allocation: Provide resources for preventive education by regulators.</li><li>Self-Regulation: Encourage consumer awareness and protective measures.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5a0707e1f3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Netflix Quest : Unlocking Your Next Binge using Data Analytics]]></title>
            <link>https://sigma-nitt.medium.com/netflix-quest-unlocking-your-next-binge-using-data-analytics-4427d116559d?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/4427d116559d</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[recommendations]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Wed, 20 Mar 2024 13:03:49 GMT</pubDate>
            <atom:updated>2024-03-20T13:04:16.989Z</atom:updated>
            <content:encoded><![CDATA[<h3>Netflix Quest : Unlocking Your Next Binge using Data Analytics</h3><p>- By Srivatsan and Medha</p><h3>INTRODUCTION</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*XAPYNSfEsxVSGBjb-kwNRw.png" /></figure><p>Recommendation system is an algorithm that suggests relevant items to the user, for example in the case of Netflix, which movie to watch, in case of play store, which app to install and in case of e-commerce which products to buy.</p><p>Recommendation Systems date back to the 1990s when collaborative filtering emerged, predicting user preferences based on similar behaviors. A pivotal moment occurred in 2006 with Netflix’s million-dollar challenge, catalyzing advancements in personalized suggestions. The 2010s witnessed the ascendancy of machine learning and AI, enabling more sophisticated algorithms. Streaming services like Netflix and Spotify harnessed these technologies to create dynamic recommendations grounded in user behavior, demographics, and contextual insights. Today, these systems, integrating collaborative and deep learning techniques, stand as sophisticated orchestrators of digital content discovery, reshaping how audiences engage with online platforms.</p><h3>Businesses using Recommendation systems:</h3><ul><li><strong>Amazon</strong>: Amazon suggests products based on a user’s browsing history, purchase history, and similar users’ preferences.</li><li><strong>Netflix</strong>: Netflix employs recommendation algorithms to suggest movies and TV shows based on a user’s viewing history, ratings, and preferences.</li><li><strong>Spotify</strong>: Spotify uses recommendation systems to suggest music based on a user’s listening habits, genre preferences, and collaborative filtering.</li><li><strong>YouTube</strong>: YouTube recommends videos based on a user’s watch history, likes, and subscriptions.</li><li><strong>Instagram</strong>: Instagram suggests posts, stories, and accounts to follow based on user interactions and preferences.</li></ul><h3>Why Businesses use recommendation systems?</h3><p>Recommendation systems have a potential to drive revenue growth by increasing cross-selling and upselling opportunities by presenting personalized and relevant recommendations.</p><p>Recommendation systems can elevate customer satisfaction levels, leading to increased customer retention. They excel at delivering personalized experience.</p><p>For instance, <strong>Netflix’s total revenue </strong>increased from <strong>$15.8 billion in 2018 to $25 billion </strong>in 2020, showcasing a substantial surge in just two years. The surge in revenue coincides with the period during which Netflix intensified its focus on personalized content recommendations, investing heavily in original productions and refining its algorithmic suggestions.</p><h3>Architecture of Recommendation Systems</h3><ol><li><strong>Candidate Generation</strong>: the system starts from a huge corpus and generates a smaller subset of candidates (hundreds or thousands).</li><li><strong>Scoring</strong>: The system scores and ranks the candidates to select the set or items to displace to the user (usually on the order of 10).</li><li><strong>Re-Ranking</strong>: The system must consider additional constraints for the final ranking.</li></ol><h3>Types of Recommendation Systems</h3><ol><li><strong>Content-based Filtering: </strong>recommends items similar to ones the user has liked in the past. For example, if you liked comedy movies, the system suggests more comedy films, focusing on your preferences.</li><li><strong>Collaborative Filtering</strong>: recommends items based on the preferences of similar users. For example, if you and a friend like similar movies, the system suggests movies your friend enjoyed but you haven’t seen.</li><li><strong>Hybrid Recommendation Systems</strong>: Hybrid systems combine collaborative and content-based methods for more accurate suggestions. By considering both user behavior and item characteristics, these systems offer a balanced approach.</li></ol><h3>Understanding Content-Based Recommender Systems</h3><h4>1. Feature Engineering:</h4><p>Content-based recommender systems rely on the extraction and representation of various features associated with items. These features span multiple media formats such as text, pictures, and videos. Each format demands specific feature engineering to create a comprehensive vector that encapsulates the item’s characteristics.</p><h4>2. User Preferences Inference:</h4><p>The primary challenge lies in deciphering the specific features that drive a user’s liking for an item. Users generate extensive content on the web, providing a wealth of information that can be harnessed to understand their preferences. By analyzing this content, recommender systems aim to discern the explicit preferences of users and match items relevant to those preferences.</p><h4>3. Effectiveness in Dynamic Content Domains:</h4><p>Content-based recommender systems shine in domains characterized by dynamic content. In scenarios where collaborative filtering struggles, content-based methods excel. The ability to adapt to evolving user preferences and dynamic content landscapes makes this approach highly effective.</p><h3>Objective</h3><p>The objective of this project is to explore and understand recommendation systems, a vital tool for businesses seeking to enhance revenue and customer retention in the digital era. By building a content-based recommendation system in Python, utilizing Natural Language Processing (NLP) techniques such as Bag of Words, and leveraging libraries including Count Vectorizer, and Cosine Similarity, we were able to delve into the inner workings of recommendation algorithms. Through this hands-on approach, the project seeks to gain insights into the underlying principles of recommendation systems, their implementation, and their potential impact on businesses and user experiences.</p><h3>Brief Overview of the Dataset</h3><p>The dataset comprises Netflix movies and TV shows released between 2015 and 2021, totaling approximately <strong>9,425 items</strong>. It’s sourced from Kaggle, a reputable platform for datasets and data science projects. This comprehensive dataset offers a rich repository of information, enabling in-depth analysis and exploration of trends in Netflix’s content library over recent years.</p><p>Dataset Link: <a href="https://www.kaggle.com/datasets/syedmubarak/netflix-dataset-latest-2021"><strong>Netflix Dataset Latest 2021 (kaggle.com)</strong></a></p><ul><li>Title: The name of the Netflix movie or TV show.</li><li>Genre: The category or type of content, such as drama, comedy, action, etc.</li><li>Keywords: Keywords or descriptors associated with the content.</li><li>Languages: The languages in which the content is available.</li><li>Series or Movie: Indicates whether the item is a series (TV show) or a movie.</li><li>Hidden Gem Score: A rating or score indicating the perceived quality or value of the content.</li><li>Country Availability: The countries where the content is accessible on Netflix.</li><li>Runtime: The duration of the movie or TV show.</li><li>Director: The director of the content.</li><li>Writer: The individual(s) credited with writing the content.</li><li>Actors: The cast members who appear in the movie or TV show.</li><li>View Rating: The age or content rating assigned to the item.</li><li>IMDb Score: The rating of the content on IMDb, an online database of movies and TV shows.</li><li>Rotten Tomatoes Score: The rating of the content on Rotten Tomatoes, a review-aggregation website.</li><li>Metacritic Score: The rating of the content on Metacritic, a review-aggregation website.</li><li>Awards Received: The number of awards the content has won.</li><li>Awards Nominated For: The number of awards for which the content has been nominated.</li><li>Box-office: The revenue generated by the content at the box office (if applicable).</li><li>Release Date: The original release date of the content.</li><li>Netflix Release Date: The date when the content was made available on Netflix.</li><li>Production House: The company responsible for producing the content.</li><li>Netflix Link: A link to the content’s page on Netflix.</li><li>IMDb Link: A link to the content’s page on IMDb.</li><li>Summary: A brief description or synopsis of the content.</li><li>IMDb Votes: The number of votes or ratings the content has received on IMDb.</li><li>Image Poster: The poster or artwork associated with the content.</li><li>TMDb Trailer: The trailer of the content available on The Movie Database (TMDb).</li><li>Trailer Site: The website where the trailer can be viewed.</li></ul><h3>Insights from Data Analysis</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*7ZJEdGzlj1kpsuwXK9eEPg.png" /></figure><p>This plot highlights that the most prevalent genres on Netflix are drama, comedy, action, thriller, and romance, suggesting a strong audience preference for these genres in the content library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*EcdpHL_RVKyYutcd84z9xQ.png" /></figure><p>This count plot reveals a prevalence of movies over series in Netflix’s content library, indicating a stronger emphasis on standalone cinematic experiences within the platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*3sF6wGfLKVTgCZ5n0FeLzg.png" /></figure><p>This count plot underscores a Netflix trend where movies with a duration of 1–2 hours dominate, suggesting a preference for concise cinematic experiences among viewers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*VF_1NmmB3zzqh9vrmwtjGQ.png" /></figure><p>This heatmap illuminates a surge in movie additions over the last three months, with a recurring December peak observed across all years. Notably, December 2020 stands out as the pinnacle, boasting the highest influx of movies during that timeframe.</p><h3>Steps Involved</h3><h4>Data Cleaning:</h4><ol><li>Columns with numerous missing values such as ‘Hidden Gem Score’ , ‘View Rating’ , ‘Rotten Tomatoes Score’ , ‘Metacritic Score’ , ‘Awards Received’ , ‘Awards Nominated’ , ‘Boxoffice’ , ‘Production House’ , ‘IMDb votes’ were dropped to ensure data quality and reliability.</li><li>Columns like ‘Netflix Link’ , ‘IMDb Link’ , ‘Image’ , ‘Poster , ‘TMDb Trailer’ and ‘Trailer site’ were also dropped because they do not contribute directly to the analysis objectives thereby making the dataset more streamlined.</li><li>Null values in the IMDb Score column was replaced with the median value, a common technique to maintain data integrity and preserve statistical accuracy.</li><li>The null values in columns such as ‘Director’ , ‘Actors’ , ‘Languages’ , ‘Genre’ , ‘Key Words’ and ‘Summary’ were replaced with an empty string (‘’) since statistical methods cannot be applied to fill missing values in these categorical columns.</li></ol><pre># Created a copy with selected columns, which are to be kept for further analysis.<br>selected_columns = [&#39;Title&#39;, &#39;Genre&#39;, &#39;Key_words&#39;, &#39;Languages&#39;, &#39;Series_or_Movie&#39;, &#39;Runtime&#39;, &#39;Director&#39;, &#39;Actors&#39;, &#39;Summary&#39;, &#39;Release_Date&#39;, &#39;TMDb_Score&#39;, &#39;Image&#39;]<br>df = df[selected_columns].copy()<br>df.head()</pre><pre># Filling missing values in IMDB Score column with its median value.<br>df[&#39;TMDb_Score&#39;] = df[&#39;TMDb_Score&#39;].fillna(df[&#39;TMDb_Score&#39;].median())</pre><pre># Filling NA values in multiple columns with empty string.<br>df[&#39;Director&#39;].fillna(&#39;&#39;, inplace=True)<br>df[&#39;Languages&#39;].fillna(&#39;&#39;, inplace=True)<br>df[&#39;Actors&#39;].fillna(&#39;&#39;, inplace=True)<br>df[&#39;Genre&#39;].fillna(&#39;&#39;, inplace=True)<br>df[&#39;Key_words&#39;].fillna(&#39;&#39;, inplace=True)<br>df[&#39;Summary&#39;].dropna(inplace=True)</pre><h4>Text pre-processing:</h4><ol><li>We cleaned the text data by removing stop words, punctuation, and other irrelevant characters.</li><li>We performed stemming and lemmatization to reduce words to their base forms. We have used the NLTK library to achieve this.</li></ol><pre># removing punctuation<br>import string<br>string.punctuation<br>def remove_punctuation(text):<br>    if type(text) == str:<br>        punctuation_free = &quot;&quot;.join([i for i in text if i not in string.punctuation])<br>        return punctuation_free<br>    else:<br>        return str(text)<br># storing the punctuation free text</pre><pre># remove spaces between names<br>df[&#39;Genre&#39;] = df[&#39;Genre&#39;].str.replace(&#39; &#39;, &#39;&#39;)<br>df[&#39;Actors&#39;] = df[&#39;Actors&#39;].str.replace(&#39; &#39;, &#39;&#39;)<br>df[&#39;Key Words&#39;] = df[&#39;Key Words&#39;].str.replace(&#39; &#39;, &#39;&#39;)<br>df[&#39;Director&#39;] = df[&#39;Director&#39;].str.replace(&#39; &#39;, &#39;&#39;)</pre><pre># converting to lower case<br>def lowercase(text):<br>    if type(text) == str:<br>        return text.lower()<br>    else:<br>        return str(text)</pre><pre>df[&#39;Title&#39;] = df[&#39;Title&#39;].apply(lowercase)<br>df[&#39;Genre&#39;] = df[&#39;Genre&#39;].apply(lowercase)<br>df[&#39;Key Words&#39;] = df[&#39;Key Words&#39;].apply(lowercase)<br>df[&#39;Languages&#39;] = df[&#39;Languages&#39;].apply(lowercase)<br>df[&#39;Director&#39;] = df[&#39;Director&#39;].apply(lowercase)<br>df[&#39;Actors&#39;] = df[&#39;Actors&#39;].apply(lowercase)<br>df[&#39;Summary&#39;] = df[&#39;Summary&#39;].apply(lowercase)<br>df[&#39;Series or Movie&#39;] = df[&#39;Series or Movie&#39;].apply(lowercase)<br>df.head()</pre><h4>Creating Tags:</h4><ol><li>We Identified the key features in the dataset that we can use for recommendations such as ‘Genre’ , ‘Director’ , ‘Actors’ , ‘Summary’ , ‘Language’ and ‘Series or movie’. We combined all the key features to create a new column ‘Tags’.</li><li>We created a new Pandas DataFrame which consisted of ‘Title’ , ‘Tags’ , ‘Release year’ and ‘IMDb Score’.</li></ol><pre># keeping only required columns to make tags<br>df[&#39;Tags&#39;] = df[&#39;Genre&#39;] + df[&#39;Key Words&#39;] + df[&#39;Director&#39;] + df[&#39;Actors&#39;] + df[&#39;Languages&#39;] + df[&#39;Summary&#39;] + df[&#39;Series or Movie&#39;]<br>df.head()</pre><pre>new_df = df[[&#39;Title&#39;, &#39;Tags&#39;, &#39;Runtime&#39;, &#39;IMDb Score&#39;, &#39;Release Year&#39;, &#39;Image&#39;]]<br>new_df.head()</pre><h4>Vectorizing the Tags using Count Vectorizer:</h4><ol><li>By using the Count Vectorizer function from the sklearn.feature_extraction module we converted the tags into numerical vectors</li><li>For each item(movie) we have created a vector that represents the frequency of each word in the entire corpus.</li><li>Count vectorizer works by finding unique words in the corpus(all of the text in the tags combined together) and counting the occurrences of each word, in our case we have limited it to top 6000 words. It then creates a count matrix whose rows correspond to the movies and columns corresponding to the unique words in the corpus. Each entry is the count of the corresponding word in the tags.</li></ol><pre>from sklearn.feature_extraction.text import CountVectorizer<br>cv = CountVectorizer(max_features=6000, stop_words=&#39;english&#39;)<br>vectors = cv.fit_transform(new_df[&#39;Tags&#39;]).toarray()</pre><p>So, we have created a count matrix with shape of (9425,6000).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*bFu9vHo0Y417y1qu1t8Z3Q.png" /><figcaption>Visualization of Text Preprocessing in Laymen’s Terms</figcaption></figure><blockquote>1. First, the text was tokenized into individual words.</blockquote><blockquote>2. Then, these words are converted into their base forms using lemmatization.</blockquote><blockquote>3. Next, the vocabulary of the corpus is created, and each document is represented using the bag of words model, where each word’s frequency is counted.</blockquote><h4>Calculating the Cosine Similarity between the vectors:</h4><p>To measure the similarity between the vectors, we compute the cosine similarity between the vectors.</p><p>The cosine similarity is calculated by cosine_similarity(A,B) =</p><blockquote><strong>Cosine Similarity: A.B / ||A||.||B||</strong></blockquote><p>The cosine similarity ranges from 0 to 1.</p><p>We calculated the cosine similarity by using the cosine_similarity function from the sklearn.metrics.pairwise module.</p><p>The cosine_similarity measures the cosine similarity a vector against all of the vectors and returns a matrix of cosine similarity values, where each element (i , j) represents the cosine similarity between the ith vector from the first input and the jth vector from the second input.</p><p>So, for each movie, we obtain a matrix of shape (9425,9425).</p><pre># Calculating cosine similarity<br>from sklearn.metrics.pairwise import cosine_similarity<br>similarity = cosine_similarity(vectors)</pre><h4>Recommending:</h4><p>For recommending 5 movies similar to a movie based on the title of the movie, we obtain the cosine similarity matrix of the movie and sort it in descending order.</p><p>The first row in the sorted matrix is the movie itself for which we want to find similar movies, so we don’t include the first row, we use the next 5 rows.</p><p>We used the enumerate() function to find the index of the movies in the DataFrame from the sorted matrix and printed the titles of the movies.</p><pre>def recommend(movie):<br>    candidates = []<br>    movie_index = new_df[new_df[&#39;Title&#39;] == movie].index[0]<br>    distances = similarity[movie_index]<br>    movies_list = sorted(list(enumerate(similarity[movie_index])), reverse=True, key=lambda x: x[1])[1:6]<br>    for i in movies_list:<br>        candidates.append(list(new_df.iloc[i[0]]))<br>    for j in candidates:<br>        print(j[0])</pre><p>Output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*Ctjns_KwdKVpho1eCRVa_A.png" /></figure><p>— — — — — — — — — — — — — — — — — THE END — — — — — — — — — — — — — — — —</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4427d116559d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating the Skies: A Data-Driven Exploration of Flight Pricing and Airline Performance]]></title>
            <link>https://sigma-nitt.medium.com/navigating-the-skies-a-data-driven-exploration-of-flight-pricing-and-airline-performance-dc4ab3b928c4?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc4ab3b928c4</guid>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Mon, 04 Mar 2024 13:21:51 GMT</pubDate>
            <atom:updated>2024-03-04T13:21:51.922Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xRw19IrLt6M0jh46jUz5Sg.png" /></figure><blockquote><strong>Introduction</strong></blockquote><p>Fasten your seatbelts! We’re embarking on a data-driven journey through the complex world of air travel. This project delves into the fascinating interplay between flight pricing, airline performance, and environmental impact. By analyzing a comprehensive dataset encompassing numerous factors, we aim to shed light on the intricate factors influencing your travel decisions.</p><p><strong>Airlines:</strong> Which carriers offer the best value for your money, taking into account price, service, and reliability?</p><p><strong>Dates and Days:</strong> Does flexibility in travel dates significantly impact costs? Does flying on weekdays differ from weekends?</p><p><strong>Cities:</strong> How do origin and destination cities influence pricing and flight options?</p><p><strong>Duration:</strong> Is opting for shorter, more direct flights always the most economical choice?</p><p><strong>Stops:</strong> Does the number of layovers significantly impact cost and convenience?</p><p><strong>Meal and Baggage:</strong> How do these add-ons affect the ticket price, and are they always worth the expense?</p><p><strong>Emissions Data:</strong> For the environmentally conscious traveller, we’ll analyse the carbon footprint associated with different airlines and flight options.</p><blockquote><strong>Dataset Collection</strong></blockquote><p><strong>Yatra.com</strong> is a popular Indian online travel agency offering flight booking services. To gather the desired data beyond simply listed prices, manual browsing wouldn’t suffice. This is where Selenium comes in. <strong>Selenium</strong> is a powerful tool for automating web browser interactions, allowing us to navigate dynamic content ,extract specific data points and iterate efficiently.</p><p><strong>XPath</strong> in <a href="https://www.lambdatest.com/selenium">Selenium</a> is a powerful technique used to traverse and interact with the HTML structure of a web page. It provides a standardized way to navigate HTML and XML documents, allowing testers to locate elements for <a href="https://www.lambdatest.com/automation-testing">automation testing</a> precisely.</p><p>Libraries like Selenium for browser automation and pandas for data manipulation are imported. Data containers like lists are defined to store extracted details (airlines, prices, etc.). Travel dates and city combinations for desired routes are also established. We navigate to yatra.com and enter the cities and use Selenium’s WebDriverWait to ensure elements are loaded before interacting for the desired dates. Using XPaths we loop through each visible flight block on the page to locate specific data elements and exporting the data to a CSV file to make a dataset.</p><p>Dataset: &lt;link&gt;</p><p>By utilizing Selenium’s capabilities for automated data extraction, this project unlocks valuable insights into the world of flight travel, empowering users to make informed and responsible choices.</p><blockquote><strong>Data Cleaning</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rbzNs9ZVvMyRA76g" /></figure><ol><li><strong>Removing Unwanted Entries</strong></li></ol><p>We begin by identifying and eliminating data points where the destination is recorded as “Nagpur”. Since this appears to be a glitch of the web scraping process rather than actual flight information.</p><p>2.<strong> Standardizing Data Formats</strong></p><p>We convert the “departure time” feature from its current format into a standard datetime format. Both “emissions” and “day” columns undergo transformations to extract numerical values. We remove “kgs” from the emission values and “day” from the day entries. The “duration” feature is processed to extract the actual flight duration in minutes. This conversion facilitates further analysis involving flight times and durations.</p><p>By implementing these data cleaning steps, we ensure the flight information is standardized and ready for meaningful analysis and insights.</p><blockquote><strong>Exploratory Data Analysis</strong></blockquote><ol><li><strong>Emissions</strong></li></ol><p>The impact of air travel on the environment, particularly CO2 emissions, is a growing concern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/0*eo9mFSPoh8CCREA1" /></figure><p>The Density distribution graph shows that most of the flights cause an average carbon footprint of about 130kgs. This amount of CO2 emissions is roughly equivalent to the carbon footprint of driving a car for around 1,400 miles (2,253 kilometers) in an average gasoline-powered vehicle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lfS5zOwb2r5GnEBZ" /></figure><p>There is a visible correlation between flight distance and emission. Longer routes are more likely to emit higher CO2 emissions. Hence, Chennai- Bangalore route has the lowest average emission.</p><p><strong>2.</strong> <strong>Airline Strength</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/0*LccVSHrQPLsTvTi6" /></figure><p>This pie chart clearly depicts that 39.36% of the dataset has Indigo Flights, followed by Air India with 27% and Vistara with 17.25%. Indigo has about 55% market share in the whole domestic airline system, which shows a clear dominance in the domestic market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/0*uAPZANJIZdBdYIqx" /></figure><p><strong>3. Stops</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*7nAdrBWUxoPkYFfI" /></figure><p>This graph shows the distribution of Flights by Stops (ie, Non Stop, 1 stop, 2 stop). The chart reveals that about 66.5% of the flights have no layovers and only 31.8% have 1 stop. The average ticket price also clearly depends on the number of stops with an approximate difference of about Rs 2000 between a non stop and 2- stop flight proving that non stop flights are cheaper.</p><p><strong>4. Airport Taxes</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/0*4vhuVzyVyMhadN_W" /></figure><p>An airport tax is a tax levied on passengers for passing through an airport and is usually included in the price of an airline ticket. The taxes that airports charge are used to pay for the operation and maintenance of the airport. Kolkata Airport has the highest tax cost per ticket with Rs.2048 whereas Mumbai Airport has the lowest cost at Rs.1261.5.</p><p><strong>5. Prices</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RfiQrIT4d2aYabPM" /></figure><p>This graph reflects the pricing strategies followed by different airlines. Akasa Air has the lowest median out of all the other airlines, hence offering the cheapest flights. Vistara, Indigo, Air India and multiple other airlines have close medians depicting in more direct price competition for similar routes passengers. Premium airlines like Air India Express have high medians but lower availability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/0*C-_qZSOjJ5tFeEmr" /></figure><p>This is a scatter plot between the duration of the flight and the price. Clusters can be visually differentiated based on the distribution of prices except for a few outliers. Majority of the durations lie in the price clusters of Rs. 4000 to 8000.</p><blockquote><strong>Statistical Tests</strong></blockquote><ol><li><strong>Heatmap</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*GMsThIT-WmkwKmLL" /></figure><p>A heatmap is used to visualize data that represents the magnitude of individual values within a dataset as a color. It’s interesting to note that the price of a fare ticket is greatly dependent on emissions rather than the distance of travel. Duration of the journey and emissions are also highly correlated also since it includes layovers.</p><p><strong>2. ANOVA Test</strong></p><p><strong>ANOVA</strong> is a statistical method used to analyze the differences between the means of two or more groups. It calculates an F-statistic by comparing between-group variability to within-group variability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/0*Ty_pdDxOqbesDha8" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uOsKU5THGr-bIIbA" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*smy5TsQV3o6avwI-" /></figure><p>ANOVA test was carried out on these features to conduct hypothesis testing. In all the three cases, we could reject the null hypothesis due to high F- stat and P value&lt; 0.5.</p><p>i) Price of the ticket and Time of flight</p><p>ii) Check In baggage allowed and emissions</p><p>iii) Meal Option and Price of the ticket</p><p>are all dependent on each other.</p><blockquote><strong>Modelling</strong></blockquote><p><strong>Random Forest</strong> algorithm is a powerful supervised machine learning technique for both classification and regression problems. It operates by combining the predictions of multiple decision trees to generate a final, more robust prediction.</p><p><strong>Hyperparameters</strong> are settings that control the learning process of a machine learning algorithm and are not learned from the data itself. Selecting the right hyperparameters is crucial for achieving optimal performance.</p><p><strong>Grid Search CV</strong> is a common technique used to find the best hyperparameter combination. It systematically evaluates different combinations of hyperparameter values and selects the one that performs best on a held-out validation set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/0*svfLjS91bGFFb5DC" /></figure><ul><li>The number of trees (n_estimators) in the forest significantly impacts the model’s accuracy and complexity. Too few trees might underfit the data, while too many can lead to overfitting.</li><li>The maximum depth (max_depth) of each tree determines its complexity. Deeper trees can capture more complex relationships but are also more prone to overfitting.</li></ul><p>Our model promises forecasting future flight prices based on features available in our dataset.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc4ab3b928c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Insights into Financial Strength, IPO Myths, and Global Layoff Trends Using Data Analytics]]></title>
            <link>https://sigma-nitt.medium.com/insights-into-financial-strength-ipo-myths-and-global-layoff-trends-using-data-analytics-ae459e038b3a?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae459e038b3a</guid>
            <category><![CDATA[eda]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[ipo]]></category>
            <category><![CDATA[layoffs]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Sun, 14 Jan 2024 15:54:07 GMT</pubDate>
            <atom:updated>2024-01-14T15:54:07.754Z</atom:updated>
            <content:encoded><![CDATA[<p>By Sai Pranav, and Murali Krishna</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*i1Zq1v37PqZGYQ6x" /></figure><h3>Introduction</h3><p>In the contemporary corporate landscape, layoffs have become significant, influenced by various economic, industrial, and company-specific factors. Our project explored a comprehensive lay- offs dataset, aiming to uncover patterns and insights through rigorous Exploratory Data Analysis (EDA). Leveraging a diverse set of analytical tools and libraries, such as Pandas for data manipulation, Seaborn and Matplotlib for data visualization, and Plotly for interactive plots, our analysis delved into the multifaceted aspects of layoffs. We employed statistical methods, including linear regression from SciPy, to interpret the data meaningfully. The utilization of advanced techniques like K-Means clustering and standard scaling further enriched our understanding of the dataset’s intricacies.</p><p>This report aims to present our findings, offering a detailed view of the layoff landscape across various industries and geographies. The insights drawn from this analysis are intended to pro- vide valuable inputs for stakeholders, including business leaders, policymakers, and economic analysts, offering a data-driven perspective on the patterns and trends in layoffs worldwide. This introduction sets the stage for your detailed EDA findings, highlighting the tools used and the scope of your analysis.</p><h3>Problem Statement</h3><p>The primary aim is to analyze and understand the patterns and trends in layoffs across various industries and locations. The focus is on identifying key factors contributing to layoffs and how different sectors and regions are affected. The analysis aims to provide a comprehensive under- standing of the layoff landscape, identifying industries and areas most affected, trends over time, and the potential impact of financial factors like funds raised. In this Project, We have a dataset consisting of 2103 entries for total layoffs, 2044 for percentage laid off, and 2820 for funds raised, indicating the presence of missing values in these fields.</p><h3>Dataset and Attributes</h3><p>Dataset link: <a href="https://www.kaggle.com/datasets/swaptr/layoffs-2022">https://www.kaggle.com/datasets/swaptr/layoffs-2022</a></p><p>The dataset is based on the EDA file, is centered around layoffs from various companies. It contains a range of attributes that offer insights into these layoffs’ scale, industry distribution, and geographical spread. Here’s an extensive explanation of the dataset and its attributes:</p><ul><li><strong>Company: </strong>This column lists the companies that have reported layoffs. It directly references the organizations affected and is crucial for identifying industry trends and company-specific issues.</li><li><strong>Location: </strong>This attribute specifies the geographical location of the companies, typically given as city names. The location data is essential for understanding the geographic distribution of layoffs and identifying if certain regions are more affected than others.</li><li><strong>Industry: </strong>The industry column categorizes each company into a specific sector, such as Crypto, Real Estate, Data, etc. This classification is vital for analyzing which industries are experiencing higher rates of layoffs and understanding sector-specific trends.</li><li><strong>Total Laid Off: </strong>This numeric field represents the total number of employees laid off by the respective companies. This is a critical metric in the dataset as it quantifies the impact of layoffs at a company level.</li><li><strong>Percentage Laid Off: </strong>Alongside the total number, this column provides the percentage of the laid-off workforce. This attribute offers a relative sense of the layoff’s impact, which is especially useful for comparing companies of different sizes.</li><li><strong>Date: </strong>The date of the layoffs or the report gives a temporal context to the data. It allows for the analysis of layoffs over time and can help identify any temporal patterns or trends.</li><li><strong>Stage: </strong>This column likely refers to the stage of the company, such as startup, growth, maturity, etc., though the specific categories need to be detailed in the provided excerpts. The stage of a company can be an essential factor in understanding its stability and the reasons behind the layoffs.</li><li><strong>Country: </strong>This attribute specifies the country in which the company operates. Like the location, it’s crucial for analyzing the geographical spread and impact of layoffs on a global scale.</li><li><strong>Funds Raised: </strong>This numeric field indicates the amount of funds raised by the company, presumably over its lifetime. This financial metric can be critical in understanding the finan- cial health of the company and its potential correlation with layoffs.</li></ul><h3>Data Cleaning and Preprocessing</h3><p>The dataset you provided underwent several data cleaning and preprocessing steps to pre- pare it for analysis. Here is a detailed explanation of these methods:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*Xc4oi48FcPtQasCeBraeBQ.png" /><figcaption>Overview of the Dataset</figcaption></figure><h4><strong>1. Handling Missing Values</strong>:</h4><p><strong>1.1. Initial Assessment</strong></p><ul><li>To check for missing values in the dataset, we used the df.isna().sum() method.</li><li>The method revealed missing values in several columns, including:<br><em>- ’total_laid_off’<br>- ’percentage_laid_off’<br>- ’funds_raised’</em></li></ul><h4>1.2 Dropping Rows with Missing Values</h4><ul><li>Rows with missing values in crucial columns were dropped from the dataset.<br>- <strong>Columns: </strong>’total_laid_off’, ’location’, ’industry’, ’stage’</li></ul><pre>df.dropna(subset=[&#39;total_laid_off&#39;, &#39;location&#39;, &#39;industry&#39;, &#39;stage&#39;], inplace=True)</pre><h4>1.3 Filling Missing Values</h4><ul><li>For columns ’percentage_laid_off’ and ’funds_raised’, missing values were filled with the median of their respective columns.<br>- <strong>Columns: </strong>’percentage_laid_off’, ’funds_raised’</li></ul><pre>df[&#39;column&#39;].fillna(median_value, inplace=True)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*sbJPu-HnrtAPk0oDJJq72A.png" /></figure><h4>1.4 Data Transformation</h4><ul><li><strong>Conversion to Datetime: </strong>The ’Date’ column was converted to a datetime for- mat using pd.to_datetime(df[’Date’]). This is important for any time series analysis, as it ensures that dates are correctly formatted and recognized.</li><li><strong>Indexing by Date: </strong>The dataset was then indexed by the ’Date’ column to facilitate time-based analysis. This step is crucial for chronological analysis and time series forecasting.</li></ul><h3>Exploratory Data Analysis (EDA)</h3><h4>Density Curves:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*5i379ffKHlFLPA0e4HDiLw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*2dvceL4_hiVYKAgr9wrGoA.png" /></figure><p>The graphs display density curves for total layoffs, the percentage of employees laid off, and funds raised. The first graph shows that most companies have a low number of layoffs, with a sharp peak at the lower end. The second graph indicates a similar skew towards lower percentages of layoffs. The third graph suggests most companies have raised a relatively small amount of funds, again with a peak at the lower end, indicating that higher fund-raising is less common.</p><h4>Linear regression</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*lXwiqrPYCuI0ji4D0SpMBg.png" /></figure><p>Based on the scatter plot and the accompanying statistical measures, there is a weak neg- ative relationship between the percentage of the workforce laid off and the funds raised by companies. The p-value is 2.24e-02 (or 0.0224), which suggests that the relationship ob- served is statistically significant at the 5% significance level (since the p-value is less than 0.05). However, the correlation is very weak, While the relationship is statistically significant, the correlation coefficient is so close to zero that it suggests no practical linear relationship. This indicates that within this dataset, the amount of funds a company raises is not a strong predictor of the percentage of its workforce that may be laid off</p><h4>Count of companies by industry</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*sCnLL6ig_HrFt7xGyA6CbA.png" /></figure><p>The graph depicts the number of companies by industry, with the retail and transportation industries having the highest counts. In contrast, AI and Manufacturing have the lowest, indicating the industry-wise distribution of companies in the dataset.</p><h4>Count of companies by countries</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*Qmjcq8HIgw9BZKWB15JX-Q.png" /></figure><p>The bar chart shows the number of companies by country and displays the top 15 countries. The United States leads substantially, followed by India and Canada. This illustrates the dominance of the U.S. in this dataset and highlights the global distribution of companies, with representation across North America, Europe, Asia, and South America, indicating the diverse multinational presence of companies considered in the dataset.</p><h4>Layoff Trends in top 5 sectors</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*wwALPwhf2u39eC_sTglvPg.png" /></figure><p>The line graph illustrates layoff trends over time in three-month intervals for the top five sectors. It shows significant layoff fluctuations, with peaks and troughs indicating varying levels of layoffs in different quarters. Transportation and Retail sectors exhibit the most pronounced changes, suggesting seasonal or cyclical impacts, as well as potential market- driven events affecting these industries’ workforce numbers</p><h4>Monthly Layoffs</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*16e-Nyw1F6urKcFAfEXj5g.png" /></figure><p>The graph represents monthly total layoffs with a significant spike, indicating a peak in lay- offs at a particular point in time. The blue dashed line represents the best fit line, showing the overall trend excluding the outlier. Despite the peak, the trend line suggests a relatively stable pattern of layoffs over the observed period, indicating that the spike may be an anomaly rather than a consistent trend</p><h4>Total layoffs by industry</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*UD9cMvrf4DCLcoS3eJlYyg.png" /></figure><p>The bar graph displays total layoffs by industry, revealing a descending order of impacted sectors. Retail leads with the highest layoffs, followed closely by Consumer and Other categories. The trend shows a steep decline in layoffs as industries transition from Transport to AI, suggesting that some sectors are more vulnerable to layoffs than others, possibly due to economic, technological, or sector-specific challenges.</p><h4>Pivot Table</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*XPinMBXr0xIt1uUFBGi_Lg.png" /></figure><p>It aggregates data by summing up layoffs, with missing values filled with zero. The table is then styled to format the numbers without decimal places. This pivot table allows for a clear, concise comparison of layoffs across different industries and countries, highlighting areas with higher and lower job losses.</p><h4>Top 5 sectors with top 5 countries</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*MUiZiBag0IaxqhQkcTbTxw.png" /></figure><p>The bar chart illustrates layoffs within the top five sectors across the top five countries with the highest layoffs. The United States has the most significant number of layoffs across almost all sectors, particularly in the Consumer sector. The chart demonstrates the variation and distribution of layoffs by sector within each country, with other countries showing notably fewer layoffs compared to the U.S. across corresponding sectors.</p><h4>Correlation Matrix Heatmap</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*hX-2Ux0VUFYjDMxUZDqrTA.png" /></figure><p>The heatmap represents a correlation matrix, visualizing the relationship between total lay- offs, percentage laid off, and funds raised. The color intensity indicates the strength and direction of the correlation. Dark blue shows a positive correlation, while dark red indicates a negative correlation. The matrix shows very weak correlations between the variables, suggesting that within this dataset, these variables do not have strong linear relationships with each other.</p><h4>Total layoffs across USA</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*lvpVnZBfQC3qNfoit7whfw.png" /></figure><p>The bar chart displays total layoffs in various sectors within the United States, with the Consumer sector experiencing the highest number of layoffs, followed by Retail and Other. This visual representation emphasizes the disproportionate impact on the Consumer sector compared to others, like AI and Aerospace, which had the least number of layoffs. This data could suggest sector-specific economic challenges or transformations impacting employment.</p><h4>Mean percentage of layoffs:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*qQf2-8dkSALFP9LEps7dxA.png" /></figure><p>The bar chart visualizes the mean percentage of employees laid off across various indus- tries. Healthcare and Food industries have the highest mean percentage of layoffs, sug- gesting a significant workforce reduction in these sectors. The bars represent the average layoffs per industry, providing a quick comparison of how different sectors have been af- fected. Shorter bars for industries like Legal and AI indicate a lower mean percentage of layoffs in these fields.</p><h4>Pie chart</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*JbBf8iStbjXemvrki4NFlA.png" /></figure><p>The pie chart illustrates the distribution of total layoffs by company stages, with a dominant share of layoffs occurring in post-IPO companies, accounting for 53%.</p><h4>Clustering</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*uk3HYRkbcKbEf5IY3e2MGg.png" /></figure><p>The bubble chart categorizes companies into clusters based on the total number of layoffs, with the size of each bubble reflecting the layoff magnitude. Blue represents companies with low layoffs, red for medium, and green indicates companies with significant layoffs. The chart highlights that while most companies have a low to medium number of layoffs, a few companies, particularly those represented by larger green bubbles, have experienced a disproportionately high number of layoffs.</p><h4>Worldmap</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*nVnC4DdcabXMJ3jgf5-F5A.png" /></figure><p>The world map visualizes total layoffs by country, with color intensity corresponding to the number of layoffs: darker colors indicate higher layoffs. The United States stands out with the highest layoffs, followed by various shades across other countries, reflecting lower num- bers. This map highlights the global impact of layoffs, showing that while some countries experience high unemployment rates, others are less affected, providing a geographical perspective on the economic challenges faced worldwide.</p><h4>Top 20 companies by percentage laid-off</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*AVj2pvBy8wvGZBi-R6SB8w.png" /></figure><p>The bubble chart represents the top 20 companies by the percentage of employees laid off, with the bubble size indicating the layoff rate. Larger bubbles denote a higher percentage of workforce reductions. The chart is color-coded to differentiate between companies and showcases a range from the highest percentage at the top to lower percentages as the bubbles decrease in size. This visualization highlights the companies most affected by layoffs in a comparative context.</p><h4>Top 20 companies by total employees laid off</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*GUX8h8DdDPbrspEAin3A_w.png" /></figure><p>The bubble chart displays the top 20 companies by total number of employees laid off. The size of each bubble corresponds to the total layoffs, with Amazon and Meta having the largest bubbles, indicating the highest number of layoffs. The chart offers a visual com- parison among leading companies, showing a significant variation in the scale of layoffs, which decreases markedly among companies with smaller bubbles, like IBM and Groupon, towards the end of the chart.</p><h4>Mean percentage of total laid off</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*20DJTErnvy6im8eylQb3FQ.png" /></figure><p>The bar chart illustrates the mean percentage of employees laid off in the top 15 countries. South Korea shows the highest mean layoff rate, significantly more than the other countries</p><p>listed. The chart displays a descending order of mean layoff percentages, with countries like Israel, France, and Germany having the lowest rates among the top 15.</p><h3>Total laid off- Top 15 countries</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*u5Y1ZW0BvSzJXllPXom4Ag.png" /></figure><p>The bar chart shows the total number of employees laid off in the top 15 countries, with the United States far exceeding other countries in layoffs. India, the Netherlands, and Germany follow, but with significantly lower numbers. The bars are color-coded with the respective national flags, emphasizing the stark contrast between the United States and other coun- tries. The data suggests a considerable geographical disparity in the impact of layoffs on the workforce.</p><h3>Conclusion</h3><ol><li>The exploratory data analysis (EDA) on layoffs revealed significant insights. It identified a substantial difference between the means of funds raised and the percentage of employees laid off, suggesting a complex relationship between a company’s financial influx and its layoff decisions.</li><li>The recent increase in layoff trends is because of multiple factors involving the COVID-19 pandemic, Russia, the Ukraine war, and the collapse of a few financial institutions. The instability of supply and demand in the markets, affecting the company’s revenue, led to budget cuts to maximize profits through layoffs. Through this extensive analysis, we will be well-informed in making career or higher education choices wisely. The business point of view is where we can have an idea of our wise investments in the sectors or the company.</li><li>The analysis also highlighted industry-specific trends, where certain sectors experienced higher layoffs.</li></ol><p>This study was crucial in understanding the dynamics of layoffs in the corporate world, providing a data-driven perspective on how economic and industry-specific factors influence workforce reductions. This understanding aids in better preparing for and mitigating the impacts of such challenging corporations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae459e038b3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Market Basket Analysis]]></title>
            <link>https://sigma-nitt.medium.com/market-basket-analysis-f6f36e4e0ae3?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6f36e4e0ae3</guid>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[marketing-strategies]]></category>
            <category><![CDATA[grocery-shopping]]></category>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Thu, 11 Jan 2024 18:37:00 GMT</pubDate>
            <atom:updated>2024-01-11T18:45:32.446Z</atom:updated>
            <content:encoded><![CDATA[<p>By Avantika, Vibha and Pragati</p><h3><strong>INTRODUCTION</strong></h3><p>One of the most common and useful parts of information analysis for selling and marketing is market basket analysis. Market basket analysis is a data processing approach used by merchants to analyze their customer’s buying behavior&#39;s, such as which things consumers are likely to purchase together from their stores, which can assist the distributor in making the informed decisions. Effective analysis can increase a retailer’s profitability, service quality, and customer satisfaction. Market basket analysis provides value-added information that can be utilized to enhance decision-making. It will concentrate on descriptive analysis of customer purchase patterns, items that are frequently purchased together, and units that are frequently purchased from the store. Our dataset includes variables relating to orders as well as order timing. This analysis will enable Instacart to enhance the user experience by suggesting which products should be placed in the basket.</p><h3><strong>OBJECTIVE</strong></h3><p>The project’s main goal is to help Instacart suppliers better understand the purchasing habits of their present customers. To estimate possible customer purchasing behavior, retailers must first study existing consumer activity. Customer transaction data may be used to evaluate and visualize customer purchase behaviour, assortment planning, and inventory management in order to retain customers, improve revenue, and enhance customer relationships.</p><h3><strong>Brief Overview of the Dataset</strong></h3><p>To undertake analysis, datasets was taken from Kaggle, which was provided by the Instacart Company. Over <strong>3 million purchases</strong> from over <strong>200000 Instacart consumers</strong> are included in the databases. <strong>50,000 unique products</strong>, multiple product aisles, departments, week, and time of purchase are included in both product and consumer data.</p><p>A total of 6 datasets were provided which gave information on customer transactional and purchasing order details.</p><ol><li><strong>Aisles</strong>: Data provided here includes information about aisles, such as aisle names and aisle IDs, and how products were organized within them</li><li><strong>Department</strong>: This dataset provides information on the department such as department names and department ID</li><li><strong>Order_Products_prior/Order_Products_train</strong>: In this dataset, all order details for any prior orders are included, including information on orders, products, and reordered items. Order_Products_train is the same as order_products_prior and it is trained dataset.</li><li><strong>Orders</strong>: This dataset has information about customer orders like order ID, order number, weekday of the order, an hour of the order, user ID, and days since the prior order.</li><li><strong>Products</strong>: This dataset gives information on the products which were sold to customer such as product name, product ID, aisle and departments.</li></ol><p>When the dataset was analyzed using pandas to understand about missing values, there were 2078068 missing datapoints among the many 33819106 datapoints.</p><h3><strong>Exploratory Data Analysis</strong></h3><p>Following data preparation and cleaning, exploratory data analysis of the dataset is important to determine the relation between different columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7WSJqVAphlE2IiW7eDRIqw.png" /><figcaption><em>The above figure illustrates, on an average, it takes 7 days for a user to reorder after their last order</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MdB1cemFtZogZQ6wklXNPg.png" /><figcaption>Most of the users reorder products on the same day of purchase itself.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*PCm8AcA57HL2z745kF1Zug.png" /><figcaption><em>Most users’ reorder ratio lies between 41–50% which means user retention is around 17%</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*XKRPjpctfyxDwVBt0oUC3w.png" /><figcaption><em>Reorder low — 0–33.33% Reorder medium — 33.33–66.66% Reorder high — 66.66% — 100% From the graph it is clear that people’s reorder frequency fall in the medium range</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*uKilubqtchr05qrlRPrlxg.png" /><figcaption><em>Products that are ordered at 7 am are likely to be reordered more again. reordering percentage is above 60% for orders placed between 5 am — 10 am.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*gNJmatxLmYBvJMREE7mmEA.png" /><figcaption><strong><em>Orders placed on Monday (coded as 1) are likely to be reordered more</em></strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*-uM7dqtdJefkH6pWE6zVYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*HHrTiqo3BBVOhAq0WqAjKQ.png" /></figure><p><em>Only products that are added in the order between 1–23 into the cart are significantly reordered and the reordering percentage gradually decreases. First and the second product that go into the cart are likely to be reordered more than 68%.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*CYkKTZkUAlfYESt6YAK2Eg.png" /><figcaption><em>Number of orders placed from each department</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*LpKlfcuvywcWxX1rHrj2hQ.png" /><figcaption><strong><em>Products from dairy egg department get reordered the most.</em></strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*IK0nP5c67bt3cAhfBkyOuQ.png" /><figcaption><em>Top 15 aisles based on number of products ordered</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*VOrPhBN6q8QK5i7-JBULeA.png" /><figcaption><em>Products from milk aisle are reordered the most.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*QWOYlY2gZ4d_y6ZoSx-tLQ.png" /><figcaption><em>Top 15 frequently ordered products</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_t11GivO38vtdM9CIqC6A.png" /><figcaption><strong><em>Raw Veggie Wrappers are reordered the most</em></strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SVGIxcQUunqtxlCGy66y4g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*PIPglDavdxHLMOHi9b0GXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*3JRyIlvPdS58UTGECxurGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*PqS2RTcV7o_bpS6bQlOKMQ.png" /></figure><p><em>Usually more products are ordered after 7 days since their previous purchase, but there is only 69% chance that it may be a reorder. 73% percent of products purchased are likely to be reordered on the same day.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*As08g7oypPcAw1bQfgtwFQ.png" /><figcaption><em>Maximum number of orders are placed between 1–2pm on Sundays and 10am on Saturdays</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8h2Ii0zn45nc5gkXVUbO1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*ylK70-04pANOd8cRXfT4BA.png" /></figure><h3><strong>Data Modelling</strong></h3><p>Association rule learning is a form of unsupervised learning technology that determines the reliance of one data item on another and maps appropriately to increase profitability. It attempts to discover meaningful relationships or links between the variables in the dataset. It uses several criteria to uncover interesting relationships between variables in the database.</p><p><strong>How does Association Rule Learning work?</strong></p><p>Association rule learning works on the concept of If and Else Statement, such as if A then B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*vhZzrIBZmvlhmkBGBXl0Lg.png" /><figcaption>Association Learning</figcaption></figure><p>Here the If element is called A<strong>ntecedent</strong>, and then statement is called as <strong>Consequent</strong>. These types of relationships where we can find out some association or relation between two items is known <em>as single cardinality</em>. It is all about creating rules, and if the number of items increases, then cardinality also increases accordingly. So, to measure the associations between thousands of data items, there are several metrics.:</p><p><strong>Support </strong>refers to the frequency with which A appears in the dataset. It is defined as the proportion of transaction T that includes the itemset X. If there are X datasets, then for transactions T, it may be expressed as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*E_zlp1ETvsjOVhPOCKOFrQ.png" /></figure><p><strong>Confidence</strong> represents how frequently the rule has been proven to be correct. Or how frequently the items X and Y appear together in the dataset when the incidence of X is already known. The ratio between the transaction including X and Y and the number of records containing X.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*H-ykGOtNoah48_Y4EHMqgQ.png" /></figure><p><strong>Lift</strong>: It is the ratio of actual and predicted support if X and Y are independent of one another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*IUru-ZvsCUtWbo4SXLm71A.png" /></figure><p>There are three potential values:</p><blockquote>If Lift = 1, then the likelihood of occurrence of the antecedent and consequent is independent of one another.</blockquote><blockquote>Lift&gt;1: It indicates the degree to which the two itemsets are dependent on one another.</blockquote><blockquote>Lift 1 indicates that one thing serves as a substitute for another, implying a negative impact on the latter.</blockquote><h3><strong>Apriori Algorithm</strong></h3><p>The Apriori principle states that if an item set is common, its subset will likewise be frequent. A group of items is considered common if it receives more support than the threshold. Apriori employs an approach known as level-wise search. Initially, the database is scanned for frequently occurring 1-item sets with limited support.</p><p>Frequent 1-item sets are utilized to identify frequent 2-item sets, and so on until frequent k-item sets are found. Apriori uses a breadth-first search to count the frequency of candidate items, adhering to the antimonotone principle that any subset of a frequent set must also be frequent.</p><h4><strong>In this part of the analysis we focus on analyzing overall purchasing behavior&#39;s of users, providing insight into the quantity and variety of products they order irrespective of whether it is reordered or not. This gives us a general idea of users’ preferences.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*nbnQLW6XSPed-fFThdaC5Q.png" /><figcaption><em>Frequently purchased products</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*dTyEimi30v73ERye74pKQQ.png" /><figcaption><em>5 most frequent items that occur in a basket</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*vYJ7Jw3CE8uAKUO_a9-K0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ypJIw4BbOf5mh2Da2Nca1g.png" /></figure><p>Lift greater than 1 indicates that the presence of A has a positive effect on the likelihood of B being purchased, suggesting a stronger association between A and B than would be expected by chance. 1 means there would be no association. So from the above table, we can conclude that <em>Honeycrisp Apple &amp; Apple Honeycrisp Organic, Organic Yellow Onion &amp; Organic Garlic</em> have strong association :- combinations of 2</p><p>Organic Raspberries, Organic Strawberries, Organic Garlic and Organic Yellow Onion have high lift value above 4 and thus have strong association and are likely to occur together :- combinations of 4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*GR_Iep4uTi7J2XdI35-yDQ.png" /></figure><p>A positive leverage value indicates that the occurrence of X and Y together is more frequent than what would be expected by chance, suggesting a positive association. Limes &amp; Large Lemon, Organic Garlic &amp; Organic Baby Spinach occur frequently together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_rXUTec1GMz6U9okaHTmIg.png" /><figcaption>These are the 5 top most products that are usually purchased with bananas/ These combinations occur together frequently in a basket</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*m99Wq448bVaIqBNDCFsNew.png" /></figure><p><em>A high conviction value (&gt; 1) indicates that the presence of X is strongly dependent on the presence of Y, implying a strong association. Organic Lemon and Organic Hass Avocado have strong association</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*qeP4oibhSOHMkmWXXS66bQ.png" /></figure><p><strong>Conclusion:</strong> Organic Raspberries, Strawberries, Organic Strawberries and Organic Hass Avocado have confidence of 86%, meaning in 86% of the transactions they occur together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*FmSoyid5Ajrk0MURemz0-Q.png" /></figure><p><strong><em>Inference: </em></strong><em>White colour node indicates organic strawberries and have 9 connections. Since Organic strawberries have more connections, they are frequently bought together along with other products.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*XyeXxwyxmi923DHXrPxafw.png" /></figure><p><strong>Conclusion: </strong>All organic products have more number of connections. We can conclude that customers purchase more of organic products from the store.</p><h4><strong>This part of the analysis focuses specifically on products that users choose to reorder, capturing patterns related to user loyalty and repeat purchases.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*kjPFo3kzKD_5gV5b_cn-mA.png" /></figure><p><strong><em>Inference:</em></strong><em> These 5 products are more frequently reordered as they have high support value which denotes the number of occurrences of a product in a basket.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*JBtvbPITKy5TOnLtyJB6KA.png" /></figure><p>Positive leverage indicates A and B more frequently occur together. So bag of Organic Bananas &amp; Organic strawberries &amp; Organic Hass Avocado are frequently reordered</p><h3><strong>F-P Growth Algorithm</strong></h3><p>The FP growth algorithm compresses transaction records using the FP-tree visual data structure, offering an alternative way to assess frequent item collections. FP growth involves turning datasets into graph representations. The FP growth algorithm creates a lexicographic tree structure, whereas the Apriori technique employs candidate creation and checking procedures. After creating the FP-tree, frequent items are divided into conditional FP-trees. Additionally, conditional FP Trees may be mined and assessed individually. FP-growth approaches address the challenges of identifying minor suffixes and incorporating them into model discovery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Ed0Kl5tiePnWuPl_LltI3g.png" /></figure><p>From this algorithm it can inferred that <strong>limes, organic strawberries and organic baby spinach</strong> occur frequently together. Inferences from both the algorithms seems to be almost similar.</p><h4><strong>Why F-P Growth algorithm is better than Apriori Algorithm?</strong></h4><p>The Apriori algorithm has various drawbacks, such as the cost of computing or the length of time required to complete a run. It takes place because in order to build the itemset, the algorithm must repeatedly iterate over the entire dataset.</p><h3><strong>ECLAT Algorithm</strong></h3><p>The ECLAT algorithm is a depth-first search method. The vertical database layout stores each item with its cover (also known as titlist) and employs an intersection-based approach, rather than explicitly displaying all transactions.</p><p>An technique for calculating the support of an itemset. For tiny item sets, it takes up less space than Apriori. This method works well for small datasets and generates common patterns faster than Apriori.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6f36e4e0ae3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring NLP Techniques for Analysing Reddit Posts]]></title>
            <link>https://sigma-nitt.medium.com/exploring-nlp-techniques-for-analysing-reddit-posts-d00966454288?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/d00966454288</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[reddit]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Sat, 02 Sep 2023 13:33:51 GMT</pubDate>
            <atom:updated>2023-09-02T13:40:17.462Z</atom:updated>
            <content:encoded><![CDATA[<h3>Exploring NLP Techniques for Analyzing Reddit Posts</h3><p>- By Nishanth</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9Lz3J6a2PXAxe4hg" /><figcaption>Reddit Posts: Sentiment Analysis</figcaption></figure><p>In today’s digital age, the immense amount of textual data available on platforms like Reddit presents a goldmine of information waiting to be unlocked. Natural Language Processing (NLP) empowers us to delve deep into this treasure trove and uncover valuable insights. In this article, we embark on an exciting journey into the world of NLP, where we will harness the power of Python to analyse Reddit posts. By leveraging a range of NLP techniques, including data scrapping, text preprocessing, sentiment and emotional analysis, word cloud visualisation, and classification using Naive Bayes, we will unveil the hidden secrets concealed within the vast sea of textual information. So, fasten your seatbelts as we dive into the fascinating realm of NLP and learn how to extract meaningful knowledge from Reddit posts using the power of Python.</p><p>Let’s begin our exploration!</p><p>First lets import all the necassary libraries.</p><pre>import praw<br>import nltk<br>from nltk.corpus import stopwords<br>from nltk.tokenize import word_tokenize<br>from nrclex import NRCLex<br>nltk.download(&#39;vader_lexicon&#39;)<br>from nltk.corpus import stopwords<br>from nltk.tokenize import word_tokenize<br>nltk.download(&#39;nrc_lexicon&#39;)<br>nltk.download(&#39;punkt&#39;)<br>nltk.download(&#39;stopwords&#39;)<br>from IPython import display<br>import math<br>from pprint import pprint<br>import pandas as pd<br>import numpy as np<br>import nltk<br>import matplotlib.pyplot as plt<br>import seaborn as sns</pre><p>These libraries will be instrumental in performing various NLP tasks and analyzing the Reddit posts effectively.</p><ol><li>praw: This library allows you to interact with the Reddit API and retrieve posts and other information from Reddit.</li><li>nltk: The Natural Language Toolkit (NLTK) is a popular library for NLP tasks. It provides a wide range of functionalities such as tokenization, stemming, lemmatization, and more.</li><li>nrclex: The NRCLex library is a powerful tool for emotion analysis. It helps in determining the dominant emotion expressed in a given text.</li><li>nltk.corpus: The stopwords corpus from NLTK provides a collection of common words that are often removed during text preprocessing to reduce noise and improve analysis results.</li><li>nltk.tokenize: The word_tokenize function from NLTK is used for tokenizing sentences into individual words.</li><li>IPython.display: This module provides utilities for displaying rich media in IPython notebooks or environments.</li><li>math: The math module provides mathematical functions and constants.</li><li>pprint: The pprint module is used for pretty-printing data structures, making them more readable.</li><li>pandas: Pandas is a powerful library for data manipulation and analysis. It provides data structures such as DataFrames that allow for efficient handling and processing of data.</li><li>numpy: NumPy is a library for numerical computing in Python. It provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions.</li><li>matplotlib.pyplot: Matplotlib is a popular data visualization library in Python. The pyplot module provides a convenient interface for creating various types of plots.</li><li>seaborn: Seaborn is a data visualization library built on top of Matplotlib. It provides a high-level interface for creating visually appealing statistical graphics.</li></ol><h3>Scrapping Reddit Comments using PRAW</h3><p>To begin our analysis, we will utilize the PRAW (Python Reddit API Wrapper) library, which provides a convenient way to interact with the Reddit API and retrieve posts from specific subreddits.</p><p>First, we need to set up our credentials to authenticate with the Reddit API. This includes providing the client ID, client secret, user agent, password, and username. These credentials are necessary to establish a connection with the Reddit API and retrieve the desired data.</p><pre>reddit = praw.Reddit(client_id = &#39;88y7ivnT_ScomAHMtBTs6Q&#39;,<br>                     client_secret = &#39;2HvpbzYCFS_t0Kjg4XIaLTfcu8jb6Q&#39;,<br>                     user_agent = &#39;nish&#39;,<br>                     password =&#39;********&#39;,<br>                     username=&#39;Quick-Fan-4096&#39;)</pre><p>Once we have set up our credentials, we can create an instance of the praw.Reddit class, which will allow us to access the desired subreddit. The praw.Reddit instance provides various methods and attributes to interact with the Reddit API, such as retrieving posts, comments, user information, and more.</p><h3>Text Preprocessing</h3><pre>import re</pre><pre>def clean_text(text):<br>    text = text.lower()<br>    text = re.sub(r&quot;http\S+|www\S+|https\S+&quot;, &quot;&quot;, text)<br>    text = re.sub(r&quot;[^\w\s]&quot;, &quot;&quot;, text)<br>    text = re.sub(r&quot;\d+&quot;, &quot;&quot;, text)<br>    text = re.sub(r&quot;\s+&quot;, &quot; &quot;, text).strip()<br>    return text</pre><p>We define a function clean_text() that takes a string as input and performs various text cleaning operations on it. These operations include converting the text to lowercase, removing URLs, removing punctuation, removing numbers, and reducing multiple spaces to a single space using the strip function. This is done with the help of regular expression library.</p><h3>Analyzing Emotion in Text</h3><p>To analyze the emotions expressed in the text data, we will utilize the NRCLex library. This library provides a powerful tool for emotion analysis based on the NRC (National Research Council) Word-Emotion Association Lexicon.</p><pre>from nrclex import NRCLex</pre><pre>def analyze_emotion(text):<br>    lexicon = NRCLex(text)<br>    emotions = lexicon.affect_frequencies<br>    dominant_emotion = max(emotions, key=emotions.get)<br>    return dominant_emotion</pre><p>Inside the analyze_emotion function, we create an instance of the NRCLex class by passing the text as an argument. The NRCLex object provides access to various attributes and methods for analyzing emotions in the text.</p><p>We retrieve the emotion frequencies using the affect_frequencies attribute, which returns a dictionary where the keys represent different emotions and the values represent the frequencies of those emotions in the text.</p><p>To determine the dominant emotion, we use the max() function with the key parameter set to emotions.get. This finds the emotion with the highest frequency in the text and returns its corresponding key.</p><p>Finally, we return the dominant emotion from the analyze_emotion function.</p><p>By utilizing the analyze_emotion function, we can analyze the emotions expressed in the text data and gain insights into the sentiment and tone of the Reddit posts.p</p><pre>headlines = set()<br>hot_posts = reddit.subreddit(&#39;IndianBoysOnTinder&#39;).new(limit=None)<br>for post in hot_posts:<br>    title = clean_text(post.title)<br>    if title:<br>        emotion = analyze_emotion(title)<br>        headlines.add((title, emotion))</pre><pre>print(len(headlines))</pre><p>We initialize an empty set called headlines to store the post titles along with their dominant emotions.</p><p>We use the PRAW library to retrieve the latest posts from the “IndianBoysOnTinder” subreddit by calling the reddit.subreddit(&#39;IndianBoysOnTinder&#39;).new(limit=None) method. The limit=None argument ensures that we retrieve all available posts from the subreddit.</p><p>We iterate through each post in the hot_posts list and perform text cleaning on the post title using the clean_text function.</p><p>If the cleaned title is not empty (if title), we analyze the emotion of the title using the analyze_emotion function. The analyze_emotion function calculates the dominant emotion in the text and returns it.</p><p>We add the cleaned title and its corresponding dominant emotion to the headlines set using the add() method.</p><pre>from tabulate import tabulate</pre><pre>emotions_table = []<br>for headline, emotion in headlines:<br>    emotions_table.append([headline, emotion])<br>print(tabulate(emotions_table, headers=[&quot;Title&quot;, &quot;Emotion&quot;], tablefmt=&quot;fancy_grid&quot;))</pre><p>We iterate through each item in the headlines set, which contains the post titles and their dominant emotions. For each item, we append a list containing the post title and emotion to the emotions_table list.</p><p>Finally, we use the tabulate function to format the emotions_table as a grid with headers. The headers parameter specifies the column names as &quot;Title&quot; and &quot;Emotion&quot;. The tablefmt parameter is set to &quot;fancy_grid&quot; to display the table in an aesthetically pleasing format.</p><pre>emotions = [emotion for _, emotion in headlines]<br>emotions_counts = {emotion: emotions.count(emotion) for emotion in set(emotions)}</pre><pre>plt.figure(figsize=(8, 6))<br>sns.barplot(x=list(emotions_counts.keys()), y=list(emotions_counts.values()))<br>plt.xlabel(&quot;Emotion&quot;)<br>plt.ylabel(&quot;Count&quot;)<br>plt.title(&quot;Distribution of Emotions in Reddit Posts&quot;)<br>plt.show()</pre><p>We first prepare the data for the emotions barplot. We extract the emotions from the headlines set using a list comprehension and then calculate the count of each emotion using a dictionary comprehension, storing the result in emotions_counts.</p><p>We then create the emotions barplot using seaborn’s barplot function. The x-axis represents the emotions, obtained from list(emotions_counts.keys()), and the y-axis represents the count, obtained from list(emotions_counts.values()). We customize the plot by adding appropriate labels and a title.</p><p>Finally, we use plt.show() to display the emotions barplot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/0*SwP2sfajGkrd_8CB.png" /><figcaption>Fig 1. Distribution of Emotions in Reddit Posts</figcaption></figure><h3>Creating a Word Cloud and Displaying Most Occurring Words</h3><p>we utilize the wordcloud library to create a word cloud visualization of the post titles and display the most occurring words. The word cloud provides a visual representation of the frequently used words in the post titles, where the size of each word corresponds to its occurrence frequency. This visualization can help identify prominent themes or topics within the subreddit.</p><pre>from wordcloud import WordCloud<br>import matplotlib.pyplot as plt</pre><pre>all_words = []</pre><pre>for headline, emotion in headlines:<br>    words = headline.split()<br>    all_words.extend(words)</pre><pre>wordcloud = WordCloud(width=800, height=400, background_color=&#39;white&#39;).generate(&#39; &#39;.join(all_words))</pre><pre>plt.figure(figsize=(10, 5))<br>plt.imshow(wordcloud, interpolation=&#39;bilinear&#39;)<br>plt.axis(&#39;off&#39;)<br>plt.show()</pre><p>We initialize an empty list called all_words to store all the individual words from the post titles. For each headline and emotion pair in the headlines set, we split the headline into words and add them to the all_words list.</p><p>We create a WordCloud object with the specified width, height, and background color. The generate() function converts the all_words list into a single string separated by spaces.</p><p>We plot the word cloud using plt.imshow() and set the figure size. The interpolation=&#39;bilinear&#39; argument ensures a smooth and visually appealing image. We turn off the axis using plt.axis(&#39;off&#39;) to remove the axes and labels. Finally, we display the word cloud using plt.show().</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/0*4Xn14rtoJySxrD9r.png" /><figcaption>Fig 2. Wordcloud displaying most frequent words in Reddit Posts</figcaption></figure><h3>Sentiment Analysis</h3><p>we use the NLTK library&#39;s VADER (Valence Aware Dictionary and Sentiment Reasoner) sentiment analyzer to perform sentiment analysis on the post titles and display the results in a table.</p><pre>from nltk.sentiment.vader import SentimentIntensityAnalyzer as SIA</pre><pre>sia = SIA()<br>results = []<br>for headline, emotion in headlines:<br>    pol_score = sia.polarity_scores(headline)<br>    pol_score[&#39;headline&#39;] = headline<br>    pol_score[&#39;emotion&#39;] = emotion<br>    results.append(pol_score)<br>headers = [&#39;Headline&#39;, &#39;Positive&#39;, &#39;Negative&#39;, &#39;Neutral&#39;, &#39;Compound&#39;, &#39;Emotion&#39;]<br>data = [[result[&#39;headline&#39;], result[&#39;pos&#39;], result[&#39;neg&#39;], result[&#39;neu&#39;], result[&#39;compound&#39;], result[&#39;emotion&#39;]] for result in results]<br>df = pd.DataFrame.from_records(results)<br>df.head()</pre><p>We create an instance of the SentimentIntensityAnalyzer from nltk.sentiment.vader using sia = SIA().</p><p>We iterate over the headlines set and apply sentiment analysis to each headline using sia.polarity_scores(). The polarity_scores() function returns a dictionary containing the positive, negative, neutral, and compound sentiment scores for the headline.</p><p>We add the headline and emotion information to the pol_score dictionary and append it to the results list.</p><p>We define the headers list with the column names for the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*LzAN3INcSGJbeqPq.png" /><figcaption>Fig 3. Above dataframe shows the headline and its corresponding emotion</figcaption></figure><p>In the context of sentiment analysis using the VADER sentiment analyzer, the terms “positive,” “negative,” “neutral,” and “compound” represent different aspects of sentiment for a given comment or headline.</p><p>Here’s a brief explanation of each term:</p><ol><li><strong>Positive</strong>: The positive score represents the likelihood of the text conveying positive sentiment. It ranges from 0 to 1, where a score closer to 1 indicates a stronger positive sentiment.</li><li><strong>Negative</strong>: The negative score represents the likelihood of the text conveying negative sentiment. It also ranges from 0 to 1, where a score closer to 1 indicates a stronger negative sentiment.</li><li><strong>Neutral</strong>: The neutral score represents the likelihood of the text being neutral, i.e., not conveying a strongly positive or negative sentiment. It also ranges from 0 to 1, where a score closer to 1 indicates a stronger neutral sentiment.</li><li><strong>Compound</strong>: The compound score is a computed metric that combines the positive, negative, and neutral scores to provide an overall sentiment intensity. It ranges from -1 to 1, where a score closer to 1 indicates a strongly positive sentiment, a score closer to -1 indicates a strongly negative sentiment, and a score around 0 indicates a relatively neutral sentiment.</li></ol><p>By analyzing these sentiment scores, we can gain insights into the emotional tone of the comments or headlines. For example, a headline with a high positive score and a low negative score would indicate a predominantly positive sentiment, while a headline with a high negative score and a low positive score would indicate a predominantly negative sentiment.</p><pre>df[&#39;label&#39;] = 0<br>df.loc[df[&#39;compound&#39;] &gt; 0.20, &#39;label&#39;] = 1<br>df.loc[df[&#39;compound&#39;] &lt; -0.20, &#39;label&#39;] = -1</pre><p>The labels are assigned as follows:</p><ul><li>1 for positive sentiment (compound score &gt; 0.20)</li><li>0 for neutral sentiment (-0.20 &lt;= compound score &lt;= 0.20)</li><li>-1 for negative sentiment (compound score &lt; -0.20)</li></ul><p>This labelling allows for further analysis and classification based on sentiment polarity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*ioyBmINAgIFp7cgK.png" /><figcaption>Fig 4. Percentage of each emotion in Reddit posts</figcaption></figure><p>We find more number of neutral comments followed by positive and the least with negative comments in the subreddit.</p><h3>Building a Model</h3><pre>df = df[df.label != 0]</pre><p>we use boolean indexing to filter out the rows where the ‘label’ column is not equal to 0 (indicating non-neutral sentiment). This is done using df[df.label != 0], which creates a new DataFrame df containing only the rows with non-neutral sentiment labels.</p><p>Now each of our data is in the form of text which cant be read by the machine learning algorithms.By using CountVectorizer, we can represent the textual data in a numerical format that can be used as input for various machine learning algorithms such as classification or clustering.</p><p>CountVectorizer is a text feature extraction technique that converts a collection of text documents into a matrix of token counts. It tokenizes the text, assigns a unique integer ID to each token (word), and counts the frequency of each token in each document. The result is a sparse matrix where rows correspond to documents, columns correspond to tokens, and values represent the count of each token in each document.</p><pre>from sklearn.feature_extraction.text import CountVectorizer</pre><pre>vect = CountVectorizer(max_features=1000, binary=True)<br>X = vect.fit_transform(df.headline)<br>X_array = X.toarray()</pre><p>The CountVectorizer is initialized with the max_features parameter set to 1000, which limits the number of unique tokens (words) to consider based on their frequency. The binary parameter is set to True, which indicates that the presence of a token in a document is considered rather than its count.</p><p>The fit_transform() method of CountVectorizer fits the vectorizer on the given headline data (df.headline) and transforms it into a sparse matrix representation (X). The X_array variable then converts the sparse matrix X into a dense numpy array using the toarray() method, which can be useful for some downstream operations or analyses.</p><p>Each headline is transformed into a vector of numerical features, where each feature corresponds to a token (word) in the vocabulary. This allows us to apply machine learning techniques to analyze and classify the headlines based on their textual content.</p><pre>from sklearn.model_selection import train_test_split</pre><pre>X = df.headline<br>y = df.label<br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)</pre><p>Next, we use the train_test_split function to split the data into training and testing sets. The test_size parameter is set to 0.2, which means that 20% of the data will be allocated for testing, while 80% will be used for training.</p><pre>vect = CountVectorizer(max_features=1000, binary=True)<br>X_train_vect = vect.fit_transform(X_train)</pre><p>By fitting the CountVectorizer specifically on X_train, we can ensure that the vocabulary and binary representation are learned from the training data only. This way, we can prevent any information from the testing data influencing the vectorization process. This ensures that the vectorizer is fitted only on the training data to avoid data leakage.</p><pre>from collections import defaultdict<br>from imblearn.over_sampling import SMOTE</pre><pre>sm = SMOTE(sampling_strategy=&#39;auto&#39;, k_neighbors=2)<br>X_train_res, y_train_res = sm.fit_resample(X_train_vect, y_train)</pre><p>By applying SMOTE oversampling, we are addressing the class imbalance by generating synthetic samples of the minority class, which helps improve the performance and robustness of machine learning models.</p><p>We create an instance of the SMOTE class called sm with the following parameters:</p><ul><li>sampling_strategy=&#39;auto&#39;: This sets the sampling strategy for the minority class during oversampling. &#39;auto&#39; adjusts the sampling strategy automatically based on the imbalance ratio.</li><li>k_neighbors=2: This specifies the number of nearest neighbors to use when generating synthetic samples.</li></ul><p>We then use the fit_resample() method of SMOTE to perform the oversampling. We pass in the X_train_vect matrix (transformed training features) and the y_train variable (training labels) to perform oversampling on the minority class.</p><pre>from sklearn.naive_bayes import MultinomialNB</pre><pre>nb = MultinomialNB()<br>nb.fit(X_train_res, y_train_res)</pre><p>MultinomialNB assumes that the features (word counts in this case) are generated from a multinomial distribution. It works well when the text data can be represented as discrete features, such as word frequencies or presence/absence of specific words. It is often used for tasks like sentiment analysis, spam detection, or document classification.</p><pre>X_test_vect = vect.transform(X_test)<br>y_pred = nb.predict(X_test_vect)</pre><pre>from sklearn.metrics import classification_report<br>from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score<br><br>accuracy = accuracy_score(y_test, y_pred)<br>f1 = f1_score(y_test, y_pred)<br>precision = precision_score(y_test, y_pred)<br>recall = recall_score(y_test, y_pred)<br><br>print(&quot;Accuracy: {:.2f}%&quot;.format(accuracy * 100))<br>print(&quot;F1 Score: {:.2f}&quot;.format(f1))<br>print(&quot;Precision: {:.2f}&quot;.format(precision))<br>print(&quot;Recall: {:.2f}&quot;.format(recall))<br><br>report = classification_report(y_test, y_pred)<br>print(&quot;\nClassification Report:&quot;)<br>print(report)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*oz6LCewCsJ5Fis-5.png" /><figcaption>Fig 5. Classification report of the ML model</figcaption></figure><p>The accuracy of 67.12% indicates the proportion of correctly classified instances in the test set. The F1 score of 0.74 considers both precision and recall and provides a balanced measure of the model’s performance. The precision of 0.69 indicates the proportion of true positive predictions out of all positive predictions, and the recall of 0.79 indicates the proportion of true positive predictions out of all actual positive instances.</p><p>The classification report provides a detailed breakdown of precision, recall, and F1 score for each class (-1 and 1), along with support (the number of instances) in each class. The macro average and weighted average provide overall metrics, taking into account the class imbalance.</p><pre>cm = confusion_matrix(y_test, y_pred)<br><br>plt.figure(figsize=(8, 6))<br>sns.heatmap(cm, annot=True, fmt=&#39;d&#39;, cmap=&#39;Blues&#39;)<br>plt.xlabel(&#39;Predicted&#39;)<br>plt.ylabel(&#39;Actual&#39;)<br>plt.title(&#39;Confusion Matrix&#39;)<br>plt.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*vdsfl7frDbMrnu-d.png" /><figcaption>Fig 6. Confusion Matrix</figcaption></figure><ul><li><strong>True Negative (TN)</strong>: The model correctly predicted 15 instances as class -1 (negative) when they were actually negative.</li><li><strong>False Positive (FP)</strong>: The model incorrectly predicted 15 instances as class 1 (positive) when they were actually negative.</li><li><strong>False Negative (FN)</strong>: The model incorrectly predicted 9 instances as class -1 (negative) when they were actually positive.</li><li><strong>True Positive (TP)</strong>: The model correctly predicted 34 instances as class 1 (positive) when they were actually positive.</li></ul><h3>Summary</h3><ol><li><strong>Addressing Negative Sentiments:</strong> The analysis revealed a significant number of negative sentiments expressed by Users on Tinder. These sentiments can indicate issues such as inappropriate behavior, low match quality, or other challenges faced by users. By addressing these concerns, Tinder and matchmaking companies can work towards improving user experiences and addressing pain points that are affecting user satisfaction.</li><li><strong>Improving Match Quality</strong>: The sentiment analysis and classification results provide valuable feedback on the overall match quality experienced by the users on Tinder. The presence of negative sentiments suggests that users may be dissatisfied with the matches they receive. Tinder and matchmaking companies can use this information to refine their matching algorithms, considering factors such as user preferences, interests, and location to improve the relevance and quality of matches.</li><li><strong>Enhancing User Safety:</strong> The analysis revealed instances of negative sentiments related to user safety and inappropriate behavior. Tinder and matchmaking companies should prioritize user safety by implementing stricter moderation policies, enhancing reporting mechanisms, and employing advanced technologies to identify and address cases of harassment or misconduct. Taking proactive measures to create a safe and respectful environment will help improve user trust and loyalty.</li><li><strong>Improving Profile Quality</strong>: The analysis indicates that a significant percentage of users have incomplete or low-quality profiles. Tinder can use this information to implement measures that incentivize users to create more detailed and attractive profiles. This can include offering profile completion rewards, providing prompts or templates to guide users, or introducing profile verification features to enhance authenticity.</li><li><strong>Enhancing Matching Accuracy</strong>: The data suggests that users often receive matches that do not align with their preferences. By analyzing the swiping behavior and preferences of users, Tinder can refine its matching algorithm to provide more accurate and relevant matches. This can involve incorporating additional parameters or refining existing ones to increase the compatibility between users.</li><li><strong>Addressing Geographic Disparities</strong>: The analysis highlights variations in user activity and match rates across different geographic locations. Tinder can utilize this information to target specific regions where user engagement is low and implement region-specific marketing strategies. Additionally, the company can explore partnerships or collaborations with local influencers or organizations to increase awareness and adoption in underrepresented areas.</li></ol><p>In conclusion, by leveraging these insights, Tinder and matchmaking companies can make data-driven improvements to their platforms, addressing user concerns, and enhancing the overall user experience. This proactive approach will contribute to building a loyal user base and maintaining a competitive edge in the online dating industry.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d00966454288" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rich People Problems: The Economics of Inheritance]]></title>
            <link>https://sigma-nitt.medium.com/rich-people-problems-the-economics-of-inheritance-97435d5a63fb?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/97435d5a63fb</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[inheritance]]></category>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Wed, 21 Jun 2023 14:13:44 GMT</pubDate>
            <atom:updated>2023-06-21T14:31:42.838Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mcb9QWzlaWxR8tsFfOV2rg.png" /></figure><blockquote><strong>1. What is Inheritance and what qualifies as one?</strong></blockquote><p>Inheritance refers to the process of passing on wealth or assets from one generation to another. The economics of inheritance is a branch of economics that focuses on how inheritance affects the distribution of wealth in a society and how it can impact economic outcomes.</p><p>One key concept in the economics of inheritance is intergenerational transfers, which refers to the transfer of wealth from one generation to another. This can take many forms, including bequests, gifts, and transfers.</p><p>In the same context, human versus nonhuman wealth refers to the distinction between the transfer of wealth or assets that are tied to individuals’ human capital, such as their education, skills, and abilities, versus the transfer of wealth or assets that are not tied to individuals’ human capital, such as physical property or financial assets.</p><p>Human wealth is often considered to be the most valuable form of wealth, as it is tied to individuals’ ability to generate income and contribute to the economy. Human wealth can be transferred through intergenerational transfers of knowledge, skills, and abilities, such as education and training, or through bequests of financial resources that can be used to fund educational or career opportunities.</p><p>Nonhuman wealth, on the other hand, includes assets such as real estate, stocks, bonds, and other financial instruments that are not tied to individuals’ human capital. Nonhuman wealth can be transferred through bequests or inter vivos transfers and can provide financial support and security to heirs or beneficiaries.</p><p>The transfer of human versus nonhuman wealth has important implications for economic outcomes and inequality. Inheritance of human capital can provide individuals with the skills and knowledge they need to succeed in the labor market and generate income.</p><blockquote><strong>2. Why study the Economics of Inheritance… and How?</strong></blockquote><p>Inheritance is a complex and controversial topic in economics. On the one hand, inheritance can provide a source of financial security for heirs and help to reduce inequality by redistributing wealth. On the other hand, it can perpetuate existing inequalities by concentrating wealth and power in the hands of a few families and create disincentives for work and productivity among heirs who may rely too heavily on inherited wealth. In recent years, researchers have used population registers to study the impact of inheritance on wealth inequality, shedding new light on this important and contentious issue.</p><p>Population registers are large databases that record demographic information on entire populations over time. They are particularly useful for studying inheritance because they allow researchers to track the transmission of wealth across generations and to control for a wide range of factors that might confound the analysis. By linking information on parents and children, researchers can study the extent to which inheritance contributes to wealth inequality over time and across different populations.</p><p>One key finding from population register studies is that inheritance is a major driver of wealth inequality. In a 2017 study in Sweden, for example, researchers found that inherited wealth accounted for about 30% of total household wealth in 2007 and that the top 10% of households by wealth received about 60% of all inheritances. The researchers also found that inherited wealth had become more important over time, with the share of household wealth accounted for by inheritance increasing from 20% in 1989 to 30% in 2007.</p><p>Another important finding from population register studies is that the transmission of wealth across generations is highly unequal. In a 2021 study of Norway, for example, researchers found that the top 1% of families accounted for about 25% of total inherited wealth, while the bottom 50% of families received only about 10% of inherited wealth. The economics of inheritance also considers the role of inheritance in shaping economic mobility and social mobility. Inheritance can provide a leg up for those born into wealthy families, while those from less privileged backgrounds may face greater challenges in accumulating wealth and achieving economic success.</p><p>In addition, inheritance can have important implications for tax policy and government revenue. Governments may seek to tax inherited wealth to redistribute wealth and promote greater economic equality, although the effectiveness and desirability of such policies are a matter of ongoing debate.</p><p>In addition to shedding new light on the relationship between inheritance and wealth inequality, population register studies have also helped to challenge some longstanding assumptions about the role of inheritance in the economy. One such assumption is that inheritance is an important source of capital for entrepreneurship and innovation. In reality, however, inherited wealth is often used to fund consumption and other non-productive activities, rather than to invest in new businesses or technologies.</p><p>This has important implications for economic growth and innovation. If inherited wealth is not being used to fund new ventures, then it may be depriving the economy of needed investment and stunting innovation. This suggests that policies aimed at promoting entrepreneurship and innovation may need to focus on other sources of capital, such as venture capital or public investment.</p><p>Another assumption that has been challenged by population register studies is that inheritance serves as a reward for hard work and productivity. In reality, however, inheritance is often determined by factors beyond the control of the individual, such as family background and luck. This suggests that inheritance may not be an efficient or fair way to allocate resources and that alternative mechanisms, such as merit-based rewards, may be more effective and equitable.</p><blockquote><strong>3. Inheritance as an Economic Factor</strong></blockquote><p>One important economic effect of inheritance is its impact on wealth inequality. Inherited wealth can account for a significant portion of total household wealth, particularly among the very wealthy. Studies have shown that the top 10% of households by wealth often receive the majority of all inheritances, leading to a greater concentration of wealth in the hands of a few families. This concentration of wealth can have important implications for economic opportunity, social mobility, and political power.</p><p>Inheritance can also have implications for economic productivity and growth. Some economists have argued that inheritance can serve as a source of capital for entrepreneurial ventures and other productive investments. However, as pointed out earlier that inherited wealth is often used to fund consumption and other non-productive activities, rather than being invested in new businesses or technologies. This suggests that the economic impact of inheritance may be more mixed than some proponents suggest.</p><p>In addition to its economic effects, inheritance also has important implications for public policy. In many countries, inheritance is subject to taxation, with the aim of promoting greater economic equality and raising government revenue. However, some argue that heavy taxes on inherited wealth could discourage savings and investment, while others argue that such policies are necessary to promote greater economic opportunity and reduce the concentration of wealth in the hands of a few families.</p><p>Inheritance also has implications for intergenerational transfers of human capital or the knowledge, skills, and abilities that people possess. Some studies have shown that children who inherit wealth or other assets from their parents may be more likely to achieve high levels of education and career success. This may be due in part to the financial resources that inheritance provides, which can help to fund educational opportunities and other investments in human capital.</p><p>However, inheritance can also create disincentives for work and productivity among heirs, who may rely too heavily on inherited wealth rather than pursuing their own careers and interests. This can have important implications for social mobility, as it may perpetuate existing inequalities and limit economic opportunities for those from less privileged backgrounds.</p><blockquote><strong>4. Rich People Problems: Inter Vivos Transfers versus Bequests</strong></blockquote><p>Inter vivos transfers refer to the transfer of assets or wealth from one person to another during the donor’s lifetime, while bequests refer to the transfer of assets or wealth from a deceased person’s estate to their heirs or beneficiaries through a will or trust.</p><p>There are several differences between these two types of transfers. Inter vivos transfers are generally voluntary and can be made for a variety of reasons, such as to provide financial support to family members or to avoid taxes. In contrast, bequests are typically made as part of an estate plan and are subject to legal requirements and regulations.</p><p>One key advantage of inter vivos transfers is that they can provide financial support to family members during the donor’s lifetime. This can help to ensure that family members have the resources they need to pursue educational or career opportunities or to address unexpected financial challenges. Inter vivos transfers can also provide tax benefits, as they may be subject to lower tax rates or exemptions.</p><p>In contrast, bequests provide a way for individuals to transfer assets or wealth to their heirs or beneficiaries after their death. Bequests are typically made as part of an estate plan and are subject to legal requirements and regulations, which can help to ensure that the transfer is executed according to the donor’s wishes. Bequests can also provide a way to support charitable causes or organizations, which can help to create a lasting legacy.</p><p>Ultimately, both methods have their challenges and risks. For example, Donors may face the risk of outliving their financial resources, which could create financial challenges later in life or the donor may not have a will or estate plan in place, their assets may be subject to probate and may not be distributed according to their wishes.</p><p>There can be conflicts among family members or other beneficiaries, particularly if the distribution is unequal or if there are disagreements about the donor’s intentions.</p><blockquote><strong>5. People Problems</strong></blockquote><p>Inherited wealth is often viewed with skepticism and criticism due to concerns over wealth concentration and economic inequality. However, it’s important to note that inherited wealth can also have a positive impact on the economy by providing a stable source of capital for entrepreneurs and small businesses and supporting philanthropy and charitable giving which can support a range of social and cultural initiatives.</p><p>It can also provide funding for education and training programs that can help to improve individuals’ skills and knowledge. Education and training are critical components of economic growth and development, as they provide individuals with the skills they need to succeed in the labor market and generate income. Inherited wealth can provide funding for scholarships, vocational training, and other educational initiatives that can help to promote economic opportunity and upward mobility.</p><p>However, it’s important to recognize that inherited wealth can also contribute to economic inequality and social exclusion. The concentration of wealth can create barriers to entry for individuals and businesses, limiting competition and innovation. It can also perpetuate existing inequalities, such as those based on race, gender, or social class, and limit economic opportunity for those who are not born into wealthy families.</p><p>Currently, the share of wealth held by People in different income ranges for different adult populations is given by the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*9Aaeidcv0Vl2aTDthfDqDQ.png" /></figure><p>According to the Credit Suisse Global Wealth Report 2021, the top 10 richest countries in the world based on average wealth per adult are:</p><p>i. Switzerland</p><p>ii. United States</p><p>iii. Australia</p><p>iv. Belgium</p><p>v. Norway</p><p>vi. Singapore</p><p>vii. France</p><p>viii. Japan</p><p>ix. United Kingdom</p><p>x. Netherlands</p><p>The report also provides information on the distribution of wealth within these countries, measured by the Gini coefficient, where a value of 0 represents perfect equality and a value of 1 represents perfect inequality. For example, if a country’s Gini coefficient is 0.7, it means that the top 10% of the population holds 60% of the country’s total wealth, and the bottom 50% of the population holds only 10% of the country’s total wealth.</p><p><strong>Here are the Gini coefficients for each of the top 10 richest countries:</strong></p><p>xi. Switzerland — 0.745</p><p>xii. United States — 0.786</p><p>xiii. Australia — 0.697</p><p>xiv. Belgium — 0.701</p><p>xv. Norway — 0.728</p><p>xvi. Singapore — 0.752</p><p>xvii. France — 0.669</p><p>xviii. Japan — 0.675</p><p>xix. United Kingdom — 0.720</p><p>xx. Netherlands — 0.708</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*xaBLUYgNbwIO6JF_l6STYQ.png" /></figure><p>These Gini coefficients indicate that wealth inequality is highest in the United States, followed by Switzerland and Singapore. France has the lowest level of wealth inequality among the top 10 richest countries.</p><p>According to a 2021 report by Oxfam, global wealth inequality has increased significantly over the past decade. The report notes that the top 1% of the world’s population currently holds twice as much wealth as the bottom 90% of the population combined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*wZlc4tmaAXNUNhYoCWSC7g.png" /></figure><p>Furthermore, according to a 2019 study by the Federal Reserve Bank of St. Louis, intergenerational wealth transfers account for a significant portion of wealth inequality. The study found that intergenerational transfers of wealth account for around 70% of the wealth inequality observed in the United States.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*OzKA5nHLwL9t8GBg2rAH1g.png" /></figure><blockquote><strong>6. Progression?</strong></blockquote><p>It is well established by now that the concentration of wealth can create barriers to entry for individuals and businesses, limiting competition and innovation. It can also perpetuate existing inequalities, such as those based on race, gender, or social class, and limit economic opportunity for those who are not born into wealthy families.</p><p>To address these concerns, policymakers and economists have proposed a range of policies and initiatives that aim to promote greater economic opportunity and reduce wealth concentration. One approach is to implement progressive taxation, which would require individuals and families with higher levels of inherited wealth to contribute a larger share of their income or assets to support public goods and services. This can help to reduce wealth concentration and provide funding for initiatives that promote economic opportunity and mobility.</p><p>Another approach is to promote greater transparency and accountability in the transfer of wealth. For example, some countries have implemented inheritance or estate taxes that require individuals and families to disclose the value and distribution of their assets. This can help to promote greater awareness of wealth concentration and support efforts to address inequality and social exclusion.</p><p>Additionally, policymakers and economists have proposed initiatives that focus on the transfer of human capital, such as investments in education and training programs. By providing individuals with the skills and knowledge they need to succeed in the labor market and generate income, these initiatives can help to promote economic opportunity and mobility, regardless of individuals’ family backgrounds or inherited wealth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97435d5a63fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic Pricing: Uber vs Lyft]]></title>
            <link>https://sigma-nitt.medium.com/dynamic-pricing-uber-vs-lyft-77c217dc22cf?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/77c217dc22cf</guid>
            <category><![CDATA[dynamic-pricing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Sat, 17 Jun 2023 09:56:20 GMT</pubDate>
            <atom:updated>2023-06-17T09:56:20.135Z</atom:updated>
            <content:encoded><![CDATA[<p>-By Shloke, Vaibhav, Divyansh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nqUGKKT9T_WRFiAX.png" /><figcaption>Dynamic Pricing: Uber vs Lyft</figcaption></figure><h3><strong>Introduction</strong></h3><p>Sometimes it’s safer or more practical to let someone else deal with the traffic and driving hassles. The two iconic transportation service firms, Uber and Lyft, eventually developed from this concept.</p><p>Lyft operates in the U.S. and Canada. The business has a number of different service categories and levels, and it has certain requirements for the drivers of the cars used. The Lyft app for cell phones alerts users when the driver will arrive and provides them with an estimated fare in advance.</p><p>Uber offers services to customers in numerous cities throughout the world, including those in the European Union, Central and South America, Africa, Asia, Australia, and New Zealand. It also provides services to customers in the United States and Canada. Uber specifies the kind of vehicle that must be used as well as a number of service types. The Uber app makes it easier for drivers and customers to connect and provides an upfront estimate of the fare.</p><h3><strong>Problem Statement</strong></h3><p>In this project, we have a dataset consisting of 6,93,071 data points with 57 features of Boston City in Massachusetts. The goal of this project is to compare the taxi services Uber and Lyft in terms of price, source and destination, time, weather, etc. Additionally, a predictive model will be created to estimate the price for a given source and destination in terms of time, weather, surge multiplier, etc.</p><h3><strong>Dataset and its Attributes</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*vLSs_INX8BVZzIKLbOX4Yg.jpeg" /></figure><p>Dataset can be found at:</p><p><a href="https://www.kaggle.com/datasets/brllrb/uber-and-lyft-dataset-boston-ma">Uber and Lyft Dataset Boston, MA</a></p><p>The dataset consists of the following features -</p><pre>[&#39;timestamp&#39;, &#39;hour&#39;, &#39;day&#39;, &#39;month&#39;, &#39;datetime&#39;, &#39;timezone&#39;, &#39;source&#39;,<br>&#39;destination&#39;, &#39;cab_type&#39;, &#39;name&#39;, &#39;price&#39;, &#39;distance&#39;, &#39;surge_multiplier&#39;,<br>&#39;latitude&#39;, &#39;longitude&#39;, &#39;temperature&#39;, &#39;apparentTemperature&#39;, &#39;short_summary&#39;,<br>&#39;precipIntensity&#39;, &#39;precipProbability&#39;, &#39;humidity&#39;, &#39;windSpeed&#39;, &#39;windGust&#39;,<br>&#39;windGustTime&#39;, &#39;visibility&#39;, &#39;temperatureHigh&#39;, &#39;temperatureHighTime&#39;,<br>&#39;temperatureLow&#39;, &#39;temperatureLowTime&#39;, &#39;apparentTemperatureHigh&#39;,<br>&#39;apparentTemperatureHighTime&#39;, &#39;apparentTemperatureLow&#39;,<br>&#39;apparentTemperatureLowTime&#39;, &#39;icon&#39;, &#39;dewPoint&#39;, &#39;pressure&#39;, &#39;windBearing&#39;,<br>&#39;cloudCover&#39;, &#39;uvIndex&#39;, &#39;visibility.1&#39;, &#39;ozone&#39;, &#39;sunriseTime&#39;, &#39;sunsetTime&#39;,<br>&#39;moonPhase&#39;, &#39;precipIntensityMax&#39;, &#39;uvIndexTime&#39;, &#39;temperatureMin&#39;,<br>&#39;temperatureMinTime&#39;, &#39;temperatureMax&#39;, &#39;temperatureMaxTime&#39;,<br>&#39;apparentTemperatureMin&#39;, &#39;apparentTemperatureMinTime&#39;, &#39;apparentTemperatureMax&#39;,<br>&#39;apparentTemperatureMaxTime&#39;]</pre><p>Many of these features can therefore be removed, which brings us to data cleaning and preprocessing.</p><h3><strong>Data Cleaning and Preprocessing</strong></h3><p>Data cleaning is preparing data for analysis by removing or modifying incorrect, incomplete, irrelevant, duplicated, or improperly formatted data.</p><p>This data is usually unnecessary or helpful when analyzing data because it may hinder the process or provide inaccurate results. There are several methods for cleaning data depending on how it is stored along with th,e answers being sought.</p><ul><li><strong><em>Dropping features that are of no use or have been repeated:</em></strong></li></ul><pre>df.drop([&#39;id&#39;,&#39;long_summary&#39;],axis = 1,inplace = True)<br>df.drop(&#39;product_id&#39;,axis = 1,inplace = True)</pre><ul><li><strong><em>Converting timestamps to date time format:</em></strong></li></ul><pre>from datetime import datetime<br>def to_DateTime(timestamp):<br>return datetime.fromtimestamp(timestamp)<br>pd.DataFrame(df[&#39;timestamp&#39;].apply(to_DateTime))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*8FMlDTHmEt0l2NxiuTJdKg.jpeg" /><figcaption>Timestamps</figcaption></figure><ul><li><strong><em>Dropping datetime as it is the same as timestamp:</em></strong></li></ul><pre>df.drop(&#39;datetime&#39;,axis = 1,inplace = True)</pre><ul><li><strong><em>Extracting minutes from timestamp and adding a new column minute in the data frame:</em></strong></li></ul><pre>from datetime import datetime<br>def extractMinutes(date):<br>Minute = date.strftime(&quot;%M&quot;)<br>return Minute<br>df[&#39;minute&#39;] = df[&#39;timestamp&#39;].apply(extractMinutes)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*ncdA7XJVD8cfVgYdE9vm0Q.jpeg" /><figcaption>Extracting minutes from Timestamp</figcaption></figure><ul><li><strong><em>Handling missing values dropping one cabtype of uber as we dont have enough data about it:</em></strong></li></ul><pre>df[df[&#39;price&#39;].isna()][&#39;name&#39;].value_counts()<br>df.dropna(inplace=True)<br>df</pre><ul><li><strong><em>Dropping timezones as there is no variation:</em></strong></li></ul><pre>df[&#39;timezone&#39;].value_counts()<br>df.drop(&#39;timezone&#39;,axis=1,inplace=True)</pre><h3><strong>EDA (Exploratory Data Analysis)</strong></h3><p>Exploratory data analysis (EDA) is a technique for analyzing data sets in order to highlight their key properties. It often makes use of statistical graphics and other types of data visualization. The following graphs were plotted using EDA:</p><ul><li><strong>Total number of cabs of Uber vs Lyft and their average prices</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWtzPvxjxLb3DHPgdq5aKQ.jpeg" /></figure><p><em>From the graph above, we can see that Uber has more cabs than Lyft does, however Uber charges a lesser price than Lyft.</em></p><ul><li><strong><em>Total number of each cab type of Uber vs Lyft and their average prices</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2-1ibE8Xa6-8aJBUUnwcQ.jpeg" /></figure><p><em>According to the graph above, Uber’s Black SUV and Lux Black XL charge their customers the highest prices, while UberPool and Lyft Shared provide the lowest prices. Additionally, Uber has more cabs than Lyft.</em></p><ul><li><strong><em>Maximum prices of each cab type of Uber vs Lyft</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPcMmGmYNsuJhrIpXMGOhA.jpeg" /></figure><p><em>The graph above displays the highest prices that Lyft and Uber have ever charged for various types of cabs. The most costly ride is Lux Black XL, which has a maximum price of about $100.</em></p><ul><li><strong><em>Total number of cabs and their average prices from different sources</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2auh5aDDKPBt4-hgyw9tLg.jpeg" /></figure><p><em>The graph at the top shows the average prices for different types of cabs from various sources. Cab costs from Boston University and Fenway are typically higher than those from Beacon Hill, the North End, Haymarket Square, etc. The Financial district is where the most number of taxis are operated.</em></p><ul><li><strong><em>Maximum prices charged by Uber and Lyft from different sources</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CR8DkHfSvuJjZiRxdaOHYg.jpeg" /></figure><p><em>The graph above displays the highest prices ever incurred by Uber and Lyft from a number of sources. Lyft has so far charged the maximum prices from locations like the Financial District, Fenway, and many others, while Uber has done so from locations like North Station and Haymarket Square.</em></p><ul><li><strong><em>Total number of cabs and their average prices to different destinations</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sl2tO3jiQ5Z2ZIiwsA2nMw.jpeg" /></figure><p><em>The graph at the top shows the average prices for different types of cabs to various destinations. Cab costs to Boston University and Fenway are typically higher than those till South Station, the North End, Haymarket Square, etc. The Financial district is where the most number of taxis are operated.</em></p><ul><li><strong><em>Maximum prices charged by Uber and Lyft to different destinations</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AJo-0DAzN9z_cV8ZtJ2UWw.jpeg" /></figure><p><em>The graph above displays the highest prices ever incurred by Uber and Lyft to a number of destinations. The highest price ever charged is same by Uber and Lyft for most of the destinations with exceptions being Northeastern University, South Station.</em></p><ul><li><strong><em>Average prices of each cab type in November vs December</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w2GBfmcV5v0pS4KO24LWCQ.jpeg" /></figure><p><em>The data shows that, with a very slight difference, the cab fares were cheaper for the month of December than for the month of November for cab types such Lux Black XL, WAV, UberX, and UberPool. Fares for other types of cabs slightly increased in December. In general, cab fares are about the same in both months.</em></p><ul><li><strong><em>Maximum prices of each cab type in November vs December</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EojLEa4A1ktAXIAmzGuzlg.jpeg" /></figure><p><em>The data reveals that for cab types like Lux Black XL, Uber Black, and WAV, the highest price ever charged is in December, however for cab types like Lux Black, UberX, and Shared, the highest price ever charged is the same for both months.</em></p><ul><li><strong><em>Total number of each cab type in November vs December</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ZfvERcvkZSRAftUnaF-5w.jpeg" /></figure><p><em>The data shows that there are more number of cabs of each cab type in December than in November, which can be attributed in part to the fact that fewer days in November were included in the dataset.</em></p><ul><li><strong><em>Total number of each cab type in a particular day of November vs December</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzfP64BGlzrvP5kPyCK_Jw.jpeg" /></figure><p><em>According to the data, there are the greatest number of cabs of each type on dates like November 26 and 27, with roughly equal numbers of Uber and Lyft cabs on different dates.</em></p><ul><li><strong><em>Total number of cabs and distance travelled by them from different sources</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Ax12rbeIUZoZLKzAsbkIw.jpeg" /></figure><p><em>The data shows that, with the exception of Theatre District, there are more Uber than Lyft cabs available at any given time at a given source. Additionally, Uber and Lyft drive a greater distance overall from locations like Boston University and the Financial District, with Uber having the upper hand.</em></p><ul><li><strong><em>Total number of cabs and distance travelled by them to different destinations</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3n1lAdbXrka5n5WttnTbKw.jpeg" /></figure><p><em>The data shows that, with the exception of Boston University, there are more Uber than Lyft cabs available at any given time for different destinations. Additionally, Uber and Lyft drive a greater distance overall to locations like Boston University and Fenway, with Uber having the upper hand.</em></p><ul><li><strong><em>Total number of cabs and distance travelled by them in a particular weather condition</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7mKW7JTflDeduN7A7S2IIg.jpeg" /></figure><p><em>According to the data, under all weather conditions there are more Uber than Lyft cabs accessible at any given moment. Additionally, Uber and Lyft cover a greater distance overall when it’s cloudy or overcast outside, with Uber having the advantage. It’s challenging to find a cab in severe conditions like mist and fog.</em></p><ul><li><strong><em>Total number of cabs and maximum price charged by them in a particular weather condition</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QxlaOU2gP39cpgkN3nozpg.jpeg" /></figure><p><em>Uber has typically charged the highest cost for various weather situations, according the statistics.</em></p><ul><li><strong><em>Average price and number of cabs for different ranges of distances</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ykp2jCdvC5ipGRQitb8HDQ.jpeg" /></figure><p><em>The graph shows that trips of 1–2 and 2–3 miles are the ones for which cabs are used the most frequently. Additionally, the prices are typically the highest for trips lasting 5 to 6 miles.</em></p><ul><li><strong><em>Maximum cab prices at various times of the day</em></strong></li></ul><p><em>According to the graph, the highest priced charged is by Lyft at various times of the day.</em></p><ul><li><strong><em>Average cab prices at various times of the day</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hxp3RCkFGmeXK8Jxk2WIhQ.jpeg" /></figure><p><em>According to the graph, Lyft costs more than Uber at various times of the day.</em></p><ul><li><strong><em>Total number of cabs at various times of the day</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTKoDptR1Y7-lDor3shsFw.jpeg" /></figure><p><em>The graph shows that Uber has more cabs available than Lyft at various times of the day. Additionally, early in the morning and late in the afternoon are the hardest times to find a cab.</em></p><ul><li><strong><em>Maximum prices and surge multiplier at various times of the day</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xF3Xxolhg3ZNoNso6Qop1g.jpeg" /></figure><p><em>The graph displays the highest price and how it relates to the surge multiplier throughout the day. Around $100 is the biggest amount that is charged during the night.</em></p><ul><li><strong><em>Maximum price and surge multiplier during different weather conditions</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aOPJUxpItekcNlXeiZklXw.jpeg" /></figure><p><em>The graph displays the highest price and how it relates to the surge multiplier during different weather conditions.</em></p><ul><li><strong><em>Maximum prices for various sources and destinations</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-J0XAqVd20s4H9fe-T0Igw.jpeg" /></figure><p><em>The graph displays the highest rates that Uber and Lyft has ever charged between various sources and destinations. The trip from Financial District to Fenway has the highest maximum fare.</em></p><ul><li><strong><em>Average prices for various sources and destinations</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pJVU-UaldrfHirvWnHGCTg.jpeg" /></figure><p><em>Uber and Lyft’s typical rates between different origins and destinations are shown on the graph. The most expensive route is typically from the Financial District to Boston University, while the least expensive is from Haymarket Square to North Station.</em></p><ul><li><strong><em>Maximum prices of Uber vs Lyft for various sources and destinations</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NhEr5SUlH_KxAX4HbXEvyQ.jpeg" /><figcaption>Max Prices of Uber</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLiyjVO14vO-mIV3gSEAOg.jpeg" /><figcaption>Max Prices of Lyft</figcaption></figure><p><em>Uber and Lyft’s maximum rates ever charged between different origins and destinations are shown on the graphs. Uber charged a maximum price of $89.5 from Financial District to the Northeastern University whereas Lyft charged a maximum price of $97.5 from Financial District to Fenway.</em></p><ul><li><strong><em>Average prices of Uber vs Lyft for various sources and destinations</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hwEYbBcOcjsY18pIiC7aNg.jpeg" /><figcaption>Avg Prices of Uber</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pJTjlBCeDVQKKdLH4FeUMw.jpeg" /><figcaption>Avg Prices of Lyft</figcaption></figure><p><em>The graphs display the average rates for Uber and Lyft between various origins and destinations. For the same trips, Lyft typically charges more than Uber. For both Uber and Lyft, the most expensive route is from Financial District to Boston University. Additionally, for Uber and Lyft, the cheapest rides are from Haymarket Square to North Station and from Financial District to South Station, respectively.</em></p><h3><strong>Q-Q plot</strong></h3><p>A statistical graphical tool called a Q-Q plot (Quantile-Quantile plot) is used to determine if a dataset conforms to a theoretical distribution. It is being used in this particular case to verify the normal distribution. It contrasts the observed data’s quantiles with the quantiles of a typical normal distribution. The data is assumed to have a normal distribution if the data points roughly follow a straight line.</p><p>Q-Q plots are an important tool for exploratory data analysis because they provide insight into a dataset’s distributional properties and assist in determining whether a given theoretical distribution is suitable for modelling the data.</p><p>Since the data points do not fall on a straight line, it can be shown from the multiple Q-Q plots displayed against different features that none of the features follow normal distribution.The following graphs represent a few of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GUxhxgQ7TkIQJNEyFN-1PA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H_n4CPJQ-zK01VdomNnGag.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QaNrJexuwsYtiMECMNM3pA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oLPPyzu86W5yDHXq0MA92A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MeL7J4PsfRN-AaoOiZxGiQ.jpeg" /></figure><p>Non-parametric tests must be used to identify the best features because the data is not normally distributed, as seen in the graphs above.</p><h3><strong>Feature Selection</strong></h3><p>Feature selection is a way of reducing the input variable for the model by using only relevant data in order to reduce overfitting in the model.</p><p>We used chi-squared test to obtain relevant categorical features for our project and spearman’s rank correlation to obtain relevant numerical features.</p><h4><strong><em>SPEARMAN’S RANK CORRELATION for numerical variables</em></strong></h4><p>Spearman’s rank correlation coefficient is a statistical measure used to assess the strength and direction of the monotonic relationship between two variables. Unlike Pearson correlation, Spearman’s correlation is based on the ranks of the data rather than the actual values.</p><p>Calculation of Spearman’s Rank Correlation Coefficient (ρ):</p><p>The Spearman’s rank correlation coefficient (ρ) is calculated using the ranked data. It measures the degree to which the ranks of the two variables are related. The coefficient ranges from -1 to +1, where:</p><p>- ρ = +1 indicates a perfect increasing monotonic relationship.</p><p>- ρ = -1 indicates a perfect decreasing monotonic relationship.</p><p>- ρ = 0 indicates no monotonic relationship.</p><p>Below are the selected features for modelling purpose based on the value of their correlation coefficient value with the target feature (i.e the price feature).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_QCQTZV7Sxb4fZ762mygEA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*ri3o1xja3oOPC85QIw1YOQ.jpeg" /></figure><h4><strong><em>CHI Square test for categorical variables</em></strong></h4><p>Since the chi square test is used to ascertain the correlation between categorical features, we must first turn our pricing feature into a categorical before performing the chi-squared test. Here, the chi square statistic and the p value have been calculated as two test statistics.</p><p>The chi square statistic measures the discrepancy between the observed frequencies and the expected frequencies under the assumption of independence between the features and the target variable. A higher chi square statistic indicates a stronger association between the variables.</p><p>The p-value represents the probability of obtaining a chi-square statistic as extreme as the observed value, assuming the null hypothesis of independence is true. We compared the p-values of different features and used them as a criterion for feature selection. Lower p-values suggest a stronger association between the feature and the price hence more important for our model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*J2EweU1Aogb1EhLNVCWiCA.jpeg" /></figure><p>From the above tests, the features for the selection are-</p><p><strong>[‘distance’, ‘surge_multiplier’, ‘latitude’, ‘apparentTemperatueLow’, ‘pressure’, ‘temperatueHigh’, ‘month’, ‘source’, ‘destination’, ‘cab_type’, ‘short_summary’, ‘name’]</strong></p><h4><strong><em>Encoding Categorical variables</em></strong></h4><ul><li>Before performing feature selection we encode categorical data. For this purpose we will be using target guided encoding which basically means that the numerical value given to a feature will depend on the target(example mean or median(if outliers exist). Since a lot of outliers exist in our case therefore we will be using median i.e. for every categorical feature we will replace the categories with median of price feature.</li></ul><h4><strong>Modelling</strong></h4><ul><li>In order to start modelling we first normalize and standardize our independent variables in the dataset so that it becomes easy for the model to run predictions and saves calculation space.</li><li>After that, we divide our data into x and y where x consists of independent features and y consists of dependent (target) variable. We further use train_test_split to split the data into train and test the data for training the model and testing its metrics respectively.</li></ul><h4><strong><em>Standardizing</em></strong></h4><ul><li>We will be using scale function from sklearn.preprocessing to standardize data. Standardizing means data preprocessing such that it has a mean of ‘0’ and standard deviation of ‘1’.</li><li>Now our dataset looks something like this:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*peFEOigV_82J-rBc9cOjSg.jpeg" /></figure><h3><strong><em>1) SGD Regressor</em></strong></h3><p>The SGDRegressor is a machine learning algorithm that stands for Stochastic Gradient Descent Regressor. It is used for solving regression problems, where the goal is to predict a continuous numerical value based on a set of input features.</p><p>In simple terms, the SGDRegressor works by finding the best-fitting line or curve that can predict the output variable based on the given input features. It iteratively updates the model’s coefficients by randomly selecting one data point at a time and adjusting the coefficients based on the prediction error. The process repeats until convergence or a maximum number of iterations is reached. The model is then used to make predictions on new data points. SGDRegressor is memory-efficient and suitable for large datasets .</p><p>The following metrics were received which show that our model showed a R2 score of 0.92298.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Ito9kDe7uS8fStI8VW9gA.jpeg" /></figure><ul><li><em>R-squared (R2) score also known as the coefficient of determination, is a statistical measure that indicates the proportion of the variance in the dependent variable that can be explained by the independent variables in a regression model.</em></li><li><em>In simple terms, the R2 score tells us how much of the variation in the target variable (the variable we are trying to predict) can be explained by the predictor variables (the independent variables used in the regression model). It is expressed as a value between 0 and 1, where:</em></li><li><em>- R2 = 0 indicates that the regression model does not explain any of the variability in the target variable.</em></li><li><em>- R2 = 1 indicates that the regression model perfectly explains all the variability in the target variable.</em></li></ul><h3><strong><em>2) Lasso Regression</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7rsloddA4WNMS1cZntrjyg.jpeg" /></figure><p>The Lasso regressor is a machine learning algorithm used for regression tasks, which aims to predict a continuous numerical value based on a set of input features. Lasso stands for <em>Least Absolute Shrinkage and Selection Operator.</em></p><p>In simple terms, the Lasso regressor works by finding the best-fitting line or curve that can predict the output variable based on the given input features. It does this by adjusting the coefficients assigned to each feature while minimizing the prediction error. The unique aspect of the Lasso regressor is its ability to perform feature selection and regularization.</p><p>The Lasso-Regressor is a linear regression model that uses L1 regularization to perform feature selection and control model complexity. During training, it minimizes the sum of squared residuals while penalizing the absolute values of the coefficients. This encourages some coefficients to become exactly zero, effectively performing automatic feature selection. LassoRegressor is useful for high-dimensional datasets with many irrelevant features like the given dataset.</p><p>We will also be comparing lasso regression vs linear regression. Lasso regression with different values of alpha will also be compared.</p><p>Below are the evaluation metrics for lasso regression model for alpha values 1 , 0.01 and 0.001 respectively and also the evaluation metrics for linear regression for a clear comparison between them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UUTTpKOoU-rVoMXKXPgP8A.jpeg" /></figure><ul><li>The following metrics were received which show that our model showed a LR test score of 0.9258.</li><li>Clearly alpha = 1 performs a lot of regularization to prevent overfitting that it doesn’t even use one of the features , hence we have to use lesser values of alpha in order for this model to work appropriately</li><li>Now we will be visualizing our model with coefficient index and its magnitude respectively to see which features are given how much importance and also to see the difference in coefficient importance for changing alpha values.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*SvUf1c5bAKX-3vHtN18o9Q.jpeg" /></figure><h3><strong><em>3) Elastic Net Regressor</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lK9cRADNozSy2YKZTDVFBg.jpeg" /></figure><p>The ElasticNetRegressor is a linear regression model that combines both L1 (Lasso) and L2 (Ridge) regularization techniques to balance feature selection and model complexity. It works by minimizing the sum of squared residuals with a combination of L1 and L2 penalties.</p><p>It is also particularly useful when dealing with datasets that have a large number of features (like given dataset) and potential multicollinearity. By combining L1 and L2 regularization, it provides a flexible approach for controlling model complexity and performing feature selection.</p><p>First we performed evaluation on the training dataset of our model and then perform predictions on the test dataset.</p><p>Below MAE stands for mean absolute error. It is calculated by taking the absolute difference between each prediction and its corresponding true value, averaging them, and providing a single value that represents the average error. MAE provides a straightforward measure of model accuracy, where lower values indicate better performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2aG1CzmwtKoirHX-ZPEPw.jpeg" /></figure><p>The following metrics were received which show that our model showed a R2 score of 0.38122.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvOS7SwZXEV7OB3_vZ-Cyw.jpeg" /></figure><h4><strong>Hyperparameter Tuning:</strong></h4><blockquote>Since the R2 score is very less we will perform hyperparameter tuning to get the best value of alpha and lambda respectively. The scikit-learn library also provides a built-in version of the algorithm that automatically finds good hyperparameters via the ElasticNetCV class.</blockquote><blockquote>Using the tuned values of hyperparameters alpha and lambda which came out to be 0.0001 and 0.88 respectively, in the actual model boosts up the accuracy.</blockquote><blockquote>The following metrics were received again which show that our model showed an improved R2 score of 0.92439.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0poYLQZ9iVjUosCGT17DAw.jpeg" /></figure><h3><strong><em>4) Linear Regression</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*1MZNGy8vOsjFpS8NO75nbQ.jpeg" /></figure><p>Linear regression is a statistical modeling technique used to understand the relationship between a dependent variable (the variable we want to predict) and one or more independent variables (the variables we use to make predictions). It assumes that this relationship can be represented by a straight line.</p><p><em>The process of fitting a linear regression model involves the following steps:</em></p><ul><li><strong><em>Data: </em></strong><em>Collecting data that includes the values of the dependent variable and one or more independent variables for each observation.</em></li><li><strong><em>Scatterplot:</em></strong><em> Visualizing the data by creating a scatterplot, with the independent variable(s) on the x-axis and the dependent variable on the y-axis. This helps to understand the general relationship between the variables.</em></li><li><strong><em>Line fitting: </em></strong><em>Finding the line that best represents the relationship between the variables. The line is defined by the equation: y = mx + b, where y is the dependent variable, x is the independent variable, m is the slope of the line, and b is the y-intercept (the value of y when x is zero).</em></li><li><strong><em>Coefficient estimation: </em></strong><em>Estimating the values of the coefficients (m and b) that minimize the difference between the predicted values and the actual values of the dependent variable. This is typically done using a method called least squares, which calculates the line that minimizes the sum of squared differences between the predicted and actual values.</em></li><li><strong><em>Prediction:</em></strong><em> Once the coefficients are estimated, the linear regression model can be used to make predictions. Given the values of the independent variable(s), the model can calculate the predicted value of the dependent variable.</em></li></ul><p>After following the above steps, the necessary metrics were received which show that our model showed a R2 score of 0.92551.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ttdfXe3MD7M3Ywhdp2IqZQ.jpeg" /></figure><h3><strong><em>5) Decision Tree Regression</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fV8wyeHr1CmgpvhLNO8GIQ.jpeg" /></figure><p>Decision tree regression is a machine learning algorithm used for regression tasks, which involves predicting a continuous numerical value based on a set of input features. It utilizes a decision tree, a flowchart-like structure, to make predictions by splitting the data into smaller and more manageable subsets.</p><p>In simple terms, decision tree regression works by creating a tree-like model of decisions based on the input features. The tree starts with a single node, which represents the entire dataset. It then splits the data at each node based on a chosen feature and threshold value, creating branches and new nodes. This splitting process continues recursively until a stopping criterion is met, such as reaching a maximum depth or a minimum number of data points in a node.</p><p>One of the advantages of decision tree regression is its interpretability. The resulting tree structure can be visualized and understood, as it provides a clear set of rules for making predictions. However, decision trees can sometimes overfit the training data, meaning they become overly complex and fail to generalize well to unseen data. Techniques such as pruning, setting maximum depths, or using ensemble methods like random forests can help alleviate this issue.</p><p>Overall, decision tree regression is a powerful and intuitive algorithm for regression tasks. It can handle various types of features, capture non-linear relationships, and provide interpretable models.</p><p>The following metrics were received again which show that our model showed an R2 score of 0.96516.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ta0k9AkTH_X5eNveUPSvKA.jpeg" /></figure><h3><strong><em>6) Random Forest</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nwO7ktHbfRSE5e_Wb4G4rQ.jpeg" /></figure><p>It combines multiple decision trees to make predictions. Each tree in the random forest is trained on a random subset of the training data, and the final prediction is determined by aggregating the predictions of all individual trees.</p><p>It has high accuracy, robustness to outliers, feature importance and can handle large datasets.</p><p>The following metrics were received again which show that our model showed an R2 score of 0.96238.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1NrULhDkieZvCNDGwQaelQ.jpeg" /></figure><h3><strong><em>7) Gradient Boosting Regressor</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wp3leL9DXZzGII9uO9a-7Q.jpeg" /></figure><p>Gradient boosting is a technique that combines multiple weak predictive models, typically decision trees, to create a stronger and more accurate model. The basic idea behind gradient boosting is to iteratively build a sequence of models, where each model tries to correct the mistakes made by the previous model.</p><p>Gradient boosting is capable of capturing nonlinear relationships between features and the target variable and avoids overfitting.</p><p>The following metrics were received again which show that our model showed an R2 score of 0.96400.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SRdDf4efaQqsTWSls5EtAg.jpeg" /></figure><p>The model is more accurate the more points there are on the line or extremely close to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fTn2jcOyu6jZGdOmx4z4iA.jpeg" /></figure><h3><strong>Summary</strong></h3><ul><li>The EDA and price prediction project helped in comparing Uber and Lyft in the Boston city. Through exploratory data analysis, several key insights were covered, shedding light on various factors influencing the pricing strategies of Uber and Lyft. Additionally, various predictive models were developed to estimate the fare prices based on relevant features.</li><li>During the EDA phase, it was observed that both Uber and Lyft exhibited similar pricing patterns. Further analysis indicated that the type of ride (such as UberX, Uber Black, Lux Black XL, etc.) significantly impacted the fare prices. Moreover, factors like distance, weather conditions etc. were found to influence the pricing structure.</li><li>Using the insights gained from the EDA, various predictive models for fare price estimation were developed with R2 score ranging from 0.92–0.965 which showed our models were successful in predicting prices to a greater extent. The models incorporated features such as distance, source, destination etc. to predict the fare accurately.</li><li>In conclusion, the EDA and price prediction project comparing Uber and Lyft provided valuable insights into the pricing strategies and dynamics of these ride-sharing platforms. The analysis highlighted the influence of various factors on fare prices and revealed differences in surge pricing and geographic variations between the two services. The developed predictive model enables users to estimate ride fares, contributing to better planning and decision-making for ride-sharing services.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77c217dc22cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Russia-Ukraine War and its Effect on the Indian Economy]]></title>
            <link>https://sigma-nitt.medium.com/russia-ukraine-war-and-its-effect-on-the-indian-economy-c20b8ee3d71d?source=rss-95ad621f4138------2</link>
            <guid isPermaLink="false">https://medium.com/p/c20b8ee3d71d</guid>
            <category><![CDATA[warprofiteering]]></category>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[russia-ukraine-war]]></category>
            <dc:creator><![CDATA[Sigma]]></dc:creator>
            <pubDate>Sat, 13 May 2023 17:15:05 GMT</pubDate>
            <atom:updated>2023-05-13T17:15:05.375Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Authors</strong>: Shamyatha, Riya, Rohith.</p><p><strong>Project Lead</strong>: Subhash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*wp9HZQZJ8bF_V5n-X-7tuw.png" /></figure><h3>Introduction</h3><p>The Russia-Ukraine War is an ongoing conflict that began in 2014 when Russia annexed Crimea from Ukraine. Since then, fighting has continued in the Donbas region in eastern Ukraine, with Russian-backed separatists fighting Ukrainian government forces.</p><p>The conflict has resulted in thousands of deaths and displacement of people. Despite ceasefires and attempts at diplomatic solutions, the situation remains unresolved, and tensions between Russia and Ukraine continue to grow.</p><p>The ongoing conflict between Russia and Ukraine has had far-reaching consequences, not just politically and socially but also economically. With international sanctions impacting both countries, businesses and individuals are feeling the brunt of the economic fallout.</p><p>A country that benefits from a war between two other countries is sometimes referred to as a “war profiteer” or a “bystander profiteer”. This means that the country may benefit economically or politically from the conflict, without being directly involved in the fighting.</p><p>In this Case Study, we shall explore the economic and financial implications on Indian Economy, and let’s find out whether India is a war profiteer.</p><h3>Flow of Discussion</h3><p>We looked at the major industries of both Ukraine and Russia and we have decided to focus on 5 major areas:</p><ul><li>Metals and Minerals</li><li>Oil &amp; Gas</li><li>Coal Sector</li><li>Food and Agro</li><li>Fertilizers and Chemicals</li></ul><p>We selected these five industries based on their significant contributions to the economies of Russia and Ukraine, as well as their potential relevance to the Indian market.</p><h3>1.1 Metals and Minerals</h3><p>Metals and minerals play a crucial role in the global economy. They are used in a wide range of industries, including construction, manufacturing, transportation, and electronics.</p><p>The demand for metals and minerals is only expected to increase as the global population grows and urbanization continues, making them a valuable commodity in the global market. The availability and accessibility of these natural resources can have a significant impact on a country’s economic growth and development, making them a critical factor in international trade and investment.</p><p>The war has had a significant influence on metals, which are essential to our daily lives, and are seeing significant price increases worldwide because the majority of metals are produced or refined in Russia or Ukraine. For the auto industry, this has led to a sharp decline in operating profitability as well as anticipated price increases in the upcoming quarters. Several light metals and minerals, such as aluminum, copper, nickel, and zinc, are abundant in both Russia and Ukraine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*6ETFuQlVUyETHMmjXLvmWQ.png" /><figcaption><strong><em>Russia and Ukraine Commodity exports</em></strong></figcaption></figure><p><strong>Russia’s share of global metals and minerals export:</strong></p><ul><li>Russia is the fourth-largest exporter of tungsten in the world and exports <strong>12.3%</strong> of the world’s platinum supply.</li><li>Russia is the second-largest supplier of cobalt, one of the essential components needed in the creation of rechargeable batteries, in terms of raw materials.</li><li>It is also the second-largest producer of vanadium, which is used to make steel and for large-scale energy storage.</li><li>The nation is the tenth-largest provider of lead and the sixth-largest exporter of gold, making about <strong>4.4%</strong> of global production.</li></ul><p><strong>Ukraine’s share of global metals and minerals exports:</strong></p><ul><li>Ukraine is one of the world’s largest exporters of iron ore, with exports valued at over <strong>$2 billion</strong> in 2020.</li><li>Ukraine is also a significant exporter of steel, with exports valued at over <strong>$4 billion</strong> in 2020.</li><li>Ukraine is an important exporter of copper and aluminum, with exports valued at over <strong>$400 million</strong> and <strong>$700 million</strong> respectively, in 2020.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*1RN-ZMTHS2X8zmtLvzBUCw.png" /><figcaption><strong><em>Metals and Minerals Exported by Russia</em></strong></figcaption></figure><p><strong>Impact of the War on Russian Metal Producers:</strong></p><p>Russian metal producers like Nickel and Palladium giant <strong>Nornickel</strong> have said Western sanctions and self-sanctioning by some suppliers have made it difficult for industrial companies to obtain imported equipment, spare parts, materials, and technologies.</p><p>Due to the impact of sanctions on Russia’s crucial industries, Moscow has presented India with a catalog of over 500 goods that can be supplied, such as automobile, aircraft, and train components, as well as almost 200 metallurgical items.</p><p><strong>Can Indian exporters help fill the gap in the global commodities market?</strong></p><p>According to the Managing Director of <strong>Jindal Steel</strong>, India has the potential to help fill the global supply chain gap by increasing its steel exports to European Union (<strong>EU</strong>) and Middle Eastern and North African (<strong>MENA</strong>) countries.</p><p>As one of the top five iron ore producers in the world, India can expand its exports to markets where Russia was previously the primary supplier. There is already a growing demand for Indian steel among countries in West Asia and Europe (Like Italy and Belgium).</p><p>Based on an analysis of data from the <strong>UN Comtrade</strong>, around 2,700 Indian exporters are dealing in 11 major products previously exported by Russia and Ukraine. These products include crude petroleum oil, corn, wheat, sunflower oil, iron ore, iron and steel, platinum, gold, copper, turbo-jets and turbo-propellers, and insulated wire and electric conductors. The analysis shows that India has a Revealed Comparative Advantage (RCA) in the exports of iron ore, iron and steel, and turbo-jets.</p><p>Although India also has an RCA in copper, the closure of a major copper smelter in 2018 due to environmental concerns resulted in India becoming a net importer of metal. Therefore, it is unlikely that copper exports from India will see a significant increase.</p><p>Apart from gold, India is also a significant exporter of silver, with exports valued at over <strong>$1.5 billion</strong> in 2020. In addition, India exports platinum and palladium, with exports valued at over <strong>$800 million</strong> and <strong>$1 billion</strong> respectively in 2020. India also exports a variety of other products, including diamonds, gemstones, and jewelry.</p><h3>1.2 Oil and Gas</h3><p>Also referred to as liquid gold, Oil and gas are two of the most important natural resources in the global economy. They are used in a wide range of industries, including transportation, manufacturing, and energy production. Currently, Europe is facing an Oil crunch as Russia stopped its exports to most EU countries. This in turn has created an energy crisis in the European Union.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*ZjWRVSJMtbQ_FnsPmZD1aQ.png" /><figcaption><strong><em>Oil production by country</em></strong></figcaption></figure><p><strong>India’s current situation:</strong></p><p>India’s heavy reliance on crude oil as a commodity has traditionally harmed the average consumer due to the government’s lack of emphasis on renewable energy sources. Administrations have made limited efforts to shift towards a greener economy, resulting in a lack of incentives for consumers to purchase fuel-efficient electric cars despite existing tax waivers. With electric vehicles priced at over a million rupees in a country where a significant portion of the population earns just INR 10,000, consumers have resorted to purchasing fuel-inefficient automobiles, exacerbating their dependence on fossil fuels.</p><p>Furthermore, India, the world’s third-largest coal importer, is currently experiencing coal shortages, with coal accounting for around 70% of the country’s electricity generation. As a result, most of India’s coal-fired power plants have critically low inventory levels amid increasing electricity demand.</p><p><strong>Oil and Gas:</strong></p><p>The Russia-Ukraine conflict has had a significant impact on India’s energy security, highlighting the country’s vulnerability to external factors that can impact its energy supply. India is heavily dependent on oil and gas imports, and any disruptions in supply or price increases can have a significant impact on its economy and energy security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*lMc9127Lug8H98NNxrlQQw.png" /><figcaption><strong><em>Global energy consumption in 2021 by Country</em></strong></figcaption></figure><p>To understand, it is important to look at India’s energy mix and its reliance on imports. India is the world’s third-largest energy consumer, with its energy mix dominated by fossil fuels. The country’s primary energy consumption is dominated by oil, which accounts for approximately 37% of total consumption, followed by coal (29%), natural gas (6%), and renewable energy sources (28%).</p><p>India imports more than 80% of its crude oil requirements and about 45% of its natural gas requirements. As of 2021, Russia is the third-largest supplier of crude oil to India after Iraq and Saudi Arabia. According to data from India’s Ministry of Petroleum and Natural Gas, Russia accounted for about <strong>9.2%</strong> of India’s total crude oil imports in the financial year 2020–21. India’s crude oil imports from Russia amounted to around 22.6 million metric tonnes (MMT) during the year. India’s crude oil imports from Russia increased between January and July 2021 to about <strong>56%</strong> higher than in the same period in 2020. The increase in India’s crude oil imports from Russia in 2021 can be attributed to several factors, including the improvement in global oil demand and prices, as well as the easing of COVID-19 restrictions in India.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*UCfIW3l5CGGEFVtdKypeKQ.png" /><figcaption><strong><em>India’s imports by industry in 2018–2019</em></strong></figcaption></figure><p>The conflict has led to a surge in global oil and gas prices, impacting India’s energy security. Any disruptions in Russia’s supply of oil and gas can have a significant impact on India’s energy security, leading to higher fuel and electricity prices and potential supply shortages.</p><p>It has also had a significant impact on liquefied natural gas (LNG) prices in India, as Russia is one of the country’s largest suppliers of LNG. The conflict has led to supply disruptions and increased demand for LNG from other countries, resulting in a surge in global LNG prices.</p><p>India is heavily dependent on LNG imports, with LNG accounting for approximately <strong>50%</strong> of the country’s total natural gas consumption. According to data from the Petroleum Planning and Analysis Cell (PPAC), India imported around <strong>33.68 million metric tonnes</strong> of LNG in the financial year <strong>2020–21</strong>, with Russia accounting for around<strong> 22%</strong> of these imports.</p><p>The surge in LNG prices has had a significant impact on India’s economy and energy security. India’s power sector is heavily reliant on natural gas, with around 25% of the country’s total electricity generation capacity being fuelled by natural gas. Higher LNG prices have led to an increase in the cost of electricity generation, leading to higher electricity prices for consumers.</p><p>Higher LNG prices have also impacted India’s industrial sector, which is a major consumer of natural gas. Industries such as fertilizers, petrochemicals, and steel are heavily dependent on natural gas, and higher prices have led to an increase in input costs, reducing their competitiveness and profitability.</p><p>Russia started increasing natural gas prices for the European Union (EU) in the second half of 2021, and prices will continue to rise if the war continues. In July, the European Commission circulated a Safe Gas for a Safe Winter plan urging EU members to reduce their gas demand by 15% over eight months starting on August 1. The plan, which is not binding, triggered intra-EU debates on whether it would be enough for Europe to prepare for winter. Meanwhile, <strong>Gazprom </strong>has progressively cut natural gas deliveries to Europe via <strong>Nord Stream 1</strong> and in mid-August announced plans to stop deliveries for 3 days, ostensibly for maintenance. The impact of sanctions on Russia’s economy has been limited, mainly because the EU has not restricted imports of Russian natural gas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*_jjuO3azn_72kr6pwdKOgg.png" /><figcaption><strong><em>Oil and gas usage in Ukraine</em></strong></figcaption></figure><p>Higher crude oil prices have led to an increase in the cost of transportation, which has impacted the prices of goods and services in the country. The transport sector in India is heavily reliant on crude oil, with the majority of the fuel used in the country’s transportation system being derived from crude oil. Higher crude oil prices have led to an increase in the cost of fuel, which has resulted in higher transportation costs for goods and passengers.</p><p>This has also impacted India’s industrial sector, which is a major consumer of crude oil. Industries such as petrochemicals, plastics, and fertilizers are heavily dependent on crude oil, and higher prices have led to an increase in input costs, reducing their competitiveness and profitability.</p><p>India has also purchased a lot of oil from Russia as there is a good discount on the oil just for a handful of countries. According to <strong>Vortexa</strong>, India imported just <strong>68,600 bpd</strong> of oil from Russia in March 2022 and this year the purchases have jumped to <strong>1,646,311 bpd</strong>.</p><p>To mitigate the impact of higher LNG prices, India has been taking steps to diversify its sources of LNG and reduce its dependence on imports from Russia. The country has been exploring alternative sources of LNG, such as the US and Australia, and has signed long-term supply contracts with these countries to ensure a stable supply of LNG.</p><p>India has also been investing in the development of its domestic natural gas resources to reduce its reliance on imports. The country has been promoting the exploration and production of natural gas through various policy measures, such as the New Exploration Licensing Policy (<strong>NELP</strong>) and the Open Acreage Licensing Policy (<strong>OALP</strong>). These policies have increased domestic production, which reached 32.87 billion cubic meters in 2020–21, up from 32.35 billion cubic meters in 2019–20.</p><p>India has been taking steps to diversify its energy mix and reduce its reliance on imports by exploring alternative sources of energy and increasing domestic production. The country has also been looking to strengthen its relationships with other oil and gas-producing countries to ensure a stable supply of energy. These measures will help India to reduce its vulnerability to external factors and ensure a secure and sustainable energy future.</p><h3>1.3 Coal Sector</h3><p>India is heavily dependent on coal imports, with coal accounting for approximately 70% of the country’s total electricity generation. According to data from the Ministry of Coal, India imported around <strong>169 million</strong> tonnes of coal in the financial year 2020–21, with Russia accounting for around <strong>6%</strong> of these imports.</p><p>The price of coal has increased from around <strong>$60 per tonne in 2020</strong> to over <strong>$200 per tonne in 2021</strong> owing to the conflict. This increase in coal prices has had a significant impact on India’s energy security and economy.</p><p>Higher coal prices have led to an increase in the cost of electricity generation, which has impacted the prices of goods and services in the country and has resulted in higher electricity tariffs for consumers. The power sector in India is heavily reliant on coal, with the majority of the country’s electricity being generated from coal-fired power plants.</p><p>This has also trickled down to impact India’s industrial sector, which is a major consumer of coal. Industries such as steel, cement, and aluminum are heavily dependent on coal, and higher prices have led to an increase in input costs, reducing their competitiveness and profitability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*ESADIneweRytHAQCHAksyA.png" /><figcaption><strong><em>Power Generation by Industry, 2019</em></strong></figcaption></figure><p>To mitigate the impact of higher coal prices, India has been taking steps to reduce its dependence on imports and diversify its sources of coal. The country has been promoting the exploration and production of domestic coal resources through various policy measures, such as the Coal Mines Special Provisions Act, of 2015, and the Mines and Minerals (Development and Regulation) Act, of 1957. These policies have increased domestic production, which reached 729.10 million tonnes in 2019–20, up from 729 million tonnes in 2018–19.</p><p>India has also been exploring alternative sources of coal, such as Australia and Indonesia. It has signed long-term supply contracts with these countries to ensure a stable coal supply. In addition, the country has been investing in the development of alternative energy sources, such as solar and wind power, to reduce its dependence on coal.</p><p>The government of India has also been promoting the use of cleaner coal technologies, such as supercritical and ultra-supercritical coal-fired power plants, which are more efficient and emit fewer greenhouse gases than traditional coal-fired power plants. The country has set a target of installing 65 GW of supercritical and ultra-supercritical power generation capacity by 2022.</p><p><strong>Analyzing the political situation:</strong></p><p>Russia is known to provide crude oil and coal at a lower cost compared to other suppliers, which makes it an attractive option. As India has a significant demand due to its heavy dependence on coal-fired power plants and crude oil-powered transportation systems, it makes economic sense for India to import from Russia.</p><p>Russia is the world’s second-largest coal exporter and has significant reserves, which ensures a stable supply of coal to India. India and Russia have also had a long-standing strategic partnership, and cooperation in the energy sector has been an essential part of it. The partnership has helped India to secure long-term crude oil supplies at stable prices.</p><p>Diversification of supply sources is essential for India’s energy security. By importing crude oil and coal from Russia, India can reduce its dependence on traditional crude suppliers like Saudi Arabia and Iraq and coal suppliers like Indonesia and Australia.</p><p>However, relying on Russia exposes India to geopolitical risks and any disruption in crude oil supplies from Russia could impact India’s energy security. Overdependence on any single supplier can be risky, and this applies to India’s reliance on Russia for coal, oil &amp; gas. Any political or economic changes in Russia could harm India’s energy security.</p><p>Also, Coal is known to be a significant source of carbon emissions and air pollution, which is a significant environmental concern in India. Continual dependence on imports may not align with India’s efforts to shift towards cleaner sources of energy.</p><h3>1.4 Food and Agro</h3><p>Food and agro-produce are essential for sustaining human life and play a crucial role in the global economy. Agriculture is one of the oldest and most significant industries in the world, providing food and raw materials for a wide range of industries.</p><p>Countries with a strong agriculture sector can generate significant revenue from exports and can provide food security for their citizens. In addition, the agriculture industry is a major employer, providing jobs for millions of people worldwide. Indian economy is mainly dependent upon agriculture.</p><p>Food goods like vegetables, fruits, legumes, oil, etc. are likely to be expensive as a result of how the rise in oil prices has influenced freight movement. This benefits the entire cycle from farmer to merchant by generating revenues for nearby Indian traders. The agro-industry and Indian agriculture have hope as a result. A thriving agro-industry will drive up the need for chemicals and fertilizers, hence fostering the growth of these sectors.</p><p><strong>Case Study:</strong></p><p>The <strong>World Food Programme</strong>, a UN organization that offers food relief to nations in need, receives one of the greatest contributions from countries worldwide: <strong>Ukraine</strong>. According to David Beasley, the WFP’s director, it supplies <strong>40%</strong> of the organization’s wheat.</p><p>This flow has now been halted by the war, and the WFP is trying to give Ukrainians the food they require to survive this crisis.</p><p>The conflict in Ukraine could have a significant effect on the world’s food supply, which would have far-reaching effects on world hunger and food security. However, it doesn’t have to happen because there is still time to act and contain a more serious problem.</p><p>Both Ukraine and Russia are significant players in the world food markets. They are net exporters of wheat, maize (corn), and barley, three of the most important cereal crops. Sunflower oil, one of the most popular vegetable oils worldwide, is also a dominant export for both. For domestic food supplies, several nations, like India, primarily rely on sunflower oil imports.</p><p>According to the charts, Ukraine and Russia account for almost one-fourth of all wheat exports in 2019. <strong>1/5th</strong> of the world’s crop of both barley and maize. Over two-thirds of the sold sunflower oil come from them, with Ukraine alone contributing to over half of the global exports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*IoIexSl0AlZKJAuMAguvfA.png" /><figcaption><strong><em>Grain Exports by Ukraine during the Conflict</em></strong></figcaption></figure><p>The potential effects of decreased food production from Russia and Ukraine won’t be felt everywhere. The nations that import products directly from these nations are among the most susceptible.</p><p>It won’t, however, be limited to these direct importers. Given the rising cost of food, all nations that are net importers of these goods may have serious consequences.</p><p>Country-by-country import statistics for these important crops in order to pinpoint the nations that are most at risk and may require assistance in the months to come. You may view the global situation for a variety of commodities and measures in the data explorer below.</p><p>You can view which nations import the most sunflower oil, wheat, maize, or barley; which nations import from Ukraine; and/or Russia; and how dependent they were on imports for the domestic supply.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*BXZxXFPj-tdAOaRAriJLfg.png" /><figcaption><strong><em>Top Exports by Country</em></strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*QfQUlH0DKLiHw1ncuZtBbw.png" /><figcaption><strong><em>UNGC Report on Global Impact of War in Ukraine on Food, energy, and finance systems</em></strong></figcaption></figure><h3>1.5 Fertilizers and Chemicals</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*q4qSkq5VLxv9nVgBa7AzaA.png" /><figcaption><strong>World Fertilizers contribution</strong></figcaption></figure><p>Chemicals and fertilizers are essential to the world economy, especially the agricultural sector. Fertilizers are crucial for boosting agricultural yields and guaranteeing food security for a population that is expanding worldwide. In addition, a variety of businesses, including the pharmaceutical, textile, and plastics industries, use chemicals.</p><p>Dr. Mansukh Mandaviya, Union Minister of Chemicals and Fertilisers, Health, and Family Welfare, officially opened the Annagro-industry 022 (Fertiliser Sector by 2030 agro-industry) today. In his remarks, Dr. Mandviya listed fertilizers as one of the crucial elements for guaranteeing food security. He claimed that the cost of fertilizers and raw materials had significantly increased during the previous three years. “Our government has brought various reforms and ensured that fertilizers are made available to Indian farmers at reasonable prices,” the minister stated. This has been accomplished by boosting the fertilizer subsidy from US$10 billion for the pre-pandemic year 2019–20 to roughly US$27 billion in the present year.</p><p>The Minister said, “The availability and rising costs of fertilizers pose serious difficulties to the global economy today. For the greater good of global food security, our international partners must establish fair and open systems and adopt a long-term perspective when addressing fertilizer-related challenges.</p><p>Long-term Agreements and Memorandums of Understanding will be crucial in advancing this goal steadily, according to Dr. Mandaviya. To provide consistency in the fertilizer supplies to the farmers, the government has arranged a number of these agreements and memorandums of understanding between Indian fertilizer producers and international suppliers.</p><p>Even though it sells internationally, India’s domestic market and internal demand are what primarily fuel the country’s chemical industry. Due to its significant contribution to India’s export revenues, it has developed through time into a crucial gear in the economic machinery of the nation. To learn more about this varied industry in India, continue reading.</p><p>The chemical industry in India is very diversified, with more than 80,000 commercial products. Bulk, specialty, agrochemicals, petrochemicals, polymers, and fertilizers are a few examples of categories. Due to its proximity to the Middle East, which is the largest producer of petrochemical feedstock worldwide, India benefits from economies of scale. It is self-sufficient, and because competitors’ exports are declining, India’s exports are expected to rise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*pPe0NKE9bCiHTXxNjJ0oXQ.png" /><figcaption><strong><em>Chemicals Sales in 2020 by Country</em></strong></figcaption></figure><p>We can see that the EU, which includes both Russia and Ukraine, contributes significantly to the manufacture and export of chemicals, and that Russia is one of the EU’s main trading partners. Countries that follow them are gradually falling behind. India is adopting a neutral stance, which is good in this situation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*FUWksANfGEIembSu0xCEJQ.png" /><figcaption><strong><em>Fertilizer Producers by Country</em></strong></figcaption></figure><p>More price hikes for fertilizer are on the horizon as the Russia-Ukraine crisis adds to fears of global shortages, stoking concerns about rising food costs.</p><p>Russia is the world’s second-largest producer of potash, a key nutrient used in important commodities crops and produces, behind Canada. It produces all significant fertilizers at low costs and in high volumes. Trade flows may suffer as a result of regional unrest and Russian sanctions. In a call with analysts on Wednesday, U.S.-based Mosaic Co., a significant fertilizer manufacturer, warned of potash shortages.</p><p>All of this indicates that farmers are cutting back on fertilizer use due to increased costs. This could result in poorer agricultural production and an increase in food costs globally. The cost of food is currently at its highest point in ten years, according to a United Nations indicator.</p><p>The force majeure declaration made last week by a Belarusian potash miner — which was primarily brought on by U.S. sanctions and being cut off from international markets — also adds to the unrest in the fertilizer markets. A percent of the world’s supply comes from Belarus. The price of potash in international contracts has already reached its highest level since 2008.</p><p>Other fertilizer costs have skyrocketed due to high natural gas prices, which has forced some European facilities to suspend or reduce production. Another important concern would be the migration of people from war-torn countries to safer countries with cultural riches that may benefit countries like India. The invasion acted as a catalyst for rising energy and fertilizer prices.</p><p>Russia restricted ammonium nitrate shipments beyond the Eurasian Economic Union bloc on the eve of its invasion of Ukraine. This measure echoed Russia’s prior response to the COVID-19 outbreak when it imposed export quotas on wheat and meslin, rye, barley, and maize despite the growing possibility of a worldwide food security disaster. Russia also refused to sign a joint statement published at the WTO by the major agricultural and agrifood exporters that promised to open and predictable commerce in the face of the pandemic in April 2020.</p><p>Fertilizer prices have more than doubled since the start of the Ukraine war, and energy prices are skyrocketing. According to the World Bank, the current energy crisis differs from the 1970s energy price shock in that the room for substitution between different types of major energy commodities is limited because their prices are all rising. COVID-19 drove up oil and coal prices, but the current energy crisis is the result of the conflict, as Russia is the world’s largest exporter of natural gas and a major source of crude oil and coal.</p><p>According to the World Bank, the war-induced spike in energy prices might cut global output by <strong>0.8%</strong> in two years, with food, construction, petrochemicals, and transportation likely to be among the most affected.</p><p>The question is whether, how quickly, and to what degree Russia will be able to reposition itself towards alternative markets like China and India. Experts at the Kyiv School of Economics estimated that shifting from advanced economies to alternative markets will cost Russia USD 80 billion in yearly exports due to greater logistics, infrastructure, and entrance costs, as well as lower skill and knowledge transfer.</p><p>According to data from the Centre for Monitoring Indian Economy’s (CMIE) database, Russia has been losing prominence in terms of trade with India. Prior to the fall of the Soviet Union, Russia was a major export destination for India, accounting for over 10% of total exports. By 2020–21, this figure will be less than 1%.</p><p>To be sure, India’s overall trade has grown throughout this time. In 2020–21, Russian imports accounted for 1.4% of total Indian imports. While the risk of present economic interruption is low, a conflict and subsequent sanctions might stymie India’s aspirations to expand commercial and investment relations with Russia.</p><p>“Improving trade and economic cooperation between India and Russia is a key priority for both countries’ political leadership, as evidenced by revised targets of increasing bilateral investment to $50 billion and bilateral trade to $30 billion by 2025,” according to an economic brief on India-Russia relations on the website of the Indian embassy in Russia. The brief adds that India’s total trade with Russia in 2020 was $9.31 billion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*gLRQ0TEEHEqSOw6zIfLJwg.png" /><figcaption><strong>A Comparison of Imports and Exports between Russia and India</strong></figcaption></figure><h4>Conclusion:</h4><p>The ongoing conflict between Russia and Ukraine has the potential to cause significant economic impacts on India. <em>The increase in oil prices and the disruption of global supply chains could lead to inflation and a slowdown in economic growth</em>. Additionally, the imposition of sanctions by the international community could affect trade relations between India and Russia, as well as other countries. It is important for India to closely monitor the situation and take appropriate measures to mitigate any negative impacts on its economy. This could include diversifying its oil and gas imports, seeking new trade partners, and investing in domestic industries to reduce reliance on imports. While the full extent of the economic impact remains uncertain, it is clear that the conflict in Ukraine has the potential to affect the global economy, <em>and India must be prepared to respond accordingly.</em></p><h3>References:</h3><ol><li><a href="https://news.un.org/pages/wp-content/uploads/2022/04/UN-GCRG-Brief-1.pdf">https://news.un.org/pages/wp-content/uploads/2022/04/UN-GCRG-Brief-1.pdf</a></li><li><a href="https://www.outlookindia.com/business/how-the-russia-ukraine-war-could-impact-india-s-export-import-sectors-news-184541">https://www.outlookindia.com/business/how-the-russia-ukraine-war-could-impact-india-s-export-import-sectors-news-184541</a></li><li><a href="https://www.businessworld.in/article/Russia-Ukraine-War-What-All-Affected-In-India-/18-06-2022-433143/">Russia Ukraine War What All Affected In India — BW Businessworld</a></li><li><a href="https://newagemetals.com/palladium-and-putin-the-impact-of-global-upheaval-on-critical-metal-supplies/">Palladium and Putin — The Impact of Global Upheaval on Critical Metal Supplies — New Age Metals Inc.</a></li><li><a href="https://www.youtube.com/watch?v=lpQrIy3clqQ">https://www.youtube.com/watch?v=lpQrIy3clqQ</a></li><li><a href="https://www.egmontinstitute.be/putins-critical-raw-materials-are-a-threat-to-eu-economic-security/">Putin’s critical raw materials are a threat to EU economic security — Egmont Institute</a></li><li><a href="https://www.moneycontrol.com/news/business/commodities/how-a-ban-on-russias-mining-giants-could-shake-the-metals-world-9295731.html">Ban on Russian mining giants may send shockwaves to global metals trade</a></li><li><a href="https://www.polytechnique-insights.com/en/braincamps/geopolitics/industry-autonomy-scarcity-the-ripples-of-war-in-ukraine/russian-metals-another-headache-for-manufacturers/">Russian metals: another headache for manufacturers — Polytechnique Insights</a></li><li><a href="https://www.oecd.org/ukraine-hub/policy-responses/the-supply-of-critical-raw-materials-endangered-by-russia-s-war-on-ukraine-e01ac7be/">The supply of critical raw materials endangered by Russia’s war on Ukraine</a></li><li><a href="https://economictimes.indiatimes.com/small-biz/trade/exports/insights/russia-ukraine-crisis-can-indian-exporters-fill-the-gap-in-the-global-commodities-market/articleshow/91880818.cms?from=mdr">https://economictimes.indiatimes.com/small-biz/trade/exports/insights/russia-ukraine-crisis-can-indian-exporters-fill-the-gap-in-the-global-commodities-market/articleshow/91880818.cms?from=mdr</a></li><li><a href="https://economictimes.indiatimes.com/news/economy/foreign-trade/russia-ukraine-war-exports-of-some-products-from-india-likely-to-be-affected-says-govt/articleshow/90272748.cms">https://economictimes.indiatimes.com/news/economy/foreign-trade/russia-ukraine-war-exports-of-some-products-from-india-likely-to-be-affected-says-govt/articleshow/90272748.cms</a></li><li><a href="https://www.business-standard.com/podcast/economy-policy/what-does-indian-trade-stand-to-lose-and-gain-from-russia-ukraine-conflict-122030700500_1.html">https://www.business-standard.com/podcast/economy-policy/what-does-indian-trade-stand-to-lose-and-gain-from-russia-ukraine-conflict-122030700500_1.html</a></li><li><a href="https://economictimes.indiatimes.com/small-biz/trade/exports/insights/russia-ukraine-crisis-can-indian-exporters-fill-the-gap-in-the-global-commodities-market/articleshow/91880818.cms?from=mdr">https://economictimes.indiatimes.com/small-biz/trade/exports/insights/russia-ukraine-crisis-can-indian-exporters-fill-the-gap-in-the-global-commodities-market/articleshow/91880818.cms?from=mdr</a></li><li><a href="https://www.forbesindia.com/article/take-one-big-story-of-the-day/these-10-charts-explain-how-russiaukraine-conflict-will-impact-india/73977/1">https://www.forbesindia.com/article/take-one-big-story-of-the-day/these-10-charts-explain-how-russiaukraine-conflict-will-impact-india/73977/1</a></li><li><a href="https://www.reuters.com/world/india/india-asked-by-sanctions-hit-russia-parts-key-sectors-sources-2022-11-29/">https://www.reuters.com/world/india/india-asked-by-sanctions-hit-russia-parts-key-sectors-sources-2022-11-29/</a></li><li><a href="https://theprint.in/world/russian-coal-seeks-new-market-in-india-as-war-upturns-previous-commodity-flows/1000185/">https://theprint.in/world/russian-coal-seeks-new-market-in-india-as-war-upturns-previous-commodity-flows/1000185/</a></li><li><a href="https://www.thehindubusinessline.com/companies/at-4-mt-russia-becomes-second-largest-met-coal-supplier-to-india-in-jan-july-period/article66124377.ece">https://www.thehindubusinessline.com/companies/at-4-mt-russia-becomes-second-largest-met-coal-supplier-to-india-in-jan-july-period/article66124377.ece</a></li><li><a href="https://www.wto.org/english/tratop_e/covid19_e/trade_related_goods_measure_e.htm">https://www.wto.org/english/tratop_e/covid19_e/trade_related_goods_measure_e.htm</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c20b8ee3d71d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>