Datasets:
 
Why to Study Datasets

• To identify the pattern of data, which may lead to useful insights

• Data helps us to support our claims

• Backtrack a prediction

• Useful for Prediction and Forecasting

Types of Data depends on its collection

• Primary Data

 Collected specifically for the problems

 Collected through interviews, questionaries'

• Secondary Data:

 Collected through others research, internet information, historical information etc


Data as a Variable:

1. Quantitative Variable:

We can describe this type of variable as numbers. We should be able to perform all mathematical calculation using this type of variable

2. Qualitative Variables:

Records a Quality (Good, Better, Best, Excellent, Outstanding)
We can also use numbers to measure the goodness of quality (Rate a service from 1 to 10)

Scale of Measurement:

Nominal Scale:
When we use number as a label i.e. use 1 for Defaulter and 0 for Non defaulter
As these numbers are different identical sets of information. Hence we can not compare these numbers.

Ordinal Scale :
Numbers to measure the goodness of quality (Rate a service from 1 to 10)


Population Data Sets:
Master sets of all elements that we are interested in. 

Sample Data Sets:
Subsets of population datasets. Often use to build models.

Sampling: An Example:

Suppose we are interested in knowing the lifespan distribution of the residents of Kolkata.
From a study we collected lifespan records of 1st 100 residents. And from that we found the average lifespan of those 100 residents is 62. 

From the above study we can not infer that the people of Kolkata having average lifespan of 62 years.

How to Choose Sample Data:

Sample should be chosen in such a way so that all parts of population gets equal representation. We can have multiple sets of sample data. to get a meaningful prediction.

Random Sampling:

A sample of size k (i.e. containing k data points) is said to be a random sample, if the members are chosen in such a way that all possible choices of the k members are equally likely.

Describe Data using Frequency Table:
 
Let say we have a data set which talks about #SickLeave taken by  50 workers of a company over last 6 weeks.
And the data are as follows :
2, 2, 0, 0, 5, 8, 3, 4, 1, 0, 0, 7, 1, 7, 1, 5, 4, 0, 4, 0, 1, 8, 9, 7, 0, 1, 7, 2, 5, 5, 4, 3, 3, 0, 0, 2, 5, 1, 3, 0, 1, 0, 2, 4, 5, 0, 5, 7, 5, 1

Frequency Table represents above data:



 With this table we can quickly say 

How many workers had at least 1 day of sick leave?

How many workers had between 3 and 5 days of sick leave?

Grouped Data:

Lets assume we have many data points to represent



We can represent these data using bar charts:


The problem with above representation is: The widget looks too much clumsy. Hence we need to bring interval logic in picture.

Values are grouped together into class intervals, and their frequency counted

Class intervals are generally equal and we go ahead and plot those data using Histogram.

Advantage of Histogram:

Can often indicate
How symmetric the data are
How spread out the date are
Whether there are intervals having high levels of data concentration
Whether there are gaps in the data
Whether some data values are far apart from others

Pair Data Representation:

Data sets that have pairs of values that are related to each other.

Ratio Data: Data which we can compare or find ratio can be considered as ratio data like (years of experience and their salary)

When we need to find out the relation between two ratio data we use scatterplot


Representation of above data using scatterplot