[UCSB] ECON 145: Data Wrangling - Course Projects & Assignments

[UCSB] ECON 145: Data Wrangling - Course Projects & Assignments

Date
September 18, 2022 → December 9, 2022
Tags

Background

The following are just a few examples of the many assignments/projects that I completed in the Data Wrangling course that I took at UCSB during the Fall 2022 quarter. This course was, by far, where I learned the most about R programming and data analysis when I was a beginner. Ultimately, this course really set the stage for understanding the much more complex programming and data science concepts that I have learned and applied in recent years.

Approval of President's Handling of Covid by Political Party

Prompt

image

For this assignment, we were given poll data based on the approval (or disapproval) of how the president is handling the Covid-19 pandemic.

image

This first graph I created was one that shows the percent share of Americans that approve of Joe Biden's handling of the pandemic by political party. As you can see, Democrats are in clear approval of Biden's actions and policies. Unsurprisingly, Republicans largely disapprove while Independents lie somewhere in-between.

image

This second graph is a facet-wrapped histogram that plots the approval ratings of how both of the presidents (Trump & Biden) handled Covid-19. The x-axis plots the approval scores, while the y-axis plots the amount of people who gave each score. The dotted vertical lines represent the mean approval scores for each president.

image

Lastly, this final graph plots the share of each party's approval of the current president's handling of the pandemic over two years. This one was the most interesting to me because you can see a very drastic (yet expected) change of approval under every party once Biden is sworn into office (as shown by the dotted vertical line).

Anthony Fantano Album Ratings Analysis

Prompts

image
image

Writeup

image

Implicit Bias Testing Scores Analysis

image

As the background of this writeup states, our class participated in taking two slightly different implicit bias tests at the beginning of the course. We were later given the data pertaining to these tests as an assignment which consisted of two parts (each page representing each part).

image

This second page is technically a separate week/section of the assignment, which is why it follows a different format/aesthetic and may look out of place

Explaining and Documenting Code for Two Functions I Created

Background

Finally, the last project that I decided to showcase is the one in which I demonstrated the most of my programming skills as a whole (at the time).

For this assignment, I created two functions from scratch -- one that returns the maximum value given a vector of numbers, and one that gives a final sales price (taking into account individual state tax rates) given a state and initial price as arguments to the function. For the writeup, we were asked to pretend as if we are programmers in a company and had to leave behind documentation about how our code works for our colleagues.

Writeup + Code

image
image
image