/* SAS Program to input Insurance data for Unit 1 Section 1 */ options ls=78 ps=50 nodate; data Insurance; input Person Expenditure: cExp = Expenditure - 500 ; datalines; 1 417 2 788 3 605 4 475 5 577 6 496 7 585 8 512 9 482 10 569 11 505 12 516 13 408 14 696 15 575 16 702 17 596 18 627 19 444 20 500 21 534 22 181 23 338 24 604 25 519 26 606 27 482 28 551 29 550 30 494 31 356 32 551 33 426 34 541 35 511 36 758 37 328 38 438 39 520 40 480 ; /* Compute basic statistics using the Univariate procedure */ proc univariate; var Expenditure cExp ; title " Insurance Problem 2 Unit 2 Section 1 "; run; /* Output follows */ Insurance Problem 2 Unit 2 Section 1 23 The UNIVARIATE Procedure Variable: Expenditure Moments N 40 Sum Weights 40 Mean 521.075 Sum Observations 20843 Std Deviation 114.648714 Variance 13144.3276 Skewness -0.254267 Kurtosis 1.54513689 Uncorrected SS 11373395 Corrected SS 512628.775 Coeff Variation 22.002344 Std Error Mean 18.1275533 Basic Statistical Measures Location Variability Mean 521.0750 Std Deviation 114.64871 Median 517.5000 Variance 13144 Mode 482.0000 Range 607.00000 Interquartile Range 103.50000 NOTE: The mode displayed is the smallest of 2 modes with a count of 2. Tests for Location: Mu0=0 Test -Statistic- -----p Value------ Student's t t 28.74492 Pr > |t| <.0001 Sign M 20 Pr >= |M| <.0001 Signed Rank S 410 Pr >= |S| <.0001 Quantiles (Definition 5) Quantile Estimate 100% Max 788.0 99% 788.0 95% 730.0 90% 661.5 75% Q3 581.0 50% Median 517.5 25% Q1 477.5 10% 382.0 5% 333.0 1% 181.0 Insurance Problem 2 Unit 2 Section 1 24 The UNIVARIATE Procedure Variable: Expenditure Quantiles (Definition 5) Quantile Estimate 0% Min 181.0 Extreme Observations ----Lowest---- ----Highest--- Value Obs Value Obs 181 22 627 18 328 37 696 14 338 23 702 16 356 31 758 36 408 13 788 2 Insurance Problem 2 Unit 2 Section 1 25 The UNIVARIATE Procedure Variable: cExp Moments N 40 Sum Weights 40 Mean 21.075 Sum Observations 843 Std Deviation 114.648714 Variance 13144.3276 Skewness -0.254267 Kurtosis 1.54513689 Uncorrected SS 530395 Corrected SS 512628.775 Coeff Variation 544.003387 Std Error Mean 18.1275533 Basic Statistical Measures Location Variability Mean 21.0750 Std Deviation 114.64871 Median 17.5000 Variance 13144 Mode -18.0000 Range 607.00000 Interquartile Range 103.50000 NOTE: The mode displayed is the smallest of 2 modes with a count of 2. Tests for Location: Mu0=0 Test -Statistic- -----p Value------ Student's t t 1.162595 Pr > |t| 0.2521 Sign M 4.5 Pr >= |M| 0.1996 Signed Rank S 102.5 Pr >= |S| 0.1551 Quantiles (Definition 5) Quantile Estimate 100% Max 288.0 99% 288.0 95% 230.0 90% 161.5 75% Q3 81.0 50% Median 17.5 25% Q1 -22.5 10% -118.0 5% -167.0 1% -319.0 Insurance Problem 2 Unit 2 Section 1 26 The UNIVARIATE Procedure Variable: cExp Quantiles (Definition 5) Quantile Estimate 0% Min -319.0 Extreme Observations ----Lowest---- ----Highest--- Value Obs Value Obs -319 22 127 18 -172 37 196 14 -162 23 202 16 -144 31 258 36 -92 13 288 2