Analyzing financial data in an Introductory Statistics Course Kelly Fitzpatrick, CFA Assistant Professor of Mathematics County College of Morris

Slides:



Advertisements
Similar presentations
Exercise 7.5 (p. 343) Consider the hotel occupancy data in Table 6.4 of Chapter 6 (p. 297)
Advertisements

Chi Squared Tests. Introduction Two statistical techniques are presented. Both are used to analyze nominal data. –A goodness-of-fit test for a multinomial.
Two-Sample Inference Procedures with Means
Common Statistical Mistakes. Mistake #1 Failing to investigate data for data entry or recording errors. Failing to graph data and calculate basic descriptive.
Chapter 14 Comparing two groups Dr Richard Bußmann.
Faculty Views of Statistics in Teaching and Research Laura Taylor and Kirsten Doehler Assistant Professors of Statistics 1.
WINKS SDA Statistical Data Analysis (Windows Kwikstat) Getting Started Guide.
1 Economics 240A Power One. 2 Outline w Course Organization w Course Overview w Resources for Studying.
Lesson #25 Nonparametric Tests for a Single Population.
© 2003 Prentice-Hall, Inc.Chap 14-1 Basic Business Statistics (9 th Edition) Chapter 14 Introduction to Multiple Regression.
Topic 2: Statistical Concepts and Market Returns
Chapter 16 Chi Squared Tests.
T-Tests Lecture: Nov. 6, 2002.
Hypothesis Testing with One Sample
Multiple Linear Regression Analysis
Lecture 5 Correlation and Regression
Active Learning Lecture Slides
Math 227 Elementary Statistics
Experimental Statistics - week 2
Lab 5 Hypothesis testing and Confidence Interval.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Incorporating Statistical Software Into the Classroom Demonstration of R Kelly Fitzpatrick, CFA Assistant Professor of Mathematics County College of Morris.
STAT 5372: Experimental Statistics Wayne Woodward Office: Office: 143 Heroy Phone: Phone: (214) URL: URL: faculty.smu.edu/waynew.
Chapter 11.1 Inference for the Mean of a Population.
Analysis & Interpretation: Individual Variables Independently Chapter 12.
Lesson Carrying Out Significance Tests. Vocabulary Hypothesis – a statement or claim regarding a characteristic of one or more populations Hypothesis.
Inference for One-Sample Means
1 Level of Significance α is a predetermined value by convention usually 0.05 α = 0.05 corresponds to the 95% confidence level We are accepting the risk.
Shuyu Chu Department of Statistics February 17, 2014 Lisa Short Course Series R Statistical Analysis Laboratory for Interdisciplinary Statistical Analysis.
Significance Tests in practice Chapter Tests about a population mean  When we don’t know the population standard deviation σ, we perform a one.
Hypothesis Testing with One Sample Chapter 7. § 7.1 Introduction to Hypothesis Testing.
Hypothesis Testing: One Sample Cases. Outline: – The logic of hypothesis testing – The Five-Step Model – Hypothesis testing for single sample means (z.
LESSON Tests about a Population Parameter.
Student’s t-distributions. Student’s t-Model: Family of distributions similar to the Normal model but changes based on degrees-of- freedom. Degrees-of-freedom.
1 Experimental Statistics - week 2 Review: 2-sample t-tests paired t-tests Thursday: Meet in 15 Clements!! Bring Cody and Smith book.
A Statistical Analysis of Seedlings Planted in the Encampment Forest Association By: Tony Nixon.
Statistical Reasoning Introduction to Probability and Statistics Ms. Young.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Lesson Testing Claims about a Population Mean Assuming the Population Standard Deviation is Known.
Copyright © 2009 Cengage Learning 15.1 Chapter 16 Chi-Squared Tests.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Two-Sample Inference Procedures with Means. Of the following situations, decide which should be analyzed using one-sample matched pair procedure and which.
Dan Piett STAT West Virginia University Lecture 10.
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
Week 8 October Three Mini-Lectures QMM 510 Fall 2014.
SW318 Social Work Statistics Slide 1 Percentile Practice Problem (1) This question asks you to use percentile for the variable [marital]. Recall that the.
Illustrations using R B. Jones Dept. of Political Science UC-Davis.
2 sample interval proportions sample Shown with two examples.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Spreadsheets What is Excel?. Objectives 1. Identify the parts of the Excel Screen 2. Identify the functions of a spreadsheet 3. Identify how spreadsheets.
BUA321 Chapter 8 Class notes. Risk and Return If you are thinking of investing in a stock, what things would you investigate? What is inside trading?
Chapter 11: Additional Topics Using Inferences 11.1 – Chi-Square: Tests of Independence 11.2 – Chi-Square: Goodness of Fit 11.3 – Testing a Single Variance.
Paired Samples and Blocks
Week 6 Dr. Jenne Meyer.  Article review  Rules of variance  Keep unaccounted variance small (you want to be able to explain why the variance occurs)
Of the following situations, decide which should be analyzed using one-sample matched pair procedure and which should be analyzed using two-sample procedures?
Daniel S. Yates The Practice of Statistics Third Edition Chapter 12: Significance Tests in Practice Copyright © 2008 by W. H. Freeman & Company.
Hypothesis Testing Involving One Population Chapter 11.4, 11.5, 11.2.
Chi-Två Test Kapitel 6. Introduction Two statistical techniques are presented, to analyze nominal data. –A goodness-of-fit test for the multinomial experiment.
BUS 308 Entire Course (Ash Course) For more course tutorials visit BUS 308 Week 1 Assignment Problems 1.2, 1.17, 3.3 & 3.22 BUS 308.
BUS 308 Entire Course (Ash Course) FOR MORE CLASSES VISIT BUS 308 Week 1 Assignment Problems 1.2, 1.17, 3.3 & 3.22 BUS 308 Week 1.
The 2 nd to last topic this year!!.  ANOVA Testing is similar to a “two sample t- test except” that it compares more than two samples to one another.
Stat 251 (2009, Summer) Final Lab TA: Yu, Chi Wai.
Chapter 9 Hypothesis Testing: Single Population
BUS 308 HELPS Perfect Education/ bus308helps.com.
BUS 308 HELPS Education for Service-- bus308helps.com.
Statistical Analysis Determining the Significance of Data
STA 282 – Regression Analysis
Statistical Inference about Regression
Presentation transcript:

Analyzing financial data in an Introductory Statistics Course Kelly Fitzpatrick, CFA Assistant Professor of Mathematics County College of Morris

Abstract Students today are very brand savvy; they have their favorite cell phone company, coffee shop, social media outlet or clothing store. Many of these companies are publicly traded on an exchange and students will enjoy analyzing the dataset (prices or returns) of their favorite companies. This webinar will cover how to download financial data from Yahoo Finance and the Bureau of Labor Statistics. We will also cover a gambit of analysis tools that can be used to analyze financial data; from box and whisker plots, correlation and regression analysis to hypothesis testing. We will look at the effects of the Deep Horizon / BP Oil Spill of 2010, differences in Facebook and Apple stock and the domestic and international unemployment rates. Students will enjoy analyzing real world data that is interesting to them.

#2 Use Real Data #3 Stress conceptual understanding #4 Foster active learning in the classroom #5 Use technology for developing conceptual understanding and analyzing data Personalize and individualize your datasets GAISE Report Recommendations:

Objectives for this webinar How to download data from Yahoo Finance How to download data from Bureau of Labor Statistics How to analyze stock prices / stock returns How to analyze the unemployment rates Using financial data in the introductory statistics class Plotting Detection of outliers Binomial Probability Hypothesis Testing Correlation Analysis Regression Analysis Anova What topic are you most interested in covering today?

British Petroleum (BP) is the largest oil and gas producer in the United States and the second largest company in the United Kingdom. BP is one of the most widely held stocks in the United Kingdom, with about 30% of the population holding BP stock in their portfolios. Analyze the data below and investigate for yourself the effects that the 2010 oil spill in the Gulf of Mexico has had on the stock price. Price data for BP goes back as far as Analyzing the effects of BP Oil Spill

– Finance – Quote Lookup Go – Historical Prices

Scroll down to the bottom of the page and select “Download to Spreadsheet”

DateOpenHighLowCloseVolumeAdj Close 12/1/ /3/ /1/ /2/ /1/ /1/ /2/ /1/ /1/

Formatting issues that need to be addressed 1. Too much information- delete information that is not needed highlight columns that are not needed and delete them 2. Reverse chronological order- oldest price to most recent price select all of the data home tab – hit sort and filter – oldest to newest 3. Adding the daily returns =(today’s price – yesterdays price)/yesterdays price 4. Save the file in the format you need. CSV is the default DateOpenHighLowCloseVolumeAdj Close 12/1/ /3/ /1/ /2/ /1/ /1/ /2/ /1/ /1/ /3/ /3/ /2/

DateCloseReturns 1/3/ /1/ % 3/1/ % 4/3/ % 5/1/ % 6/1/ % 7/3/ % 8/1/ % 9/1/ % 10/2/ % 11/1/ % 12/1/ % 1/2/ % 2/1/ % 3/1/ % 4/2/ % 1.Deleted unnecessary information 2.Reverse chronological order-check it 3.Created the return column 4.Delete the first entry 5.Save the file in the format you need DateCloseReturns 2/1/ % 3/1/ % 4/3/ % 5/1/ % Editing the Source File

BP Returns Mean0% Standard Deviation.07 = 7%

Critical Value Test: If calculated r > cv data is ND.97 17<.993 conclude data is NOT ND

P(x=E).5 0 (1-.5) 5 The probability of success Success Part Failure Part The Combination Rule P(x=all failure) 3.13%

Breakeven If a stock’s return is down (negative) 30% in one month and the following month the stock’s return is up (positive) 30% are you back to your original value? 1. Yes 2. No

Analyzing the Unemployment Rates This is a “house hold survey”, door to door, n = 50,000 Reported monthly on the first Friday of the month Seasonally adjusted Three questions are asked: 1. Are you currently employed? 2. Are you not employed but actively looking for work? 3. Are you not employed and not actively looking for work? (not in the labor force) Students, stay at home moms, discouraged workers are considered not in the labor force

Calculating the Unemployment Rate 1. 18,000 are employed and currently working 2. 2,000 are not employed but looking 3. 30,000 are not in the labor force- stay at home moms, students, discouraged workers 4. The rate of unemployment will be = 2,000/(18,000+2,000) =.10 = 10%

- Data Tools – Top Pics

Labor Force Statistics from the Current Population Survey Original Data Value Series Id:LNS Seasonally Adjusted Series title:(Seas) Unemployment Rate Labor force status:Unemployment rate Type of data:Percent or rate Age:16 years and over Years: 2005 to 2015 YearJanFebMarAprMayJunJulAugSepOctNovDec Unformatted Dataset- Original File

YearAverage Editing the Source File 1.Deleted unnecessary information 2.Reverse chronological order-check it 3.Created the average column, simplify dataset 4.Save the file in the format you need

Looking at Boxplots for different time periods 1950s1960s1970's1980s1990s2000s

Hypothesis Testing Determine at a 5% significance level if the average monthly Unemployment rate from year 2010 is greater then the historical average of 5.7%. R Code for Student’s T-test: t.test(data, alternative = c(“greater"), mu = 5.7, conf.level = 0.95) One Sample t-test data: data t = , df = 10, p-value = 1.482e-14 alternative hypothesis: true mean is greater than percent confidence interval: Inf sample estimates: mean of x If the p-value < alpha reject the Null 0 <.05 Reject the Null Conclude: The average monthly unemployment rate in 2010 greater than the historical mean. YearJanFebMarAprMayJunJulAugSepOctNovDecAverage

Which Country has the highest unemployment rate in 2014? 1.Italy 2.France 3.Greece 4.Spain

Reference- “The Economist”, August 30 th 2014, page CountryUnemploymentRateInterestRate10YearMiseryIndexCountryUnemploymentRateInterestRate10YearMiseryIndex United States Russia China Sweden Japan Switzerland Britain Turkey Canada Australia Euroarea HongKong Austria India Belgium Malaysia France Pakistan Germany Singapore Greece SouthKorea Italy Taiwan Netherlands Thailand Spain Brazil CzechRepublic Chile Denmark Columbia Hungry Mexico Norway Venezuela Poland Isreal SouthAfrica

Analyzing a portfolio of stocks Data is from 1/2013 to 4/2013- daily returns AppleDisneyFacebookGeneralElecticTargetWalmart AppleDisneyFacebookGeneralElecticTargetWalmart Apple Disney Facebook GeneralElectic Target Walmart Raw Data Correlation Matrix

Regression Analysis-Anova You want to predict the price of Target what stock will give you the best results?

Top 20 Jobs for New Graduates Where do you think the job of “Statistician” ranks in the list of the top 20 jobs for new graduates based on mean salary, share of occupation that is under the age of 35 and projected job growth? 1. 1 st to 5 th 2. 6 th to 10 th th to 15 th th to 20 th

Jobs for statisticians are expected to grow 27% more than double the average of all other jobs.