<?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 Kiruli Gamage on Medium]]></title>
        <description><![CDATA[Stories by Kiruli Gamage on Medium]]></description>
        <link>https://medium.com/@kiruligamage?source=rss-c394ed949a86------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_9DhO2cc6cioQ9HT</url>
            <title>Stories by Kiruli Gamage on Medium</title>
            <link>https://medium.com/@kiruligamage?source=rss-c394ed949a86------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:34:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kiruligamage/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[Power BI]]></title>
            <link>https://medium.com/@kiruligamage/power-bi-c82f9b02b4bc?source=rss-c394ed949a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/c82f9b02b4bc</guid>
            <dc:creator><![CDATA[Kiruli Gamage]]></dc:creator>
            <pubDate>Tue, 23 Jul 2024 04:28:24 GMT</pubDate>
            <atom:updated>2024-07-23T04:28:24.392Z</atom:updated>
            <content:encoded><![CDATA[<p>Power BI is a collection of software services, apps, and connectors that work together to turn your unrelated sources of data into coherent, visually immersive, and interactive insights. Microsoft offers a business analytics tool called Power BI, which lets customers share insights and display data throughout their company or incorporate it into an application or website. Businesses may more easily make data-driven decisions by using the capabilities it offers for data transformation, analysis, and visualisation. Here is a summary of its main attributes and elements.</p><p>The Power BI Service is a cloud-based platform that allows users to share, collaborate on, and consume reports and dashboards created using Power BI Desktop. Here’s a detailed look at its features and functionalities. Some of the key features in power BI are Customizable dashboards , Customizable reports ,The capability to edit reports online , The capability to easily share reports , Navigation controls that allow easy access to dataset. Power BI Desktop is like Power BI service except that it lives on the user’s desktop machine and not in the cloud. This free tool integrates seamlessly with queries, data modelling, and visualizations for effective and accurate reporting of data, and offers a wide range of features to enable users to create appealing visualizations and detailed reports that can be published directly to other apps, to the web, or for mobile view. Note, however, that Desktop users cannot share reports some of the key features Power BI Premium provides greater capabilities and performance by increasing capacity-based offerings to end users. These act as dedicated resources to run the Power BI service for any organization. This dedicated capacity provides better sup port and stability.</p><p>Power BI is a comprehensive suite of business analytics tools developed by Microsoft, encompassing different components to serve various needs. The Power BI Service is an online software-as-a-service (SaaS) platform designed for sharing and collaboration. It allows users to create dashboards, share reports, and view insights via web browsers and mobile apps. In contrast, Power BI Desktop is a Windows application intended for more complex data modeling, report creation, and data analysis. It offers features for connecting to multiple data sources, designing interactive reports, and performing in-depth data analysis, with the capability to publish these reports directly to the Power BI Service. Power BI Premium is an add-on aimed at large organizations, providing dedicated cloud resources for better performance and scalability, along with advanced features such as paginated reports, AI capabilities, and larger dataset support. It enhances enterprise reporting with faster data processing and advanced sharing capabilities. Together, these components cater to different aspects of data analysis, report creation, and organizational collaboration, forming a robust ecosystem for business intelligence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c82f9b02b4bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[R Programming and Predictions :Social Media and Emotions]]></title>
            <link>https://medium.com/@kiruligamage/r-programming-and-predictions-social-media-and-emotions-169537c57e75?source=rss-c394ed949a86------2</link>
            <guid isPermaLink="false">https://medium.com/p/169537c57e75</guid>
            <dc:creator><![CDATA[Kiruli Gamage]]></dc:creator>
            <pubDate>Thu, 30 May 2024 17:50:19 GMT</pubDate>
            <atom:updated>2024-05-30T17:50:19.408Z</atom:updated>
            <content:encoded><![CDATA[<h3>R Programming and Predictions :Social Media and Emotions</h3><p><strong>Introduction</strong></p><p><em>Social Media and emotions</em></p><p>Fellow data enthusiasts hello and welcome to my journey of exploring the fascinating journey of data analysis and predictions using R . With the data available online there’s so much we can undercover and learn using R, Hence I will walk through how I managed to find a data set ,create interactive visualization with R shiny and even make some predictions using regression models. In today’s world social media plays a huge role in our day today lives and it can directly effect our emotions. In this article you will learn more about how it impact our life and more data related to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*-b-S_nWtiu3N9eSGe50VoQ.jpeg" /></figure><p><strong>Exploring Data</strong></p><p>First I imported the dataset I found on Kaggle to the R Notebook ,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*QCXpRvCuTME-edHodlVDMA.png" /></figure><p>After calling the packages I began to do the analysis, first I searched if there’s any missing values in the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*-VlzL6vgXb5GZG8qyyiTTQ.png" /><figcaption>code to find null values</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*8mpc6NV5N4CGgghjpgKZZg.png" /></figure><p>Since there is no null values I took the summary of the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*WFifdO4v_cWWEchDGOd7zQ.png" /></figure><p>There is a lot of information that we can find from the summary above, for example the length of age, gender ,platform are 103 and all three of their class is character . The most posted post per day is 8 while the least amount is 1 ,and the most likes received per day is 110 likes while the least is 5 ,in such way there is a lot of information that we can take from the summary of the dataset.</p><p>There is a relationship between the likes received per day and dominant emotion .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*cHwh9ni3dlxHsjn8II45cw.png" /></figure><p>From the scatterplot above we can clearly see the relationship . The most likes that a user for the emotion they have is happiness , and the least amount of users who got likes have boredom or either neutral.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*sSFjW7lTGT2kNIK4uRts1w.png" /></figure><p>From the graph above we can see that the users who spent more time on social media platforms have posted more posts in social media than the users who spend less time in social media .</p><p>While looking into the data we can also see that there&#39;s a interesting fact when taking the aged of the users as well. We can see it more clearly from the scatterplots below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*BobzeYTbQ-VaC4_bhbaJiA.png" /><figcaption>code for scatterplots</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*86xx5D6zQZ_rY4MU7si08A.png" /></figure><p>From the scatterplots above we can see the average age of the users of Snapchat, Facebook, Instagram. We all know that the youth population are the ones who uses social media the most , but here we can see even users aged 32–35 also uses social media up to some level.</p><p>Next I took some histograms of comments received per day in Snapchat, Instagram and Facebook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*DY1U9CSElwfo1ItOQV4byw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*YNCjlTWUpGD8RIuVc87gCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*PKK91DUXPOIqyHPlXAqHrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*UKeVp7dOEQBKU-zZ_LI58Q.png" /></figure><p>From the above we can see the comments received per day in Facebook, Instagram and Snapchat. As you can clearly see the most amount of comments received is on Snapchat.</p><p><strong>Working with R Shiny</strong></p><p>R Shiny is a powerful web application framework for R that allows you to build interactive and dynamic web apps straight from your R code. With R Shiny, you can create user-friendly interfaces and visually appealing dashboards that enable users to interact with your data analyses in real-time. With my data frame we can create visualizations such as histogram and scatterplot.</p><p>First I loaded my dataset to R shiny</p><pre># Load the Data<br>df &lt;- read.cv(&quot;C:/Users/Kiruli/Documents/Downloads/R Programming/Assignements/test.csv&quot;)<br><br></pre><p>Secondly I set up my user interference</p><pre># UI<br>ui &lt;- fluidPage(<br>  titlePanel(&quot;Social Media and Emotions&quot;),<br>  sidebarLayout(<br>    sidebarPanel(<br>      selectInput(&quot;Platforms&quot;,<br>                  &quot;select Platforms&quot;,<br>                  choices = unique(df$Platform),<br>                  selected = unique(df$Platform)[1]),<br>    ),<br>    mainPanel(<br>      tabsetPanel(<br>        tabPanel(&quot;Cases Scatter Plot&quot;, plotOutput(&quot;scatterPlot&quot;)),<br>        tabPanel(&quot;Cases Histogram&quot;, plotOutput(&quot;histogram&quot;)),<br>      )<br>    )<br>  )<br>)</pre><p>Thirdly I defined the server logic</p><pre># Server<br>server=function(input, output) {<br>  filtered_df=reactive({<br>    df[df$Platform == input$Platform, ]<br>  })<br>  <br>  output$scatterPlot=renderPlot({<br>    data=filtered_data()<br>    plot(data$Platform, data$Messaged_Sent_Per_Day,<br>         main = paste(&quot;Scatter Plot of Platforms and messages sent per day&quot;, input$Platform),<br>         xlab = &quot;users&quot;, ylab = &quot;messages sent per day&quot;,<br>         pch = 19, col = &quot;lightblue&quot;)<br>  })<br>  <br>  output$histogram=renderPlot({<br>    data=data$Platform<br>    hist(data,<br>         main = &quot;messeges sent per dy&quot;,<br>         xlab = &quot;platform&quot;,<br>         col = &quot;lavender&quot;, breaks = 30)<br>  })<br>}</pre><p>Lastly I ran my app</p><pre><br># Run the application<br>shinyApp(ui = ui, server = server)</pre><p>When taking the codes like above we can get the following output in R shiny app</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*85i_v_Hg5ZGvzM8w181y0g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*qCvl_yQFCVhg99YcdqBifQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*jKaUbCI3vKXP8_JrJN-PFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*45VRN511lRYZnXjk2ejWmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*dvr3-cG7Uw7bIcSyUP3RxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*nx2b-ongu57H2dVaNTbM6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*5gzGV67WacylZHnwezMlbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*x8F7HkGGpRqmVnZ3KyDFaA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*r_9HSrgHmqioVH2HXasKoQ.png" /></figure><p>From the shiny application above we can see the messages sent on different platforms .You can change the platforms and see the messages sent from different platforms .</p><p><strong>Seeing Patterns</strong></p><p>From analyzing the data I found some interesting facts , they are</p><p>Some of the users who has more likes are happy while some who have more likes have anxiety hence we can clearly say that this depends on the person and their thinking patterns , while some enjoy having a lot of like some have anxiety due to that.</p><p>We can also see that most of the users who have a higher usage time uses Snapchat and Instagram.</p><p><strong>Making Predictions (using Regression Models)</strong></p><p>Linear regression is a regression model that uses a straight line to describe the relationship between variables. It finds the line of best fit through your data by searching for the value of the regression coefficient(s) that minimizes the total error of the model.</p><p>In the following data set the linear regression analysis is as follows,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*UpFDX0zYW4EOujL-Qsm79Q.png" /><figcaption>code for the linear regression model</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*YIXVdifGpTXXUoR6pKKFpg.png" /></figure><p>From the regression analysis we can predict the following</p><ul><li>Min: -58.214</li><li>1Q (1st Quartile): -15.937</li><li>Median: -1.071</li><li>3Q (3rd Quartile): 16.591</li><li>Max: 111.591</li></ul><p>The intercept 88.33 represents that estimated daily usage time of users when the dominant emotion is present .</p><p>Compared to emotion, anxiety has a slight increase in daily usage time by 0.07576 minutes. This is not statistically significant (p-value = 0.99389).</p><p>Compared t emotion, boredom is associated with a decrease in daily usage time by 27.39583 minutes. This is statistically significant (p-value = 0.00972).</p><p>Compared emotion, happiness is increased in daily usage time by 54.88095 minutes. This is highly significant (p-value = 1.35e-06).</p><p>Compared to the emotion, neutral is associated with a decrease in daily usage time by 7.26190 minutes. This effect is statistically significant (p-value = 0.44888).</p><p>Compared to the emotion, sadness is associated with a decrease in daily usage time by 11.54762 minutes. This effect is not statistically significant (p-value = 0.28088).</p><p>Adjusted R-squared: 0.4619</p><p>This adjusted value accounts for the number of predictors in the model and is slightly lower than the R-squared, indicating a modest adjustment for the number of variables</p><p>This analysis suggests that while certain emotions significantly influence daily usage time, other emotions do not have a statistically significant impact. The overall model is significant, indicating that dominant emotion is a relevant predictor of daily usage time, but other factors not included in the model likely also play a significant role.</p><p><strong>Putting It All Together</strong></p><p>To combine my graphs with my predictions I used scatterplot and other graphs and changes the x axis and y axis according to the output. By aligning the numerical predictions with the visual representations, we could provide a clearer and more intuitive understanding of our analysis. For example, seeing a high bar for happiness and a low bar for boredom visually reinforced our statistical findings.</p><p>i learned a lot through this analysis such as,</p><p>Individuals experiencing happiness had significantly higher daily usage times. This was evident from both the model’s coefficient for happiness and the corresponding high bar in the bar chart. The significant p-value (1.35e-06) confirmed this relationship. In contrast, boredom was associated with a notable decrease in daily usage time. This was supported by a significant negative coefficient and a lower bar in the bar chart. The p-value (0.00972) indicated that this effect was statistically significant. Emotions such as anxiety, neutral, and sadness did not show statistically significant differences from the baseline emotion in affecting daily usage time. This was clear from their high p-values and their bars being close to the intercept level in the bar chart.</p><p><strong>Conclusion</strong></p><p>As we come to the end of our data analysis journey I would like to look back and sum up what we found out , we found an abundance of information about our dataset by coding and making graphs and visualization .By combining statistical analysis with visualizations, we effectively communicated to get the data. We learned a lot through this journey how to take a dataset and visualize the data ,identify patterns, build interactive applications, and make predictions using regression models.</p><p>Concluding this journey of analyzing this dataset I would like encourage all of you to get a dataset and to try it on your own.</p><p>Thank You For Reading!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=169537c57e75" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>