Rmstassignment

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 23

Assignment

Data Analysis for given data & Accident.sav:

Name: Rohit Adhari


Roll No:MC-I-01
Class: FY-MCA
DIV-A
Analysis
1.Descriptive Stastics
a.Descriptives
DESCRIPTIVES VARIABLES=accid gender
/STATISTICS=MEAN STDDEV MIN MAX.

Descriptives

Descriptive Statistics

N Minimum Maximum Mean Std. Deviation


Accidents 6 54123 66804 60801.33 5063.533
Gender 6 0 1 .50 .548
Valid N (listwise) 6

b.Frequency
GET
FILE='C:\Program Files\IBM\SPSS\Statistics\25\Samples\English\accidents.sav'
.
DATASET NAME DataSet1 WINDOW=FRONT.
FREQUENCIES VARIABLES=accid agecat
/ORDER=ANALYSIS.

Frequencies
[DataSet1] C:\Program Files\IBM\SPSS\Statistics\25\Samples\English\accidents.s
av

Statistics

Accidents Age category


N Valid 6 6
Missing 0 0

Frequency Table

Accidents

Cumulative
Frequency Percent Valid Percent Percent
Valid 54123 1 16.7 16.7 16.7
57113 1 16.7 16.7 33.3
57997 1 16.7 16.7 50.0
63936 1 16.7 16.7 66.7
64835 1 16.7 16.7 83.3
66804 1 16.7 16.7 100.0
Total 6 100.0 100.0

Age category

Cumulative
Frequency Percent Valid Percent Percent
Valid Under 21 2 33.3 33.3 33.3
21-25 2 33.3 33.3 66.7
26-30 2 33.3 33.3 100.0
Total 6 100.0 100.0
/ORDER=ANALYSIS.

Frequencies

Statistics

Accidents Age category


N Valid 6 6
Missing 0 0

Frequency Table

Accidents

Cumulative
Frequency Percent Valid Percent Percent
Valid 54123 1 16.7 16.7 16.7
57113 1 16.7 16.7 33.3
57997 1 16.7 16.7 50.0
63936 1 16.7 16.7 66.7
64835 1 16.7 16.7 83.3
66804 1 16.7 16.7 100.0
Total 6 100.0 100.0

Age category

Cumulative
Frequency Percent Valid Percent Percent
Valid Under 21 2 33.3 33.3 33.3
21-25 2 33.3 33.3 66.7
26-30 2 33.3 33.3 100.0
Total 6 100.0 100.0

c.Ratio
RATIO STATISTICS gender WITH accid BY pop (ASCENDING)
/MISSING=EXCLUDE
/PRINT=COD MDCOV PRD.

Ratio Statistics

Case Processing Summary


Count Percent
Population at risk 187791 1 16.7%
195714 1 16.7%
198522 1 16.7%
200744 1 16.7%
203200 1 16.7%
208239 1 16.7%
Overall 6 100.0%
Excluded 0
Total 6

Ratio Statistics for Gender / Accidents

Coefficient of
Variation
Price Related Coefficient of Median
Group Differential Dispersion Centered
187791 . . .
195714 . . .
198522 1.000 .000 .
200744 1.000 .000 .
203200 1.000 .000 .
208239 . . .
Overall 1.079 1.029 112.9%

2.Scale
a.Reliablity Analysis
RELIABILITY

/VARIABLES=gender accid
/SCALE('ALL VARIABLES') ALL
/MODEL=ALPHA.

Reliability

Scale: ALL VARIABLES


Case Processing Summary
N %
Cases Valid 6 100.0
a
Excluded 0 .0
Total 6 100.0
a. Listwise deletion based on all variables in the procedure.

Reliability Statistics
Cronbach's
a
Alpha N of Items
.000 2

a. The value is negative due to a negative average covariance among


items. This violates reliability model assumptions. You may want to
check item codings.

3.Compare Means
a.Means
MEANS TABLES=accid BY gender
/CELLS=MEAN COUNT STDDEV.

Means

Case Processing Summary


Cases
Included Excluded Total
N Percent N Percent N Percent
Accidents * Gender 6 100.0% 0 0.0% 6 100.0%

Report

Accidents
Gender Mean N Std. Deviation
Male 65191.67 3 1466.889
Female 56411.00 3 2030.166
Total 60801.33 6 5063.533

b.One Sample T Test


T-TEST
/TESTVAL=0
/MISSING=ANALYSIS
/VARIABLES=agecat accid gender
/CRITERIA=CI(.95).

T-Test

One-Sample Statistics

N Mean Std. Deviation Std. Error Mean


Age category 6 2.00 .894 .365
Accidents 6 60801.33 5063.533 2067.179
Gender 6 .50 .548 .224

One-Sample Test

Test Value = 0
95% Confidence Interval of the
Difference
Mean
t df Sig. (2-tailed) Difference Lower Upper
Age category 5.477 5 .003 2.000 1.06 2.94
Accidents 29.413 5 .000 60801.333 55487.48 66115.19
Gender 2.236 5 .076 .500 -.07 1.07
4.Correlate
a.Bivariate
CORRELATIONS
/VARIABLES=agecat accid pop
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.

Correlations

Correlations

Population at
Age category Accidents risk
Age category Pearson Correlation 1 -.044 .728
Sig. (2-tailed) .933 .101
N 6 6 6
Accidents Pearson Correlation -.044 1 -.106
Sig. (2-tailed) .933 .841
N 6 6 6
Population at risk Pearson Correlation .728 -.106 1
Sig. (2-tailed) .101 .841
N 6 6 6

b.Partial
PARTIAL CORR
/VARIABLES=gender accid BY agecat pop
/SIGNIFICANCE=TWOTAIL
/MISSING=LISTWISE.

Partial Corr

Correlations

Control Variables Gender Accidents


Age category & Population Gender Correlation 1.000 -1.000
at risk
Significance (2-tailed) . .000
df 0 2
Accidents Correlation -1.000 1.000
Significance (2-tailed) .000 .
df 2 0

c.Distances
PROXIMITIES gender pop
/VIEW=CASE
/MEASURE=EUCLID
/STANDARDIZE=NONE.

Proximities

Case Processing Summary


Cases
Valid Missing Total
N Percent N Percent N Percent
6 100.0% 0 0.0% 6 100.0%

Proximity Matrix
Euclidean Distance
1 2 3 4 5 6
1 .000 4678.000 2222.000 10731.000 2808.000 9717.000
2 4678.000 .000 2456.000 15409.000 7486.000 5039.000
3 2222.000 2456.000 .000 12953.000 5030.000 7495.000
4 10731.000 15409.000 12953.000 .000 7923.000 20448.000
5 2808.000 7486.000 5030.000 7923.000 .000 12525.000
6 9717.000 5039.000 7495.000 20448.000 12525.000 .000
This is a dissimilarity matrix
d.Canonical Correlation
STATS CANCORR SET1=agecat SET2=accid pop
/OPTIONS COMPUTECVARS=NO
/PRINT PAIRWISECORR=NO LOADINGS=YES VARPROP=YES COEFFICIENTS=YES.

Canonical Correlations
[DataSet1] C:\Program Files\IBM\SPSS\Statistics\25\Samples\English\accidents.s
av

Canonical Correlations
Settings
Values

Set 1 Variables agecat


Set 2 Variables accid pop
Centered Dataset None
Scoring Syntax None
Correlations Used for 1
Scoring

Canonical Correlations
Correlation Eigenvalue Wilks Statistic F Num D.F Denom D.F. Sig.
1 .728 1.130 .470 . . . .
H0 for Wilks test is that the correlations in the current and following rows are zero

Set 1
Standardized
Canonical
Correlation
Coefficients
Variable 1

1.000
agecat
Set 2
Standardized
Canonical
Correlation
Coefficients
Variable 1

accid .046
pop 1.004

Set 1
Unstandardized
Canonical
Correlation
Coefficients
Variable 1

1.118
agecat

Set 2
Unstandardized
Canonical
Correlation
Coefficients
Variable 1

accid .000
pop .000

Set 1 Canonical
Loadings
Variable 1

1.000
agecat

Set 2 Canonical
Loadings
Variable 1

accid -.061
pop .999
Set 1 Cross
Loadings
Variable 1

.728
agecat

Set 2 Cross
Loadings
Variable 1

accid -.044
pop .728

Proportion of Variance Explained

Canonical Variable Set 1 by Self Set 1 by Set 2 Set 2 by Self Set 2 by Set 1
1 1.000 .530 .501 .266

STATS CANCORR SET1=agecat SET2=accid


/OPTIONS COMPUTECVARS=NO
/PRINT PAIRWISECORR=NO LOADINGS=YES VARPROP=YES COEFFICIENTS=YES.

Messages

Warnings
The requested canonical correlations could not be computed due
to singularity or missing data.

5.Regression
a.Linear
Your temporary usage period for IBM SPSS Statistics will expire in 4440 days.

GET
FILE='C:\Program Files\IBM\SPSS\Statistics\25\Samples\English\accidents.sav'
.
DATASET NAME DataSet1 WINDOW=FRONT.
REGRESSION
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT agecat
/METHOD=ENTER accid.

Regression
[DataSet1] C:\Program Files\IBM\SPSS\Statistics\25\Samples\English\accidents.s
av

a
Variables Entered/Removed
Variables Variables
Model Entered Removed Method
b
1 Accidents . Enter

a. Dependent Variable: Age category


b. All requested variables entered.

Model Summary
Adjusted R Std. Error of the
Model R R Square Square Estimate
a
1 .044 .002 -.248 .999

a. Predictors: (Constant), Accidents


ANOVA
a

Sum of
Model Squares df Mean Square F Sig.
b
1 Regression .008 1 .008 .008 .933
Residual 3.992 4 .998
Total 4.000 5
a. Dependent Variable: Age category
b. Predictors: (Constant), Accidents

Coeffi
a
cients
Standardized
Unstandardized Coefficients Coefficients
Model B Std. Error Beta t Sig.
1 (Constant) 2.477 5.380 .460 .669
Accidents -7.847E-6 .000 -.044 -.089 .933
a. Dependent Variable: Age category

b.Curve Estimation
* Curve Estimation.
TSET NEWVAR=NONE.
CURVEFIT
/VARIABLES=agecat accid WITH pop
/CONSTANT
/MODEL=LINEAR
/PLOT FIT
/ID=gender.

Curve Fit

Model Description

Model Name MOD_1


Dependent Variable 1 Age category
2 Accidents
Equation 1 Linear
Independent Variable Population at risk
Constant Included
Variable Whose Values Label Observations in Plots Gender

Case Processing Summary

Total Cases 6
a
Excluded Cases 0
Forecasted Cases 0
Newly Created Cases 0
a. Cases with a missing value in any variable are excluded from the analysis.
c.Non Linear
GET
FILE='C:\Program Files\IBM\SPSS\Statistics\25\Samples\English\accidents.sav'
.
DATASET NAME DataSet2 WINDOW=FRONT.
* NonLinear Regression.
MODEL PROGRAM A=50 B=0.5.

COMPUTE PRED_=A*EXP(B*gender).
NLR accid

/OUTFILE='C:\Users\rohit\AppData\Local\Temp\spss796\SPSSFNLR.TMP'
/PRED PRED_
/CRITERIA SSCONVERGENCE 1E-8 PCON 1E-8.
Nonlinear Regression Analysis
[DataSet2] C:\Program Files\IBM\SPSS\Statistics\25\Samples\English\accidents.s
av

b
Iteration History
Parameter
Residual Sum
a
Iteration Number of Squares A B
1.0 2.226E+10 50.000 .500
1.1 1.855E+68 4733.192 69.585
1.2 3.098E+12 499.124 7.671
1.3 2.216E+10 95.599 1.233
2.0 2.216E+10 95.599 1.233
2.1 2.201E+10 142.527 1.630
3.0 2.201E+10 142.527 1.630
3.1 2.172E+10 204.837 1.999
4.0 2.172E+10 204.837 1.999
4.1 2.119E+10 288.520 2.356
5.0 2.119E+10 288.520 2.356
5.1 2.024E+10 399.824 2.704
6.0 2.024E+10 399.824 2.704
6.1 1.865E+10 543.664 3.034
7.0 1.865E+10 543.664 3.034
7.1 1.599E+10 749.897 3.385
8.0 1.599E+10 749.897 3.385
8.1 1.283E+10 1045.227 3.737
b
Iteration History

Parameter
Residual Sum
a
Iteration Number of Squares A B
9.0 1.283E+10 1045.227 3.737
9.1 1.218E+10 1594.351 3.508
10.0 1.218E+10 1594.351 3.508
10.1 1.190E+10 2576.237 2.965
11.0 1.190E+10 2576.237 2.965
11.1 1.138E+10 3720.183 2.659
12.0 1.138E+10 3720.183 2.659
12.1 1.065E+10 6033.334 2.106
13.0 1.065E+10 6033.334 2.106
13.1 9214861794 10582.253 1.495
14.0 9214861794 10582.253 1.495
14.1 6585765682 19772.404 .824
15.0 6585765682 19772.404 .824
15.1 2649799095 38212.692 .144
16.0 2649799095 38212.692 .144
16.1 173294123.1 65191.667 -.284
17.0 173294123.1 65191.667 -.284
17.1 13534805.04 65191.667 -.135
18.0 13534805.04 65191.667 -.135
18.1 12546697.56 65191.667 -.145
19.0 12546697.56 65191.667 -.145
19.1 12546672.67 65191.667 -.145
20.0 12546672.67 65191.667 -.145
20.1 12546672.67 65191.667 -.145
Derivatives are calculated numerically.
a. Major iteration number is displayed to the left of the decimal, and minor iteration number is to the right of the
decimal.
b. Run stopped after 42 model evaluations and 20 derivative evaluations because the relative reduction between
successive residual sums of squares is at most SSCON = 1.000E-8, and the relative reduction between successive
parameter estimates is at most PCON = 1.000E-8.
Parameter Estimates
95% Confidence Interval
Parameter Estimate Std. Error Lower Bound Upper Bound
A 65191.667 1022.524 62352.684 68030.649
B -.145 .024 -.211 -.078

Correlations of
Parameter
Estimates

A B
A 1.000 -.654
B -.654 1.000

a
ANOVA
Sum of
Source Squares df Mean Squares
Regression 2.230E+10 2 1.115E+10
Residual 12546672.67 4 3136668.167
Uncorrected Total 2.231E+10 6
Corrected Total 128196833.3 5
Dependent variable: Accidents
a. R squared = 1 - (Residual Sum of Squares) / (Corrected Sum of
Squares) = .902.

d.Weight Estimation
* Weight Estimation.
TSET NEWVAR=NONE.

WLS agecat WITH accid


/SOURCE agecat
/POWER -2 TO 2 BY 0.5
/CONSTANT
/PRINT BEST.

Weighted Least Squares Analysis


Power Summary

Log-Likelihood Valuesb

a
Power -2.000 -6.921
-1.500 -7.078
-1.000 -7.249
-.500 -7.402
.000 -7.508
.500 -7.539
1.000 -7.482
1.500 -7.336
2.000 -7.114
a. The corresponding power is selected for further analysis because it maximizes the log-likelihood function.
b. Dependent variable: agecat, source variable: agecat

Best Model Statistics

Model Description
Dependent Variable agecat
Independent Variables 1 accid
Weight Source agecat
Power Value -2.000
Model: MOD_2.
Model Summary
Multiple R .040
R Square .002
Adjusted R Square -.248
Std. Error of the Estimate 1.646
Log-likelihood Function -6.921
Value

ANOVA

Sum of
Squares df Mean Square F Sig.
Regression .018 1 .018 .007 .939
Residual 10.839 4 2.710
Total 10.857 5

Coefficients
Unstandardized Coefficients Standardized Coefficients
B Std. Error Beta Std. Error t Sig.
(Constant) 2.847 3.414 .834 .451
accid -4.540E-6 .000 -.040 .500 -.081 .939

You might also like