0% found this document useful (0 votes)
6 views17 pages

Data Science's Role in Engineering

Uploaded by

shilpasundeep2
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views17 pages

Data Science's Role in Engineering

Uploaded by

shilpasundeep2
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Importance of data science in engineering:

Data science is important in engineering because it enhances


decision-making, optimizes processes, and drives innovation
across many fields. It enables engineers to extract actionable
insights from massive datasets to improve everything from
supply chain management and energy efficiency to product
development and complex scientific research. By applying
statistical modeling, machine learning, and other advanced
techniques, engineers can solve pressing real-world problems
more effectively.

Key importance of data science in engineering

 Improved decision-making: Data science helps engineers


make informed decisions by providing data-driven insights
into complex problems, allowing for more accurate and
precise outcomes in projects and research.

 Process optimization: It streamlines workflows and improves


resource allocation. For example, in a supply chain, it can be
used to predict demand and reduce waste, while in energy,
it allows for real-time management of consumption.

 Innovation and development: Data science fosters


innovation by enabling engineers to develop new products
and services. Machine learning and predictive analytics
allow for the testing of new ideas and lead to technological
breakthroughs.

 Solving complex problems: It provides tools to tackle some


of the world's most challenging issues, from improving
traffic flow in cities to advancing outcomes in healthcare.

 Enhanced accuracy: For large-scale projects and scientific


research, such as the experiments at the Large Hadron
Collider, data analytics is crucial for managing vast amounts
of information and achieving high-resolution results.

 Automation: It helps automate decision-making processes,


leading to increased efficiency and the ability to react to
changing circumstances in real-time, which can prevent
losses or disruptions.

 Data management: Data engineering, a related field, builds


the robust and scalable systems needed for data science.
This ensures high-quality, accessible data for analysis, which
is critical for supporting technologies like AI and machine
learning.

Data Science Process Life Cycle


Some steps are necessary for any of the tasks that are being
done in the field of data science to derive any fruitful results
from the data at hand.
 Data Collection - After formulating any problem
statement the main task is to calculate data that can
help us in our analysis and manipulation. Sometimes
data is collected by performing some kind of survey and
there are times when it is done by performing scrapping.
 Data Cleaning - Most of the real-world data is not
structured and requires cleaning and conversion into
structured data before it can be used for any analysis or
modeling.
 Exploratory Data Analysis - This is the step in which
we try to find the hidden patterns in the data at hand.
Also, we try to analyze different factors which affect the
target variable and the extent to which it does so. How
the independent features are related to each other and
what can be done to achieve the desired results all these
answers can be extracted from this process as well. This
also gives us a direction in which we should work to get
started with the modeling process.
 Model Building - Different types of machine learning
algorithms as well as techniques have been developed
which can easily identify complex patterns in the data
which will be a very tedious task to be done by a human.
 Model Deployment - After a model is developed and
gives better results on the holdout or the real-world
dataset then we deploy it and monitor its performance.
This is the main part where we use our learning from the
data to be applied in real-world applications and use
cases.
Key Components of Data Science Process
Data Science is a very vast field and to get the best out of the
data at hand one has to apply multiple methodologies and use
different tools to make sure the integrity of the data remains
intact throughout the process keeping data privacy in mind. If we
try to point out the main components of Data Science then it
would be:
 Data Analysis - There are times when there is no need
to apply advanced deep learning and complex methods
to the data at hand to derive some patterns from it. Due
to this before moving on to the modeling part, we first
perform an exploratory data analysis to get a basic idea
of the data and patterns which are available in it this
gives us a direction to work on if we want to apply some
complex analysis methods on our data.
 Statistics - It is a natural phenomenon that many real-
life datasets follow a normal distribution. And when we
already know that a particular dataset follows some
known distribution then most of its properties can be
analyzed at once. Also, descriptive statistics and
correlation and covariances between two features of the
dataset help us get a better understanding of how one
factor is related to the other in our dataset.
 Data Engineering - When we deal with a large amount
of data then we have to make sure that the data is kept
safe from any online threats also it is easy to retrieve
and make changes in the data as well. To ensure that the
data is used efficiently Data Engineers play a crucial role.
 Advanced Computing
o Machine Learning - Machine Learning has
opened new horizons which had helped us to
build different advanced applications and
methodologies so, that the machines become
more efficient and provide a personalized
experience to each individual and perform tasks
in a snap of the hand earlier which requires
heavy human labor and time intense.
o Deep Learning - This is also a part of Artificial
Intelligence and Machine Learning but it is a bit
more advanced than machine learning itself.
High computing power and a huge corpus of
data have led to the emergence of this field in
data science.

R Programming for Data Science

Last Updated : 22 Nov, 2025

R is an open-source programming language used statistical software


and data analysis tools. It is an important tool for Data Science. It is highly
popular and is the first choice of many statisticians and data scientists.

 R includes tools for creating aesthetic and insightful visualizations.

 Helps in extracting, cleaning, transforming and loading data from


multiple sources, including SQL databases, spreadsheets and even
unstructured data through NoSQL interfaces.

 Enables the use of predictive models to forecast future outcomes.

Syntax and Variables in R

In R, we use the <- operator to assign values to variables, though =


is also commonly used. You can also add comments in your code to
explain what’s happening, using the# symbol. It’s great practice to
comment your code so that it’s easier to understand later.

x <- 5 # Assigns the value 5 to x

y <- 3 # Assigns the value 3 to y

sum_result <- x + y

product_result <- x * y

print(paste('Sum of x and y: ', sum_result))

print(paste('Product of x and y: ', product_result))

Output

[1] "Sum of x and y: 8"

[1] "Product of x and y: 15"

Data Types and Structure in R

In R, data is stored in various structures, such as vectors, matrices,


lists and data frames. Let’s break each one down.

1. Vectors: Vectors are like simple arrays that hold multiple values
of the same type. You can create a vector using the c() function:

vector <- c(1, 2, 3, 4, 5)

print(vector)

Output

[1] 1 2 3 4 5

2. Matrices: Matrices are two-dimensional arrays where each


element has the same data type. You create a matrix using the matrix()
function:

matrix_data <- matrix(1:9, nrow = 3, ncol = 3)

print(matrix_data)

Output

[,1] [,2] [,3]

[1,] 1 4 7
[2,] 2 5 8

[3,] 3 6 9

3. Lists: Lists can contain elements of different types, including


numbers, strings, vectors and another list inside it. Lists are created using
the list() function:

list_data <- list("Red", 20, TRUE, 1:5)

print(list_data)

Output

[[1]]

[1] "Red"

[[2]]

[1] 20

[[3]]

[1] TRUE

[[4]]

[1] 1 2 3 4 5

4. Data Frames: Data frames are the most commonly used data
structure in R. They’re like tables, where each column can contain
different data types. Use [Link]() to create one:

# Creating DataFrame in R

data_frame <- [Link](Name = c("Alice", "Bob"), Age = c(24,


28))

print(data_frame)

Output

Name Age

1 Alice 24
2 Bob 28

Data Manipulation with R Programming


R Libraries are effective for data manipulation, enabling analysts
to clean, transform and summarize datasets efficiently.
Using dplyr for Data Manipulation
The dplyr package provides a set of functions that make it easy
to manipulate data frames in a clean and readable manner.
Some of the key functions in dplyr include:
 filter(): Filters rows based on conditions.
 select(): Selects specific columns.
 mutate(): Adds or modifies columns.
 arrange(): Orders rows by specified columns.
 summarize(): Summarizes data by applying functions
(e.g., mean, sum).
Let's perform data manipulation using the above function using a
sample dataset:
[Link]("dplyr")
library(dplyr)

data <- [Link](


Name = c("Alice", "Bob", "Charlie", "David", "Eve"),
Age = c(24, 28, 35, 40, 22),
Salary = c(50000, 60000, 70000, 80000, 45000)
)

# Filters rows based on conditions


filtered_data <- filter(data, Age > 25)
print("Filtered Data (Age > 25):")
print(filtered_data)

# Selects specific columns


selected_data <- select(data, Name, Salary)
print("Selected Data (Name and Salary columns):")
print(selected_data)
Output:
[1] "Filtered Data (Age > 25):"
Name Age Salary
1 Bob 28 60000
2 Charlie 35 70000
3 David 40 80000

[1] "Selected Data (Name and Salary columns):"


Name Salary
1 Alice 50000
2 Bob 60000
3 Charlie 70000
4 David 80000
5 Eve 45000
Data Cleaning and Transformation
Data cleaning involves correcting or removing errors and
transforming data into a usable format. Key transformations
include:
 rename(): to rename columns
 [Link](): to change the data type
 mutate(): to create derived variables
Now, we will be using the previous dataset to perform data
transformation:
# Renaming columns
data_renamed <- rename(data, Employee_Name = Name, Employee_Age = Age)
print("Renamed Data (Name to Employee_Name, Age to Employee_Age):")
print(data_renamed)
Output
[1] "Renamed Data (Name to Employee_Name, Age to
Employee_Age):"
Employee_Name Employee_Age Salary Salary_per_year
1 Alice 24 50000 4166.667
2 Bob 28 60000 5000.000
3 Charlie 35 70000 5833.333
4 David 40 80000 6666.667
5 Eve 22 45000 3750.000

introduction to RDBMS:

An RDBMS (Relational Database Management System) is software that


manages relational databases, storing data in structured tables (rows &
columns) and using SQL for data manipulation, allowing easy storage,
retrieval, and management of related information, forming the backbone
of systems like MySQL, Oracle, and SQL Server. It ensures data integrity
through relationships, providing features like data consistency, backup,
and controlled user access, making it highly popular for organizing large
datasets.

Core Concepts

 Relational Model:

Data is organized into tables (relations) where each table represents an


entity with attributes (columns) and records (rows).
 Tables & Relationships:

Tables link together via common fields (keys) to form a relational


structure, enabling complex data querying.

 SQL (Structured Query Language):

The standard language used to communicate with the RDBMS for creating,
updating, deleting, and querying data.

Key Functions of an RDBMS

 Data Definition: Creating and modifying the structure of tables,


columns, and relationships.

 Data Manipulation (CRUD): Inserting (Create), retrieving (Read),


updating, and deleting data records.

 Data Integrity: Enforcing rules (Entity, Referential, Domain) to


maintain data accuracy and consistency.

 Security & Access Control: Managing user privileges and access


levels.

 Backup & Recovery: Performing backups and ensuring data


durability.

Examples of RDBMS Software

MySQL, Oracle Database, Microsoft SQL Server, PostgreSQL, and IBM Db2.

definition and purpose of RDBMS

Definition

 Software for Relational Databases: It's the application layer that


allows users and applications to create, read, update, and delete
(CRUD) data within a relational database.

 Table-Based Structure: Data is stored in tables (relations)


composed of rows (records/tuples) and columns (attributes/fields).

 Relationships: Tables can be linked (related) through common


fields, allowing complex data to be organized logically.

Purpose & Key Functions


 Data Organization: Stores data in a structured, tabular format,
making it easier to manage and understand.

 Data Integrity: Enforces rules (constraints like primary keys,


foreign keys) to maintain accuracy and consistency, preventing
duplicate or inconsistent data.

 Data Retrieval & Manipulation: Uses Structured Query Language


(SQL) for powerful querying and data manipulation, allowing users
to request specific information easily.

 Data Security: Controls access and manages user permissions for


data.

 Redundancy Reduction: Minimizes data duplication by storing


data in related tables rather than repeating it across multiple files.

 Concurrency & Transactions: Manages simultaneous data access


by multiple users and ensures transactions are reliable (ACID
properties: Atomicity, Consistency, Isolation, Durability).

Examples

Popular RDBMS examples include MySQL, Oracle Database, Microsoft SQL


Server, and PostgreSQL.

Key concepts:

Core Components

 Table (Relation): A collection of related data organized in rows and


columns.

 Row (Record/Tuple): A single entry or record within a table,


containing data for each field.

 Column (Field/Attribute): A specific piece of data (like Name, ID)


within a table, defining the data type and domain.

 Schema: The overall structure or blueprint of the database, defining


tables, fields, and relationships.

 Domain: The set of permissible values for an attribute (e.g., ages


must be positive integers).

Keys & Relationships

 Primary Key: A column (or set of columns) that uniquely identifies


each record in a table, cannot be NULL.

 Foreign Key: A field in one table that refers to the Primary Key in
another table, establishing relationships.
 Candidate Key: Any attribute or set of attributes that can uniquely
identify a record (a Primary Key is chosen from these).

Principles & Functions

 Data Integrity: Ensuring data accuracy, consistency, and


reliability, often through keys and constraints.

 Normalization: A process to organize data to reduce redundancy


and improve data integrity.

 SQL (Structured Query Language): The standard language for


interacting with RDBMS (querying, updating, managing).

 Indexes: Structures that speed up data retrieval operations, like


searching and sorting.

Key Benefits

 Reduced Data Redundancy: Storing data efficiently.

 Data Consistency: Maintaining accuracy across related data.

 Scalability & Flexibility: Managing large amounts of data


effectively.

 Multi-User Access: Allowing concurrent access and modifications

Basic SQL:

Basic SQL Commands:


SQL commands are categorized into several types based on their function:
 Data Definition Language (DDL):

Used for defining and managing database objects (like tables, indexes,
views).
 CREATE TABLE: Creates a new table in the database.

 ALTER TABLE: Modifies the structure of an existing table (e.g., add/drop


columns).
 DROP TABLE: Deletes an existing table.
 Data Manipulation Language (DML):
Used for managing data within tables.
 SELECT: Retrieves data from one or more tables.

 INSERT INTO: Adds new rows of data to a table.

 UPDATE: Modifies existing data in a table.

 DELETE FROM: Removes rows of data from a table.


 Data Control Language (DCL):
Used for managing database access and permissions.
 GRANT: Gives users specific permissions to access or manipulate
database objects.
 REVOKE:
Removes previously granted permissions.
importance of rdbms in data management for data science

RDBMS is crucial for data science as it provides structured, reliable


storage for organized data, enforcing integrity through keys and
constraints, enabling powerful querying with SQL, and ensuring data
consistency via ACID properties, all vital for building clean, linked datasets
needed for accurate analysis, machine learning, and deriving meaningful
insights from complex business information.

Key Importance for Data Science

1. Structured Data Foundation: RDBMS organizes data into tables


(rows/columns), offering a predictable format that simplifies storage,
retrieval, and manipulation, making data accessible for analysis.

2. Data Integrity & Accuracy: Features like primary/foreign keys and


constraints ensure data uniqueness, consistency, and validity,
preventing errors and redundant entries, which is critical for reliable
models.

3. Data Relationships: RDBMS excels at defining relationships


between different data sets (e.g., customers to orders), allowing
data scientists to connect disparate information for deeper insights.

4. Powerful Querying (SQL): Structured Query Language (SQL)


allows complex data extraction, filtering, and aggregation from
relational databases, forming the backbone of data preparation.

5. ACID Compliance: Atomicity, Consistency, Isolation, Durability


guarantees reliable transactions, ensuring data remains consistent
and trustworthy even during failures, essential for production
systems.
6. Reduced Redundancy: Normalization principles break down data
into logical units, minimizing duplication and improving efficiency,
notes Project Guru.

7. Scalability & Security: Handles large datasets and offers robust


security and access controls, protecting sensitive information while
growing with data needs.

In Practice for Data Scientists

 Data Cleaning & Preparation: Use SQL to join tables, filter


records, and aggregate data into the clean, structured formats
needed for modeling.

 Feature Engineering: Create new variables by combining related


data points across tables.

 Building a Single Source of Truth: RDBMS acts as the reliable


"system of record," ensuring all analyses start from consistent,
validated data.

Linear Algebra Required for Data Science


Last Updated : 23 Jul, 2025



Linear algebra simplifies the management and analysis of large
datasets. It is widely used in Data Science and machine learning
to understand data especially when there are many features. In
this article we’ll explore the importance of linear algebra in data
science, its key concepts, real-world applications and the
challenges learners face.
Linear Algebra in Data Science
Linear algebra in data science refers to the use of mathematical
concepts involving vectors, matrices and linear transformations to
manipulate and analyse data. It provides useful algorithms and
processes in data science such as machine learning, statistics and
big data analytics. It turns theoretical data models into practical
solutions that can be used in real-world situations. It helps us:
 Tto represent datasets as vectors and matrices
 Perform operations
like scaling, rotation and projection on data efficiently.
 Use techniques like dimensionality reduction to
simplify large datasets while keeping important patterns.
Below are some important linear algebra topics that are widely
used in data science.
1. Vectors
Vectors are ordered array of numbers that represents a point or
direction in space. In data science, vectors are used to represent
data points, features or coefficients in machine learning models.
 Vectors
 Vector Operations
 Vector Norms
2. Matrices
Matrix is a two-dimensional array of numbers. They are used to
represent datasets, transformations or linear systems where rows
typically represent observations and columns represent features.
 Matrix
 Matrix Operations
 Matrix Transpose
 Identity Matrix
 Zero Matrix
 Sparse matrix
 Inverse of a Matrix
3. Matrix Decomposition
Matrix decomposition is a process where
we break down a complex matrix into simpler into
more manageable parts. These parts include LU decomposition,
QR decomposition or Singular Value Decomposition.
 LU Decomposition
 QR Decomposition
 Cholesky Decomposition
 Non-Negative Matrix Factorization (NMF)
 Eigenvalue Decomposition
 Singular Value Decomposition (SVD)
4. Determinants
Determinant of a square matrix is a single number that tells us if
the matrix can be turned around or not. It is
is important when we need to find the best possible answer or
when we are solving systems of linear equations in math.
 Determinants
 Properties of Determinants
 Relationship with Invertibility of Matrices
5. Eigenvalues and Eigenvectors
Eigenvalues and eigenvectors are used in various data science
algorithms such as PCA for dimensionality reduction and feature
extraction.
 Eigen Values & Eigen Vectors
 Finding Eigenvalues and Eigenvectors
 Applications
6. Vector Spaces and Subspaces
A vector space is a set of vectors that can be scaled and added
together and subspaces are subsets of a vector space used for
understanding data structures and transformations in machine
learning.
 Vector Spaces
 Linear Independence
 Linear Transformation
 Span
 Basis and Dimensions
 Column Space
 Null Space
7. Systems of Linear Equations
Systems of linear equations can be represented as matrices.
Solving systems of linear equations is essential in regression
analysis, optimization and neural networks.
 Gaussian Elimination
 Homogeneous Linear Systems
 Least Squares Solutions
8. Orthogonality
Two vectors are considered orthogonal when their dot product
evaluation results in a zero value. Data science makes use of
orthogonality for selecting features while conducting
dimensionality reduction and establishing whether models
operate independently or not.
 Orthogonal Vectors
 Orthogonal Matrices
 Orthogonal Projections
 Gram-Schmidt Process
9. Principal Component Analysis (PCA)
PCA is a dimensionality reduction technique that transforms data
into a smaller set of variables and capture the most significant
variance. It's used for feature extraction and noise reduction.
 Covariance Matrix and Its Role
 Dimensionality Reduction
10. Optimization in Linear Algebra
Optimization means to find the best possible solution to a
problem. Linear algebra applies this concept to solve problems
involving least squares regression as well as machine learning
models and linear regression models.
 Gradient Descent Method
 Cost Functions
 Objective Functions
 Linear Programming
 Simplex Method
 Newton's Method
 Conjugate Gradient Method
 Lagrange Multipliers
Applications of Linear Algebra in Data
Science
 Recommender Systems - Recommender Systems
depend on Linear Algebra to generate personalized
suggestions for Spotify and Netflix as well other streaming
platforms.
 Dimensionality Reduction - It represents the second
step that simplifies extensive datasets while maintaining
all essential data points. PCA decrease data quantity while
enhancing usability for humans and machines.
 NLP - In NLP word embeddings like Word2Vec or GloVe
represent words as vectors. The calculation of word
relationships through linear algebra operations includes
both dot products alongside matrix multiplication.
 Image Processing and Computer Vision - Linear
Algebra allows processing of images through various
transformations and compression techniques as well as
extracting features from datasets.
 Clustering and Classification - The algorithms k-means
clustering and Support Vector Machines (SVM) use Linear
Algebra to group or classify data points effectively.
 Data Transformation and Preprocessing - It is used in
data preprocessing through its applications in
transforming and reshaping data points ahead of machine
learning algorithm utilization.
Challenges in Linear Algebra
Learning linear algebra presents challenges to data science
students because of three key problems:
 Linear algebra introduces difficult-to-understand
theoretical principles that include vectors along with
matrices and transformations.
 The learning process feels steep because beginner-level
students find matrix inversion and eigenvalue
decomposition challenging to handle.
 Sales professionals face confusion when looking at
multiple linear algebra applications across different
disciplines.
A solid understanding of linear algebra becomes important for
anyone entering into data science. It provides strong foundation
for many key algorithms and techniques such as dimensionality
reduction, optimization and machine learning models.

You might also like