0% found this document useful (0 votes)
1 views

Assignment 1, Question 2a and b

answer for the assignment

Uploaded by

dkbubw16
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Assignment 1, Question 2a and b

answer for the assignment

Uploaded by

dkbubw16
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

A/ Make a table of summary statistics for continuous variables.

Solution:
*Because “qid” miss some of the data, so we don’t include it in the table, we only use the data
from “income”, “age_wife”, “age_husband”, “hhsize”, “children, expense”

-Step: Data -> Data Analysis -> Descriptive Statistics -> Choose the Input Range for the
categorical variable-> Tick Summary statistics -> Repeat the process for the remaining
categorical variables.

Income Age_wife Age_Husban hhsize Children Expense


d

Mean 16.333 45.554 48.860 4.778 7.982 11.938

Standard 0.767 0.507 0.495 0.105 0.589 0.496


Error

Median 12.500 45.000 49.000 4.000 0.000 10.000

Mode 12.500 40.000 50.000 4.000 0.000 10.000

Standard 16.985 11.229 10.975 2.316 13.051 10.986


Deviation

Sample 288.487 126.092 120.456 5.365 170.338 120.685


Variance

Kurtosis 22.690 -0.176 -0.075 20.437 1.464 117.246

Skewness 3.761 0.324 0.223 3.235 1.510 8.576

Range 180.000 64.000 59.000 24.000 60.000 179.000

Minimum 0.000 22.000 26.000 1.000 0.000 1.000

Maximum 180.000 86.000 85.000 25.000 60.000 180.000

Sum 8002.940 22367.00 23990.052 2346.000 3919.223 5849.500


0

Count 490.000 491.000 491.000 491.000 491.000 490.000


B/ Produce contingency tables for each of the categorical/dummy variables.

Solution:
-Chose the column (“occupation_husband”/”occupation_wife”) -> Insert -> Pivot Table -> OK -
>Drag the categorical variable (“occupation_husband”/”occupation_wife”) into the “Rows” and
“Value” area -> Repeat the process for the remain categorical variable.

Row Labels Count of occupation_husband

Giao thong van tai, du lich 43

HSSV huu tri, that nghiep, noi tro 75

Khac 72

Lao dong pho thong 123

Lao dong tu do, quan ly 81

Nhan vien van phong, giao vien, chuyen gia 97

Grand Total 491

Row Labels Count of occupation_wife

Hoc sinh, sinh vien, huu tri, that nghiep 30

Lao dong pho thong 96

Nhan vien van phong, giao vien, chuyen gia 177

Noi tro 56

Tu do kinh doanh, quan ly 132

Grand Total 491

You might also like