SlideShare a Scribd company logo
1 of 11
HADOOP PROJECT
Submitted By
Ankush Roy
Apuroop Pulabhatla
Ashitha VS
Krishna Bollojula
Srikanth Mallya
Koushik Rakshit
Roma Agrawal
CONTENTS
Business Problem
Understanding Data
Architecture
Psuedo code
Business Implication
BUSINESS PROBLEM
We need to find the adjusted closing price for
each day a stock has not reported dividend.
We are given two data sets:
1Dividends – A CSV file that gives us information
about the dates a dividend is returned.
2. NYSE_daily_prices – A bunch of CSV files that has
all the information about stock prices.
continued…
• We have to retrieve the dates when
dividends have a value 0, from the
dividends data set and match that with
the NYSE daily prices data set and hence
retrieve the corresponding adjusted
closing price.
.
UNDERSTANDING DATA
 The NYSE Daily Prices File has the following
columns separated by commas(CSV File):
exchange, stock_symbol, date, stock_price_open,
stock_price_high, stock_price_low, stock_price_close,
stock_volume, stock_price_adj_close
 The NYSE Daily Dividends File has the
following columns separated by commas(CSV
File):
exchange, stock_symbol, date, dividends
ARCHITECTURE
Mapper
Reducer
Output
Input Files
<Stock_symbol, Date, X, X, X, X, X
Adjusted_closing_price>
<Stock_symbol | Date, Adjusted_closing_price>
<Stock_symbol | Date, Dividend>
<Stock_symbol | Date, Adjusted_closing_price>
PSEUDOCODE - MAPPER
public static class StockAnalysisMapper extends MapReduceBase
implements Mapper<LongWritable, Text, Text, Text>
{
@Override
public void map(LongWritable key, Text
value,OutputCollector<Text, Text> output, Reporter reporter)
throws IOException
{
// switch case to parse the input lines and store the data
// check for null values in the key
// check the header and send the key value to output collector
}
}
PSEUDOCODE-REDUCER
public static class StockAnalysisReducer extends MapReduceBase implements
Reducer<Text, Text, Text, Text>
{
@Override
public void reduce(Text key, Iterator<Text> values,OutputCollector<Text, Text> output,
Reporter reporter) throws IOException
{
while (values.hasNext())
{
// Parse the inputs which are count,stock adjusted closing price and check
// Store them as required after parsing
//check for null values of stock adjusted closing price
}
//Increment the sum
// write to output if sum is 1
}
}
BUSINESS IMPLICATION
The closing price of a stock is exactly that: the
price of that stock at the close of the trading day.
The adjusted closing price uses the closing price
as a starting point, but it takes into account factors
such as dividends, stock splits and new stock
offerings.
The adjusted closing price represents a more
accurate reflection of a stock's value, since
distributions and new offerings can alter the
closing price.
Continued…
The primary use for the adjusted closing
price is as a means to develop an
accurate track record of a stock's
performance.
The comparison of a stock's historical
adjusted closing price to its current price
shows the true rate of return.
Thank you

More Related Content

Similar to NYE Stock analysis

Stock Analyzer Hadoop MapReduce Implementation
Stock Analyzer Hadoop MapReduce ImplementationStock Analyzer Hadoop MapReduce Implementation
Stock Analyzer Hadoop MapReduce ImplementationMaruthi Nataraj K
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENTLori Moore
 
MMYERS Portfolio
MMYERS PortfolioMMYERS Portfolio
MMYERS PortfolioMike Myers
 
Market Index Forecasting Model
Market Index Forecasting ModelMarket Index Forecasting Model
Market Index Forecasting Modelijtsrd
 
Introduction to-mongo db-execution-plan-optimizer-final
Introduction to-mongo db-execution-plan-optimizer-finalIntroduction to-mongo db-execution-plan-optimizer-final
Introduction to-mongo db-execution-plan-optimizer-finalM Malai
 
Introduction to Mongodb execution plan and optimizer
Introduction to Mongodb execution plan and optimizerIntroduction to Mongodb execution plan and optimizer
Introduction to Mongodb execution plan and optimizerMydbops
 
Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssisdeepakk073
 
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its ModuleMuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its ModuleJitendra Bafna
 
Mysql Fun
Mysql FunMysql Fun
Mysql FunSHC
 
esProc introduction
esProc introductionesProc introduction
esProc introductionssuser9671cc
 
Final Project SQL - Elyada Wigati Pramaresti.pptx
Final Project SQL - Elyada Wigati Pramaresti.pptxFinal Project SQL - Elyada Wigati Pramaresti.pptx
Final Project SQL - Elyada Wigati Pramaresti.pptxElyada Wigati Pramaresti
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republicKaing Menglieng
 
whats New in axapta 2012
whats New in axapta 2012whats New in axapta 2012
whats New in axapta 2012H B Kiran
 
Educational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfEducational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfrajeshjangid1865
 
Oracle_Analytical_function.pdf
Oracle_Analytical_function.pdfOracle_Analytical_function.pdf
Oracle_Analytical_function.pdfKalyankumarVenkat1
 
Agile Database Development with JSON
Agile Database Development with JSONAgile Database Development with JSON
Agile Database Development with JSONChris Saxon
 
Spring data ii
Spring data iiSpring data ii
Spring data ii명철 강
 
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)Pietro Di Leo
 
Realize the potential of sap material ledger
Realize the potential of sap material ledgerRealize the potential of sap material ledger
Realize the potential of sap material ledgerRajesh Shanbhag
 
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
7th meeting - Analysis Toolpak - Solver - Forecast WorksheetDuc Lai Trung Minh
 

Similar to NYE Stock analysis (20)

Stock Analyzer Hadoop MapReduce Implementation
Stock Analyzer Hadoop MapReduce ImplementationStock Analyzer Hadoop MapReduce Implementation
Stock Analyzer Hadoop MapReduce Implementation
 
ADBMS ASSIGNMENT
ADBMS ASSIGNMENTADBMS ASSIGNMENT
ADBMS ASSIGNMENT
 
MMYERS Portfolio
MMYERS PortfolioMMYERS Portfolio
MMYERS Portfolio
 
Market Index Forecasting Model
Market Index Forecasting ModelMarket Index Forecasting Model
Market Index Forecasting Model
 
Introduction to-mongo db-execution-plan-optimizer-final
Introduction to-mongo db-execution-plan-optimizer-finalIntroduction to-mongo db-execution-plan-optimizer-final
Introduction to-mongo db-execution-plan-optimizer-final
 
Introduction to Mongodb execution plan and optimizer
Introduction to Mongodb execution plan and optimizerIntroduction to Mongodb execution plan and optimizer
Introduction to Mongodb execution plan and optimizer
 
Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssis
 
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its ModuleMuleSoft Nashik Virtual  Meetup#3 - Deep Dive Into DataWeave and its Module
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
 
Mysql Fun
Mysql FunMysql Fun
Mysql Fun
 
esProc introduction
esProc introductionesProc introduction
esProc introduction
 
Final Project SQL - Elyada Wigati Pramaresti.pptx
Final Project SQL - Elyada Wigati Pramaresti.pptxFinal Project SQL - Elyada Wigati Pramaresti.pptx
Final Project SQL - Elyada Wigati Pramaresti.pptx
 
Understand when to use user defined functions in sql server tech-republic
Understand when to use user defined functions in sql server   tech-republicUnderstand when to use user defined functions in sql server   tech-republic
Understand when to use user defined functions in sql server tech-republic
 
whats New in axapta 2012
whats New in axapta 2012whats New in axapta 2012
whats New in axapta 2012
 
Educational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdfEducational Objectives After successfully completing this assignmen.pdf
Educational Objectives After successfully completing this assignmen.pdf
 
Oracle_Analytical_function.pdf
Oracle_Analytical_function.pdfOracle_Analytical_function.pdf
Oracle_Analytical_function.pdf
 
Agile Database Development with JSON
Agile Database Development with JSONAgile Database Development with JSON
Agile Database Development with JSON
 
Spring data ii
Spring data iiSpring data ii
Spring data ii
 
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
 
Realize the potential of sap material ledger
Realize the potential of sap material ledgerRealize the potential of sap material ledger
Realize the potential of sap material ledger
 
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
7th meeting - Analysis Toolpak - Solver - Forecast Worksheet
 

More from Krishna Bollojula

More from Krishna Bollojula (19)

Krishna Bollojula Analyst Certificate
Krishna Bollojula  Analyst CertificateKrishna Bollojula  Analyst Certificate
Krishna Bollojula Analyst Certificate
 
Enterprise performance management
Enterprise performance managementEnterprise performance management
Enterprise performance management
 
Multiple Regression using SAS
Multiple Regression using SASMultiple Regression using SAS
Multiple Regression using SAS
 
Wine quality Analysis
Wine quality AnalysisWine quality Analysis
Wine quality Analysis
 
Blind product test- Market Research
Blind product test- Market ResearchBlind product test- Market Research
Blind product test- Market Research
 
Adopting Analytics in BFSI
Adopting Analytics in BFSIAdopting Analytics in BFSI
Adopting Analytics in BFSI
 
Efficacy of drugs - SAS Case Study
Efficacy of drugs - SAS Case StudyEfficacy of drugs - SAS Case Study
Efficacy of drugs - SAS Case Study
 
ltu37276_en_certificate
ltu37276_en_certificateltu37276_en_certificate
ltu37276_en_certificate
 
Future groups
Future groupsFuture groups
Future groups
 
Analysis of Reviews on Sony Z3
Analysis of Reviews on Sony Z3Analysis of Reviews on Sony Z3
Analysis of Reviews on Sony Z3
 
Tela sales analysis
Tela sales analysisTela sales analysis
Tela sales analysis
 
Comparison of drugs to prevent post anesthesia
Comparison of drugs to prevent post anesthesiaComparison of drugs to prevent post anesthesia
Comparison of drugs to prevent post anesthesia
 
Blind Product Test - Data Analysis
Blind Product Test - Data AnalysisBlind Product Test - Data Analysis
Blind Product Test - Data Analysis
 
Adopting Analytics for decision making in a bank
Adopting Analytics for decision making in a bankAdopting Analytics for decision making in a bank
Adopting Analytics for decision making in a bank
 
EPM - Hotel Industry
EPM - Hotel IndustryEPM - Hotel Industry
EPM - Hotel Industry
 
Wine ppt template
Wine ppt templateWine ppt template
Wine ppt template
 
Multiple regression
Multiple regressionMultiple regression
Multiple regression
 
Hadoop
HadoopHadoop
Hadoop
 
Brand dossier on dettol
Brand dossier on dettolBrand dossier on dettol
Brand dossier on dettol
 

Recently uploaded

Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 

Recently uploaded (20)

Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 

NYE Stock analysis

  • 1. HADOOP PROJECT Submitted By Ankush Roy Apuroop Pulabhatla Ashitha VS Krishna Bollojula Srikanth Mallya Koushik Rakshit Roma Agrawal
  • 3. BUSINESS PROBLEM We need to find the adjusted closing price for each day a stock has not reported dividend. We are given two data sets: 1Dividends – A CSV file that gives us information about the dates a dividend is returned. 2. NYSE_daily_prices – A bunch of CSV files that has all the information about stock prices.
  • 4. continued… • We have to retrieve the dates when dividends have a value 0, from the dividends data set and match that with the NYSE daily prices data set and hence retrieve the corresponding adjusted closing price. .
  • 5. UNDERSTANDING DATA  The NYSE Daily Prices File has the following columns separated by commas(CSV File): exchange, stock_symbol, date, stock_price_open, stock_price_high, stock_price_low, stock_price_close, stock_volume, stock_price_adj_close  The NYSE Daily Dividends File has the following columns separated by commas(CSV File): exchange, stock_symbol, date, dividends
  • 6. ARCHITECTURE Mapper Reducer Output Input Files <Stock_symbol, Date, X, X, X, X, X Adjusted_closing_price> <Stock_symbol | Date, Adjusted_closing_price> <Stock_symbol | Date, Dividend> <Stock_symbol | Date, Adjusted_closing_price>
  • 7. PSEUDOCODE - MAPPER public static class StockAnalysisMapper extends MapReduceBase implements Mapper<LongWritable, Text, Text, Text> { @Override public void map(LongWritable key, Text value,OutputCollector<Text, Text> output, Reporter reporter) throws IOException { // switch case to parse the input lines and store the data // check for null values in the key // check the header and send the key value to output collector } }
  • 8. PSEUDOCODE-REDUCER public static class StockAnalysisReducer extends MapReduceBase implements Reducer<Text, Text, Text, Text> { @Override public void reduce(Text key, Iterator<Text> values,OutputCollector<Text, Text> output, Reporter reporter) throws IOException { while (values.hasNext()) { // Parse the inputs which are count,stock adjusted closing price and check // Store them as required after parsing //check for null values of stock adjusted closing price } //Increment the sum // write to output if sum is 1 } }
  • 9. BUSINESS IMPLICATION The closing price of a stock is exactly that: the price of that stock at the close of the trading day. The adjusted closing price uses the closing price as a starting point, but it takes into account factors such as dividends, stock splits and new stock offerings. The adjusted closing price represents a more accurate reflection of a stock's value, since distributions and new offerings can alter the closing price.
  • 10. Continued… The primary use for the adjusted closing price is as a means to develop an accurate track record of a stock's performance. The comparison of a stock's historical adjusted closing price to its current price shows the true rate of return.