1
A SIMPLE VISUALIZATION OF THE STANDARD AND POORS 500 INDEX R User 2010 Conference Poster Session, NIST-MD, July 21st, 2010 Nadeem Faiz Chemical Analysis Group, Agilent Technologies Inc., Wilmington, DE We seek to answer the following question: Can we present in a simple visual manner a comparison of the recent S&P 500 Index with its historic performance? Nadeem is a Mass Spectrometer Manufacturing Engineering Manager at Agilent Technologies Inc.. R is used at Agilent in mining and analysis of mass-spec manufacturing and quality data. The content of this poster is unrelated to Agilent Technologies products and businesses. The S & P 500 Index The Standard and Poors 500 is an equity index that includes 500 leading companies in leading industries of the US economy. It represents 75% of US equities, is large cap focussed, and is often a proxy for the total market [1] The S&P 500 Index is a capitalization-weighted index. It is calculated as below [2] The Index Divisor scales the 500 company market value (on 7-2-2010 9.3 T$) to a more manageable number which is the Index Value (currently 1030). The Index Divisor is adjusted to smooth the S&P 500 Index to additions or deletions of companies and to other Index maintenance activities [2] [1] “S & P 500 Indices”, http://www.standardandpoors.com/indices/sp-500 [2] “S&P Indices: Index Mathematics Index Methodology”, May 11, 2010, Index Services, https://www.sp-indexdata.com w T i S T i S W To in ST T in ST W Comparing the Index with Historical Performance Is the Index on any particular day within the range of historical performance? is it lagging historic performance? or is it leading historical performance? To answer this question we calculate box plot parameters on the amount of change n the index for a given time period and then compare with the change on that day. TEP 1 The relative change in the index is calculated for a range of time intervals. If i is the nterval in days, relative change on day j i Δ j is as TEP 2 When repeated for each day in the index the following dataset results: 1/2/1980 5/19/1983 10/7/1986 2/23/1990 7/13/1993 11/26/1996 4/18/2000 9/16/2003 2/8/2007 6/30/2010 521 1043 1565 S&P 500 Cartesian Plot: Crash of 2009 105 1030 < 10th percentile in 10th to 25th percentile in 25th to 75th percentile in 75th to 90th percentile > 90th percentile 20 50 100 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 3/9/2009 20 50 100 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 9/1/2000 20 50 100 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 6/30/2010 -1.0 -0.5 0.0 0.5 1.0 -1.0 -0.5 0.0 0.5 1.0 20 50 100 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 S&P 500 Radial Plot: Crash of 2009 10% 25% median mean 75% 90% 3/9/2009 9/1/2000 6/30/2010 S C S R 4 C S F { S C a STEP 3 Calculate statistics such as mean, median, 10 th , 25 th , 75 th , and 90 th percentiles on S i . STEP 4 Repeat Steps 1 to 2 for several time intervals (in days) {20,50,100,200, 400,800,1000,1200,..,2400} resulting in several datasets {S 20 ,S 50 ,S 100 ,..,S 2200 ,S 2400 }. Calculate statistics as in Step 3 on datasets {S 20 ,S 50 ,S 100 ,..,S 2200 ,S 2400 }. STEP 5 For the given date calculate the relative change values for all intervals. { 20 Δ 7-2-2010 , 50 Δ 7-2-2010 , 100 Δ 7-2-2010 ,.., 2200 Δ 7-2-2010 , 2400 Δ 7-2-2010 } STEP 6 Comparing the relative change values in STEP 5 against the statistics in STEP 4, allows a conclusion on the index lagging or leading the historical performance. 0.2 0.4 0.6 0.8 1.0 20 D 100 D 400 D 800 D 1200 D 1600 D 2000 D 2400 D 50 D 200 D 600 D 1000 D 1400 D 1800 D 2200 D 3/9/2009 9/1/2000 20 50 100 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 1/2/1980 5/19/1983 10/7/1986 2/23/1990 7/13/1993 11/26/1996 4/18/2000 9/16/2003 2/8/2007 6/30/2010 S&P 500 Run Chart: Crash of 2009 < 10th percentile in 10th to 25th percentile in 25th to 75th percentile in 25th to 75th percentile in 75th to 90th percentile > 90th percentile 3/9/2009 9/1/2000 20 50 100 200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 1/2/1980 5/19/1983 10/7/1986 2/23/1990 7/13/1993 11/26/1996 4/18/2000 9/16/2003 2/8/2007 6/30/2010 S&P 500 Heat Chart: Crash of 2009 < 10th percentile in 10th to 25th percentile in 25th to 75th percentile in 25th to 75th percentile in 75th to 90th percentile > 90th percentile STEP 7 The data in STEP 6 is plotted in a various graphs to visualize the performance. RADIAL PLOTS Each dataset Si is plotted on a radial axis. All datasets are normalized to unit length. The mean, median and other statistics are plotted along the radial axis. The data from STEP 5 is similarly normalized and each interval is plotted along that axis. HEAT MAPS The entire dataset is plotted in horizontal plots, each individual plot representing one time interval. A vertical line of unit height and fixed width is plotted in 5 different colors. Green if it lies within the 25 th and 75 th percentiles, Blue if between 75 th and 90 th percentile, Grey if between 10 th and 25 th percentile, Black if less than the 10 th percentile or Red if greater than the 90 th percentile (i.e the outliers). RUN CHARTS The entire normalized dataset value is plotted in 5 different colors chosen as in Heat Maps. Each plot represents one dataset, and plots are stacked vertically.

The S & P 500 Index Comparing the Index with Historical ...€¦ · A SIMPLE VISUALIZATION OF THE STANDARD AND POORS 500 INDEX R User 2010 Conference Poster Session, NIST-MD, July

  • Upload
    others

  • View
    11

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The S & P 500 Index Comparing the Index with Historical ...€¦ · A SIMPLE VISUALIZATION OF THE STANDARD AND POORS 500 INDEX R User 2010 Conference Poster Session, NIST-MD, July

A SIMPLE VISUALIZATION OF THE STANDARD AND POORS 500 INDEX

R User 2010 Conference Poster Session, NIST-MD, July 21st, 2010

Nadeem FaizChemical Analysis Group, Agilent Technologies Inc., Wilmington, DE

We seek to answer the following question:

Can we present in a simple visual manner a comparison of the recent S&P 500 Index with its historic performance?

Nadeem is a Mass Spectrometer Manufacturing Engineering Manager at Agilent Technologies Inc.. R is used at Agilent in mining and analysis of mass-spec manufacturing and quality data.

The content of this poster is unrelated to Agilent Technologies products and businesses.

A SIMPLE VISUALIZATION OF THE STANDARD AND POORS 500 INDEX

R User 2010 Conference Poster Session, NIST-MD, July 21st, 2010

Nadeem FaizChemical Analysis Group, Agilent Technologies Inc., Wilmington, DE

We seek to answer the following question:

Can we present in a simple visual manner a comparison of the recent S&P 500 Index with its historic performance?

Nadeem is a Mass Spectrometer Manufacturing Engineering Manager at Agilent Technologies Inc.. R is used at Agilent in mining and analysis of mass-spec manufacturing and quality data.

The content of this poster is unrelated to Agilent Technologies products and businesses.

The S & P 500 Index

The Standard and Poors 500 is an equity index that includes 500 leading companies in leading industries of the US economy. It represents 75% of US equities, is large cap focussed, and is often a proxy for the total market [1]

The S&P 500 Index is a capitalization-weighted index. It is calculated as below

[2]

The Index Divisor scales the 500 company market value (on 7-2-2010 9.3 T$) to a more manageable number which is the Index Value (currently 1030). The Index Divisor is adjusted to smooth the S&P 500 Index to additions or deletions of companies and to other Index maintenance activities [2]

[1] “S & P 500 Indices”, http://www.standardandpoors.com/indices/sp-500 [2] “S&P Indices: Index Mathematics Index Methodology”, May 11, 2010, Index Services, https://www.sp-indexdata.com

The S & P 500 Index

The Standard and Poors 500 is an equity index that includes 500 leading companies in leading industries of the US economy. It represents 75% of US equities, is large cap focussed, and is often a proxy for the total market [1]

The S&P 500 Index is a capitalization-weighted index. It is calculated as below

[2]

The Index Divisor scales the 500 company market value (on 7-2-2010 9.3 T$) to a more manageable number which is the Index Value (currently 1030). The Index Divisor is adjusted to smooth the S&P 500 Index to additions or deletions of companies and to other Index maintenance activities [2]

[1] “S & P 500 Indices”, http://www.standardandpoors.com/indices/sp-500 [2] “S&P Indices: Index Mathematics Index Methodology”, May 11, 2010, Index Services, https://www.sp-indexdata.com

Comparing the Index with Historical Performance

Is the Index on any particular day within the range of historical performance? is it lagging historic performance? or is it leading historical performance?

To answer this question we calculate box plot parameters on the amount of change in the index for a given time period and then compare with the change on that day.

STEP 1

The relative change in the index is calculated for a range of time intervals. If i is the

interval in days, relative change on day j iΔj is as

STEP 2When repeated for each day in the index the following dataset results:

Comparing the Index with Historical Performance

Is the Index on any particular day within the range of historical performance? is it lagging historic performance? or is it leading historical performance?

To answer this question we calculate box plot parameters on the amount of change in the index for a given time period and then compare with the change on that day.

STEP 1

The relative change in the index is calculated for a range of time intervals. If i is the

interval in days, relative change on day j iΔj is as

STEP 2When repeated for each day in the index the following dataset results:

Comparing the Index with Historical Performance

Is the Index on any particular day within the range of historical performance? is it lagging historic performance? or is it leading historical performance?

To answer this question we calculate box plot parameters on the amount of change in the index for a given time period and then compare with the change on that day.

STEP 1

The relative change in the index is calculated for a range of time intervals. If i is the

interval in days, relative change on day j iΔj is as

STEP 2When repeated for each day in the index the following dataset results:

1/2/1980 5/19/1983 10/7/1986 2/23/1990 7/13/1993 11/26/1996 4/18/2000 9/16/2003 2/8/2007 6/30/2010

521

1043

1565

S&P 500 Cartesian Plot: Crash of 2009

105

1030

< 10th percentilein 10th to 25th percentilein 25th to 75th percentilein 75th to 90th percentile> 90th percentile

205010020040060080010001200140016001800200022002400

3/9/2009

2050

10020040060080010001200140016001800200022002400

9/1/2000

2050100200

40060080010001200140016001800200022002400

6/30/2010

-1.0 -0.5 0.0 0.5 1.0

-1.0

-0.5

0.0

0.5

1.0

2050

100

200

400

600

800

1000

1200

1400

1600

1800

2000

2200

2400

S&P 500 Radial Plot: Crash of 2009

10%25%medianmean75%90%

3/9/20099/1/20006/30/2010

STEP 3Calculate statistics such as mean, median, 10th, 25th, 75th, and 90th percentiles on Si.

STEP 4Repeat Steps 1 to 2 for several time intervals (in days) {20,50,100,200, 400,800,1000,1200,..,2400} resulting in several datasets {S20,S50,S100,..,S2200,S2400}. Calculate statistics as in Step 3 on datasets {S20,S50,S100,..,S2200,S2400}.

STEP 5For the given date calculate the relative change values for all intervals.

{20Δ7-2-2010, 50Δ7-2-2010, 100Δ7-2-2010,.., 2200Δ7-2-2010, 2400Δ7-2-2010}

STEP 6Comparing the relative change values in STEP 5 against the statistics in STEP 4, allows a conclusion on the index lagging or leading the historical performance.

0.20.4

0.60.8

1.0

20 D 100 D 400 D 800 D 1200 D 1600 D 2000 D 2400 D

50 D 200 D 600 D 1000 D 1400 D 1800 D 2200 D

STEP 3Calculate statistics such as mean, median, 10th, 25th, 75th, and 90th percentiles on Si.

STEP 4Repeat Steps 1 to 2 for several time intervals (in days) {20,50,100,200, 400,800,1000,1200,..,2400} resulting in several datasets {S20,S50,S100,..,S2200,S2400}. Calculate statistics as in Step 3 on datasets {S20,S50,S100,..,S2200,S2400}.

STEP 5For the given date calculate the relative change values for all intervals.

{20Δ7-2-2010, 50Δ7-2-2010, 100Δ7-2-2010,.., 2200Δ7-2-2010, 2400Δ7-2-2010}

STEP 6Comparing the relative change values in STEP 5 against the statistics in STEP 4, allows a conclusion on the index lagging or leading the historical performance.

0.20.4

0.60.8

1.0

20 D 100 D 400 D 800 D 1200 D 1600 D 2000 D 2400 D

50 D 200 D 600 D 1000 D 1400 D 1800 D 2200 D

3/9/20099/1/2000

20

50

100

200

400

600

800

1000

1200

1400

1600

1800

2000

2200

2400

1/2/1980 5/19/1983 10/7/1986 2/23/1990 7/13/1993 11/26/1996 4/18/2000 9/16/2003 2/8/2007 6/30/2010

S&P 500 Run Chart: Crash of 2009

< 10th percentilein 10th to 25th percentilein 25th to 75th percentile

in 25th to 75th percentilein 75th to 90th percentile> 90th percentile

3/9/20099/1/2000

20

50

100

200

400

600

800

1000

1200

1400

1600

1800

2000

2200

2400

1/2/1980 5/19/1983 10/7/1986 2/23/1990 7/13/1993 11/26/1996 4/18/2000 9/16/2003 2/8/2007 6/30/2010

S&P 500 Run Chart: Crash of 2009

< 10th percentilein 10th to 25th percentilein 25th to 75th percentile

in 25th to 75th percentilein 75th to 90th percentile> 90th percentile

3/9/20099/1/2000

20

50

100

200

400

600

800

1000

1200

1400

1600

1800

2000

2200

2400

1/2/1980 5/19/1983 10/7/1986 2/23/1990 7/13/1993 11/26/1996 4/18/2000 9/16/2003 2/8/2007 6/30/2010

S&P 500 Heat Chart: Crash of 2009

< 10th percentilein 10th to 25th percentilein 25th to 75th percentile

in 25th to 75th percentilein 75th to 90th percentile> 90th percentile

3/9/20099/1/2000

20

50

100

200

400

600

800

1000

1200

1400

1600

1800

2000

2200

2400

1/2/1980 5/19/1983 10/7/1986 2/23/1990 7/13/1993 11/26/1996 4/18/2000 9/16/2003 2/8/2007 6/30/2010

S&P 500 Heat Chart: Crash of 2009

< 10th percentilein 10th to 25th percentilein 25th to 75th percentile

in 25th to 75th percentilein 75th to 90th percentile> 90th percentile

3/9/20099/1/2000

20

50

100

200

400

600

800

1000

1200

1400

1600

1800

2000

2200

2400

1/2/1980 5/19/1983 10/7/1986 2/23/1990 7/13/1993 11/26/1996 4/18/2000 9/16/2003 2/8/2007 6/30/2010

S&P 500 Heat Chart: Crash of 2009

< 10th percentilein 10th to 25th percentilein 25th to 75th percentile

in 25th to 75th percentilein 75th to 90th percentile> 90th percentile

STEP 7The data in STEP 6 is plotted in a various graphs to visualize the performance.

RADIAL PLOTSEach dataset Si is plotted on a radial axis. All datasets are normalized to unit length.

The mean, median and other statistics are plotted along the radial axis. The data from STEP 5 is similarly normalized and each interval is plotted along that axis.

HEAT MAPSThe entire dataset is plotted in horizontal plots, each individual plot representing one time interval. A vertical line of unit height and fixed width is plotted in 5 different colors. Green if it lies within the 25th and 75th percentiles, Blue if between 75th and 90th percentile, Grey if between 10th and 25th percentile, Black if less than the 10th percentile or Red if greater than the 90th percentile (i.e the outliers).

RUN CHARTSThe entire normalized dataset value is plotted in 5 different colors chosen as in Heat Maps. Each plot represents one dataset, and plots are stacked vertically.