Posts

Showing posts from January, 2024

Analyzing 2016 Presidential Election Polls from ABC and CBS

Image
The 2016 presidential election was a crucial moment in American history that drew the attention of the entire nation. In this blog post, I will present a fictional dataset that displays poll results from two major sources, ABC and CBS, for different candidates. It's important to note that this data is entirely fabricated and does not reflect the actual events of the election. Let's start by taking a closer look at the analysis that I have done using R Studio via URL | Election poll The 'Name' vector represents the candidates, and 'ABC results' and 'CBS results' store the respective poll results from ABC and CBS for each candidate Analyzing the Results: Now, let's delve into the analysis of the poll results: Key Observations: According to the latest polls from ABC and CBS, Donald Trump is leading in both. However, CBS reports a slightly higher percentage in favor of Trump compared to A...

My intro to R programming

 Hey everyone! I just tested a function for calculating the mean using R studio, and I'm excited to share the results with you! Please refer to my   GitHub repository  for my work. After applying the function to my dataset (assignment), the mean value is 19.25.  I followed the instructions given by my professor Dr. Friedman and referred the book "The Art of R Programming" by Norman Matloff. Explanation: This function works by summing up all the values in the given dataset (sum(assignment)) and then dividing the sum by the total number of elements in the dataset (length(assignment)) , it calculates the average value of the dataset. The formula for mean is: Mean = Sum of Values / No. of Values In this case, the function successfully computes the mean of the 'assignment' dataset. Feel free to try it out with your own datasets or explore Matloff's book!                                 ...
  My Git Repository Divya's Git Repository Link