For this project, I will be utilizing statistical visualizations derived from the "USMacroB" dataset. Spanning from 1959 to 1995, this dataset offers a view of macroeconomic variables in the United States. Our objective is to glean insights into pivotal economic indicators such as gross national product (GNP), monetary base, and treasury bill rates.
Exploring Economic Indicators:
Gross National Product (GNP): Our exploration commences with an examination of GNP's trajectory over time. Employing a time series plot, we chart the quarterly fluctuations in GNP from 1959 to 1995. This visualization provides a lucid depiction of economic growth trends throughout this period.
Monetary Base and Treasury Bill Rates: Transitioning to monetary indicators, we will be using the average of the seasonally adjusted monetary base and the average of the 3-month treasury bill rates. Through histograms and scatter plots, we delve into the distribution and relationships of these variables.
Analyzing Trends and Relationships:
Correlation Analysis: Venturing beyond individual variables, we delve into the intricate relationships among economic indicators. Employing scatter plots and correlation coefficients, we unearth correlations between GNP, monetary base, and treasury bill rates. This analysis yields valuable insights into the interconnectivity of economic factors.
Time Series Analysis: Leveraging time series plots, we scrutinize the trends and seasonality of economic variables across time. By decomposing the data into trend, seasonal, and residual components, we attain a deeper comprehension of enduring patterns and cyclical fluctuations within the economy.
Interactive Visualization
Animated Scatter Plot: To enrich our exploration, we deploy an animated scatter plot to visualize the dynamic interplay between GNP, monetary base, and treasury bill rates. This dynamic visualization enables us to observe the evolution of these variables over time and explore trends across diverse economic regions.
The Data
The data set is from a provided sources from earlier in the course-- Github Sets. After perusing through the available data sets I decided to use an economic set that contained 146 observations and 3 variables: GNP (Gross National Product), Mbase (Average of the seasonally adjusted monetary base), and tbill, which reflected the 3-month (quarterly) average of treasury bill rates. I went ahead and looked at the summary stats and toyed with the different functions within R to get a feel for the data and its preliminary characteristics.

This image provides a preview of the data; it shows a column designated 'rownames' too, which is something that I had to alter when cleaning the data. Because each row reflected the passage of a single quarter, I knew that I would be able to use it for illustrating quarterly changes and getting a microscopic view of the data as years went on. However this posed another issue--it is tedious to look back at what row your are looking at and determine what year it is based on how many rows have passed (4 per year, 146 rows, 1959-1995) and thus what point in the fiscal year a data point is from. My solution to this was to create a new data frame that repeated the year four times to coincide with the quarters and bind it to the existing data frame.
I decided to use quite a few different plots to best articulate the data. The ability to compare and distinguish data point and features is a strong-suit of the ggplot package.
This is the most organized and defining visualization for the relationship between bill rates and quarters. The use of 'geom_smooth' encapsulates the overarching behavior of the data and offers a usable visual about the rate of bills over time.
Animated Scatter Plot
In conclusion, our journey through the realm of economic trends utilizing statistical visualizations has provided invaluable insights into the intricacies of the U.S. economy from 1959 to 1995. By harnessing the power of visual representations, we enhance our understanding of economic phenomena and inform strategic decision-making in a complex and interconnected world.
Reflection
I could have made different decisions throughout numerous steps in this process. Cleaning the data so I would have a year data frame ended up being more time-consuming and in the end unnecessary. I have countless issues along the way figuring out which data set best communicated what I was trying to say and problems rendering ggplots and many of the visuals were tedious to fix. Additionally, I could have added more to the plots and made more inferences and statistical decisions to make the impact of my visuals more promising. In the end, I think I produced a usable and quite attractive presentation about my topic that could be used to make assumptions and inferences about a specific period of history.
























