Data Analysis Workshop

In this workshop, you will perform data analysis tasks using R. You will learn to create interactive visualizations, calculate statistical measures, and interpret the results. You will use the dplyr, ggplot2, and plotly packages to complete the tasks. The goal is to deepen your understanding of data manipulation, visualization, and statistical analysis.

  1. Install and load the packages UsingR and MASS.

  2. brightness contain information on the brightness of 963 stars.

  1. Represent these data employing a histogram and a superimposed density plot.
  2. Graphically represent these data using a boxplot. Would you say that the data have “outliers”? What is the second smallest outlier?
  3. We want to keep data that cannot be considered outliers. Create a new variable called brightness.without containing only the values without outliers.
  4. Describe the shape of the distribution, any skewness, and the presence of any modes.
  1. UScereal contain information on the breakfast with cereals.
  1. Determine and interpret the relationships between the following pairs of variables using scatter plots, boxplots, or bar charts as appropriate:
  1. manufacturer & shelf.
  2. fat & vitamins.
  3. fat & shelf.
  4. carbohydrates & sugars.
  5. fibre & manufacturer.
  6. sodium & sugars.
  1. Discuss any patterns, trends, or correlations you observe.
  1. mammals contain information on relationship between body weight and brain weight of mammals.
  1. Plot the data to visualize the relationship.
  2. Is there a linear correlation between these variables?
  3. Transform the data using the log function and repeat the study. How do the results change?
  1. Anorexia contain information on weight change in female patients.
  1. What treatment was most effective?
  2. How many patients gained and how many lost weight?