Sie sind auf Seite 1von 4

Problem 2.

1: Roman Numerals


Obs name party start end age roman_numerals_age
1
Ford R MCMLXXIV MCMLXXVII 61 MCMXIII
2
Carter D MCMLXXVII MCMLXXXI 52 MCMXXV
3
Reagan R MCMLXXXI MCMLXXXIX 69 MCMXII
4
Bush41 R MCMLXXXIX MCMXCIII 64 MCMXXV
5
Clinton D MCMXCIII MMI 46 MCMXLVII
6
Bush43 R MMI MMIX 54 MCMXLVII
7
Obama D MMIX . 47 MCMLXII


Problem 2.2: Change in CPI relative to previous month( printed first 5 observations only)


Obs month date cpi change_in_cpi
1 1 15341 177.1 .
2 2 15372 177.8 0.7
3 3 15400 178.8 1.0
4 4 15431 179.8 1.0
5 5 15461 179.8 0.0


Problem 2.3: Consumer Price Index test the normality distribution assumption.


The SAS System

The UNIVARIATE Procedure
Variable: change_in_cpi

Moments
N 145 Sum Weights 145
Mean 0.3978 Sum Observations 57.681
Std Deviation 0.87823553 Variance 0.77129765
Skewness -1.1336079 Kurtosis 4.74175215

Moments
Uncorrected SS 134.012363 Corrected SS 111.066861
Coeff Variation 220.773135 Std Error Mean 0.07293349

Basic Statistical Measures
Location Variability
Mean 0.397800 Std Deviation 0.87824
Median 0.400000 Variance 0.77130
Mode 1.000000 Range 6.54800
Interquartile Range 1.09000

Tests for Location: Mu0=0
Test Statistic p Value
Student's t t 5.454284 Pr > |t| <.0001
Sign M 32.5 Pr >= |M| <.0001
Signed Rank S 2914 Pr >= |S| <.0001

Quantiles (Definition 5)
Quantile Estimate
100% Max 2.400
99% 2.183
95% 1.809
90% 1.334
75% Q3 1.000
50% Median 0.400
25% Q1 -0.090
10% -0.477
5% -0.878
1% -2.210
0% Min -4.148

Extreme Observations
Lowest Highest
Value Obs Value Obs
-4.148 83 1.853 63
-2.210 82 1.886 134

Extreme Observations
Lowest Highest
Value Obs Value Obs
-2.197 84 2.158 111
-1.600 47 2.183 78
-1.100 58 2.400 45

Missing Values
Missing
Value
Count Percent Of
All Obs Missing Obs
. 11 7.05 100.00







Conclusion- The distribution looks heavy tailed. Hence the change in CPI doesnt seem to follow a normal
distribution.


Problem 2.4-
a) The weight used to calculate the average age of presidents.


The MEANS Procedure

Analysis Variable : age
N Mean Std Dev
Minimu
m
Maximu
m
6 57.11428
57
22.51907
13
46.00000
00
69.000000
0




b) The data was initially sorted in descending for the variable party and then the average age was calculated
using weights.

party=D


Analysis Variable : age
N Mean Std Dev Minimum Maximum
2 48.0000000 9.7979590 46.0000000 52.0000000


party=R

Analysis Variable : age
N Mean Std Dev Minimum Maximum
4 61.8695652 17.5367110 54.0000000 69.0000000




Problem 2.5: The Average percentage of Californians who ride bike to work.



Analysis Variable : Bike_Share_of_Commuters Bike Share
of Commuters
N Mean Std Dev Minimum Maximum
439 1.0104833 405.1797391 0 16.6000000

Das könnte Ihnen auch gefallen