Q. Define the following terms: Median, Standard Deviation and variance.


Answer :-


The median() function :-

Function median() returns the middle number from a set of numbers. It returns the median value that separates the higher half from the lower half of a set of values. The syntax for using the function median() is:

<dataframe>.median (axis = None, skipna = None, numeric_only = None)
The median() returns the median of the values for the requested axis.

The std() Function:-

The std() function computes the standard deviation over requested axis.
The syntax for using the std() function is:

<dataframe>.std (axis = None, skipna = None, numeric_only = None,)

Parameters:-
axis :- {index (0), columns (1)} default 0
skipna :- boolean, default True; Exclude NA/null/NaN values. If an entire row/column is NA, the result will be NA
numeric_only :- boolean, default None; Include only float, int, boolean columns. If None, will attempt to use everything, than use only numeric data.

The var() Function :-

The var() function computes variance and returns the unbiased variance over the requested axis. The syntax for using the var() function is:

<dataframe>.var (axis = None, skipna = None, numeric_only = None,)

Parameters :-
axis :- (index (0), columns (1)) default 0
skipna :- boolean, default True; Exclude NA/null values. If an entire row/column is NA, the result will be NA
numeric_only :- boolean, default None; Include only float, int, boolean columns. If None, will attempt to use everything, then use only numeric data.

1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Population Variance

    is the sum of the squares of the differences between each data value and the mean, divided by the number of data values.

    Population Standard Deviation

    is the square root of variance

    Mean : is the arithmetic average of data values

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post