SlideShare a Scribd company logo
US Economy Analysis under Democrats and
Republicans
MGS690
Presented By:-
Mohd Arif Sami
Snehal Dutta
Vinayak Kudari
Siddhartha Parepally
Agenda
1. Background
2. Design
3. Development
4. Code
5. Results
6. Test
7. Conclusion
Background
Political parties in the United States
Republican Party – Conservatives, free market capitalism
Democratic Party - liberal, mixed economy
Impact on the economic conditions of America
Design
Data Collection
Data Cleaning
Mapping of Data
Analysis
Value weighted returns
Equal weighted returns
Hypothesis test
Same weight, or importance, to each stock in a portfolio.
Smallest companies are given equal weight to the largest companies.
All of the companies considered on an even playing field.
The index is highly diversified with all stocks in the universe equally
weighted.
As opposed to market cap weighting, the index does not overweight
overpriced stocks and underweight underpriced stocks. Pricing errors are
random.
Equal Weight
http://valueweightedindex.com/indexcomparison/equallyweighted/
Equal Weight Index
Based on the average market capitalization rather than
on the average price of the stocks in the index.
Value Weighted
Value weighted return = 390,000 x 100 = 109.59
355,000
http://www.investopedia.com/exam-guide/cfa-level-1/securities-markets/computing-indexes.asp
SP500 Data Sample
VWRETX:-
Return (excluding dividends) on value-weighted index.
Contains, returns, excluding all dividends, on a value-weighted market portfolio.
VWRETD:-
Return (Including all Distributions) on Value-Weighted Index.
Contains the returns, including all distributions, on a value-weighted market portfolio.
EWRETD:-
Return (Including all Distributions) on Equal-Weighted Index.
Contains returns, including all distributions, on an equally-weighted market
portfolio.
EWRETX:-
Return (excluding dividends) on equal-weighted index
Contains returns, excluding all dividends, on an equally-weighted market portfolio.
Few Terms
Development
Three major steps
 Collecting S&P500 index returns
S&P500 index data from 1926 to till date
 Results based on the ruling party
Value weighted and equal weighted portfolio return into
two groups
 Classification of returns
The expectation is that the returns during the rule of
each party is different from the other.
link:- http://www.enchantedlearning.com/history/us/pres/list.shtml
Parties Term Data
>prezData<-read.csv(file="PrezTable.csv",head=TRUE,sep=",")
>pTermData<-
>data.frame(prezData$Party,as.integer(substr(prezData$Term.as.President,1,4)),as.integer(substr(pr
ezData$Term.as.President,6,9))-1)
>colnames(pTermData)<-c('Party','Term_Start', 'Term_End')
>pTermData<-subset(pTermData,as.numeric(pTermData$Term_Start)>=1923)
>pTermData[is.na(pTermData)] <- 2015
Parties Term Data
Save the sp500monthly monthly dataset from
"http://www3.canisius.edu/~yany/RData/sp500Monthly.RData" to your local system
> load('sp500monthly.Rdata')
> head(sp500monthly)
S&P500 Data
> sp500monthlyc<-na.omit(sp500monthly)
> head(sp500monthlyc)
Cleaning S&P500 Data
#Get the number of rows for each in the pTermData dataset
terms<-nrow(pTermData)
#Initialize 2 matrices for Equal weighted returns and Value weighted returns
meanRetVWRETD<-matrix(,nrow=terms,ncol=1)
meanRetEWRETD<-matrix(,nrow=terms,ncol=1)
#Run a loop for each row of the pTermData dataset
for (i in 1:terms){
#Get the start year and end year of each term
start_year<-pTermData$Term_Start[i]
end_year<-pTermData$Term_End[i]
# Get a subset of the sp500monthly dataset between the start and end year of #the term
termData<-data.frame(subset(sp500monthly, as.numeric(substr(sp500monthly[,1],1,4))>=start_year &
as.numeric(substr(sp500monthly[,1],1,4))<=end_year))
#Store the value weighted returns and equal weighted returns in 2 separate variables
termDataVWRETD<-termData$VWRETD
termDataEWRETD<-termData$EWRETD
#Find the mean of the equal weighted and value weighted returns for that term
meanRetVWRETD[i,1]<-mean(as.numeric(as.character(termDataVWRETD)))
meanRetEWRETD[i,1]<-mean(as.numeric(as.character(termDataEWRETD)))
}
Calculating Returns
> colnames(pTermData)<-c('Party','Term_Start', 'Term_End')
> pTermData<-cbind(pTermData,meanRetVWRETD)
> pTermData
Final Data Set
> RepData<-subset(pTermData,pTermData$Party=="Republican")
> DemData<-subset(pTermData,pTermData$Party=="Democrat")
> RepData
Segregating the Data
> shapiro.test(RepData$meanRetVWRETD)
> shapiro.test(DemData$meanRetVWRETD)
P-value is more that 0.05 hence we can say both the returns follow normal distribution.
Normally Test
Null Hypothesis
H0: Republican Return=democrats Return
Alternate Hypothesis
Ha: Republican Return !=Democrats Return
Hypothesis
>t.test(RepData$meanRetVWRETD,DemData$meanRetVWRETD)
Hypothesis Testing
P-value is 0.2757 which is greater than 0.05
hence we can say:-
We fail to reject the null hypothesis.
Hence there is enough evidence to prove that
market returns during Democrat rule is equal to
market returns during Republican rule.
Test Result
Conclusion
On analysis of the S&P500 index returns (both value
weighted and equal weighted) during the terms of Republican
and Democratic rule, by using Hypothesis testing, we have
found that :
Both Republicans and Democrats have managed the
economy similarly.

More Related Content

Similar to Financial economy analysis by political party

Equity portfolio analysis
Equity portfolio analysisEquity portfolio analysis
Equity portfolio analysisjason reynolds
 
Chapter 12 - Analyzing data quantitatively.pdf
Chapter 12 - Analyzing data quantitatively.pdfChapter 12 - Analyzing data quantitatively.pdf
Chapter 12 - Analyzing data quantitatively.pdf
ssuser864684
 
2017 Why invest in Momentum as a Factor ?
2017 Why invest in Momentum as a Factor ?2017 Why invest in Momentum as a Factor ?
2017 Why invest in Momentum as a Factor ?
Frederic Jamet
 
Fundamental analysis hard copy
Fundamental analysis hard copyFundamental analysis hard copy
Fundamental analysis hard copyDharmik
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
Udit Gupta
 
Active and Passive Management: Complements or Rivals?
Active and Passive Management: Complements or Rivals?Active and Passive Management: Complements or Rivals?
Active and Passive Management: Complements or Rivals?
NICSA
 
University of Maryland University CollegeSTAT200 - Assignment #1.docx
University of Maryland University CollegeSTAT200 - Assignment #1.docxUniversity of Maryland University CollegeSTAT200 - Assignment #1.docx
University of Maryland University CollegeSTAT200 - Assignment #1.docx
ouldparis
 
Please read the 4 articles(check the link)and write 2-page paper w.docx
Please read the 4 articles(check the link)and write 2-page paper w.docxPlease read the 4 articles(check the link)and write 2-page paper w.docx
Please read the 4 articles(check the link)and write 2-page paper w.docx
stilliegeorgiana
 
Week 5 Guidance - Financial RatiosThe information contained in t.docx
Week 5 Guidance - Financial RatiosThe information contained in t.docxWeek 5 Guidance - Financial RatiosThe information contained in t.docx
Week 5 Guidance - Financial RatiosThe information contained in t.docx
helzerpatrina
 
TitleABC123 Version X1Macroeconomic TermsECO372 Ve.docx
TitleABC123 Version X1Macroeconomic TermsECO372 Ve.docxTitleABC123 Version X1Macroeconomic TermsECO372 Ve.docx
TitleABC123 Version X1Macroeconomic TermsECO372 Ve.docx
edwardmarivel
 
File 498 Doc 4 01 Dm Intro To Dm
File 498 Doc 4 01 Dm Intro To DmFile 498 Doc 4 01 Dm Intro To Dm
File 498 Doc 4 01 Dm Intro To Dmmupa
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price Forecasting
Arkaprava Kundu
 
Modern portfolio concepts ppt @ bec doms
Modern portfolio concepts ppt @ bec domsModern portfolio concepts ppt @ bec doms
Modern portfolio concepts ppt @ bec doms
Babasab Patil
 
DataPresetImageFill5-29.jpgDataPresetImageFill2-26.jpg
DataPresetImageFill5-29.jpgDataPresetImageFill2-26.jpgDataPresetImageFill5-29.jpgDataPresetImageFill2-26.jpg
DataPresetImageFill5-29.jpgDataPresetImageFill2-26.jpg
OllieShoresna
 
Intraday news event_study
Intraday news event_studyIntraday news event_study
Intraday news event_study
Stefan Duprey
 
1. The company I chose was Amazon2.3.4.1) Keep i
1. The company I chose was Amazon2.3.4.1) Keep i1. The company I chose was Amazon2.3.4.1) Keep i
1. The company I chose was Amazon2.3.4.1) Keep i
SantosConleyha
 
1. The company I chose was Amazon2.3.4.1) Keep i
1. The company I chose was Amazon2.3.4.1) Keep i1. The company I chose was Amazon2.3.4.1) Keep i
1. The company I chose was Amazon2.3.4.1) Keep i
AbbyWhyte974
 
Abacus Weath Partners Investment slideshow
Abacus Weath Partners Investment slideshowAbacus Weath Partners Investment slideshow
Abacus Weath Partners Investment slideshow
Abacus Wealth Partners
 
Group 2 - STAT 3250 Final Project Report
Group 2 - STAT 3250 Final Project ReportGroup 2 - STAT 3250 Final Project Report
Group 2 - STAT 3250 Final Project ReportPriya Chandrashekar
 
Structured Investing
Structured InvestingStructured Investing
Structured Investinglawrencewall
 

Similar to Financial economy analysis by political party (20)

Equity portfolio analysis
Equity portfolio analysisEquity portfolio analysis
Equity portfolio analysis
 
Chapter 12 - Analyzing data quantitatively.pdf
Chapter 12 - Analyzing data quantitatively.pdfChapter 12 - Analyzing data quantitatively.pdf
Chapter 12 - Analyzing data quantitatively.pdf
 
2017 Why invest in Momentum as a Factor ?
2017 Why invest in Momentum as a Factor ?2017 Why invest in Momentum as a Factor ?
2017 Why invest in Momentum as a Factor ?
 
Fundamental analysis hard copy
Fundamental analysis hard copyFundamental analysis hard copy
Fundamental analysis hard copy
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Active and Passive Management: Complements or Rivals?
Active and Passive Management: Complements or Rivals?Active and Passive Management: Complements or Rivals?
Active and Passive Management: Complements or Rivals?
 
University of Maryland University CollegeSTAT200 - Assignment #1.docx
University of Maryland University CollegeSTAT200 - Assignment #1.docxUniversity of Maryland University CollegeSTAT200 - Assignment #1.docx
University of Maryland University CollegeSTAT200 - Assignment #1.docx
 
Please read the 4 articles(check the link)and write 2-page paper w.docx
Please read the 4 articles(check the link)and write 2-page paper w.docxPlease read the 4 articles(check the link)and write 2-page paper w.docx
Please read the 4 articles(check the link)and write 2-page paper w.docx
 
Week 5 Guidance - Financial RatiosThe information contained in t.docx
Week 5 Guidance - Financial RatiosThe information contained in t.docxWeek 5 Guidance - Financial RatiosThe information contained in t.docx
Week 5 Guidance - Financial RatiosThe information contained in t.docx
 
TitleABC123 Version X1Macroeconomic TermsECO372 Ve.docx
TitleABC123 Version X1Macroeconomic TermsECO372 Ve.docxTitleABC123 Version X1Macroeconomic TermsECO372 Ve.docx
TitleABC123 Version X1Macroeconomic TermsECO372 Ve.docx
 
File 498 Doc 4 01 Dm Intro To Dm
File 498 Doc 4 01 Dm Intro To DmFile 498 Doc 4 01 Dm Intro To Dm
File 498 Doc 4 01 Dm Intro To Dm
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price Forecasting
 
Modern portfolio concepts ppt @ bec doms
Modern portfolio concepts ppt @ bec domsModern portfolio concepts ppt @ bec doms
Modern portfolio concepts ppt @ bec doms
 
DataPresetImageFill5-29.jpgDataPresetImageFill2-26.jpg
DataPresetImageFill5-29.jpgDataPresetImageFill2-26.jpgDataPresetImageFill5-29.jpgDataPresetImageFill2-26.jpg
DataPresetImageFill5-29.jpgDataPresetImageFill2-26.jpg
 
Intraday news event_study
Intraday news event_studyIntraday news event_study
Intraday news event_study
 
1. The company I chose was Amazon2.3.4.1) Keep i
1. The company I chose was Amazon2.3.4.1) Keep i1. The company I chose was Amazon2.3.4.1) Keep i
1. The company I chose was Amazon2.3.4.1) Keep i
 
1. The company I chose was Amazon2.3.4.1) Keep i
1. The company I chose was Amazon2.3.4.1) Keep i1. The company I chose was Amazon2.3.4.1) Keep i
1. The company I chose was Amazon2.3.4.1) Keep i
 
Abacus Weath Partners Investment slideshow
Abacus Weath Partners Investment slideshowAbacus Weath Partners Investment slideshow
Abacus Weath Partners Investment slideshow
 
Group 2 - STAT 3250 Final Project Report
Group 2 - STAT 3250 Final Project ReportGroup 2 - STAT 3250 Final Project Report
Group 2 - STAT 3250 Final Project Report
 
Structured Investing
Structured InvestingStructured Investing
Structured Investing
 

Recently uploaded

Exploring Abhay Bhutada’s Views After Poonawalla Fincorp’s Collaboration With...
Exploring Abhay Bhutada’s Views After Poonawalla Fincorp’s Collaboration With...Exploring Abhay Bhutada’s Views After Poonawalla Fincorp’s Collaboration With...
Exploring Abhay Bhutada’s Views After Poonawalla Fincorp’s Collaboration With...
beulahfernandes8
 
This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...
lamluanvan.net Viết thuê luận văn
 
Webinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont BraunWebinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont Braun
FinTech Belgium
 
GeM ppt in railway for presentation on gem
GeM ppt in railway  for presentation on gemGeM ppt in railway  for presentation on gem
GeM ppt in railway for presentation on gem
CwierAsn
 
How to get verified on Coinbase Account?_.docx
How to get verified on Coinbase Account?_.docxHow to get verified on Coinbase Account?_.docx
How to get verified on Coinbase Account?_.docx
Buy bitget
 
Introduction to Indian Financial System ()
Introduction to Indian Financial System ()Introduction to Indian Financial System ()
Introduction to Indian Financial System ()
Avanish Goel
 
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
muslimdavidovich670
 
what is a pi whale and how to access one.
what is a pi whale and how to access one.what is a pi whale and how to access one.
what is a pi whale and how to access one.
DOT TECH
 
PF-Wagner's Theory of Public Expenditure.pptx
PF-Wagner's Theory of Public Expenditure.pptxPF-Wagner's Theory of Public Expenditure.pptx
PF-Wagner's Theory of Public Expenditure.pptx
GunjanSharma28848
 
Financial Assets: Debit vs Equity Securities.pptx
Financial Assets: Debit vs Equity Securities.pptxFinancial Assets: Debit vs Equity Securities.pptx
Financial Assets: Debit vs Equity Securities.pptx
Writo-Finance
 
Isios-2024-Professional-Independent-Trustee-Survey.pdf
Isios-2024-Professional-Independent-Trustee-Survey.pdfIsios-2024-Professional-Independent-Trustee-Survey.pdf
Isios-2024-Professional-Independent-Trustee-Survey.pdf
Henry Tapper
 
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit CardPoonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
nickysharmasucks
 
The secret way to sell pi coins effortlessly.
The secret way to sell pi coins effortlessly.The secret way to sell pi coins effortlessly.
The secret way to sell pi coins effortlessly.
DOT TECH
 
how to sell pi coins on Binance exchange
how to sell pi coins on Binance exchangehow to sell pi coins on Binance exchange
how to sell pi coins on Binance exchange
DOT TECH
 
What website can I sell pi coins securely.
What website can I sell pi coins securely.What website can I sell pi coins securely.
What website can I sell pi coins securely.
DOT TECH
 
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
ydubwyt
 
how to sell pi coins in South Korea profitably.
how to sell pi coins in South Korea profitably.how to sell pi coins in South Korea profitably.
how to sell pi coins in South Korea profitably.
DOT TECH
 
what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024
DOT TECH
 
234Presentation on Indian Debt Market.ppt
234Presentation on Indian Debt Market.ppt234Presentation on Indian Debt Market.ppt
234Presentation on Indian Debt Market.ppt
PravinPatil144525
 
The European Unemployment Puzzle: implications from population aging
The European Unemployment Puzzle: implications from population agingThe European Unemployment Puzzle: implications from population aging
The European Unemployment Puzzle: implications from population aging
GRAPE
 

Recently uploaded (20)

Exploring Abhay Bhutada’s Views After Poonawalla Fincorp’s Collaboration With...
Exploring Abhay Bhutada’s Views After Poonawalla Fincorp’s Collaboration With...Exploring Abhay Bhutada’s Views After Poonawalla Fincorp’s Collaboration With...
Exploring Abhay Bhutada’s Views After Poonawalla Fincorp’s Collaboration With...
 
This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...This assessment plan proposal is to outline a structured approach to evaluati...
This assessment plan proposal is to outline a structured approach to evaluati...
 
Webinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont BraunWebinar Exploring DORA for Fintechs - Simont Braun
Webinar Exploring DORA for Fintechs - Simont Braun
 
GeM ppt in railway for presentation on gem
GeM ppt in railway  for presentation on gemGeM ppt in railway  for presentation on gem
GeM ppt in railway for presentation on gem
 
How to get verified on Coinbase Account?_.docx
How to get verified on Coinbase Account?_.docxHow to get verified on Coinbase Account?_.docx
How to get verified on Coinbase Account?_.docx
 
Introduction to Indian Financial System ()
Introduction to Indian Financial System ()Introduction to Indian Financial System ()
Introduction to Indian Financial System ()
 
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
The WhatsPump Pseudonym Problem and the Hilarious Downfall of Artificial Enga...
 
what is a pi whale and how to access one.
what is a pi whale and how to access one.what is a pi whale and how to access one.
what is a pi whale and how to access one.
 
PF-Wagner's Theory of Public Expenditure.pptx
PF-Wagner's Theory of Public Expenditure.pptxPF-Wagner's Theory of Public Expenditure.pptx
PF-Wagner's Theory of Public Expenditure.pptx
 
Financial Assets: Debit vs Equity Securities.pptx
Financial Assets: Debit vs Equity Securities.pptxFinancial Assets: Debit vs Equity Securities.pptx
Financial Assets: Debit vs Equity Securities.pptx
 
Isios-2024-Professional-Independent-Trustee-Survey.pdf
Isios-2024-Professional-Independent-Trustee-Survey.pdfIsios-2024-Professional-Independent-Trustee-Survey.pdf
Isios-2024-Professional-Independent-Trustee-Survey.pdf
 
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit CardPoonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
Poonawalla Fincorp and IndusInd Bank Introduce New Co-Branded Credit Card
 
The secret way to sell pi coins effortlessly.
The secret way to sell pi coins effortlessly.The secret way to sell pi coins effortlessly.
The secret way to sell pi coins effortlessly.
 
how to sell pi coins on Binance exchange
how to sell pi coins on Binance exchangehow to sell pi coins on Binance exchange
how to sell pi coins on Binance exchange
 
What website can I sell pi coins securely.
What website can I sell pi coins securely.What website can I sell pi coins securely.
What website can I sell pi coins securely.
 
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
一比一原版BCU毕业证伯明翰城市大学毕业证成绩单如何办理
 
how to sell pi coins in South Korea profitably.
how to sell pi coins in South Korea profitably.how to sell pi coins in South Korea profitably.
how to sell pi coins in South Korea profitably.
 
what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024what is the best method to sell pi coins in 2024
what is the best method to sell pi coins in 2024
 
234Presentation on Indian Debt Market.ppt
234Presentation on Indian Debt Market.ppt234Presentation on Indian Debt Market.ppt
234Presentation on Indian Debt Market.ppt
 
The European Unemployment Puzzle: implications from population aging
The European Unemployment Puzzle: implications from population agingThe European Unemployment Puzzle: implications from population aging
The European Unemployment Puzzle: implications from population aging
 

Financial economy analysis by political party