<?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 Rashi Gupta on Medium]]></title>
        <description><![CDATA[Stories by Rashi Gupta on Medium]]></description>
        <link>https://medium.com/@rashiguptaofficial?source=rss-845e53a5f322------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U0QmJYNhOBVUoHt-0VtUSA.png</url>
            <title>Stories by Rashi Gupta on Medium</title>
            <link>https://medium.com/@rashiguptaofficial?source=rss-845e53a5f322------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 02:53:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rashiguptaofficial/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[oops i did it again? did you ?]]></title>
            <link>https://rashiguptaofficial.medium.com/oops-i-did-it-again-did-you-e6a8f8d56ede?source=rss-845e53a5f322------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6a8f8d56ede</guid>
            <category><![CDATA[cpp-programming]]></category>
            <dc:creator><![CDATA[Rashi Gupta]]></dc:creator>
            <pubDate>Sun, 27 Sep 2026 05:51:33 GMT</pubDate>
            <atom:updated>2026-09-27T05:51:33.886Z</atom:updated>
            <content:encoded><![CDATA[<p>object = entity having state/properties &amp; behaviour</p><p>class =template to create object</p><pre>#include &lt;iostream&gt;<br>using namespace std;<br><br>class CodeHelp {<br>    int subs;  // int size = 4bytes<br>    bool a;    // bool size = 1 byte<br>};<br><br>int main() {<br>    cout &lt;&lt; &quot;Size of CodeHelp class in C++ is: &quot; &lt;&lt; sizeof(CodeHelp);<br>    return 0;<br>}</pre><p>output is 8 bytes because computer likes to work faster when things are arranged in neat rows i.e. 4/8 so it adds extra empty drawers after bool. this concept of adding extra empty space is call padding.and this approach is called the greedy alignment.</p><blockquote>Access Modifiers in OOP</blockquote><ol><li>public : accessible from anywhere (inside or outside the class)</li><li>private: accessible only within the class.data hiding and security.default in cpp .</li><li>protected: accessible within the class and derived class.mostly used in inheritance scenarios.</li></ol><p><strong>Q:</strong> Can a derived class access private members of its base class?<br><strong>A:</strong> No, only protected and public members are inherited accessibly.</p><blockquote>what are getters and setters ?</blockquote><p>see whats inside → getter; change whats inside → setter;</p><pre>class CodeHelp {// encapsulation <br>private:<br>    int subs;<br>    int views;<br><br>public:<br>    // Getter for subs<br>    int getSubs() {<br>        return subs;<br>    }<br><br>    // Setter for subs<br>    void setSubs(int value) {<br>        subs = value;<br>    }<br>};<br><br>int main() {<br>    <br>    CodeHelp ch;  // ch --&gt; object, CodeHelp --&gt; Class<br><br>    ch.setSubs(100);  // dot operator<br>   <br>    cout &lt;&lt; &quot;Subs = &quot; &lt;&lt; ch.getSubs() &lt;&lt; endl;<br><br>    return 0;<br>}</pre><blockquote>Annotations?</blockquote><blockquote>in cpp we dont have this concept but in java /python these are special markers starting with @ that give extra info to the compiler or runtime.in cpp we directly use getter/setter methods</blockquote><blockquote>object creation in cpp?</blockquote><ol><li>static allocation-&gt;stack; access members using dot operator ,memory cleanup automatically managed , garbage value if not initialized.</li></ol><pre>Hero a;    // object created statically<br>a.level = 5;</pre><p>2. dynamic allocation -&gt; heap; arrow operator;<em> delete </em>to manage memory<em>;values initialized to 0</em></p><pre>Hero* b = new Hero();<br>b-&gt;level = 5;</pre><p>Q. Can we access data using dot operator in dynamic allocation ?yes after dereferencing . ex:- (*ch).getSubs();</p><p>Constructor?</p><blockquote><strong>Does a constructor return any value in C++?</strong></blockquote><blockquote><strong>Ans</strong>. Yes — internally</blockquote><blockquote>A constructor doesn’t have a return type, and we can’t use the return keyword. But yes, it implicitly <strong>returns the object being created</strong> — handled by the compiler.</blockquote><blockquote><strong>Interview Tip:</strong></blockquote><blockquote><strong>Tasks Performed by a Constructor</strong> (Not Just Initialization)<br>“Besides initializing object state, a constructor can also acquire resources, validate inputs, and set up internal links.”</blockquote><blockquote><strong>Constructor vs Method?</strong></blockquote><blockquote>Constructors are special functions that initialize objects and run automatically when objects are created. Unlike methods, they have no return type, share the class name, and can’t be called manually.</blockquote><p>Types of constructors</p><ol><li>default constructor: no parameters</li><li>parameterized constructor: take parameters to initialize object with values</li><li>copy constructor: copies data from one object to another .<em>can we make copy constructor private? yes</em></li></ol><blockquote>Why is Copy Constructor Passed by Reference?</blockquote><pre>CodeHelp(CodeHelp &amp;obj) { ... }</pre><p><strong>Reason:</strong></p><ul><li>If passed <strong>by value</strong>, it would again call the <strong>copy constructor</strong> to copy obj, leading to <strong>infinite recursion</strong> 🔁</li><li>Passing <strong>by reference avoids creating a new copy</strong> and breaks the cycle</li></ul><blockquote>Shallow copy vs Deep copy</blockquote><h4>1. Shallow Copy (Default behavior)</h4><ul><li>Copies <strong>values of member variables</strong></li><li>For <strong>pointer variables</strong>, <strong>only the address is copied</strong>, not the data it points to</li><li>Both objects <strong>share same memory</strong> (dangerous if one deletes it!)</li></ul><pre>obj1.ptr = new int(10);<br>obj2 = obj1; // Both share same ptr → shallow copy</pre><p><em>🧨 If </em><em>obj1 is deleted, </em><em>obj2’s pointer becomes </em><strong><em>dangling</em></strong></p><h4>2. Deep Copy</h4><ul><li>Allocates <strong>separate memory</strong></li><li>Copies the <strong>actual data</strong>, not just pointers</li><li>Ensures both objects are <strong>independent</strong></li></ul><pre>CodeHelp(const CodeHelp &amp;obj) {<br>    this-&gt;ptr = new int(*obj.ptr); // Deep copy<br>}</pre><p>Example:</p><pre>class CodeHelp {<br>public:<br>    int subs;<br>    int views;<br><br>    // ✅ Default Constructor<br>    CodeHelp() {<br>        subs = 0;<br>        views = 0;<br>        cout &lt;&lt; &quot;Default Constructor Called 👶&quot; &lt;&lt; endl;<br>    }<br><br>    // ⚙️ Parameterized Constructor<br>    CodeHelp(int s, int v) {<br>        subs = s;<br>        views = v;<br>        cout &lt;&lt; &quot;Parameterized Constructor Called ⚙️&quot; &lt;&lt; endl;<br>    }<br><br>    // 📋 Copy Constructor<br>    CodeHelp(CodeHelp &amp;obj) {<br>        subs = obj.subs;<br>        views = obj.views;<br>        cout &lt;&lt; &quot;Copy Constructor Called 📋&quot; &lt;&lt; endl;<br>    }<br><br>    // Method to display values<br>    void display() {<br>        cout &lt;&lt; &quot;Subscribers: &quot; &lt;&lt; subs &lt;&lt; &quot;, Views: &quot; &lt;&lt; views &lt;&lt; endl;<br>    }<br>};<br><br>int main() {<br>    CodeHelp obj1;                 // Default Constructor<br>    obj1.display();<br><br>    CodeHelp obj2(100, 2500);      // Parameterized Constructor<br>    obj2.display();<br><br>    CodeHelp obj3 = obj2;          // Copy Constructor<br>    obj3.display();<br><br>    return 0;<br>}</pre><pre>Default Constructor Called 👶<br>Subscribers: 0, Views: 0<br>Parameterized Constructor Called ⚙️<br>Subscribers: 100, Views: 2500<br>Copy Constructor Called 📋<br>Subscribers: 100, Views: 2500</pre><blockquote>this keyword in cpp</blockquote><p>this is a pointer that points to the current object of the class. it is implicitly available in non-static member functions.</p><pre>class CodeHelp {<br>public:<br>    int subs;<br><br>    CodeHelp(int subs) {<br>        this-&gt;subs = subs; // ✅ Fixes ambiguity<br>    }<br><br>    void display() {<br>        cout &lt;&lt; &quot;Subscribers: &quot; &lt;&lt; subs &lt;&lt; endl;<br>    }<br>};</pre><blockquote>Destructor in cpp? ~Codehelp(){}</blockquote><p>in java ? it automatically frees memory when no references point to an object. no destructor or delete only finalizers.</p><p>then why not in cpp? cpp was designed for performace and control . garabage collector means automatic memory cleanup so adding that makes things slow so it is not included in cpp.</p><p>how to delete dynamically allocated arrays?</p><pre>int *arr=new int[5];<br>delete[] arr;</pre><blockquote>static keyword?</blockquote><ol><li>static data member: shared variable for all objects.only one copy irrespective of how many objects are created.</li></ol><pre>class Student {<br>   public:<br>     static int count; // static data member<br>     Student() {<br>         count++;<br>     }<br>};<br><br>// Initialize static member outside class<br>int Student::count = 0;<br>int main() {<br>   Student s1;<br>   Student s2;<br>   cout &lt;&lt; &quot;Total students: &quot; &lt;&lt; Student::count &lt;&lt; endl;<br>}</pre><p>2. static member function :function that can be called without creating object</p><pre>class MyClass {<br>   public:<br>     static void showMessage() {<br>        cout &lt;&lt; &quot;Hello from static function!&quot; &lt;&lt; endl;<br>     }<br>};<br><br>int main() {<br>   MyClass::showMessage(); // called without any object<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6a8f8d56ede" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[cpp bible part 2]]></title>
            <link>https://rashiguptaofficial.medium.com/cpp-bible-part-2-34b03257e58a?source=rss-845e53a5f322------2</link>
            <guid isPermaLink="false">https://medium.com/p/34b03257e58a</guid>
            <category><![CDATA[cpp]]></category>
            <dc:creator><![CDATA[Rashi Gupta]]></dc:creator>
            <pubDate>Fri, 25 Sep 2026 08:00:01 GMT</pubDate>
            <atom:updated>2026-09-25T08:00:01.015Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>function call stack ?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*dgVFWeXsSIg0S9ZiblI04Q.png" /></figure><blockquote>pass by value and by reference?</blockquote><pre>void change(int x){<br>  x=100;<br>}<br>void change2(int &amp;x){<br>  x=100;<br>}<br>main(){<br>  int num=10;<br>  change(num);<br>  cout&lt;&lt;num;// returns 10--&gt;pass by value<br>  change2(num);<br>  cout&lt;&lt;num;// returns 100 --&gt;pass by reference<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*DfOjV4L7AVjSviYuMUuA2Q.png" /><figcaption>pass by value</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/293/1*uQJ8BAyJb0dmh9BVm94iRg.png" /><figcaption>pass by reference</figcaption></figure><blockquote>INLINE FUNCTIONS?</blockquote><pre>inline int square(int x){<br>  return x*x;<br>}</pre><p>compiler reduces function call overhead for very <em>small functions</em>.</p><blockquote>DEFAULT ARGUMENTS?used at the end of the parameter list</blockquote><pre>void test(int a, int b =5);</pre><blockquote>FUNCTION OVERLOADING</blockquote><blockquote>VARIABLE SCOPE-&gt;1- local 2-global</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*kh6Mqm572NgAK9wzZR9tjg.png" /><figcaption>variables type</figcaption></figure><p>now data structures?</p><blockquote>ARRAY?</blockquote><p>why does indexing start from 0? because the address of an element is calculated as: address= base +index*size;starting from 0 eliminates unnecessary additon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*q4h2fbo39yqKkHDNO17Q8A.png" /></figure><blockquote>pointers &amp; memory management??</blockquote><p>ram ? think of it as thousands of numbered houses. each variable gets -&gt;a value and an address.</p><p>what does &amp;var do ? it returns the memory address of a variable</p><blockquote>pointer?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*T6CteApddWIOABsfEmqRqQ.png" /><figcaption>memory</figcaption></figure><blockquote>→ dereference operator</blockquote><pre>int age=22;<br>int *ptr=&amp;age;<br>cout&lt;&lt;ptr;//returns address<br>cout&lt;&lt;*ptr;//returns value of the memory adress that ptr stores</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*nuKuWkCEOCtp7lpE7b3nNw.png" /></figure><p>the expression arr[i] is internally equivalent to *(arr+i) .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XHgqC6BGmzmvrkaEpwbg6A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*Xyjdtfc5XbzWcrycpz8M9A.png" /></figure><blockquote>stack vs heap memory ?</blockquote><p>why use heap?because memory can survive beyond local scopes when managed correctly .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KcnDjqTWFxpoLu1qJvoYZA.png" /></figure><blockquote>dangerous types of pointers?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*OQ-emGs_X1-QE8ZQ0KbuzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3pSvQJHdC9JMP7jaqA877w.png" /></figure><blockquote>memory leak?</blockquote><pre>int *ptr=new int(5);</pre><p>program ends. never deleted .memory remains allocated thus a bad method.correct way to do it?</p><pre>delete ptr;<br>ptr=nullptr;//setting to nullptr avoids accidental reuse.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34b03257e58a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[cpp bible]]></title>
            <link>https://rashiguptaofficial.medium.com/cpp-bible-ee4961131057?source=rss-845e53a5f322------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee4961131057</guid>
            <category><![CDATA[cpp]]></category>
            <dc:creator><![CDATA[Rashi Gupta]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 13:37:57 GMT</pubDate>
            <atom:updated>2026-09-24T13:37:57.789Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>CHAPTER 01:</strong></p><p>how doo we even start as engineers, the basic syntax right ?</p><pre>#include &lt;iostream&gt;<br>using namespace std;<br>int main(){<br>    cout&lt;&lt;&quot;Hello World&quot;;<br>}</pre><p>what does the computer understand though?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*q4-_uQ8JT9cXCeV-y5g8bg.png" /><figcaption>flow for computer’s understanding</figcaption></figure><p>now the catch ?</p><p>what does #include&lt;iostream&gt; do? it basically tells the preprocessor to include the declarations from the iostream library before compilation.</p><p>simple breakdown ?? yess</p><p>#include&lt;iostream&gt; → imports input output library</p><p>using namespace std → avoids writing std:: repeatedly</p><p>int main() → entry point</p><p>cin → input</p><p>cout → output</p><p>now VARIABLES? think of it as labelled boxes capturing different capacities .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*r5Xw0zV4i6ADaKVdDEM2Rg.png" /></figure><p>diff float and double? float is 4 bytes and double is 8 bytes (means double offers more precision .</p><p>now CONSTANT? a value that remains same throughout</p><p>diff between const and constexpr →(runtime constant ) vs (compile time constant)</p><p><strong>CHAPTER 02:</strong></p><p>input taking ?</p><p>INT</p><pre><br><br>#include &lt;iostream&gt;<br><br>int main() {<br>    // Write C++ code here<br><br>    int stno,age;<br>    cin&gt;&gt; stno&gt;&gt; age;<br>    return 0;<br>}</pre><pre>input :<br>5 10<br><br>input:<br>5<br>10</pre><p>both work because &gt;&gt; skips whitespace automatically ..whitespace → space, tab, new line</p><p>STRINGS</p><pre>#include &lt;iostream&gt;<br><br>int main() {<br>    // Write C++ code here<br><br>    string name;<br>    cin&gt;&gt; name ;<br>    cout&lt;&lt;name;<br>    return 0;<br>}</pre><pre>input:<br>Rashi Gupta<br><br>output:<br>Rashi</pre><p>because cin stops at first whitespace so correct way ?</p><pre>getline(cin,name);</pre><p>now trap? why does getline() sometimes skip input after cin?</p><p>because a newline remains inside the input buffer.solution ?</p><pre>cin.ignore();<br>getline(cin,name);</pre><p>now OPERATORS?symbols that perform operation.(arithmetic[+,-] , relational[&gt;,&lt;] ,logical [&amp;&amp;] , assignment[=] , increment[++] , ternary[?:] )</p><p>TYPECASTING?</p><p>automatic conversion →implicit type casting</p><pre>int x=9;<br>double y=x;//implicit<br>double pi=3.14159;<br>int val=(int)pi;//explicit<br>int value=static_cast&lt;int&gt;(pi); // modern cpp explicit</pre><p>explicit type casting</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee4961131057" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Gender Roles in Education: A Grade-Wise Analysis]]></title>
            <link>https://rashiguptaofficial.medium.com/exploring-gender-roles-in-education-a-grade-wise-analysis-cb87db14bc7d?source=rss-845e53a5f322------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb87db14bc7d</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[ml4sci]]></category>
            <category><![CDATA[gender-roles]]></category>
            <category><![CDATA[human-ai]]></category>
            <category><![CDATA[gsoc2024]]></category>
            <dc:creator><![CDATA[Rashi Gupta]]></dc:creator>
            <pubDate>Fri, 13 Sep 2024 15:01:46 GMT</pubDate>
            <atom:updated>2024-09-23T11:31:06.577Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VlWHreYPksGFYAukvaBW-Q.png" /></figure><blockquote>Gender perceptions significantly shape students’ academic choices and career aspirations. This blog explores how these influences evolve from 7th to 12th grade, based on an extensive analysis of gender roles in education. Using machine learning techniques like the <strong>Random Forest Classifier</strong>, we predicted students’ future academic paths based on various features like subject preferences, teacher clarity, and academic performance.</blockquote><h3>PROJECT OVERVIEW:</h3><p>The code and all results can be found on <a href="https://github.com/humanai-foundation/ISSR/tree/main/ISSR_Gender_Roles_Career_Rashi_Gupta">Github</a>. You can check out mypast work <a href="https://rashiguptaofficial.medium.com/gender-roles-careers-exploring-congruity-theories-e49e3b8e4797">here</a>.</p><h3>Table of Content</h3><ol><li><a href="#f88f">7th grade</a></li><li><a href="#6949">8th grade</a></li><li><a href="#4fad">9th grade</a></li><li><a href="#9556">10th grade</a></li><li><a href="#3e03">11th grade</a></li><li><a href="#77c8">12th grade</a></li><li><a href="#0079">ML Approach</a></li><li><a href="#54af">Challenges Faced</a></li><li><a href="#">Future Work</a></li><li><a href="#8ed6">Acknowledgement</a></li></ol><h3>7th Grade: Setting the Stage for Gender Perceptions</h3><p>In 7th grade, students begin to exhibit early signs of gendered academic preferences.</p><ul><li><strong>Key Insights</strong>:</li><li><strong>Subject Preferences</strong>: Boys tend to lean more towards Math and Science, while girls show a more balanced interest across subjects.</li><li><strong>Teacher Influence</strong>: Perceptions of teacher clarity and engagement are pivotal in shaping these preferences.</li><li><strong>Parental Expectations</strong>: Parents often reinforce traditional gender roles through rewards for academic performance, influencing future academic motivations.</li></ul><p><strong>Recommendations</strong>:</p><ul><li><strong>For Educators</strong>: Encourage gender-neutral support in all subjects.</li><li><strong>For Parents</strong>: Reward academic achievement uniformly across subjects, avoiding gender-specific encouragement.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*oeT0eRXs8SkV061hAOLgFw.png" /><figcaption>The plot compares how much 7th-grade students like STEM subjects (like math and science) versus Non-STEM subjects (like English and art). It shows that the preferences are spread out and highlights which subjects students generally prefer more.</figcaption></figure><h3>8th Grade: Shaping Gendered Career Aspirations</h3><p>By 8th grade, career aspirations start to reflect gender stereotypes.</p><ul><li><strong>Key Insights</strong>:</li><li><strong>Career Aspirations</strong>: Boys lean towards STEM fields, while girls are drawn to humanities and social sciences. This strongly correlates with future college major choices.</li><li><strong>Influence of Enjoyment</strong>: Enjoyment of subjects like Math and Science plays a key role in shaping career interests, particularly for boys.</li></ul><p><strong>Recommendations</strong>:</p><ul><li><strong>For Educators</strong>: Actively counteract gender stereotypes in career counseling by showcasing successful role models from both genders across all fields.</li><li><strong>For Parents</strong>: Encourage exploration of a wide range of careers, particularly encouraging girls to explore STEM fields.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*3phQ7XA--2A9EGmOzRg48A.png" /><figcaption>Reasons for Job Switch</figcaption></figure><h3>9th Grade: Cementing Gendered Interests</h3><p>By 9th grade, gender preferences in academic subjects and career aspirations become more entrenched.</p><ul><li><strong>Key Insights</strong>:</li><li><strong>Subject Preferences</strong>: Boys show higher interest in STEM subjects, while girls gravitate more towards humanities.</li><li><strong>Parental Influence</strong>: Parents continue to play a significant role in reinforcing traditional gender roles through their expectations.</li></ul><p><strong>Recommendations</strong>:</p><ul><li><strong>For Educators</strong>: Provide targeted support to break down gender barriers, especially in STEM fields.</li><li><strong>For Parents</strong>: Foster an environment that emphasizes personal interest rather than traditional gender roles in career selection.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*lVekNgj-og01e8z3rIwpjw.png" /><figcaption>The plot compares how much 9th-grade students like STEM subjects (like math and science) versus Non-STEM subjects (like English and art). It shows that the preferences are spread out and highlights which subjects students generally prefer more.</figcaption></figure><h3>10th Grade: Deepening Gender Gaps in Academic Choices</h3><p>In 10th grade, students’ academic choices are more defined by gender.</p><ul><li><strong>Key Insights</strong>:</li><li>Boys dominate STEM subjects like math and science, while girls are more inclined towards social sciences and humanities.</li></ul><p><strong>Recommendations</strong>:</p><ul><li><strong>For Educators and Parents</strong>: Continue encouraging exploration of diverse subjects for both boys and girls.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*1aHkIetq34OSKDw-YAUxtw.png" /><figcaption>Multiclass ROC Curve for Fall Semester Classification Performance</figcaption></figure><h3>11th Grade: Crystallizing Career Aspirations</h3><p>By 11th grade, students are solidifying their career aspirations, often influenced by societal gender expectations.</p><ul><li><strong>Key Insights</strong>:</li><li>Boys overwhelmingly choose STEM careers, while girls gravitate towards fields like education and social sciences.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TkQCk5iIg-klLvdQqDBxDA.png" /><figcaption>Heatmap showing Subject Enjoyment Ratings</figcaption></figure><p><strong>Recommendations</strong>:</p><ul><li><strong>For Educators</strong>: Encourage students to pursue subjects based on interest and skill rather than societal norms.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3GnnnsBX8UATL8cERuk3mw.png" /><figcaption>A violin plot that visualizes the distribution of interest levels in various issues</figcaption></figure><h3>12th Grade: Finalizing Career Paths</h3><p>In the 12th grade, career choices are cemented, reflecting the cumulative influence of gender perceptions over the years.</p><ul><li><strong>Key Insights</strong>:</li><li>Boys largely aim for engineering and technical fields, while girls show more interest in social sciences, humanities, and education.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*kyANZfEV9pAdti9JO_5JJw.png" /><figcaption>Importance of Success in Work by Major</figcaption></figure><h3>The Machine Learning Approach: Random Forest Classifier</h3><h3>How the Random Forest Model Works</h3><p>In this analysis, we used the <strong>Random Forest Classifier</strong> to predict students’ future career choices based on academic performance, subject preferences, and other related features.</p><ul><li><strong>How It Works</strong>: The Random Forest consists of multiple decision trees. Each tree is trained on different parts of the dataset, and the final prediction is based on the majority vote across all trees.</li><li><strong>Why It’s Effective</strong>: It helps reduce overfitting and is great at handling large, complex datasets.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6pS-bADWeZgLOQq0gdt41g.png" /><figcaption>Working of the Random Forest Classifier</figcaption></figure><h3>Addressing Class Imbalance</h3><p>One of the challenges we faced was class imbalance, where certain career paths (e.g., STEM for boys) were overrepresented. To handle this, we used <strong>SMOTE (Synthetic Minority Over-sampling Technique)</strong>, which balances the dataset by generating synthetic samples for underrepresented classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*Cb6PtMZWxBZcImoioRIwbw.png" /><figcaption>Schematic-diagram-of-Borderline-SMOTE-algorithm-principle</figcaption></figure><h3>Challenges Faced</h3><ol><li><strong>Class Imbalance</strong>: Careers in STEM fields were overrepresented for boys, while girls were more concentrated in humanities.</li></ol><ul><li><strong>Solution</strong>: We used <strong>SMOTE</strong> to balance the dataset.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*vXWo3D05SHOYRxz9rAeBZg.png" /><figcaption>Flowchart-of-two-kinds-of-method-for-improving-SMOTE</figcaption></figure><ol><li><strong>Hyperparameter Tuning</strong>: Finding the best parameters for the Random Forest model was essential to improving accuracy.</li></ol><ul><li><strong>Solution</strong>: We used <strong>GridSearchCV</strong> to fine-tune hyperparameters like the number of trees, maximum depth, and minimum samples per split.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*zRzuRHPV-jup0UAQeaiJEA.png" /><figcaption>Grid -Search is used for Hyperparameter Tuning</figcaption></figure><h3>Future Work</h3><p>Looking ahead, we plan to improve our model and analysis in the following ways:</p><ul><li><strong>Advanced Models</strong>: Explore more advanced machine learning models like <strong>XGBoost</strong> and <strong>Neural Networks</strong> for improved accuracy.</li><li><strong>Bias Detection</strong>: Develop techniques to detect and mitigate any biases in the model that could reinforce existing gender stereotypes.</li><li><strong>Additional Data</strong>: Incorporate additional features such as extracurricular activities, socio-economic status, and school type for richer insights.</li></ul><p>By understanding how gender roles influence students’ academic choices and career aspirations, we can create targeted interventions that challenge these stereotypes and promote equality in education. Early and continuous support is key to helping students reach their full potential, regardless of gender.</p><h3>Acknowledgement:</h3><p>This project is supported by <a href="https://summerofcode.withgoogle.com/">Google Summer of Code</a> program and <a href="https://humanai.foundation/">HumanAI</a>. Firstly, I want to thank my mentors , Joan Barth, Erika Steele , who guides me through the whole project. Secondly, I want to thank Dr. Sergie Gleyzer, Andrea Underhill who provides super helpful suggestions for the project review.</p><p>Stay tuned for more insights on how to support students through their educational journeys and help them achieve their dreams, irrespective of gender.</p><p><strong>Thank you for reading!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb87db14bc7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gender, Roles & Careers: Exploring Congruity Theories]]></title>
            <link>https://rashiguptaofficial.medium.com/gender-roles-careers-exploring-congruity-theories-e49e3b8e4797?source=rss-845e53a5f322------2</link>
            <guid isPermaLink="false">https://medium.com/p/e49e3b8e4797</guid>
            <category><![CDATA[ml4sci]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[gsoc2024]]></category>
            <category><![CDATA[gender-roles]]></category>
            <category><![CDATA[human-ai]]></category>
            <dc:creator><![CDATA[Rashi Gupta]]></dc:creator>
            <pubDate>Mon, 22 Jul 2024 13:59:23 GMT</pubDate>
            <atom:updated>2024-07-22T13:59:23.142Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VlWHreYPksGFYAukvaBW-Q.png" /></figure><blockquote>Understanding how gender roles and perceptions influence career choices and academic paths is crucial for fostering an environment where all students can thrive. By analyzing data from the Longitudinal Study of American Youth, 1987–1994, 2007–2011, 2014–2017, covering 7th, 8th, and 9th grades, we can explore how these early experiences shape students’ future aspirations, providing insights into gender congruity theories. This blog post summarizes key findings from comprehensive analyses across these formative years.</blockquote><h3>PROJECT OVERVIEW:</h3><p>My code and all results can be found on <a href="https://github.com/Ras-hi/ISSR/tree/main/ISSR_Gender_Roles_Career_Rashi_Gupta">Github</a>.</p><h3>7th Grade: Setting the Stage for Gender Perceptions</h3><p><strong>Key Insights:</strong></p><ol><li><strong>Subject Preferences and Teacher Influence:</strong> Students’ enjoyment of subjects like Math, Science, and English, and their perceptions of teacher clarity, show early signs of gendered preferences. Boys tend to lean more towards Math and Science, while girls show a balanced interest across subjects.</li><li><strong>Parental Expectations and Gender Roles:</strong> Parental expectations and rewards for academic performance vary, often reflecting traditional gender roles. This early reinforcement plays a significant role in shaping students’ academic motivations and future goals.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_l-bOwnZR9fu93Vc" /><figcaption>The plot compares how much 7th-grade students like STEM subjects (like math and science) versus Non-STEM subjects (like English and art). It shows that the preferences are spread out and highlights which subjects students generally prefer more.</figcaption></figure><p><strong>Recommendations:</strong></p><ul><li><strong>For Educators:</strong> Encourage gender-neutral support in all subjects, emphasizing clarity and enjoyment to foster equal interest in Math and Science among boys and girls.</li><li><strong>For Parents:</strong> Promote and reward academic achievements uniformly across subjects, regardless of gender, to prevent the reinforcement of traditional gender roles.</li></ul><h3>8th Grade: Shaping Gendered Career Aspirations</h3><p><strong>Key Insights:</strong></p><ol><li><strong>Career Aspirations and Gender Stereotypes:</strong> Students’ first-choice careers in 8th grade often reflect traditional gender roles, with boys leaning towards STEM fields and girls towards humanities and social sciences. These choices are strongly correlated with their future college majors.</li><li><strong>Grades, Enjoyment, and Gender:</strong> High grades and enjoyment in Math and Science increase the likelihood of boys choosing STEM majors. For girls, enjoyment in these subjects is equally important but often overshadowed by societal expectations.</li><li><strong>Influence of Gender Perceptions:</strong> Beliefs about gender proficiency in Math and Science show less influence on major choices compared to actual enjoyment and performance in these subjects.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/0*vyAXMemahx_aGvBb" /><figcaption>Reasons for Job Switch</figcaption></figure><p><strong>Recommendations:</strong></p><ul><li><strong>For Educators:</strong> Actively counteract gender stereotypes in career counseling, highlighting successful role models from both genders in all fields.</li><li><strong>For Parents:</strong> Encourage exploration of a wide range of careers, breaking down traditional gender roles and supporting interests in all fields, particularly STEM for girls.</li></ul><h3>9th Grade: Cementing Gendered Interests</h3><p><strong>Key Insights:</strong></p><ol><li><strong>Subject Preferences and Gender Dynamics:</strong> By 9th grade, students’ preferences and perceived teacher clarity in Math, Science, and English reflect entrenched gender roles, with boys showing higher interest in STEM and girls in humanities.</li><li><strong>Career Utility and Parental Influence:</strong> The perceived career utility of subjects and parental expectations continue to play significant roles, often reinforcing traditional gender roles.</li><li><strong>Predictive Models and Gender:</strong> Predictive models, such as Random Forest, indicate that gender plays a role in determining college major choices and overall satisfaction, with boys gravitating towards STEM and girls towards humanities and social sciences.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/0*APY8rSMSf6om8lzN" /><figcaption>The plot compares how much 9th-grade students like STEM subjects (like math and science) versus Non-STEM subjects (like English and art). It shows that the preferences are spread out and highlights which subjects students generally prefer more.</figcaption></figure><p><strong>Recommendations:</strong></p><ul><li><strong>For Educators:</strong> Provide targeted support to break down gender barriers in STEM, ensuring that both boys and girls receive encouragement and resources to pursue their interests.</li><li><strong>For Parents:</strong> Foster an environment where gender does not dictate career choices, emphasizing the value of all fields and supporting children in pursuing their genuine interests.</li></ul><h3>Conclusion: Challenging Gender Congruity Theories</h3><p>The journey from 7th to 9th grade is a critical period for shaping students’ perceptions of gender roles and career aspirations. By understanding and addressing these influences, educators and parents can help dismantle traditional gender stereotypes and support all students in achieving their full potential. Early intervention and continuous support can significantly impact students’ long-term satisfaction and success, paving the way for a more equitable and diverse future workforce.</p><h3>Acknowledgement:</h3><p>This project is supported by <a href="https://summerofcode.withgoogle.com/">Google Summer of Code</a> program and <a href="https://humanai.foundation/">HumanAI</a>. Firstly, I want to thank my mentors , Joan Barth, Erika Steele , who guides me through the whole project. Secondly, I want to thank Dr. Sergie Gleyzer, Andrea Underhill who provides super helpful suggestions for the project review.</p><p>Stay tuned for more insights on how to support students through their educational journeys and help them achieve their dreams, irrespective of gender.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e49e3b8e4797" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>