Chapter 2 - Intro To Data Sciences (Updated)
Chapter 2 - Intro To Data Sciences (Updated)
Chapter Two
2. Introduction to Data Science
What is data?
Data can be defined as a representation of facts, concepts,
or instructions in a formalized manner, which should be
suitable for communication, interpretation, or processing
by human or electronic machine.
Data is represented with the help of characters such as
alphabets (A-Z, a-z), digits (0-9) or special characters
(+,-,/,*,<,>,= etc.)
What is Information?
Information is organized or classified data, which has some
meaningful values for the receiver. Information is the
processed data on which decisions and actions are based.
Information is a data that has been processed into a form
that is meaningful to recipient and is of real or perceived
value in the current or the prospective action or decision of
recipient.
For the decision to be meaningful, the processed data must
qualify for the following characteristics −
Timely − Information should be available when required.
Accuracy − Information should be accurate.
Completeness − Information should be complete.
Summery: Data Vs. Information
Data Information
Described as unprocessed or raw Described as processed data
facts and figures
Cannot help in decision making Can help in decision making
Raw material that can be Interpreted data; created from
organized, structured, and organized, structured, and processed
interpreted to create useful data in a particular context.
information systems.
‘groups of non-random’ symbols in Processed data in the form of text,
the form of text, images, and voice images, and voice representing
representing quantities, action quantities, action and objects'.
and objects'.
Information Hierarchy
…
Data Processing Cycle
Data processing is the re-structuring or re-ordering of data by people or
machine to increase their usefulness and add values for a particular purpose.
Data processing consists of the following basic steps - input, processing, and
output. These three steps constitute the data processing cycle.
Input step − the input data is prepared in some convenient form for
processing.
The form depends on the processing machine.
For example - when electronic computers are used – input medium options
include magnetic disks, tapes, and so on.
Processing step − the input data is changed to produce data in a more
useful form.
For example - pay-checks can be calculated from the time cards, or a
summary of sales for the month can be calculated from the sales orders.
Output step − the result of the proceeding processing step is collected.
The particular form of the output data depends on the use of the data.
For example - output data may be pay-checks for employees.
Data Analysis Board:salaries spending,salaries per year,employees count
per year,employees per department specific year,employees by location
2.1.2 Data types and its representation – based on programming language
Data type or simply type is an attribute of data which tells the
compiler or interpreter how the programmer intends to use the data.
Almost all programming languages explicitly include the notion of data
type. Common data types include:
Integers
Booleans
Characters
floating-point numbers
alphanumeric strings
A data type constrains the values that an expression, such as a
variable or a function, might take.
This data type defines the operations that can be done on the data, the
meaning of the data, and the way values of that type can be stored.
Data types/structure – based on analysis of data
On other hand, for the analysis of data, there are three common types of data types or
structures: Structured data, unstructured data, and semi-structured data.
Structured Data, unstructured data, semi-structured data, and metadata
Structured Data
Structured data is data that adheres to a pre-defined data model and is therefore
straightforward to analyze.
Structured data conforms to a tabular format with relationship between the different
rows and columns. Common examples are Excel files or SQL databases.
Each of these have structured rows and columns that can be sorted.
Structured data depends on the existence of a data model – a model of how data can be
stored, processed and accessed.
Because of a data model, each field is discrete and can be accesses separately or jointly
along with data from other fields.
This makes structured data extremely powerful: it is possible to quickly aggregate data
from various locations in the database.
Structured data is considered the most ‘traditional’ form of data storage, since the
earliest versions of database management systems (DBMS) were able to store, process
and access structured data.
Unstructured Data
Unstructured data is information that either does not have a predefined data
model or is not organized in a pre-defined manner.
It is without proper formatting and alignment
Unstructured information is typically text-heavy, but may contain data such as
dates, numbers, and facts as well.
This results in irregularities and ambiguities that make it difficult to understand
using traditional programs as compared to data stored in structured databases.
Common examples include: audio, video files, images or No-SQL databases.
The ability to store and process unstructured data has greatly grown in recent
years, with many new technologies and tools coming to the market that are able
to store specialized types of unstructured data. For example:
MongoDB is optimized to store documents.
Apache Graph - is optimized for storing relationships between nodes.
The ability to analyze unstructured data is especially relevant in the context of
Big Data, since a large part of data in organizations is unstructured. Think
about pictures, videos or PDF documents.
The ability to extract value from unstructured data is one of main drivers
behind the quick growth of Big Data.
Semi-structured Data
Semi-structured data is a form of structured data that does not
conform with the formal structure of data models associated with
relational databases or other forms of data tables,
but nonetheless contain tags or other markers to separate semantic
elements and enforce hierarchies of records and fields within the
data. Therefore, it is also known as self-describing structure.
Fore example: JSON, XML and comma separated values (CSV) file
are forms of semi-structured data.
The reason that this third category exists (between structured and
unstructured data) is because semi-structured data is considerably
easier to analyze than unstructured data.
Many Big Data solutions and tools have the ability to ‘read’ and
process either JSON or XML. This reduces the complexity to
analyze structured data, compared to unstructured data.
Semi-structured Data
Examples of semi-structured data
Data Analysis
It is concerned with making the raw data acquired amenable to use in decision-
making as well as domain-specific usage.
Data analysis involves exploring, transforming, and modelling data with the goal
of highlighting relevant data, synthesizing and extracting useful hidden informa-
tion with high potential from a business point of view.
Related areas include data mining, business intelligence, and machine learning
(covered in Chapter 4).
Data Curation
It is the active management of data over its life cycle to ensure
it meets the necessary data quality requirements for its effective
usage.
Data curation processes can be categorized into different activi-
ties such as content creation, selection, classification, transfor-
mation, validation, and preservation.
Data curation is performed by expert curators that are respon-
sible for improving the accessibility and quality of data.
Data curators (also known as scientific curators, or data annota-
tors) hold the responsibility of ensuring that data are trustwor-
thy, discoverable, accessible, reusable, and fit their purpose.
A key trend for the curation of big data utilizes community and
crowd sourcing approaches.
Data Storage
It is the persistence and management of data in a scalable way
that satisfies the needs of applications that require fast access
to the data.
Relational Database Management Systems (RDBMS) have been
the main, and almost unique, solution to the storage paradigm
for nearly 40 years.
However, the ACID (Atomicity, Consistency, Isolation, and
Durability) properties that guarantee database transactions
lack flexibility with regard to schema changes and the
performance and fault tolerance when data volumes and
complexity grow, making them unsuitable for big data
scenarios.
NoSQL technologies have been designed with the scalability
goal in mind and present a wide range of solutions based on
alternative data models.
Data Usage
It covers the data-driven business activities that need ac-
cess to data, its analysis, and the tools needed to integrate
the data analysis within the business activity.
Data usage in business decision-making can enhance com-
petitiveness through reduction of costs, increased added
value, or any other parameter that can be measured
against existing performance criteria
Data Quality
The ability of your data to serve its intended purpose.
How reliable is a given dataset: data quality affects the users
ability to make accurate decisions.
The following are data quality characteristic dimensions:
Completeness/Comprehensive: what essential fields have to
be filled in e.g. name and address of customer are important
while gender is less essential
Accuracy: is the information correct? E.g. does a customer
really have $1 million in his bank account. Typos
…. Data Quality
Reliability: data in one system should not contradict in
another e.g. a persons DOB in one 1973 in another system
1981
Timeliness: data should be collected at the right moment in
time. Data collected too soon or too late could misrepresent a
situation and drive inaccurate decisions.
Format: data entry formats are consistent. E.g. some
locations it says 20 and in other locations 2020
Availability and accessibility: individuals need the right level
of access to the data to perform their jobs.
Data involved in buying a box of cereal from a store
Whatever your cereal preferences—teff, wheat, or burly—you prepare for the purchase by writing
“cereal” in your notebook. This planned purchase is a piece of data though it is written by pencil
that you can read.
When you get to the store, you use your data as a reminder to grab the item and put it in your cart.
At the checkout line, the cashier scans the barcode on your container, and the cash register logs
the price. Back in the warehouse, a computer tells the stock manager that it is time to request
another order from the distributor because your purchase was one of the last boxes in the store.
You also have a coupon for your big box, and the cashier scans that, giving you a predetermined
discount. At the end of the week, a report of all the scanned manufacturer coupons gets uploaded
to the cereal company so they can issue a reimbursement to the grocery store for all of the coupon
discounts they have handed out to customers. Finally, at the end of the month, a store manager
looks at a colorful collection of pie charts showing all the different kinds of cereal that were sold
and, on the basis of strong sales of cereals, decides to offer more varieties of these on the store’s
limited shelf space next month.
So, the small piece of information that began as a scribble on your notebook ended up in many
different places, most notably on the desk of a manager as an aid to decision making. On the trip
from your pencil to the manager’s desk, the data went through many transformations. In addition
to the computers where the data might have stopped by or stayed on for the long term, lots of
other pieces of hardware—such as the barcode scanner—were involved in collecting, manipulating,
transmitting, and storing the data. In addition, many different pieces of software were used to
organize, aggregate, visualize, and present the data. Finally, many different human systems were
2.3 Basic concepts of big data
Big data is a blanket term for the non-traditional strategies and technologies needed to
gather, organize, process, and gather insights from large datasets.
While the problem of working with data that exceeds the computing power or storage of a
single computer is not new, the pervasiveness, scale, and value of this type of computing
has greatly expanded in recent years.
In this section, we will talk about big data on a fundamental level and define common
concepts you might come across.
We will also take a high-level look at some of the processes and technologies currently
being used in this space.
What Is Big Data?
An exact definition of “big data” is difficult to nail down because projects, vendors,
practitioners, and business professionals use it quite differently. With that in mind,
generally speaking, big data is:
1. large datasets
2. the category of computing strategies and technologies that are used to handle large datasets
In this context, “large dataset” means a dataset too large to reasonably process or store
with traditional tooling or on a single computer.
This means that the common scale of big datasets is constantly shifting and may vary
significantly from organization to organization.
Why Are Big Data Systems Different?
The basic requirements for working with big data are the same as
the requirements for working with datasets of any size.
However,
the massive scale,
the speed of ingesting and processing, and
the characteristics of the data that must be dealt with at each stage of
the process present significant new challenges when designing
solutions.
The goal of most big data systems is to surface insights and
connections from large volumes of heterogeneous data that
would not be possible using conventional methods.
In 2001, Gartner’s Doug Laney first presented what became known
as the “three Vs of big data” Volume-Velocity-Variety to describe
some of the characteristics that make big data different from other
data processing.
Characteristics of Big Data – 3V’s
Volume (Huge amount of data)
The sheer scale of the information processed helps define big data systems.
These datasets can be orders of magnitude larger than traditional datasets, which demands more
thought at each stage of the processing and storage life cycle.
Often, because the work requirements exceed the capabilities of a single computer, this becomes
a challenge of pooling, allocating, and coordinating resources from groups of computers.
Cluster management and algorithms capable of breaking tasks into smaller pieces become
increasingly important.
34
Why
we care about Big data (1)
Data stores are growing by 50% each year, and that rate of
increase is accelerating (Spiess etal., 2014).
The type of data is also changing.
Over 80% of it will be unstructured data which does not work
well with relational databases (Ammu etal., 2016).
Data, information, and knowledge are being created and
collected at a rate that is rapidly approaching the
Exabyte/year range.
One Zettabyte approximately equal to a thousand exabytes/a
billion terabytes, or a trillion gigabytes
35
Data explosion
Popular sites Active monthly users Traffic generation
Twitter 310 Million ●>350,000 tweets every minute
●500 million tweets per day
Facebook 1.1 Billion ●250 million post every hour
●968 million people log onto Facebook daily
●293,000 statuses are updated every minute.
LinkedIn 255 million ●100 million user visiting LinkedIn per month.
YouTube 1 Billion ●300 hour video uploaded per minute.
● 1 billion video mobile views.
Source : (Sahu and Dhote, 2017)
36
Why we need to care ? (3)
According to [Hu etal, 2014 and Ammu etal, 2016], Every day,
we create almost 2.5 quintillion bytes of data and 90% of the
data in the world today has been created in the last two years
alone and it is going to double in every two years.
The International Data Corporation (IDC) study predicts that
overall data will grow by 50 times by 2020.
37
Big Data Defined
“Big data is the data characterized by 3 attributes: volume,
variety and velocity.”
-- IBM
“Big data is the data characterized by 4 key attributes: volume,
variety, velocity and value.”
-- Oracle
“Big data is data that exceeds the processing capacity of
conventional database systems. To gain value from this data, you
must choose an alternative way to process it.”
-- O’Reilly
38
BIG DATA
Let’s look a
in a different way.
39
Byte : one grain of rice Hobbyist
Kilobyte : cup of rice
Megabyte :
Gigabyte :
Terabyte :
Petabyte
Exabyte
Zettabyte:
Yottabyte:
40
Byte :
Hobbyist
Kilobyte :
Megabyte : Desktop
Gigabyte :
Terabyte
Petabyte
Exabyte
Zettabyte:
Yottabyte: :
:
:
41
Byte :
Hobbyist
Kilobyte :
Megabyte : Desktop
Gigabyte :
Terabyte : Internet
Petabyte
Exabyte :
Zettabyte:
Yottabyte:
42
Byte :
Hobbyist
Kilobyte :
Megabyte : Desktop
Gigabyte :
Terabyte :
Internet
Petabyte :
43
Byte :
Kilobyte
Megabyte :
Gigabyte :
Terabyte :
:
Petabyte
Exabyte :
Zettabyte:
Yottabyte:
44
Byte :
Hobbyist
Kilobyte :
Megabyte :
Desktop
Gigabyte :
Terabyte :
Internet
Petabyte :
Exabyte :
Big Data
Zettabyte :
Yottabyte :
The Future?
45
Big Data use in The Real World(1)
Most industries, business companies and different institutions
were towards using the benefits of Big data. Companies like
Microsoft,
Google,
CERN Netflix,
Facebook, Shell,
Yahoo from the social marketing, Royal bank of Scotland,
Uber from the transportation, LinkedIn and
More are investing towards Big data
Wal-Mart from the retailer and ecommerce,
analytics
IBM- Watson health
46
Big Data use in The Real World(2)
Improving Healthcare and Public Health:
Nowadays healthcare is using big data technology to predict,
understand and avoid various new diseases and improving the quality of life.
Risk Analysis
It’s important for financial institutions to model data in order to calculate the risk
so that it falls under their acceptable thresholds
A lot of potential data is underutilized because of its volume and should be
integrated within the model to determine the risk patterns more accurately
47
Big Data in The Real World (3)
Understanding and Targeting Customers:
o This is one of the most widely used areas of Big data today. Here, Big data analytics is used to
understand customers and their behaviors and preferences.
The largest use of Big data is for social media and customer sentiments
Improving and Optimizing Cities/Countries:
o For example, traffic flows can be optimized based on real time traffic information as
well as social media and weather data.
In agriculture:
o Sensors can be deployed on the farms and collected data is used to detect the
reactions of crop on different environmental condition, soil conditions, water level
etc.
48
Tools for Big Data Analysis
Different tools are available for Big Data analysis as per the
specific use needed and advantages considered. Let see some
commons
Apach Hadoop
Dryad
Tableayu
Storm
S4
firehose
Splunk and more…
49
Big Data Life Cycle
So how is data actually processed with a big data system?
While approaches to implementation differ, there are some
commonalities in the strategies and software that we can talk about
generally.
Therefore, the widely adopted steps are presented below ( note it might
not be true in all cases).
The general categories of activities involved with big data
processing are:
Ingesting data into the system
Persisting the data in storage
Computing and Analyzing data
Visualizing the results
Before discussing these steps, understanding of clustered computing -
an important strategy employed by most big data solutions is important.
Clustered Computing
Setting up a computing cluster is often the foundation for technology used in
each of the life cycle stages.
Because of the quantities of big data, individual computers are often
inadequate for handling the data at most stages.
Therefore, to address the high storage and computational needs of big data,
computer clusters are a better fit.
Big data clustering software combines the resources of many smaller
machines, to provide a number of benefits:
Resource Pooling: Combining the available storage space to hold data is a
clear benefit, but CPU and memory pooling is also extremely important.
Processing large datasets requires large amounts these three resources.
High Availability: Clusters can provide varying levels of fault tolerance and
availability guarantees to prevent hardware or software failures from
affecting access to data and processing.
This becomes increasingly important as we continue to emphasize the importance
of real-time analytics.
Clustered Computing
Easy Scalability: Clusters make it easy to scale horizontally
by adding additional machines to the group. This means the
system can react to changes in resource requirements
without expanding the physical resources on a machine.
Beowulf cluster
Using clusters requires
a solution for managing cluster membership,
coordinating resource sharing, and
scheduling actual work on individual nodes.