Explore the world of data analysis with a focus on logistic regression and data visualization. In the first part, delve into logistic regression by examining the influence of various factors on civil wars. Identify significant coefficients and predict the likelihood of a civil war in Ethiopia. In the second part, leverage a dataset containing 120 years of Olympic results to create insightful visualizations relating to athlete physique, medal achievements, and more. Mastery of R programming and data interpretation is essential for this comprehensive analysis.
Part 1: Logistic Regression
In this part, we conducted a logistic regression analysis to understand the factors affecting the occurrence of civil wars. We used various independent variables, except for country and year, and included a quadratic term for exports. The coefficients, standard errors, and p-values were reported. Significant coefficients at the 5% level were identified.
Table 1: Report of coefficients, standard errors, and p-values
All coefficients, except for "dominance," are significant.
We calculated the model's predicted probability for a civil war in Ethiopia starting in 1970. Additionally, we predicted the probabilities for a country like Ethiopia in 1970, but with adjusted values for male secondary school enrollment rate and the ratio of commodity exports to GDP.
Table 2: Data for Ethiopia in 1970
- Ethiopia in 1970: 0.12522
- Ethiopia-like country with higher schooling: 0.07076
- Ethiopia-like country with higher exports: 0.47508
Part II: Data Visualization
Using the dataset "athlete_events.csv," which contains 120 years of Olympic results, we were tasked with creating a visualization that explores the relationship between athlete physique (height and weight) and sport over time.
For this problem, we had the freedom to create and interpret a visualization of our choice. In our analysis, we presented a scatterplot that shows a positive correlation between height and weight.
Fig 1: Scatterplot between height and weight
These analyses demonstrate our proficiency in using logistic regression and data visualization techniques, with a specific focus on Olympic medal winners and the programming language R.