Univariate Analysis Related Questions(Understanding and Visualizing Data with Python)

Question 1

Using the NHANES data and the previous notebook, the following questions will be about the variable BPXSY2 (with missing values remove). All answers should be rounded to the nearest decimal values (ex: 2.33 should be 2.3, 2.15 should be 2.2)

What is the median?

ANS. : 122.00


Question 2

What is the mean?

All answers should be rounded to the nearest decimal values (ex: 2.33 should be 2.3, 2.15 should be 2.2)

ANS. : 124.80


Question 3

What is the standard deviation?

All answers should be rounded to the nearest decimal values (ex: 2.33 should be 2.3, 2.15 should be 2.2)

ANS. : 18.5


Question 4

What is the max?

All answers should be rounded to the nearest decimal values (ex: 2.33 should be 2.3, 2.15 should be 2.2)

ANS. : 238.00


Question 5

What is the Interquartile Range (IQR)?

All answers should be rounded to the nearest decimal values (ex: 2.33 should be 2.3, 2.15 should be 2.2)

ANS. : 22.00


Question 6

Which of these will return descriptive statistics for a numeric Series ‘s’?


ANS. : s.describe()


Question 7

Select all that apply: Which will produce a histogram of the numeric Series ‘s’

ANS. : sns.distplot(a=s).set(title= "Histogram of s")

sns.distplot(a=s)

sns.distplot(s)


Question 8

How many rows of the DataFrame 'df' are shown with the following code:

df.head()

ANS.: 5

Question 9

What data is shown when the following code is run?

df.head(2)

ANS. : ROW 0 and 1

















Post a Comment

0 Comments