Introduction to Data Science

Chapter 1
Data Science Foundations and Professional Context

Diploma in Data science
Introduction to Data Science   •   Diploma

Data Science Foundations and Professional Context

Introduction

Data science is an interdisciplinary field concerned with using data to produce reliable knowledge, useful predictions, and informed decisions. It combines statistical reasoning, computing, domain expertise, communication, and ethical judgement. Although the term became especially prominent with the growth of cloud computing, large-scale digital platforms, and machine learning, the underlying practices—collecting evidence, identifying patterns, testing explanations, and supporting decisions—have much older roots.

In contemporary organisations, data science connects operational data with strategic action. A retailer may use it to forecast demand; a hospital may use it to identify patients at risk; a bank may use it to detect unusual transactions; and a public agency may use it to allocate limited resources. In each case, technical analysis is only one part of the work. The data must represent the problem adequately, the analytical method must be appropriate, and the result must be communicated and used responsibly.

This chapter establishes the conceptual and professional foundation required for further study in data science. It explains essential terminology, distinguishes data science from related disciplines, introduces the data-science lifecycle, examines professional roles and industry requirements, and considers the contribution of data science to digital transformation.

Learning Objectives

By the end of this chapter, you should be able to:

  1. Define data science and explain its interdisciplinary character.
  2. Distinguish data science from statistics, data analytics, artificial intelligence, machine learning, and business intelligence.
  3. Explain important data-science terminology and the stages of a typical data project.
  4. Identify major data-science roles, competencies, use cases, and organisational requirements.
  5. Explain how data science contributes to digital transformation.
  6. Recognise limitations, ethical risks, governance requirements, and professional best practices.

1. What Is Data Science?

There is no single definition accepted by every institution, but a useful working definition is:

Data science is the systematic use of data, computational methods, statistical reasoning, domain knowledge, and communication to generate evidence and support decisions.

This definition contains several important ideas.

Systematic use means that professional work follows a reasoned process rather than beginning with an attractive chart or an arbitrary algorithm. The practitioner defines a problem, identifies suitable evidence, evaluates data quality, selects methods, validates results, and communicates limitations.

Data includes observations, measurements, records, text, images, audio, video, sensor readings, transactions, and digitally generated events. Data may be structured in tables or unstructured and semi-structured in documents, logs, and media.

Computational methods include data storage, programming, databases, data preparation, visualisation, automation, and machine learning. Computation allows practitioners to process data volumes and varieties that would be impractical to handle manually.

Statistical reasoning involves describing variation, quantifying uncertainty, identifying relationships, testing claims, and distinguishing association from causation.

Domain knowledge concerns the context in which a problem exists. A technically accurate model may still be useless if it ignores clinical practice, supply-chain constraints, financial regulations, or customer behaviour.

Communication includes explaining assumptions, results, uncertainty, and consequences to both technical and non-technical audiences. A result that cannot be understood or acted upon has limited organisational value.

Data science therefore is not simply programming, mathematics, or the use of artificial intelligence. It is a problem-solving discipline that combines these capabilities.

Data, Information, Knowledge, and Insight

The following distinctions are useful:

ConceptMeaningExample
DataRecorded observations or representationsA transaction timestamp and amount
InformationData organised to answer a basic questionTotal sales by month
KnowledgeUnderstanding of relationships or processesSales increase when a promotion is active
InsightA relevant interpretation that supports actionIncrease stock before the promotion begins
DecisionA selected course of actionApprove additional inventory

These categories are not completely separate. A single report may contain data, information, and interpretation. The distinction emphasises that collecting data does not automatically create knowledge or value.

Common Data Characteristics

Data is often described using dimensions such as:

  • Volume: the amount of data.
  • Velocity: the speed at which data is generated or must be processed.
  • Variety: the range of formats and sources.
  • Veracity: the reliability, accuracy, and consistency of the data.
  • Value: the usefulness of the data for a legitimate purpose.

The so-called “five Vs” are a communication framework rather than a universal scientific law. Their importance depends on the application. A small clinical dataset may have low volume but require exceptional veracity and strong privacy protection.

2. The Data-Science Lifecycle

A data-science project is commonly represented as a lifecycle. The stages are iterative rather than strictly linear.

Iterative data science lifecycle Frameproblem Acquire andprepare data Explore andunderstand Model andevaluate Deploy andmonitor Feedback, revision, and stakeholder communication occur throughout
Iterative data science lifecycle
Figure: Iterative data science lifecycle

Figure: An iterative data-science lifecycle.

Problem Framing

The first question is not “Which algorithm should be used?” It is “What decision or outcome needs to improve?” A well-framed problem identifies the stakeholders, the population or process of interest, the time horizon, constraints, and the meaning of success. For example, “predict customer churn” is incomplete unless churn, prediction timing, acceptable error, and intended intervention are defined.

Data Acquisition and Preparation

Data may come from databases, application programming interfaces, surveys, sensors, public records, documents, or experiments. Preparation may involve joining tables, correcting formats, handling missing values, removing duplicate records, identifying outliers, and documenting data provenance.

Data cleaning is not a purely mechanical activity. Changing or excluding a record can alter the population represented by the dataset. A missing value may indicate a technical failure, a deliberate non-response, or a meaningful condition. Each treatment should be justified and recorded.

Exploration

Exploratory data analysis uses summaries and visualisations to understand distributions, variation, unusual observations, and relationships. Common summaries include counts, proportions, averages, medians, and ranges. Exploration can reveal data-quality problems and generate hypotheses, but exploratory patterns should not automatically be treated as confirmed findings.

Modelling and Evaluation

A model is a simplified representation used to describe, classify, predict, or optimise an outcome. Model selection depends on the task, data, interpretability requirements, computational resources, and consequences of error. Evaluation must use data or procedures that provide credible evidence of performance on the intended future or target population.

For a classification problem, a confusion matrix distinguishes:

  • True positive: a positive case correctly identified.
  • True negative: a negative case correctly identified.
  • False positive: a negative case incorrectly classified as positive.
  • False negative: a positive case missed by the model.

Accuracy is the proportion of all predictions that are correct:

Accuracy = (TP + TN) ÷ (TP + TN + FP + FN)

Here TP, TN, FP, and FN denote the four confusion-matrix counts. Accuracy is applicable when the classes and error costs make this summary meaningful. It can be misleading for highly imbalanced data. For example, a system that labels every transaction “legitimate” may appear accurate when fraudulent transactions are rare, while detecting no fraud.

Precision and recall provide different perspectives:

Precision = TP ÷ (TP + FP)
Recall = TP ÷ (TP + FN)

Precision measures the proportion of predicted positives that are actually positive. Recall measures the proportion of actual positives that are detected. The quantities are proportions without physical units, assuming the denominators are non-zero.

Deployment and Monitoring

A model that performs well in development can fail after deployment because user behaviour, economic conditions, data systems, or the target population change. Monitoring may include data quality, prediction performance, latency, fairness indicators, security events, and business outcomes. A deployed model is part of a social and technical system, not an isolated mathematical object.

3. Data Science and Related Disciplines

Related fields overlap, but their typical questions and emphases differ.

FieldTypical emphasisExample question
StatisticsUncertainty, estimation, inference, and experimental reasoningIs the observed difference likely to reflect more than sampling variation?
Data analyticsDescribing, diagnosing, predicting, or prescribing using dataWhy did sales decline, and what action should be taken?
Artificial intelligenceSystems performing tasks associated with intelligent behaviourCan a system interpret language or choose an action?
Machine learningAlgorithms that learn patterns from dataCan a model predict demand from historical examples?
Business intelligenceOrganised reporting and decision support, often using historical dataWhat were sales by region last quarter?
Data engineeringReliable collection, movement, storage, and processing of dataCan trustworthy data be delivered to analysts each morning?
Data scienceIntegration of these capabilities for evidence-based problem solvingWhich intervention is likely to reduce late deliveries?

These are tendencies, not rigid boundaries. A statistician may build predictive models; a data scientist may conduct experiments; and a business-intelligence platform may include predictive features.

Statistics and Data Science

Statistics provides foundational concepts for data science, including sampling, probability, estimation, regression, experimental design, and uncertainty. Data science adds substantial emphasis on programming, data systems, unstructured data, deployment, automation, and product or operational integration. Neither field is simply a subset of the other in every institution.

Analytics and Data Science

Analytics is a broad term for examining data to support decisions. Descriptive analytics asks what happened; diagnostic analytics asks why it happened; predictive analytics estimates what may happen; and prescriptive analytics considers possible actions. Data science frequently includes all four, but also addresses data products, machine learning systems, and the full lifecycle from acquisition to monitoring.

Artificial Intelligence and Machine Learning

Artificial intelligence is an umbrella term for systems designed to perform tasks commonly associated with human intelligence, such as perception, language processing, reasoning, planning, and decision-making. Machine learning is one major approach to AI in which a system learns patterns from examples or experience. Not all AI uses machine learning, and not all data science is AI. A carefully designed statistical report may be valuable data science without being an AI system.

Business Intelligence

Business intelligence traditionally emphasises governed reporting, dashboards, standard metrics, and historical or near-real-time operational visibility. Data science often addresses more open-ended questions, predictive models, experimentation, and automation. Organisations benefit when these capabilities share definitions, data governance, and communication practices rather than operating as isolated departments.

4. Important Terminology

A dataset is an organised collection of observations. A record, row, or instance represents one unit, such as a customer or transaction. A variable, field, or feature records an attribute of that unit. The target, label, or response is the outcome a model is intended to predict or explain.

Structured data follows a predefined schema, such as rows and columns. Unstructured data includes material without a simple tabular structure, such as free text, images, and audio. Semi-structured data has organisational tags or keys but may vary in form, such as JSON documents.

A population is the complete group relevant to a question, while a sample is a subset observed or measured. Training data is used to fit a model, validation data supports model selection or tuning, and test data provides a final estimate of performance. The test set should not repeatedly influence development decisions.

A parameter is a quantity estimated by a model; a hyperparameter is a setting selected before or during training, such as a regularisation strength. Overfitting occurs when a model captures noise or accidental features in development data and performs poorly on new data. Underfitting occurs when the model is too simple to capture important structure.

Data leakage occurs when information unavailable at the time of prediction enters model development. Leakage can produce impressive but invalid results. Concept drift refers to changes in the relationship between inputs and outcomes over time. Data drift refers to changes in the distribution or characteristics of input data.

Reproducibility means that the same documented process can produce the same result under the same conditions. Reusability concerns whether data, code, methods, and documentation can be adapted for another appropriate purpose. Data provenance records where data came from and how it was transformed.

5. Professional Roles and Competencies

Data-science work is usually performed by a team, although one person may hold several responsibilities in a small organisation.

  • Data analyst: prepares data, produces reports, investigates patterns, and communicates findings.
  • Data scientist: frames analytical problems, develops models, evaluates evidence, and contributes to data products or decisions.
  • Data engineer: builds pipelines, storage systems, processing infrastructure, and data-quality controls.
  • Machine-learning engineer: integrates models into reliable software and manages training, serving, and monitoring systems.
  • Business or domain analyst: translates organisational needs into measurable questions and interprets results in context.
  • Data architect: designs how data systems, models, standards, and access arrangements fit together.
  • Data steward or governance professional: supports definitions, quality, access, metadata, privacy, and compliance.
  • Product manager or project leader: aligns technical work with user needs, organisational priorities, risk, and value.

A diploma-level practitioner should develop competence in several areas: spreadsheet and database reasoning, SQL, basic programming, data cleaning, descriptive statistics, visualisation, introductory machine learning, documentation, presentation, teamwork, and ethical awareness. Employers also value curiosity, problem formulation, critical thinking, communication, and the ability to recognise when an analysis is not sufficiently reliable.

6. Use Cases Across Industries

Data science is used wherever data can inform a meaningful decision or process.

Healthcare: risk stratification, medical-image support, resource scheduling, public-health surveillance, and personalised treatment analysis. Clinical applications require high standards of validation, safety, privacy, and human oversight.

Finance and insurance: fraud detection, credit-risk assessment, customer service, pricing analysis, portfolio monitoring, and claims processing. Models must be monitored for discrimination, instability, and regulatory compliance.

Manufacturing: predictive maintenance, quality inspection, process optimisation, demand forecasting, and energy management. Sensor data and operational constraints are especially important.

Retail and marketing: recommendation systems, customer segmentation, inventory planning, promotion analysis, and churn prediction. Ethical use requires respect for privacy and avoidance of manipulative or discriminatory targeting.

Transport and logistics: route planning, estimated arrival times, fleet maintenance, capacity planning, and demand-responsive services.

Government and public services: resource allocation, tax administration, emergency response, policy evaluation, and service planning. Public-sector applications require transparency, accountability, lawful purpose, and attention to unequal impacts.

Education: student-support systems, course planning, learning analytics, and institutional reporting. Educational predictions should support—not replace—professional judgement and student rights.

7. Illustrative Case: Reducing Late Deliveries

Background

Consider a fictional regional delivery company, Northstar Logistics. Customers complain about late deliveries, while managers believe that adding vehicles is the only solution. The company records order times, promised delivery windows, depot locations, route distances, weather categories, driver schedules, and actual delivery times.

Problem

The organisation reframes the issue as: “Which operational conditions are associated with late delivery, and can a daily risk indicator help dispatchers intervene before delays occur?” This wording distinguishes explanation from prediction and identifies a practical user: the dispatcher.

Analysis

The team first checks whether delivery records are complete and whether “late” has a consistent definition. It discovers that some timestamps use local time and others use coordinated universal time. Correcting this issue is more important than immediately training a model. The team also identifies a potential leakage variable: a status code entered after a driver reports a delay. That field cannot be used for a pre-delivery prediction.

Exploration shows that delays are more frequent during particular depot hand-off periods, but the pattern differs by route. The team avoids claiming that the hand-off causes the delay because the data is observational and other factors may explain the association.

Approach and Solution

The team creates a baseline rule using recent route-level delay rates, then compares it with a supervised classification model. The data is divided chronologically so that earlier records are used for development and later records represent future performance. This is more realistic than randomly mixing past and future records when conditions change over time.

The team evaluates recall because missing a genuinely high-risk delivery may prevent useful intervention. It also examines precision because too many false alarms could overwhelm dispatchers. Results are reported separately by depot and route type rather than only as one overall average.

The model is integrated into the dispatch dashboard, where it highlights a small number of deliveries and displays contributing operational factors. Dispatchers retain authority to override the recommendation and record the reason. Performance and user feedback are monitored monthly.

Outcome

In this illustrative case, the company reduces late deliveries on selected routes after changing depot hand-off procedures and prioritising early intervention. The improvement cannot be attributed to the model alone because the organisation also changed processes. This illustrates why evaluation should measure operational outcomes, not merely predictive scores.

Learning Points

  1. Problem framing precedes algorithm selection.
  2. Data quality and time definitions can determine whether analysis is valid.
  3. Leakage creates unrealistic performance estimates.
  4. The appropriate metric depends on the costs of different errors.
  5. A model must fit a human workflow and be monitored after deployment.
  6. Association does not prove causation.

8. Data Science and Digital Transformation

Digital transformation is broader than installing new software. It involves changing how an organisation creates value, delivers services, makes decisions, and learns from operations. Data science contributes in several ways.

First, it increases visibility by converting dispersed operational records into shared measures. Second, it supports automation, such as routing, document classification, or anomaly alerts. Third, it enables personalisation, provided that the organisation uses appropriate data and respects individual rights. Fourth, it strengthens organisational learning through experiments, feedback, and performance measurement. Fifth, it supports new products and services based on data-enabled capabilities.

Transformation requires foundations beyond modelling. These include interoperable systems, reliable data pipelines, clear ownership, security controls, common definitions, skilled staff, leadership support, and processes for responsible change. A sophisticated model cannot compensate for contradictory metrics, inaccessible data, or a culture that ignores evidence.

A useful professional principle is to start with value and feasibility together. A project may be technically possible but offer little benefit, or it may be valuable but infeasible because necessary data does not exist or cannot lawfully be used.

9. Ethics, Governance, and Responsible Practice

Data science can distribute benefits and harms unevenly. Important concerns include:

  • Privacy: collecting and using personal data only for justified, transparent purposes.
  • Consent and lawful basis: ensuring that data use is authorised under applicable law and organisational policy.
  • Fairness: examining whether errors or outcomes differ systematically among relevant groups.
  • Transparency: communicating what a system does, what data it uses, and where it is uncertain.
  • Accountability: assigning responsibility for decisions, monitoring, complaints, and remediation.
  • Security: protecting data and models against unauthorised access, alteration, and misuse.
  • Accessibility: ensuring that data products do not exclude users with disabilities or limited digital access.
  • Purpose limitation: avoiding secondary uses that are incompatible with the original legitimate purpose.

Fairness is not achieved by deleting sensitive attributes automatically. Protected or sensitive attributes may be necessary to measure disparities and audit outcomes. Conversely, using them can create risks depending on the application. Decisions require context, legal advice where appropriate, stakeholder participation, and documented reasoning.

Responsible practice also includes communicating uncertainty. A prediction is not a guarantee, and a correlation is not necessarily a causal effect. Professionals should state the population, time period, data limitations, validation method, and expected failure modes of an analysis.

10. Contemporary Developments and Best Practices

Cloud platforms and scalable storage have made large and diverse datasets more accessible. Application programming interfaces, event streams, and connected devices provide near-real-time information. Generative AI systems can assist with text, code, images, and analysis, but they may produce inaccurate, biased, confidential, or unverifiable outputs. Their use therefore requires human review, data-protection controls, source checking, and clear accountability.

Modern practice increasingly treats models as products that require MLOps—the combination of development, deployment, version control, testing, monitoring, and governance for machine-learning systems. Organisations also use DataOps practices to improve the reliability and traceability of data workflows. These terms describe operational practices, not substitutes for statistical validity or domain judgement.

Recommended best practices include:

  1. Define the decision, user, outcome, and success criterion before selecting tools.
  2. Document data sources, definitions, transformations, assumptions, and limitations.
  3. Establish a simple baseline before adopting a complex model.
  4. Separate development information from credible evaluation information.
  5. Test for leakage, sampling problems, drift, and subgroup differences.
  6. Prefer interpretable methods when the additional complexity of a black-box method is not justified.
  7. Design outputs for real workflows and provide mechanisms for human review.
  8. Version code, data specifications, models, and reports where possible.
  9. Monitor deployed systems and define conditions for retraining or withdrawal.
  10. Treat privacy, security, fairness, and accessibility as design requirements rather than final checks.

Chapter Summary

Data science is the systematic integration of data, computation, statistical reasoning, domain knowledge, communication, and ethical judgement to produce knowledge and support decisions. Its work commonly follows an iterative lifecycle: framing a problem, acquiring and preparing data, exploring evidence, modelling and evaluating, and deploying and monitoring results.

Data science overlaps with statistics, analytics, artificial intelligence, machine learning, business intelligence, and data engineering, but each field has characteristic emphases. Professional data-science work requires technical skills as well as problem formulation, communication, teamwork, governance, and domain understanding. Applications range across healthcare, finance, manufacturing, retail, transport, government, and education.

Data science contributes to digital transformation by improving visibility, automation, personalisation, organisational learning, and data-enabled services. However, value depends on trustworthy data, suitable infrastructure, responsible governance, and integration into human decision processes. Ethical practice requires attention to privacy, fairness, transparency, accountability, security, and the limitations of predictions and associations.

Key Terms

Data science: The systematic use of data, computational methods, statistical reasoning, domain knowledge, and communication to support decisions.

Dataset: An organised collection of observations or records.

Structured data: Data organised according to a predefined schema, commonly in tables.

Unstructured data: Data such as text, images, audio, or video that does not fit a simple tabular structure.

Feature: An input variable or measurable attribute used in analysis or modelling.

Target: The outcome that a predictive model is designed to estimate.

Population: The complete group relevant to a research or analytical question.

Sample: A subset of a population that is observed or measured.

Data leakage: Use of information in model development that would not be available at the intended prediction time.

Overfitting: Fitting noise or accidental patterns so that performance on new data is poor.

Concept drift: Change over time in the relationship between inputs and outcomes.

Data provenance: Documentation of a dataset’s origin, transformations, and history.

Statistics: The discipline concerned with collecting, describing, analysing, and reasoning from data under uncertainty.

Analytics: The use of data examination and modelling to understand situations and support decisions.

Artificial intelligence: The broad field of building systems that perform tasks associated with intelligent behaviour.

Machine learning: Methods through which computational systems learn patterns from data or experience.

Business intelligence: Reporting, dashboards, and governed information used to support organisational decisions.

Data engineering: The design and operation of systems that collect, store, transform, and deliver data.

Digital transformation: Organisational change in value creation, operations, services, and decisions enabled by digital technologies.

MLOps: Operational practices for developing, deploying, monitoring, versioning, and governing machine-learning systems.

Review Questions

5 Short Answer Questions

  1. Define data science in your own words.
  2. What is the difference between structured and unstructured data?
  3. Why is problem framing important before model selection?
  4. Distinguish precision from recall.
  5. Name two ethical risks associated with data science.

5 Long Answer Questions

  1. Explain the data-science lifecycle and why it should be treated as iterative.
  2. Compare data science with statistics, artificial intelligence, and business intelligence.
  3. Discuss the technical and non-technical competencies required of a diploma-level data practitioner.
  4. Explain how data science can contribute to digital transformation, including the organisational conditions needed for success.
  5. Discuss why data quality, validation, monitoring, and governance are necessary for responsible deployment.

3 Analytical / Application Questions

  1. A hospital wants to predict which patients may miss appointments. Identify the prediction target, possible data sources, relevant stakeholders, potential leakage, and two appropriate evaluation considerations.
  2. A fraud-detection model reports 99% accuracy, but fraud occurs in only 1% of transactions. Explain why accuracy may be misleading and recommend additional measures or analysis.
  3. Using the Northstar Logistics case, propose two changes that would help determine whether the operational intervention—not merely the model—reduced late deliveries.

Multiple Choice Questions with Answers

Question 1

Which statement best defines data science?

A. The exclusive use of artificial intelligence to automate decisions

B. The systematic use of data, computation, statistics, domain knowledge, and communication to support decisions

C. The production of historical business reports only

D. The storage of organisational data in databases

Correct Answer: B. The systematic use of data, computation, statistics, domain knowledge, and communication to support decisions

Question 2

Which stage of the data-science lifecycle normally comes first?

A. Deploying a model

B. Selecting a complex algorithm

C. Framing the problem and intended decision

D. Monitoring model drift

Correct Answer: C. Framing the problem and intended decision

Question 3

What does data leakage mean?

A. The accidental deletion of a dataset

B. The use of information unavailable at prediction time during model development

C. A model becoming slower after deployment

D. A database containing duplicate tables

Correct Answer: B. The use of information unavailable at prediction time during model development

Question 4

Which field traditionally emphasises governed reports, dashboards, and standard organisational metrics?

A. Business intelligence

B. Computer vision

C. Data engineering

D. Experimental physics

Correct Answer: A. Business intelligence

Question 5

If TP = 80 and FN = 20, what is recall?

A. 20%

B. 50%

C. 80%

D. 100%

Correct Answer: C. 80%

Question 6

Which role is primarily responsible for building reliable data pipelines and storage systems?

A. Data engineer

B. Product designer

C. Clinical assessor

D. Marketing copywriter

Correct Answer: A. Data engineer

Question 7

Why can accuracy be misleading for a highly imbalanced classification problem?

A. Accuracy cannot be calculated from a confusion matrix

B. A model can appear accurate while failing to detect the rare class

C. Accuracy always measures only false positives

D. Imbalanced data contains no numerical variables

Correct Answer: B. A model can appear accurate while failing to detect the rare class

Question 8

Which statement about machine learning and artificial intelligence is correct?

A. Artificial intelligence is always narrower than machine learning

B. Machine learning is one major approach within artificial intelligence

C. Machine learning never uses data

D. Artificial intelligence and business intelligence are identical

Correct Answer: B. Machine learning is one major approach within artificial intelligence

Question 9

Which practice best supports responsible data science?

A. Removing all documentation to speed deployment

B. Evaluating only the training data

C. Monitoring performance, data quality, and relevant subgroup outcomes after deployment

D. Using the most complex model available for every problem

Correct Answer: C. Monitoring performance, data quality, and relevant subgroup outcomes after deployment

Question 10

In the illustrative logistics case, why was chronological evaluation appropriate?

A. It guarantees that the model is causal

B. It better represents predicting future conditions from past information

C. It eliminates the need for data cleaning

D. It ensures every route has identical delivery times

Correct Answer: B. It better represents predicting future conditions from past information

Introduction to Data Science
Chapter 1 of 15