<?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 Sathush Rajamanthri on Medium]]></title>
        <description><![CDATA[Stories by Sathush Rajamanthri on Medium]]></description>
        <link>https://medium.com/@sathush_r?source=rss-5431dc34c0f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TMHfrGq7DVjlPxjz4xtVDw.png</url>
            <title>Stories by Sathush Rajamanthri on Medium</title>
            <link>https://medium.com/@sathush_r?source=rss-5431dc34c0f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:35:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sathush_r/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[All You Should Know About “Power BI”]]></title>
            <link>https://medium.com/@sathush_r/all-you-should-know-about-power-bi-c4f27fe76776?source=rss-5431dc34c0f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4f27fe76776</guid>
            <category><![CDATA[power-bi]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[power-bi-mobile]]></category>
            <category><![CDATA[power-bi-service]]></category>
            <category><![CDATA[power-bi-desktop]]></category>
            <dc:creator><![CDATA[Sathush Rajamanthri]]></dc:creator>
            <pubDate>Tue, 23 Jul 2024 04:40:42 GMT</pubDate>
            <atom:updated>2024-07-23T04:44:23.947Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*It8Vnu0Zy3hVWixw095mbg.png" /></figure><p><strong>What is “Power BI”?</strong></p><p>In today’s data-driven world, Organizations work with vast amounts of data. So, we need powerful tools to transform raw data into actionable insights. That’s where “Power BI” comes in. “Power BI” is a powerful business intelligence(BI) tool. Organizations use this tool to create BI visuals from specified data-sets, to gain business insights. You can embed them in an app or website.</p><p><strong>Why “Power BI”?</strong></p><p>First of all “Power BI” in known for its user friendly environment. Not only that, its robust data modelling features and also the ability to connect with other Microsoft services and other external data sources. Also it offers the ability to choose from various platforms,</p><p>· Power BI Desktop</p><p>· Power BI Service</p><p>· Power BI Mobile</p><p>So this gives the ability to work anywhere you want with what you have. Microsoft also offers you four pricing plans,</p><p>· Free Account</p><p>· Power BI Pro</p><p>· Power BI Premium Per User</p><p>· Power BI Embedded</p><p>Before talking about these pricing plans lets first dive into the three platforms that Power BI supports.</p><p><strong>Power BI Desktop</strong></p><p>As it says, this is for desktop users. Power BI support on Windows 8.1, Windows 10, and Windows 11 as when this article was writing. Currently Power BI desktop doesn’t support on MacOS but there is a way to make it work. You can simply use “Microsoft Azure Virtual Desktop” formerly known as “Windows Virtual Desktop”.</p><p>So what can you do with “Power BI Desktop”?. Basically, this is all you need to connect to, transform, and visualize your data. With Power BI Desktop you can connect multiple different sources of data. That means you can do data modeling with Power BI.</p><p>Power Bi Desktop can connect to numerous data sources, That includes databases (SQL Server, Oracle, MySQL), cloud services (Azure, Google Analytics, Salesforce), and local files (CSV, JSON, Excel).</p><p>Also, it has the feature called “Power Query Editor”. Which helps with clean, transform and shape data before analysis. Users can perfom operations like merging tables, filtering rows, and creating custom columns.</p><p>For advance analysis Power BI Desktop has DAX Function. It includes a wide range of functions for mathematical, statistical and time intelligence calculations.</p><p>And the most fun part, Creating interactive BI dashboards. Which includes charts, graphs, maps. Power BI Desktop allows users to import custom visuals from the Power BI marketplace or create their own.</p><p>So that’s some main features about “Power BI Desktop”. Lets no explore “Power BI Service”</p><p><strong>Power BI Service</strong></p><p>As the cloud-based counterpart to Power BI Desktop, Power BI Service extends the capabilities of data analysis and visualization into the cloud. This service supports Windows 8.1, Windows 10, and Windows 11, offering users the ability to access and interact with their data from anywhere via a web browser or mobile app. Although Power BI Desktop does not natively support macOS, users can still leverage it through “Microsoft Azure Virtual Desktop,” formerly known as “Windows Virtual Desktop,” to run a Windows environment on a Mac.</p><p>So, what can you do with Power BI Service? This cloud-based platform is designed to enhance the sharing, collaboration, and accessibility of your data insights. With Power BI Service, you can publish and share reports and dashboards created in Power BI Desktop with colleagues, clients, or other stakeholders. This ensures that everyone has access to the same up-to-date information, facilitating better decision-making across the organization.</p><p>Power BI Service also supports data refresh and scheduling, allowing you to set up refresh schedules that automatically update your datasets at specified intervals. This ensures that your reports and dashboards always display the most current data. For real-time data needs, Power BI Service can connect directly to live data sources, providing instant updates and ensuring that decisions are based on the latest information.</p><p>Collaboration is a key feature of Power BI Service. It provides workspaces where teams can collaborate on reports and dashboards, facilitating shared access and editing rights. Users can also create interactive dashboards that combine visuals from multiple reports, providing a comprehensive view of key metrics and KPIs. Additionally, Power BI Service includes advanced AI features, such as natural language querying and AI-driven insights, to help users uncover patterns and trends in their data.</p><p>That’s it for Power BI Service lets go to Power BI Mobile</p><p><strong>Power BI Mobile</strong></p><p>In today’s fast-paced, mobile-driven world, having access to real-time data and analytics anytime and anywhere is crucial for making informed decisions. Power BI Mobile extends the capabilities of Power BI Desktop and Power BI Service by bringing data insights directly to your smartphone or tablet. Whether you’re on the go, in a meeting, or away from your desk, Power BI Mobile ensures that your critical data is always at your fingertips.</p><p>So, what can you do with Power BI Mobile? Essentially, this app allows you to access, view, and interact with your Power BI reports and dashboards on your mobile device. It supports both iOS and Android platforms, ensuring a wide range of compatibility. Users can effortlessly connect to their data in the Power BI Service and stay updated with real-time data visualizations and reports.</p><p>Power BI Mobile is designed with a user-friendly interface, making it easy to navigate through various reports and dashboards. The app supports touch-optimized interactions, allowing users to drill down into data, apply filters, and explore insights with intuitive gestures. This interactive capability ensures that users can analyze their data in-depth, even when they are away from their desktop.</p><p>One of the standout features of Power BI Mobile is its ability to deliver data alerts and notifications. Users can set up data-driven alerts to be notified when specific metrics reach certain thresholds, ensuring that they stay informed about critical changes in their data. This feature is particularly useful for staying on top of key performance indicators (KPIs) and making timely decisions based on the latest data.</p><p>Moreover, Power BI Mobile supports offline access to reports and dashboards. Users can download their data for offline viewing, ensuring that they can access their insights even without an internet connection. This feature is especially beneficial for professionals who frequently travel or work in areas with limited connectivity.</p><p>In summary, Power BI Mobile enhances the accessibility and usability of Power BI by bringing powerful data analytics capabilities to your mobile device. With its real-time access, interactive features, data alerts, and offline capabilities, Power BI Mobile ensures that you can stay connected to your data and make informed decisions, no matter where you are. This mobile app is an essential tool for any data-driven professional looking to maintain a competitive edge in today’s dynamic business environment.</p><p><strong>Conclusion</strong></p><p>Power BI is a comprehensive data analytics tool by Microsoft, offering robust capabilities for data connectivity, transformation, modeling, and visualization. Power BI Desktop supports Windows and allows users to connect to various data sources, clean and transform data with Power Query Editor, and perform advanced calculations with DAX functions. Power BI Service, a cloud-based platform, enhances collaboration and accessibility, enabling anywhere access, data refresh scheduling, and advanced AI features. Power BI Mobile extends these capabilities to smartphones and tablets, providing real-time access to interactive reports and dashboards, data alerts, and offline viewing. Together, these components empower users to make informed, data-driven decisions from anywhere.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4f27fe76776" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uncovering Obesity Levels with R]]></title>
            <link>https://medium.com/@sathush_r/uncovering-obesity-levels-with-r-fa62b4c32499?source=rss-5431dc34c0f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa62b4c32499</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[obesity]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[r-language]]></category>
            <dc:creator><![CDATA[Sathush Rajamanthri]]></dc:creator>
            <pubDate>Thu, 30 May 2024 21:15:47 GMT</pubDate>
            <atom:updated>2024-06-06T19:22:26.146Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Discovering Obesity Levels with R</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6UYCTohBa8rBSfcGqUNjYg.jpeg" /></figure><p>Obesity is a global crisis with far reaching physical and mental health consequences. The problem of this condition continues to rise consistently. Let’s research what examines the influencing factors and investigates methods to predict the occurrence of obesity based on the data set “<a href="https://tinyurl.com/5bhwaexe">Obesity Levels.</a>”.</p><p>In this article, we’ll investigate and examine a dataset focused on obesity levels. This article will share key findings and insights from a data-driven approach to tackling this compelling topic.</p><p><strong>Through this article, you will learn:</strong></p><ul><li><em>Strategies for preparing and cleaning a dataset to enable thorough analysis</em></li><li><em>Techniques to uncover patterns and trends related to obesity levels using the dataset</em></li><li><em>Approaches for creating interactive data visualizations to enhance understanding</em></li><li><em>The development of predictive models using regression methods in R</em></li><li><em>Methods for combining data exploration, analysis, and predictions to extract meaningful insights</em></li></ul><p>By enhancing the understanding of the variables contributing to obesity, we can develop more effective interventions and evidence based policies to address this public health challenge.</p><h4><strong>Getting data Ready for analysis</strong></h4><ol><li><strong>Importing the Data</strong>: Import raw data files into the R environment using the “read.csv()” function. This allowed us to load the data into R and explore its structure and contents.</li><li><strong>Assessing the Data Structure</strong>: Next, we examined the structure of the dataset using functions like “str()”, “is.na()” and “summary()”. This helped us understand the variable types, range of values and identify any missing data or outliers.</li><li><strong>Data Analysis</strong>: With the data prepared, conduct analysis using techniques like summary statistics and data visualizations. This allowed us to uncover patterns and relationships within the dataset.</li></ol><h4><strong>Interesting things about this dataset</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*ecjb859aYy4dN86uiPBDAg.png" /></figure><ol><li>The dataset contains information about 100 individuals. we have data on their age, gender, height, weight, and various other health related factors.</li><li>The majority of the individuals in the dataset are in the “Overweight level I” category, with 17% of individuals classified as such.</li><li>There are 40 individuals classified as “Obesity type I, II or III”.</li><li>More females (56) than males (44) are represented in the dataset.</li><li>The average age of the individuals in the dataset is 25.2 years old.</li><li>The dataset includes information on factors like,</li></ol><ul><li><strong><em>FAVC</em></strong><em>- Do you eat high-caloric food frequently</em></li><li><strong><em>FCVC</em></strong><em>- Do you usually eat vegetables in your meals</em></li><li><strong><em>NCP</em></strong><em>- How many main meals do you have daily</em></li><li><strong><em>CAEC</em></strong><em>- Do you eat any food between meals</em></li><li><strong><em>SMOKE</em></strong><em>- Do you smoke</em></li><li><strong><em>CH2O</em></strong><em>- How much water do you drink</em></li><li><strong><em>SCC</em></strong><em>- Do you monitor the calories you eat daily</em></li><li><strong><em>FAF</em></strong><em>-How often do you have physical activities</em></li><li><strong><em>TUE</em></strong><em>- How much do you use technological devices</em></li><li><strong><em>CALC</em></strong><em>- How frequently do you drink alcohol</em></li><li><strong><em>MTRAN</em></strong><em>S- which transportation do you usually use</em></li><li><strong><em>NObeyesdad</em></strong><em>- Obesity level.</em></li></ul><h4><strong>Working with R shiny</strong></h4><h4><strong>BMI Histogram</strong></h4><ol><li><strong>Importing Libraries</strong>: First start by importing the necessary libraries for the Shiny app, including “shiny”, “ggplot” and “dplyr”.</li></ol><pre>#Load_libraries<br>library(shiny)<br>library(ggplot2)<br>library(dplyr)</pre><p>2. <strong>Loading Data</strong>: Then load the “ObesityDataSet.csv” file into a data frame using the “read.csv()” function. Replace “file path” with your file path.</p><pre>#Import_data_from_CSV<br>data = read.csv(&quot;file path&quot;, sep=&quot;,&quot;)</pre><p>3. <strong>Calculating BMI</strong>: Calculate the BMI (Body Mass Index) for each data point by using the formula “data$BMI = data$Weight / (data$Height)^2”.</p><pre>#Calculate_BMI<br>data$BMI = data$Weight / (data$Height)^2</pre><p>4. <strong>Selecting Data Range(optional): </strong>Create a new variable call “data_100”. Select the range by using “data[]” function.</p><pre>#Select 100 data points(Optional)<br>data_100 = data[1:100, ]</pre><p>5. <strong>Defining the UI</strong>: In the shiny UI, use “fluidpage()” to create the overall layout. Include a “sidebarLayout()” with a “sidebarPanel()”and a “mainPanel()”. In the “sidebarPanel()”, add a “sliderInput()” that allows the user to adjust the number of bins in the histogram. In the “mainPanel()” add a “plotOutput()” to display the histogram.</p><pre>#Defining UI<br>ui = fluidPage(<br>  titlePanel(&quot;BMI Histogram by Gender (100 data points)&quot;),<br>  sidebarLayout(<br>    sidebarPanel(<br>      sliderInput(&quot;bins&quot;, &quot;Number of Bins:&quot;,<br>                   min = 5, max = 30, value = 10)<br>  ),<br>mainPanel(<br>  plotOutput(&quot;bmiHistogram&quot;)<br>    )<br>  )<br>)</pre><p>6. <strong>Defining the Server</strong>: In the server part of the Shiny app, use the “renderPlot()” function to create the histogram. Use the “ggplot()” function from the “ggplot2” library to generate the histogram, with the “BMI” values on the x-axis and the “Gender” variable used to determine the fill color of the histogram bars.</p><pre>#Defining server<br>server = function(input, output) {<br>  output$bmiHistogram = renderPlot({<br>    ggplot(data_100, aes(x = BMI, fill = Gender)) +<br>      geom_histogram(bins = input$bins, position = &quot;dodge&quot;) +<br>      scale_fill_manual(values = c(&quot;pink&quot;, &quot;blue&quot;)) +<br>      labs(x = &quot;BMI&quot;, y = &quot;Frequency&quot;, fill = &quot;Gender&quot;)<br>  })<br>}</pre><p>7<strong>. Running the App</strong>: Finally, use the “shinyApp()” function to run the Shiny app, passing the “UI” and “server” objects as arguments.</p><pre>#Run<br>shinyApp(ui = ui, sever = server)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XqB2502DxFH-v11i00ZOEg.png" /><figcaption>BMI Histogram According to the above code</figcaption></figure><h4><strong>Weight to Height Ratio Calculator</strong></h4><ol><li><strong>Load necessary libraries</strong>: The code starts by loading the required R packages: “shin”, “ggplot2”, and “dplyr”.</li></ol><pre>#Load_libraries<br>library(shiny)<br>library(ggplot2)<br>library(dplyr)</pre><p>2. <strong>Import the dataset</strong>: Create a new variable “weight_height_data” and import the dataset. The “sep” argument in the “read.csv()” function is used to specify the delimiter or separator character used in the CSV file. Replace “file path” with the actual file path</p><pre>#Import_data_from_CSV<br>weight_height_data = read.csv(&quot;file path&quot;, sep=&quot;,&quot;)</pre><p>3. <strong>Define User Interface(UI):</strong> The “ui” section defines the layout and components of the app’s user interface. It includes:<br><strong><em> </em></strong><em>· A title panel with the app’s name.</em></p><p><em>· A sidebar panel with two input components: a numeric input for weight (in kg) and a slider input for height (in cm).</em></p><p><em>· A main panel displaying the calculated weight-to-height ratio, the body type, and a scatter plot visualization.</em></p><pre>#UI<br>ui = fluidPage(<br>  titlePanel(&quot;Weight to Height Ratio Calculator&quot;),<br>  sidebarLayout(<br>    sidebarPanel(<br>      numericInput(&quot;weight&quot;, &quot;Weight (in kg):&quot;, min = 0, max = 500, value = 70, step = 0.1),<br>      sliderInput(&quot;height&quot;, &quot;Height (in cm):&quot;, min = 0, max = 300, value = 170, step = 0.1),<br>      actionButton(&quot;calculate&quot;, &quot;Calculate&quot;)<br>    ),<br>    mainPanel(<br>      textOutput(&quot;weight_height_ratio&quot;),<br>      textOutput(&quot;body_type&quot;),<br>      plotOutput(&quot;scatter_plot&quot;)<br>    )<br>  )<br>)</pre><p>4. <strong>Define the server logic</strong>: The “server” function contains the app’s logic and reactive expressions:<br><em> · The “weight_height_ratio” reactive expression calculates the weight-to-height ratio based on the user’s inputs.</em></p><pre>#Server<br>server = function(input, output) {<br>  <br>  #Calculate the weight-to-height ratio<br>  weight_height_ratio = reactive({<br>    req(input$weight, input$height)<br>    input$weight / (input$height / 100)^2<br>  })</pre><p><em>· The “body_type” reactive expression determines the user’s body type based on the calculated weight-to-height ratio.</em></p><pre> #Determine_the_body_type_based_on_the_weight_to_height_ratio<br>  body_type = reactive({<br>    bmi = weight_height_ratio()<br>    if (bmi &lt; 18.5) {<br>      return(&quot;Underweight&quot;)<br>    } else if (bmi &gt;= 18.5 &amp;&amp; bmi &lt; 25) {<br>      return(&quot;Normal weight&quot;)<br>    } else if (bmi &gt;= 25 &amp;&amp; bmi &lt; 30) {<br>      return(&quot;Overweight&quot;)<br>    } else if (bmi &gt;= 30 &amp;&amp; bmi &lt; 35) {<br>      return(&quot;Obese Class I&quot;)<br>    } else if (bmi &gt;= 35 &amp;&amp; bmi &lt; 40) {<br>      return(&quot;Obese Class II&quot;)<br>    } else {<br>      return(&quot;Obese Class III&quot;)<br>    }<br>  })</pre><p><em>· The output sections render the calculated weight-to-height ratio, the body type, and the scatter plot visualization.</em></p><pre> #Display_the_weight_to_height_ratio<br>  output$weight_height_ratio = renderText({<br>    paste0(&quot;Your weight to height ratio is: &quot;, round(weight_height_ratio(), 2))<br>  })<br>  <br>#Display_the_body_type<br>  output$body_type = renderText({<br>    paste0(&quot;Your body type is: &quot;, body_type())<br>  })<br>  <br>#Display_the_scatter_plot<br>  output$scatter_plot = renderPlot({<br>    ggplot(weight_height_data, aes(x = Height, y = Weight)) +<br>      geom_point() +<br>      geom_point(data = data.frame(Height = input$height, Weight = input$weight), color = &quot;red&quot;, size = 4) +<br>      labs(x = &quot;Height (cm)&quot;, y = &quot;Weight (kg)&quot;, title = &quot;Weight vs Height&quot;)<br>  })</pre><p>· The “observeEvent” function triggers the output updates when the user clicks the “Calculate” button.</p><pre>#Trigger_the_calculations_and_plot_when_the_&quot;Calculate&quot;_button_is_clicked<br>  observeEvent(input$calculate, {<br>    output$weight_height_ratio<br>    output$body_type<br>    output$scatter_plot<br>  })<br>} #&lt;- This curly bracket is from top server function</pre><p>5. <strong>Run Shiny App</strong>: The “shinyApp” function combines the “ui” and “server” components and runs the Shiny app.</p><pre>#Run_shiny_app<br>shinyApp(ui = ui, server = server)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4nMMxCYojIl_-9Jtk6x2Ow.png" /></figure><blockquote>In summary, it allows users to input their weight and height and calculates their weight to height ratio and body type, displaying the results and a scatter plot visualization comparing the user’s input to the dataset.</blockquote><h4>Patterns in Dataset</h4><ol><li><strong>Age distribution:</strong> The data mainly consists of individuals aged 21–30, with fewer senior age participants, suggesting a preference for representing a younger adult demographic.</li><li><strong>Gender distribution:</strong> The dataset maintains equal proportions of male and female participants, enhancing understanding of gender-specific patterns associated with obesity.</li><li><strong>The weight status distribution:</strong> The “NObeyesdad” column shows the weight classification for each individual. The most common categories are “Normal_Weight” and “Overweight_Level_I/II”, with fewer individuals classified as obese. The dataset may not be significantly biased towards overweight or obese individuals, offering a more balanced perspective on factors associated with various weight statuses.</li><li><strong>Lifestyle factors:</strong> The dataset includes various lifestyle factors like transportation, dietary patterns, and physical activity, providing valuable insights into the complex characteristics of obesity.</li></ol><h4>Why they are important?</h4><ol><li><strong>Age distribution:</strong> Understanding obesity patterns and risk factors in young adults is crucial for proactive measures and interventions targeting this age group.</li><li><strong>Gender distribution:</strong> Balanced gender representation allows for a comprehensive analysis of potential gender disparities in obesity-related factors, enabling the identification of gender-specific patterns for effective prevention and management strategies.</li><li><strong>Weight status distribution:</strong> The even distribution of weight status categories suggests data may not bias towards extreme obesity cases, allowing for a more nuanced understanding of factors associated with weight statuses.</li><li><strong>Lifestyle factors: </strong>The dataset’s diverse lifestyle variables offer a chance to explore the intricate relationship between diet, physical activity, and behavioral factors, aiding in the development of personalized interventions.</li></ol><blockquote>This data analysis provides valuable insights into demographic, health, and behavioral characteristics of study populations, aiding in the design of targeted obesity prevention strategies and influencing further research in public health.</blockquote><h4>Making Predictions</h4><p><strong>Linear Regression Model</strong></p><ol><li><strong>Load the necessary packages.</strong></li></ol><pre>library(readr)<br>library(tidyverse)<br>library(caret)</pre><p><strong>2. Loading data.</strong></p><p>Replace “file path” with actual file path.</p><pre>obesity_data = read.csv(&quot;file path&quot;, sep=&quot;,&quot;)</pre><p><strong>3. Choose a data range.</strong></p><pre>ObesityDataSet = ObesityDataSet %&gt;%<br>  sample_n(100)</pre><p><strong>4. Checking missing values.</strong></p><pre>is.na(obesity_data)</pre><p><strong>5. Linear Regression Model.</strong></p><pre>model &lt;- lm(weight ~ height, data = obesity_data)<br>summary(model)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgnV1ZmuH2hOFhgL1jow7A.png" /><figcaption>Regression model</figcaption></figure><p><strong>5. Visualizing Linear Regression Model.</strong></p><pre>ggplot(obesity_data, aes(x = Height, y = Weight, color = Gender)) +<br>  geom_point() +<br>  geom_smooth(method = &quot;lm&quot;, se = FALSE, aes(color = Gender))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PRzKWkXekobGedMFppdD_Q.png" /><figcaption>Visualizing regression model</figcaption></figure><p><strong>6. Making predictions.</strong></p><pre>new_weight = data.frame(Height = 1.7, NObeyesdad = c(&quot;Normal_Weight&quot;, &quot;Overweight_Level_I&quot;, &quot;Overweight_Level_II&quot;, &quot;Obesity_Type_I&quot;))<br>predict(model, new_weight)</pre><p>With this code we can predict the weight for different weight classes from the given height of 1.7m.</p><figure><img alt="Predicted Data" src="https://cdn-images-1.medium.com/max/1024/1*4dTrb-q_jjp_UbSpjOAigg.png" /><figcaption>Predicted Data</figcaption></figure><p><strong><em>From above predictions,</em></strong></p><ol><li><strong>Increasing Obesity Category</strong>: As obesity category rises from Normal Weight to Obesity Type I, predicted weight increases from 70.05 kg to 102.17 kg, indicating higher obesity levels are linked to higher body weights.</li><li><strong>Magnitude of Weight Increase</strong>: The predicted weight of Obesity Type I is significantly higher than Normal Weight, with a predicted weight of 102.17 kg, highlighting the health risks associated with higher obesity levels.</li><li><strong>Clinical Relevance</strong>: Health professionals can use these predictions to estimate individual weight ranges based on height and obesity status, aiding in treatment plans, weight management strategies, and health risk assessments.</li></ol><h4>Let’s put it together</h4><ol><li><strong>Combing predictions with graphs</strong></li></ol><p>The study aimed to understand the relationship between obesity, height, and weight using predictive modeling and data visualization techniques. The fitted regression model was used to generate predicted weight values for various heights and obesity categories.</p><p>A new data frame was created with four rows for each obesity level at a fixed height of 1.7 meters. The predict() function was used to generate the corresponding predicted weights, allowing for a comparison of actual data and model predictions across different height and obesity combinations.</p><p>The data visualization provided a clear comparison between the actual data and the model’s predictions.</p><p><strong>2. Key findings</strong></p><p>The combined analysis of the predictions and visualizations revealed several important insights:</p><ol><li><strong>Increasing Obesity, Increasing Weight</strong>: As obesity levels increased from Normal Weight to Obesity Type I, predicted weight at 1.7 meters increased from 70.05 kg to 102.17 kg, indicating a strong positive relationship between obesity and body weights.</li><li><strong>Substantial Weight Differences</strong>: The study found significant weight differences between obesity categories, with Obesity Type I predicted to be over 30 kg higher than Normal Weight, highlighting the health implications of higher obesity levels.</li><li><strong>Clinical Relevance</strong>: The study provides valuable insights for healthcare professionals to estimate weight ranges based on height and obesity status, aiding in treatment planning, weight management strategies, and assessing health risks.</li><li><strong>Public Health Implications</strong>: The analysis emphasizes the significance of early intervention and effective obesity prevention programs in identifying individuals at risk of advancing to higher obesity levels.</li></ol><blockquote>The study utilized predictive modeling and data visualization to understand the intricate connections between obesity, height, and weight, providing valuable insights for clinical decision-making and public health initiatives.</blockquote><h4>Conclusion</h4><p>The project investigated the correlation between obesity, height, and weight using a dataset. The data showed a clear positive correlation between weight and obesity level, and the influence of height.</p><p>In our regression model we got weight values for individuals of 1.7 meters height across various obesity classifications. Results showed a consistent increase in predicted weight as obesity levels rose, with Obesity Type I category being over 30 kg heavier.</p><p>The model’s projections were aligned with the observed data by overlaying predicted weight lines onto the original data visualization, providing a comprehensive understanding of the intricate relationship between obesity, height, and weight.</p><h4>………………………………….<strong>THANK YOU!</strong>………………………………….</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hU_DlxeSEf_0NgI8" /><figcaption>Photo by <a href="https://unsplash.com/@mjessier?utm_source=medium&amp;utm_medium=referral">Myriam Jessier</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa62b4c32499" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>