<?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 Ghizlane Rehioui on Medium]]></title>
        <description><![CDATA[Stories by Ghizlane Rehioui on Medium]]></description>
        <link>https://medium.com/@ghizlanerehioui?source=rss-5dee1a7fff7d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*q0WtY2V5glR8djyHEJpbaw.jpeg</url>
            <title>Stories by Ghizlane Rehioui on Medium</title>
            <link>https://medium.com/@ghizlanerehioui?source=rss-5dee1a7fff7d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:27:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ghizlanerehioui/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[DataFlow Architect]]></title>
            <link>https://medium.com/99p-labs/dataflow-architect-f919daa5a181?source=rss-5dee1a7fff7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f919daa5a181</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[university]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ghizlane Rehioui]]></dc:creator>
            <pubDate>Wed, 21 May 2025 11:51:25 GMT</pubDate>
            <atom:updated>2025-05-21T13:30:38.548Z</atom:updated>
            <content:encoded><![CDATA[<h4>Bridging the Gap Between Data and Decisions: An AI-Powered Reporting Solution for Data Workflows</h4><p><strong>Team Members:</strong> Hariharan Anbumurugan, Jagadeesh Gurram, Rohit Raju, Ghizlane Rehioui, Akarsh Reddy Tatimakula, Punitha Vancha</p><h3><strong>Problem Statement and Objectives</strong></h3><p>Many organizations possess large amounts of datasets with untapped potential as they struggle to identify how to extract meaningful insights. This capstone project, proposed by 99P Labs centers on “Data Science as a Service” with a focus on data mining.</p><p>The goal from this project is to develop a system that leverages Large Language Models (LLMs) to analyze a sample of data and generate a report outlining potential data science projects that could be undertaken with the data input by the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QGGHMyeOnmsJy79-" /><figcaption><em>Figure 1: Input, tools, and output of the system.</em></figcaption></figure><p>By inputting a data sample or schema, users will receive guidance on possible analyses, insights, and applications, effectively unlocking the value of their datasets.</p><p>Based on the problem statement, a User Persona was created to align the solution with the intended project’s needs and goals. The persona may represent a middle manager or SME (Subject Matter Expert): someone with domain expertise and just enough knowledge of data to think critically about its potential. This persona is familiar with tools like Excel, Power BI, and Tableau, and has a strong data-driven mindset with aspirations to leverage machine learning (ML) insights.</p><p>The primary goal of this persona is to bridge the gap between domain expertise and data science, ensuring they can form a clear understanding of insights before engaging with data scientists. They seek solutions that:</p><ul><li>Present information in a way that is easy to interpret.</li><li>Offer either an interactive interface for exploration or a directly generated report with clear explanations.</li><li>Include visualization suggestions, reasoning, and step-by-step logic to make insights transparent and actionable.</li></ul><h3><strong>Solution Overview</strong></h3><p>Based on the initial project proposal, the project functionalities can be split into 8 main parts:</p><p><strong>Data Input Module:</strong></p><ul><li>Ability to accept various data formats (CSV, JSON, SQL schemas) as input.</li></ul><p><strong>LLM Integration:</strong></p><ul><li>Utilize LLMs to interpret the data structure and content.</li></ul><p><strong>Prompt Engineering and Model Fine-Tuning:</strong></p><ul><li>Develop and optimize prompts to effectively guide the LLMs in generating accurate and relevant analyses.</li><li>Explore the possibility of fine-tuning LLMs on domain-specific data to enhance performance and tailor outputs to specific use cases.</li></ul><p><strong>Automated Reporting:</strong> Generate detailed reports outlining:</p><ul><li>Insights on data quality and preprocessing needs.</li><li>Potential statistical analyses (eg. Correlations, dimensionality reduction, …)</li><li>Data visualization recommendations.</li><li>Machine learning models are applicable to the data.</li></ul><p><strong>Use Case Idea Generation:</strong></p><ul><li>Provide users with potential use cases and applications for their data based on its content and structure, helping them understand how the data can be leveraged in real-world scenarios.</li></ul><p><strong>User Interface:</strong></p><ul><li>Develop a user-friendly interface for data input and report viewing.</li></ul><p><strong>Scalability Considerations:</strong></p><ul><li>Design the system to handle different data sizes and complexities.</li></ul><p><strong>Extensibility:</strong></p><ul><li>Ensure the system can be extended with additional functionalities in the future.</li></ul><h3>Data and Preprocessing Needs</h3><h4>Data Collection</h4><p>The project required the collection of a variety of datasets in various fields in order to test out how the system responds to those variations. The system is expected to allow a variety of data formats including CSV, JSON, and so on…</p><p>Based on Honda’s diverse portfolio, a set of generic fields for datasets was created and at least one dataset was collected with relation to that field. For simplification purposes, the initial implementation of this project will consider csv data format was considered and the following datasets were collected:</p><ul><li>Folder <em>Automobile</em> containing two files <em>Automobile.csv</em> and <em>Car_Data.csv</em></li><li>Folder <em>Customer Experience</em> containing one file <em>Car_Reviews_Database.csv</em></li><li>Folder <em>Human Resources</em> containing <em>employee_data.csv</em>, <em>employee_engagement_survey_data.csv</em>,<em> recruitment_data.csv</em>, and <em>training_and_development_data.csv</em></li><li>Folder Sales containing <em>CY2024_202412_detailed_data_for_production_sales_and_exports</em> and <em>sales_data_sample.csv</em></li></ul><p>The datasets were collected from Kaggle, and <a href="https://github.com/Jagadish45/Capstone/tree/main/Data%20Files">available on GitHub</a>, and the selection of these sets was intentionally aiming to collect diverse data types within this initial csv data collection. Another important criteria for the data selection was that the datasets required some preprocessing, i.e. had some issues including missing values, incorrect values, outliers, and so on…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4SFzrNH-p2Tnf8di" /><figcaption><em>Table 1: Automobile.csv Dataset.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2uPcLZM4IJ33wgvD" /><figcaption><em>Table 2: Car_Data.csv Dataset.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zhP7PHOKEmXjBe2d" /><figcaption><em>Table 3: Car_Reviews_Database.csv Dataset.</em></figcaption></figure><h4>Data Preprocessing</h4><p>After the user uploads the dataset, the dataset is loaded into the system and all incorrect and missing values are changed to the numpy null value. With this, the datatypes are corrected and the number of null values are computed. The importance of the data preprocessing stage stems from LLMs having a tendency to give inaccurate mathematical judgements.</p><p>Surely, there are some special cases where incorrect values may be undetected using this approach; This might require more domain knowledge to be able to spot those incorrect values and adequately process them. The way this is partially tackled is by passing the output of the <em>describe</em> method to the system to show the statistical distribution and unique values for each feature. Indeed, this was especially important for the dataset of the <em>Car Reviews</em> when passing only the head of the dataset led to misinterpreting the dataset as being that of one company since the rest of Brand Names was much later than the fifth row.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nUHkjs7rZye_yNP-" /><figcaption><em>Figure 2: Automobile data before Data Preprocessing.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/0*Jgb2l48sMh1ulkWV" /><figcaption><em>Figure 3: Missing values before Data Preprocessing.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/0*S0cFFJBKLoehK58c" /><figcaption><em>Figure 4: Missing values after Data Preprocessing.</em></figcaption></figure><p>One of the functionalities of the system is to suggest data cleaning and preprocessing steps, which was a reason to train and test using raw uncleaned data.</p><h3>Architecture Diagram and System Design</h3><p>The figure below shows the end vision of the system. The initial implementation disregards the contextualization of the dataset (where “the user answers a set of questions”), and generates a report after the user uploads their CSV file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Od_yBaJJIe4A0st5" /><figcaption><em>Figure 5: Architecture diagram of the system.</em></figcaption></figure><p>There are three main parameters for the system to output the report:</p><ul><li>The uploaded dataset</li><li>The Expertise Rating</li><li>The choice of Report Generation</li></ul><p>The output is dependent on the uploaded dataset and some statistical summary and information is passed on to the system. The Expertise Rating is a measure ranging between 1 (for Rookie Level or detailed instructions) and 5 (for Expert Level or High-level guidance) that the user chooses. It is set by default to 3 if the user does not set it. The user can also choose one of two options for the Report Generation: Comprehensive vs. targeted.</p><h3>User Interface Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6NJfdKM7lrS8yVHG" /><figcaption><em>Figure 6: Phase 1 image of UI.</em></figcaption></figure><p>As shown in the figure above<em>, </em>the user initially uploads a data file. The UI in the figure below<em> </em>shows that the user can choose to either have a walkthrough of the report or immediately generate the report, and that they are also able to ask the LLM for more clarifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6fgdEWUabOjJQpJ-" /><figcaption><em>Figure 7: Phase 1 image of UI.</em></figcaption></figure><p>After making sure that the system’s main functionalities (namely the report generation and export) work as expected, improvements were made to finally reach the designed architecture in <em>Figure 5</em>. The user can choose one of two options:</p><ul><li><strong>Report:</strong> where the report is immediately generated after the user uploads the dataset and chooses the Expertise Level.</li><li><strong>Step-by-step Guidance:</strong> where the user selects one of 5 main sections shown in the figure above for the system to generate after they upload the dataset and choose the Expertise Level.</li></ul><p>Upon launching the platform, the user will be prompted to upload a dataset and select the Level of Expertise, which is defined as a scale from 1 to 5, where 1 is rookie level requiring more level of detail and 5 is expert level with less simplifications and a rather concise report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lEQs8tVMa3vERnxI" /><figcaption><em>Figure 8: Phase 3 image of UI, where user uploads dataset and sets an Expertise Level.</em></figcaption></figure><p>Throughout the process, the user can vote with a thumbs up or down for whether they found the section insightful. This binary approach is the simplest for feedback and user report evaluation. It will allow the system to learn in a way and improve the output as needed.</p><p>Documentation on how to run and use the solution is available on the project’s <a href="https://github.com/rohitraju1966/DataFlow-Architect">GitHub</a> repository.</p><h3>Methodology, Technologies, and Tools</h3><p>For this project implementation, python was used as the main programming language, CSV files were dealt with as a primary test before integrating other data formats, markdown files were initially used to test out how the report looks like, the <em>streamlit</em> library was used to create a basic UI interface, and pdf reports (based on the markdown report) were generated and downloaded through the UI.</p><p>To make sure the project goals are met and that the ideation phase and progress are well tracked, the Miro platform was used, allowing both the mentors and team members to be on the same page. Other tools namely emails, Whatsapp, Google Meets and Slack were used to maintain a clear communication and transparent process.</p><p>After generating an API key on Groq, four open source LLM models were selected and a comparative table of these LLM models was created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ELuiBlriiI0E4YSJg9CKsA.png" /><figcaption><em>Table 4: Comparative table of Open Source Models from Groq.</em></figcaption></figure><p>After conducting these comparative tests using Open Source models, an OpenAI key was shared by the company to test out other models namely the “<em>gpt-4o-mini”</em> model, which was selected as the final model.</p><p>Initially generated as a Markdown file, the reports were checked for accuracy, flow, completeness, conciseness, and proper format. Based on the output reports, the prompts were iteratively improved in a way to fix prior issues. The report was initially made for one dataset, then using a loop, generated for other datasets.</p><p>Several LLM models were tested. Groq was used as a first try and multiple models were compared based on their output. The company later provided an OpenAI API key to test out other models that were not available on Groq.</p><p>The initial analysis shows that the most optimal way to build a prompt is to have a System Prompt and a User Prompt. This allows the system to unify the report format since each section is generated separately not through one LLM call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yHqtibfIaVxDhzUp" /></figure><h3>Measuring LLM Model Metrics</h3><p>The number of tokens is immediately proportional to cost and the time to generate both the individual sections and the entire report are all important metrics to consider when choosing the LLM model for this project. This is a basic form of an optimization problem where the fastest, most accurate, and cheapest model would be the optimal design choice. The results section dives deeper into how these metrics were tracked and assessed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UjIH-BnzpkwJ_BHf" /><figcaption><em>Table 5: Report Generation Metrics by model and dataset.</em></figcaption></figure><p>An important part of this project is the consideration of multiple data formats and of various fields. The metrics (number of input and output tokens, number of seconds, report name, report section, model name) are collected and compared against each other as shown in the table above. Those are also averaged for each model and once again, compared against each other as shown in the table below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Gg_ht-Cj-37teGe" /><figcaption><em>Table 6: Report Generation Metrics by section, model and dataset.</em></figcaption></figure><p>The sections for each report are parallelized using the <em>ThreadPoolExecutor</em>, which explains why the total time to generate a report does not equal the sum of the individual sections. The conclusion is then generated based on all the previous sections.</p><h4>Overall Models Performance for Different Datasets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*qtNjULPA3iO2Y6dw" /><figcaption><em>Figure 9: Total time in seconds to generate a report by model and by file name.</em></figcaption></figure><p>Overall, based on the figure above, the slowest model was <em>deepseek-r1-distill-llama-70b</em> ranging between 7 and 9 seconds and the fastest was <em>llama3–70b-8192</em> ranging between 3 and 1.5 seconds, followed by <em>llama-3.3–70b-versatile</em> which had a similar speed as <em>mixtral-8x7b-32768</em> for one dataset only (Car Data). The latter model seems to perform faster when the dataset is of only numeric columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/0*g8wtfqXUvO7tQgnI" /><figcaption><em>Figure 10: Total number of output tokens to generate a report by model and by data name.</em></figcaption></figure><p>The figure above shows that the model with the highest number of output tokens was <em>deepseek-r1-distill-llama-70b</em> ranging between 4,000 and 4,500 tokens and containing a <em>&lt;think&gt; </em>tag, followed by a much lower number of output tokens by <em>mixtral-8x7b-32768</em>, <em>llama3–70b-8192</em>, <em>llama-3.3–70b-versatile</em>, all below 2,500 tokens in total.</p><h4>Average Model Performance per Report Sections</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*1FLci9lEkwsUFlRl" /><figcaption><em>Figure 11: Average time in seconds to generate a report by model and by report section.</em></figcaption></figure><p>As expected from the previous results, <em>deepseek-r1-distill-llama-70b</em> would have the highest time to generate each section and the least was found for <em>llama3–70b-8192</em>. Unexpectedly, for each model, the conclusion which is expected to take the most time since it takes in all the previously generated sections took the least time to be generated except for <em>Mixtral</em>.</p><p>Both <em>DeepSeek</em> and <em>Mixtral</em> models take about 2.5–3 seconds to generate the conclusion section while both LLaMA models take less than 1 second for the same task. Otherwise, the Data cleaning step is taking the least time overall. The remaining sections seem to be somewhat close in range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/0*k-V2nIlh7hnwWxUa" /><figcaption><em>Figure 12: Average number of output tokens to generate a report by model and by report section.</em></figcaption></figure><p>Except for <em>Mixtral</em>, the number of output tokens for the conclusion is the least, possibly as it is the most concise and summarized part of the report, which also explains why it took the least time. <em>DeepSeek</em> also shows the highest number of output tokens overall as expected since it is a reasoning model.</p><h4>Cost-Latency Trade-offs</h4><p>In this section, additional investigations have been done to have a more robust comparison of models. The open source models are normally free for a smaller number of tokens or a smaller token demand per minute, which might be in the case of this project a smaller datasets. For comparability purposes, this section assumes that these models were paid for rather than having used their limited open source version.</p><p>By referring to the <a href="https://groq.com/pricing/">Groq</a> and the <a href="https://openai.com/api/pricing/">OpenAI</a> websites, the table below is generated to show the key characteristics of each open source model and quantify the comparison in terms of cost-latency tradeoffs. The computations shown on the last row of the table are done considering the Automobile dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p7Vkeuy-gmFmRB4emIxhBA.png" /><figcaption><em>Table 7: Cost-Latency Comparative Table.</em></figcaption></figure><p>During the evaluation of different language models as shown on the table above, DeepSeek emerged as the most expensive to run, primarily due to its extensive use of “thinking” tags, which inflated the number of output tokens. It consistently generated the highest token counts compared to other models. Mixtral-8x7b-32768 and LLaMA-3.3–70b-Versatile showed very similar performance profiles in terms of output cost and output size, with Mixtral producing slightly fewer tokens overall. LLaMA3–70b-8192 was the most efficient, generating the least number of tokens while maintaining comparable quality to Mixtral and LLaMA-Versatile.</p><p>When comparing across all Groq-hosted models, costs remained relatively similar, except for DeepSeek, which was notably higher. Additionally, preliminary results with GPT-4o mini revealed smaller output sizes despite the higher cost per million tokens and costs and closely aligned with the cost of Mixtral and LLaMA-Versatile, suggesting that newer compact models can deliver competitive efficiency without significant trade-offs in report quality. The GPT-4o mini model also has a cost associated with cached input of $0.15 / 1M tokens and a training cost of $3.00 / 1M tokens.</p><h3>Evaluation and Report Improvements</h3><p>The evaluation of the quality of the report was done by creating a perfect detailed data science report for the Automobile dataset as a first try. This was used as a benchmark to allow ideal result comparison and identify what an ideal report would look like. This benchmark was 25-pages long but knowing that user persona, it was decided that the report should be even simpler and shorter and an alternative shorter version of it was also developed. An example of the 13 questions used for the <a href="https://drive.google.com/file/d/14EVLjv2iFT_FQIhNN4cb6oJxXjGsdXyQ/view?usp=share_link">Gold Standard is available in pdf format</a>.</p><p>Using the GPT-4o mini model from OpenAI and referring back to this project’s Gold Standard, a <a href="https://drive.google.com/file/d/1xw_Qy6jS56PFUNzh3eJm5nypBVPKTyO-/view?usp=share_link">report is generated</a> for the Automobile dataset and can be <a href="https://drive.google.com/file/d/1iA_edPCb8O9Wao2q0S1a1jCmniFdNkTx/view?usp=share_link">evaluated under the Gold Standard Questions</a>.</p><h3>Conclusions</h3><h4>Key Findings</h4><p>The key findings of this project highlighted that while LLMs can effectively summarize dataset characteristics, they are not reliable for computations. For example, when provided with dataset details such as column headers, unique values, and descriptive statistics, the LLM occasionally misinterpreted the information, emphasizing the need for precise prompts and complementary tools for accurate calculations.</p><p>Prompt engineering played a crucial role in improving output quality. By adopting an iterative process, the system and user prompts were adjusted to refine instructions and achieve more consistent results. Both zero-shot and few-shot prompting techniques were explored to enhance the relevance and structure of the generated content. Throughout the process, several improvements and fixes were implemented to address common issues. Report formatting was refined to ensure sections were clear, concise, and free from redundancy. Unnecessary sub-section conclusions were removed, and content overlaps between sections were minimized by merging similar insights, such as combining ML analysis and feature engineering results. To maintain a non-technical focus, code snippets were excluded from the final report, and table formatting was improved to ensure outputs remained within appropriate page limits. The report format was also transitioned from Markdown to PDF to improve presentation and accessibility.</p><p>The project also compared different language models to see how well they could generate dataset reports. The results showed clear differences in speed and detail. The model <em>DeepSeek</em> was the slowest, taking noticeably longer to complete the reports, while producing the most detailed reports, containing a “thinking” section. On the other hand, the <em>LLaMA</em> model was the fastest, completing the task much quicker and generating more concise reports. The remaining models were relatively close to the best model in terms of the aforementioned metrics.</p><p>When looking at individual report sections, the slower model took the most time across all parts, while the fastest model performed efficiently throughout. Surprisingly, the conclusion section, which would be expected to require more time because it combines ideas from earlier sections, turned out to be the quickest to generate for most models. Only the <em>Mixtral</em> model took longer than expected for this part. Overall, the data cleaning section consistently took the least time and the remaining sections were somewhat close.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*slBPWcfthmmIogRK" /><figcaption><em>Figure 13: Workflow generated in the EDA section.</em></figcaption></figure><p>Despite these improvements, some limitations persisted. LLMs continue to demonstrate challenges in accurately interpreting numerical summaries and may produce incorrect insights when complex statistical patterns are presented. The output remains sensitive to prompt phrasing, where even minor adjustments may unexpectedly alter the quality or content. Furthermore, scalability remains a concern, as generating extensive reports for large datasets may require additional optimization to manage processing time and resource efficiency. Although this project primarily tested CSV datasets, the model’s performance may vary when applied to alternative data formats or highly complex datasets. Future efforts may focus on integrating validation steps, expanding dataset types, and refining prompt strategies to further improve report accuracy and completeness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qOvcTc7mZqJIIb5l" /><figcaption><em>Figure 14: Workflow generated in the Machine Learning section.</em></figcaption></figure><p>Lastly, the usefulness of the generated reports heavily depends on team review and feedback. Engaging a team of domain experts, data analysts, and decision-makers to assess the report’s insights can provide crucial validation and ensure actionable outcomes. This collaborative review process not only helps identify errors or inconsistencies but also enables stakeholders to interpret the data more effectively. Encouraging such team involvement enhances the overall reliability and practical value of the generated insights.</p><p>Lastly, the GPT-4o mini model was used as the primary report generation model after comparing it with Groq’s open source models. The prompts were improved as needed to make sure the output is well formatted and outputs understandable results. The report is also generated based on user input of Expertise Level ranging from 1 for rookie to 5 for expert with little need for additional explanations. After making sure the app runs smoothly on the Streamlit Cloud platform, the app was finally Dockerized to prevent dependency issues.</p><h4>Limitations and Ethical Considerations</h4><p>In this project, the data is not entirely passed to the model; only its summary and main characteristics like central tendencies are passed. This is a double edged sword because knowing data distribution might in some cases might help create data that is similar enough to real world data. It is nonetheless safer to pass to the AI data characteristics rather than actual data especially given that responsible AI practices and data privacy standards are still evolving.</p><p>In addition, the oversimplification or misinterpretations of data by the model might lead to inaccurate inference relationships or suggest erroneous modeling strategies. Therefore, while this abstraction layer enhances speed and security, it also highlights the importance of pairing LLM output with expert review and, where possible, augmenting prompts with richer contextual data for more nuanced analysis.</p><p>As a way to prevent AI hallucinations, the prompt engineering portion was designed in a way to minimize AI computations as they are deemed unreliable. This was indeed checked for while generating multiple test reports: passing the dataset and relying on the AI led to some inaccurate data representation and computations. This further reinforces the initial design choice of passing summary and central tendency computations done by code rather than AI.</p><h4>Final Reflection: Can AI Truly Replace Humans?</h4><p>The question of whether AI will replace human analysts is not only timely but also central to how we position tools like the one developed in this project. Based on our experience, the answer is clear: AI will not replace humans anytime soon. While large language models can accelerate tasks like data profiling, report drafting, and even suggesting machine learning techniques, they still fall short in several critical areas that are uniquely human.</p><p>First, domain knowledge remains irreplaceable. Interpreting data in context, such as understanding regulatory constraints, organizational goals, or market nuances, requires expertise that AI models do not possess. Second, access to current or recent research and evolving methodologies is often an issue for AI models which require constant training and access to typically inaccessible resources requiring pay for instance. With this, AI models are limited to being trained on public data, while being unaware of the latest innovations. Most importantly, AI still hallucinates and confidently generates incorrect or misleading information. Even with prompt safeguards and output validation, human oversight remains essential.</p><p>Moreover, human decision-making is far more complex than what current AI systems can emulate. For instance, in some scenarios, a human analyst might deliberately choose a less overfitted model, sacrificing a higher R² or accuracy score for the sake of better generalization or ethical considerations. This level of contextual reasoning, trade-off evaluation, and long-term strategic thinking is beyond the scope of even the most advanced models today.</p><p>Rather than replacing humans, AI is best understood as a force multiplier, one that can reduce friction, automate repetitive tasks, and highlight areas of interest, but that still depends on human expertise for interpretation, judgment, and decision-making.</p><h3>References and Links</h3><p><strong>Datasets Used on GitHub:</strong> <a href="https://github.com/Jagadish45/Capstone/tree/main/Data%20Files">https://github.com/Jagadish45/Capstone/tree/main/Data%20Files</a></p><p><strong>App GitHub Repository: </strong><a href="https://github.com/rohitraju1966/DataFlow-Architect">https://github.com/rohitraju1966/DataFlow-Architect</a></p><p><strong>Streamlit App on the Cloud:</strong> <a href="https://dataflow-architect-chpwn2xcy4yyarx8azsjct.streamlit.app/">https://dataflow-architect-chpwn2xcy4yyarx8azsjct.streamlit.app/</a></p><p><strong>How to run the dockerized container:</strong><br>If you keep the key in .env file in your local repo and try to on terminal:</p><pre>docker pull rohitraju1966/dataflow-architect<br><br>docker run -p 8501:8501 --env-file .env rohitraju1966/dataflow-architect</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f919daa5a181" width="1" height="1" alt=""><hr><p><a href="https://medium.com/99p-labs/dataflow-architect-f919daa5a181">DataFlow Architect</a> was originally published in <a href="https://medium.com/99p-labs">99P Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EDA and ANOVA on students’ grades]]></title>
            <link>https://medium.com/@ghizlanerehioui/eda-and-anova-on-students-grades-3dada02d358?source=rss-5dee1a7fff7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dada02d358</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ghizlane Rehioui]]></dc:creator>
            <pubDate>Tue, 06 Dec 2022 10:40:26 GMT</pubDate>
            <atom:updated>2022-12-06T10:40:26.087Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we will be doing some Exploratory Data Analysis (EDA) and a two-way ANOVA test: the definitions and a project for better understanding of the concept. For that, we have used a dataset from <a href="https://www.kaggle.com/datasets/whenamancodes/students-performance-in-exams?select=exams.csv">kaggle</a> containing marks secured by the students in various subjects.</p><p>We will be walking you through the main steps for this analysis. The python code for this analysis is available on this <a href="https://colab.research.google.com/drive/1CQhfZRu1RFgkBPkNTzqEzclLQvW8Z7XS?usp=share_link">link</a> and the presentation of the main findings is available in this <a href="https://docs.google.com/presentation/d/1zYgxPTZj-VTjQOKB8dKM7ublLB1-RHqJZoLbzCrcF2I/edit?usp=share_link">link</a>.</p><p><strong>Authors:</strong></p><ul><li><a href="https://medium.com/@ridwangbadamosi">Ridwan Gbadamosi - Medium</a></li><li><a href="https://medium.com/@ayobamiomolusi">Ayobami Omolusi - Medium</a></li><li><a href="https://medium.com/@bennourichaymae">chayben - Medium</a></li><li><a href="https://medium.com/@ghizlanerehioui">Ghizlanerehioui - Medium</a></li></ul><p><strong>PURPOSE</strong></p><ul><li>We are interested in checking how <strong>students’ grades</strong> change based on their<strong> parents’ level of education</strong> and <strong>gender</strong>. Thus, we will be using the <strong>two-way ANOVA</strong> test.</li><li><strong>ANOVA</strong> (Analysis of Variance) is a statistical test used to analyze <strong>the difference between the means of more than two groups</strong>.</li><li>A <strong>two-way ANOVA</strong> is used to estimate <strong>how the mean of a quantitative variable changes according to the levels of two categorical variables</strong>.</li><li><strong>Dependent Variable (DV)</strong> : students’ grades</li><li><strong>Independent Variable (ID)</strong>: parents’ education level and students’ gender.</li></ul><p><strong>DATA AND DATA CLEANING</strong></p><p>This data set consists of the marks secured by the students in 3 main subjects.</p><p>The dataset is composed of <strong>1000 data points</strong> with <strong>8 columns (variables)</strong> where:</p><ul><li><strong>5 Qualitative variables that are strings: </strong>gender, race/ethnicity, parental level of education, lunch, and test preparation course</li><li><strong>3 Quantitative variables that are integers: </strong>math score, reading score, writing score</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*Ap9mbAHWReWaF9fj53vEhw.png" /><figcaption>A snippet of what the exams.csv dataset looks like</figcaption></figure><p><strong>Checking for Missing Values</strong></p><p>In the screenshot below, we display some information and description of our data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*d-tA8qfvelDp5VY1DB4jGQ.png" /><figcaption>Description of the data on exam scores (writing, reading, and math)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*kpyGVGaDEGfgtQvuVpQ9HA.png" /><figcaption>Information on the variables in the data, missing values, and data type</figcaption></figure><p>→ No data cleaning was needed since there were no missing values.</p><p><strong>LET’S DO SOME EDA!</strong></p><p>Data analysts understand and describe the dataset using a unique approach called exploratory data analysis (EDA). With the use of statistical summaries and graphical representations, EDA helps to identify trends, patterns, or to verify assumptions. Now, let’s dive in.</p><p><strong>Gender</strong></p><p>We first take a look at the variable <em>gender</em> and we use the function <em>value_count() </em>in the first and second lines of code to find the values for how many values of <em>female </em>and<em> male </em>there are. In line 1, <em>gender_name</em> contains the values <em>male</em> and <em>female</em> then in line 2, <em>gender_val</em> contains how many cells contain the value <em>male</em> and those with the value <em>female </em>respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/434/1*BA5VNu1oOzm76P4UB8TNEA.png" /><figcaption>Python code to get data to create pie chart on gender</figcaption></figure><p>We then use the pie chart to visualize these results. From the pie chart below, we find that 51.70% of our data is from male students and 48.30% is from female students.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*DGSa2hOAgYeVn-FNT-sYUg.png" /><figcaption>Python code and pie chart on composition of students in terms of gender</figcaption></figure><p><strong>Parental Education Level</strong></p><p>Using the same code as before, we then use the pie chart to visualize the percentage of parents’ educational level and we show the names of those levels with the corresponding percentages with two decimal points as seen below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*xr0s6qsZEA2MYMxN_DcIEg.png" /><figcaption>Python code to get data to create pie chart on parents’ education level</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*k8BgErwBMNRxv18OX_gSRw.png" /><figcaption>Python function to generate pie chart on parents’ education level of all students in dataset</figcaption></figure><p>From the pie chart below, we find that 22.20% of students have parents who got some college education, 20.30% got an associate’s degree, 20.20% got high school degree, 19.19% have some high school education, 11.20% have a bachelor’s degree, and 7.00% have a master’s degree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*qr1-IvUJdhRoKdM74QgbLA.png" /><figcaption>Pie chart about parents’ education level of all students in dataset</figcaption></figure><p><strong>Students’ Exam Scores</strong></p><p>We plot the density plot of the students’ reading, writing, and math scores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*r5Qo4YqoX_0n-lZfgM8BKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*xGZf0ONw1Tu2oLFf5pz4YQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*pkpnQASGVRUx7redgjl2Yw.png" /><figcaption>Density plot of the students’ reading, writing, and math scores</figcaption></figure><p>We can see that all the distributions of the exam scores for reading, math, and writing look like a normal distribution. This is a very useful finding especially to be able to use the ANOVA on these variables.</p><p><strong>Students’ Exam Scores and Gender</strong></p><p>The box plots below show the math, reading, writing score ranges respectively for both females (in red) and males (in blue).</p><ul><li><strong>Math Score</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*9AGRaKe78MPOcyis4mehPQ.png" /><figcaption>Box plot for students’ math scores based on their gender</figcaption></figure><p>The Average Math Score of Females is less than that of Males. For females we have one outlier and nothing for male. The range of Math Scores for Females is lower than the range of Math Score for Males.</p><ul><li><strong>Reading Score</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*DuDxmuXhvBm5aX6nn3UtSA.png" /><figcaption>Box plot for students’ reading scores based on their gender</figcaption></figure><p>The Females have High Average Reading score than Males. Females box plot has one outlier while male box plot there is no outlier.</p><ul><li><strong>Writing Score</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*F3ZyBpZumznfhexHKFGeiQ.png" /><figcaption>Box plot for students’ writing scores based on their gender</figcaption></figure><p>Females score higher than males on average in terms of writing scores. Also Females have two outliers when the male has only one outlier.</p><p>→ Overall, it seems like males are only good at Math.</p><p><strong>Students’ Exam Scores and Ethnicity</strong></p><p>The box plots below show the math, reading, writing score ranges respectively for all the groups A(bleu), B(purple), C(orange), D(red), E(green).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*quVwXa4JUVtdTn3uy8rawA.png" /><figcaption>Python code to generate box plot of exam scores in math, reading, and writing based on ethnicity</figcaption></figure><ul><li><strong>Math score:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*4mk6KIfH42ENqcuUKQS5bw.png" /><figcaption>Box plot of exam scores in math based on ethnicity</figcaption></figure><p>Group E has a High Math Score range, followed by Group D and Group A. Group C and group D each one have one outlier and the others NAN.</p><ul><li><strong>Reading Score:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*xg_aNuI7O88-N1edUBlSGw.png" /><figcaption>Box plot of exam scores in reading based on ethnicity</figcaption></figure><p>Again, Group E has a High Reading Score range, followed by Group D and Group A. Group D has three outliers and the other NAN.</p><ul><li><strong>Writing Score:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*kaSWR3-0oy9txBrpqdRHVA.png" /><figcaption>Box plot of exam scores in writing based on ethnicity</figcaption></figure><p>In case of Writing Score, Group D has a lead followed by Group E. Group D has two outliers and the other NAN.</p><p><strong>Students’ Scores and Parents’ Educations</strong></p><p>The box plots below show the math, reading, writing score ranges for all the parental education (high school, some high school, some college, high school, associate’s degree, bachelor’s degree).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*gxSReuuySV2tuNPP_cTgPg.png" /><figcaption>Python code to generate box plot of exam scores in math, reading, and writing based on parental education</figcaption></figure><ul><li><strong>Math Score:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*1lAuGVY4CdY_wXNXBgiPkQ.png" /><figcaption>Box plot of exam scores in math based on parental education</figcaption></figure><p>This makes complete sense, scores of individual’s whose parents have a Master’s &amp; Bachelor’s Degree have a High Math Score.</p><ul><li><strong>Reading Score:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*RzvCk0BQ6PNK89YaWUz2dg.png" /><figcaption>Box plot of exam scores in reading based on parental education</figcaption></figure><p>This is also the same as what we have observed in math score distribution. Again, this makes sense to be true.</p><ul><li><strong>Writing Score:</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*jhIQyFPbmggl_NkPvqZGHA.png" /><figcaption>Box plot of exam scores in writing based on parental education</figcaption></figure><p>It’s the same results as the two above. Again, this makes perfect sense.</p><p><strong>ANOVA TEST</strong></p><p>ANOVA aids in determining the statistical significance of data differences across groups. By analyzing the levels of variation within each group using samples collected from each, it operates.</p><p>A sample taken from the data will likely have a different mean by chance if there is a lot of variation (spread of data away from the mean) among the data groups.</p><p>A one-way ANOVA evaluates how one independent variable (a factor that affects other variables) affects a number of dependent variables. A Two-way ANOVA increases the number of independent variables even further while doing the same thing as a two-way ANOVA but with more independent variables.</p><p><strong>TWO-WAY ANOVA</strong></p><p>In this section, we are conducting the two-way ANOVA where our dependent variable will be the exam score in three tries: one for reading, writing, and math. The two independent variables we are using for those three ANOVA tests are the parents’ education level and the students’ gender.</p><p><strong>Two-way ANOVA for Reading</strong></p><ul><li><strong>DV</strong> : students grades in Reading</li><li><strong>ID</strong>: Parents’ education level, Students’ gender.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*0vLA08IyJ9oQmcn_drgVQw.png" /><figcaption>Python code and p-values for two-way ANOVA on reading score</figcaption></figure><p>The first p-value for gender and the second p-value, i.e. for parental education, are both less than 5% which makes each one of them individually insignificant. This means that the parental education level affects students’ reading grades. Also, the students’ gender affects students’ reading grades.</p><p>However, when we look at both gender and parents’ education level together as independent variables, we notice that the p-value is significant as it is higher than 5%. Thus, the variables together do not have a significant correlation with the reading grades.</p><p>→ Gender and parental education separately affect but not together the reading score.</p><p><strong>Two-way ANOVA for Writing</strong></p><ul><li><strong>DV</strong> : students grades in Writing</li><li><strong>ID</strong>: Parents education level, Students gender.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*Svc0ZK18EvhAs69196ujWA.png" /><figcaption>Python code and p-values for two-way ANOVA on writing score</figcaption></figure><p>Similarly, we find that the first p-value for gender and the second p-value, i.e. for parental education, are both less than 5% which makes each one of them individually insignificant. This means that the parental education level affects students’ writing grades. Also, the students’ gender affects students’ writing grades.</p><p>However, when we look at both gender and parents’ education level together as independent variables, we notice that the p-value is significant as it is higher than 5%. Thus, the variables together do not have a significant correlation with the writing grades.</p><p>→ Gender and parental education separately affect but not together the writing score.</p><p><strong>Two-way ANOVA for Math</strong></p><ul><li><strong>DV</strong> : students grades in Math</li><li><strong>ID</strong>: Parents education level, Students gender.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*azXOH12WIt0ZfNpha0vGeQ.png" /><figcaption>Python code and p-values for two-way ANOVA on math score</figcaption></figure><p>Again, we find that the first p-value for gender and the second p-value, i.e. for parental education, are both less than 5% which makes each one of them individually insignificant. This means that the parental education level affects students’ math grades. Also, the students’ gender affects students’ math grades.</p><p>However, when we look at both gender and parents’ education level together as independent variables, we notice that the p-value is significant as it is higher than 5%. Thus, the variables together do not have a significant correlation with the math grades.</p><p>→ Gender and parental education separately affect but not together the math score.</p><p><strong>CONCLUSION</strong></p><p>From EDA, we notice that:</p><ul><li>Females score higher on average in writing and reading whereas males perform better in math.</li><li>Individuals whose parents have a Master’s &amp; Bachelor’s Degree have a high Math, Reading, and Writing Score.</li></ul><p>From the ANOVA test, we conclude that :</p><ul><li>Gender and parental education separately affect but not together the students’ scores in reading, writing, and math.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dada02d358" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>