CSE121Semester 2 • 2 CreditsCore Subjects

Orientation To Computing-II

Orientation course providing foundational and practical insights into modern computing domains including Data Science, AI/ML, Cybersecurity, DevOps, Cloud Computing, and Full Stack Web Development with UI/UX design.

Syllabus PDF
6 Units • Notes • Model Answers • MCQs
Select Course Unit (6 Units)
Active: Unit 1
Unit 1:Unit 1: Data Science & Big Data
7 min read•High-Yield Unit Guide

Unit 1: Data Science & Big Data

Unit 1 Exam Focus & Core Takeaways

Review the core definitions, standard architectures, and syntax patterns below. Pay special attention to sections highlighted with bullet points for your mid-term and end-term subjective questions.

Unit 1: Data Science & Big Data

1. Introduction to Data Science

1.1 Definition and Conceptual Overview

Data Science is an interdisciplinary field that systematically applies scientific methods, algorithmic processes, statistical foundations, and computational systems to extract actionable knowledge, insights, and structural patterns from structured, semi-structured, and unstructured data. Rather than relying solely on classical retrospective reporting, data science emphasizes predictive modeling, exploratory analysis, and automated decision-making.

At its core, data science sits at the intersection of three fundamental pillars:

  1. Mathematics and Statistics: Probability theory, linear algebra, multivariate calculus, hypothesis testing, regression analysis, and inferential statistics provide the mathematical underpinning for pattern detection.
  2. Computer Science and Software Engineering: Algorithm design, distributed computing, database management (SQL and NoSQL), data structures, and programming proficiency (predominantly Python and R) enable scalable data processing.
  3. Domain Expertise: Deep contextual understanding of the problem space (such as healthcare pathology, quantitative finance, logistics, or cyber threat defense) ensures that statistical inferences lead to viable business or operational solutions.
CODE
       Mathematics & Statistics
             /        \
            /          \
           /   Data     \
          /   Science    \
         /________________\
Computer Science       Domain Expertise

1.2 The Modern Data Explosion

The modern computing landscape is characterized by an exponential expansion in global data generation—often termed the zettabyte era. The primary catalysts driving this explosion include:

  • Ubiquitous Internet and Social Connectivity: Continuous publication of multimodal media, micro-posts, sentiment feeds, and transactional logs by billions of global users.
  • Internet of Things (IoT) and Telemetry: Trillions of connected sensors deployed across smart cities, industrial machinery, connected vehicles, and wearable monitors emitting continuous high-frequency time-series data.
  • Enterprise Digitization: Migration from legacy physical workflows to paperless enterprise resource planning (ERP), customer relationship management (CRM) systems, and real-time operational telemetry.
  • High-Throughput Scientific Instrumentation: Large-scale genomic sequencing machines, astronomical telescopes (e.g., Square Kilometre Array), and particle collision monitors that generate terabytes per observation run.

1.3 Data Taxonomy: Structured, Semi-Structured, and Unstructured Data

Data ClassificationDefining CharacteristicsSchema EnforcementPredominant Storage SystemsRepresentative Examples
Structured DataFormatted into rigid rows and columns with predefined datatypes.Schema-on-Write (strict schema defined prior to insertion).Relational Database Management Systems (RDBMS) like PostgreSQL, MySQL, Oracle.Financial ledger tables, customer account rows, inventory counts.
Semi-Structured DataPossesses organizational markers and hierarchical tags but lacks a rigid relational grid.Schema-on-Read or self-describing key-value hierarchies.Document and wide-column NoSQL databases like MongoDB, Couchbase, Cassandra.JSON configuration payloads, XML feeds, YAML files, server logs.
Unstructured DataLacks any predetermined conceptual data model or internal organizational schema.No predefined schema; requires specialized feature extraction and NLP/CV models.Distributed object stores (Amazon S3, Azure Blob) and distributed file systems (HDFS).Video recordings, high-resolution imagery, raw audio wav files, free-text PDF reports.

2. Applications of Data Science and Big Data

Data science and big data architectures have transformed key operational paradigms across contemporary industrial and scientific sectors:

2.1 Healthcare and Precision Medicine

  • Early Pathological Diagnostics: Deep convolutional neural networks analyze medical imaging (CT scans, MRIs, and histopathological slides) to detect early-stage neoplasms with accuracy rivaling clinical radiologists.
  • Genomic Sequencing and Drug Discovery: Accelerated molecular docking simulations analyze billions of chemical compounds to identify drug candidates targeting specific mutant protein structures.
  • Predictive ICU Telemetry: Continuous time-series monitoring of patient vitals predicts septic shock hours before visible physiological deterioration, enabling life-saving proactive intervention.

2.2 Financial Services and FinTech

  • Real-Time Fraud Prevention: Latency-critical anomaly detection algorithms parse millions of credit card transactions per second, evaluating device fingerprints, location shifts, and spending variances within sub-100 millisecond SLAs.
  • Algorithmic and High-Frequency Trading (HFT): Low-latency execution engines process real-time market order books, news sentiment, and macroeconomic indicators to optimize portfolio balance and capture arbitrage windows.
  • Automated Credit Scoring: Non-linear ensemble models synthesize banking history, utility payment tracks, and behavioral data to provide credit access to unbanked demographics while managing default risk.

2.3 E-Commerce and Digital Retail

  • Collaborative and Content-Based Recommenders: Matrix factorization and graph neural networks map customer interactions to surface highly tailored catalog suggestions, boosting average basket value and retention.
  • Dynamic Demand-Driven Pricing: Automated pricing engines adjust prices in response to competitor stock changes, local demand elasticity, seasonal peaks, and customer browsing intensity.
  • Supply Chain Route Optimization: Graph traversal algorithms optimize parcel delivery paths, warehousing pick-and-pack routing, and regional freight allocation.

2.4 Smart Mobility and Autonomous Transportation

  • Real-Time Fleet Routing: Navigation systems continuously ingest crowd-sourced GPS telemetry to recalculate commute paths around localized congestion, traffic accidents, and weather hazards.
  • Predictive Fleet Maintenance: Telemetric sensor arrays embedded within commercial aircraft or locomotives track vibration harmonics and thermal gradients, alerting crews to imminent mechanical failures before catastrophic breakdowns.

3. The Data Science Lifecycle

The end-to-end lifecycle of an enterprise data science initiative follows a disciplined, iterative workflow designed to bridge abstract mathematics with production reliability:

CODE
[Business Understanding] -> [Data Acquisition] -> [Data Cleaning & Preparation]
                                                               |
[Deployment & Monitoring] <- [Evaluation] <- [Feature Engineering & Modeling]

3.1 Phase Breakdown and Methodologies

Phase 1: Business and Problem Understanding

  • Defining the precise business objective (e.g., "Reduce monthly subscriber churn by 15%").
  • Translating the business challenge into a quantifiable machine learning problem (e.g., binary classification with an emphasis on high recall for high-value accounts).
  • Determining operational Key Performance Indicators (KPIs), return-on-investment thresholds, and regulatory constraints.

Phase 2: Data Acquisition and Extraction

  • Gathering relevant raw datasets from internal databases, transactional warehouses, data lakes, public repositories, and third-party APIs.
  • Setting up batch ingestion pipelines or streaming event connectors (such as Apache Kafka) to pull disparate sources into an accessible staging environment.

Phase 3: Data Cleaning and Preprocessing

  • Addressing data quality anomalies: identifying and imputing missing data (using mean/median, K-Nearest Neighbors, or iterative regression imputation).
  • Handling anomalies, extreme outliers, duplicate rows, encoding inconsistencies, and malformed datetime timestamps.
  • Text tokenization, stop-word filtering, and normalization when handling natural language inputs.

Phase 4: Exploratory Data Analysis (EDA)

  • Computing descriptive statistics: central tendency (mean, median), dispersion (standard deviation, interquartile range), skewness, and kurtosis.
  • Univariate and bivariate visualizations: histograms, box plots, scatter matrices, and correlation heatmaps to uncover distributions and latent dependencies.
  • Formulating data-driven hypotheses and validating underlying statistical assumptions.

Phase 5: Feature Engineering and Model Building

  • Transforming raw features into high-signal representations: one-hot encoding, target encoding, min-max scaling, standardization (z-score), and polynomial expansions.
  • Dimensionality reduction techniques such as Principal Component Analysis (PCA) or t-SNE for high-dimensional feature spaces.
  • Partitioning datasets into training, validation, and holdout test splits (e.g., via stratified k-fold cross-validation).
  • Training candidate models ranging from linear baselines to gradient-boosted decision trees (XGBoost, LightGBM) and deep neural architectures.

Phase 6: Model Evaluation and Validation

  • Measuring task-specific quantitative metrics: Precision, Recall, F1-Score, Area Under the ROC Curve (AUC-ROC), Mean Absolute Error (MAE), or Root Mean Squared Error (RMSE).
  • Auditing against overfitting via learning curves and assessing algorithmic fairness across demographic subgroups.

Phase 7: Deployment, Monitoring, and Governance

  • Containerizing models using Docker and exposing low-latency inference endpoints via REST or gRPC microservices.
  • Establishing automated tracking pipelines to detect data drift (covariate shift) and model decay (concept drift), scheduling continuous model retraining loops.

4. Big Data Foundations: The Dimensions of Scale

Big Data refers to datasets whose volume, velocity, and variety surpass the compute capacity, memory limits, and ingestion rates of conventional standalone relational database architectures.

4.1 The Core Dimensions (The 5Vs of Big Data)

  1. Volume (Data Scale):

    • Refers to the sheer quantity of data generated and stored, scaling from terabytes into petabytes and exabytes.
    • Requires distributed storage fabrics (such as HDFS or Amazon S3) that partition files into smaller blocks distributed across clusters of commodity hardware.
  2. Velocity (Generation and Ingestion Speed):

    • The blistering pace at which data streams into the system and must be evaluated.
    • Shifts the operational requirement from scheduled overnight batch jobs to real-time streaming engines (e.g., Apache Spark Streaming, Apache Flink) that process events in milliseconds.
  3. Variety (Data Diversity):

    • The coexistence of heterogeneous formats spanning relational database records, unstructured sensor signals, JSON strings, PDF manuals, and raw MP4 surveillance streams within the same enterprise data ecosystem.
  4. Veracity (Data Trustworthiness and Quality):

    • The degree of reliability, noise, bias, and fidelity in incoming data streams.
    • High data velocity often introduces missing values, corrupted sensor readings, or fake social bot interactions, necessitating robust statistical validation.
  5. Value (Actionable Business Return):

    • The ultimate objective of big data investments. Storing petabytes of raw data is a liability unless intelligent extraction pipelines turn raw noise into quantifiable operational value.
CODE
       [Volume]  -------  [Velocity]
            \              /
             \   Big Data /
              [Veracity] - [Variety]
                    |
                 [Value]

5. Architectural Challenges in Big Data Systems

Designing and operating enterprise-scale big data systems introduces severe distributed systems bottlenecks:

5.1 Storage Bottlenecks and I/O Saturation

  • Single-disk throughput cannot sustain multi-gigabyte-per-second ingestion rates.
  • Mitigation: Distributed file systems distribute individual file chunks across dozens or hundreds of nodes, parallelizing physical disk read/write heads (e.g., 128 MB default block size in HDFS).

5.2 Processing Latency and Compute Scalability

  • Iterative machine learning algorithms requiring hundreds of passes over massive data choke when forced to read and write intermediate states to disk.
  • Mitigation: In-memory distributed compute engines like Apache Spark cache Resilient Distributed Datasets (RDDs) in cluster RAM, speeding up execution by up to 100x relative to legacy disk-bound MapReduce.

5.3 Distributed Consensus and Fault Tolerance

  • In a cluster with 1,000 commodity worker nodes, hardware failure is not an anomaly; it is an hourly certainty.
  • Mitigation: Automated data block replication (typically 3x replication factor in HDFS across different server racks) and lineage-based fault recovery where lost partitions are recomputed on-the-fly.

5.4 Data Governance, Privacy, and Security

  • Consolidating enterprise data into centralized data lakes risks non-compliance with strict international privacy mandates (e.g., GDPR, HIPAA, CCPA).
  • Requires fine-grained attribute-based access control, cryptographic encryption at rest and in transit, and immutable audit trails.

6. The Big Data Technology Ecosystem and Tooling

6.1 Core Distributed Processing Frameworks

Apache Hadoop

  • HDFS (Hadoop Distributed File System): A distributed, scalable, and portable file-system written in Java. Features a centralized NameNode managing file system namespace and metadata, and distributed DataNodes managing block storage.
  • YARN (Yet Another Resource Negotiator): Decouples resource management from processing models, dynamically allocating CPU cores and memory pools across heterogeneous applications.
  • MapReduce: A software framework for easily writing applications which process vast amounts of data in-parallel on large clusters. It divides computations into two phases:
    • Map: Filtering and sorting data (e.g., extracting key-value tuples).
    • Reduce: Aggregating and summarizing the intermediate keys generated by the mapping stage.

Apache Spark

  • A unified, lightning-fast analytics engine for large-scale data processing.
  • Core abstraction: Resilient Distributed Dataset (RDD), an immutable, fault-tolerant collection of distributed objects that can be operated on in parallel with rich transformations (map, filter, join) and actions (count, collect, save).
  • Rich multi-language APIs (Python via PySpark, Scala, Java, SQL, R) and integrated high-level modules: Spark SQL, Spark MLlib (machine learning), GraphX (graph computation), and Spark Structured Streaming.

6.2 NoSQL Database Systems

NoSQL databases reject rigid relational schemas in favor of horizontal elasticity and specialized performance profiles:

  • Document Stores (e.g., MongoDB, Couchbase): Store semi-structured data in JSON/BSON documents. Ideal for content management, user profiles, and catalogs with evolving attributes.
  • Key-Value Stores (e.g., Redis, DynamoDB): Ultra-fast key-to-value lookups optimized for caching, session stores, and real-time leaderboards.
  • Wide-Column Stores (e.g., Apache Cassandra, HBase): Column-family architecture offering high write throughput and zero single-point-of-failure scalability across geo-distributed data centers.
  • Graph Databases (e.g., Neo4j, Amazon Neptune): Store nodes, edges, and relationship properties, optimized for traversing complex connected networks (social networks, fraud rings, knowledge graphs).

6.3 Data Science and Analytics Tooling Stack

  • Python Ecosystem:
    • NumPy: High-performance N-dimensional array processing and linear algebra.
    • Pandas: High-performance data manipulation and DataFrame structures.
    • Scikit-Learn: Comprehensive machine learning library for classification, regression, and clustering algorithms.
    • Matplotlib & Seaborn: Static, animated, and statistical data visualizations.
  • Business Intelligence & Reporting:
    • Tableau & PowerBI: Interactive enterprise dashboards, automated report publishing, and executive visual analytics.

7. Big Data on the Cloud

Modern enterprises increasingly abandon on-premises hardware clusters in favor of public cloud data ecosystems:

7.1 Benefits of Cloud Big Data Architectures

  • Decoupled Compute and Storage: Cloud architectures separate storage (inexpensive object storage like AWS S3 or Google Cloud Storage) from compute clusters. Clusters can be spun up on demand, run heavy analytics, and terminate immediately, minimizing idle costs.
  • Elastic Auto-Scaling: Automatically scale compute worker nodes from 5 to 500 within minutes during sudden traffic surges, then scale down during quiet hours.
  • Fully Managed Serverless Workloads: Eliminates operating system patching, cluster tuning, and disk failure replacements, allowing data engineering teams to focus solely on analytical pipelines.

7.2 Major Cloud Service Mapping

Cloud ProviderDistributed Compute (Hadoop/Spark)Cloud Data WarehouseObject Storage FabricStreaming Ingestion
Amazon Web Services (AWS)Amazon EMR (Elastic MapReduce)Amazon RedshiftAmazon Simple Storage Service (S3)Amazon Kinesis
Google Cloud Platform (GCP)Google Cloud DataprocGoogle BigQueryGoogle Cloud Storage (GCS)Google Cloud Pub/Sub
Microsoft AzureAzure HDInsight / DatabricksAzure Synapse AnalyticsAzure Data Lake Storage (ADLS)Azure Event Hubs

8. Professional Roles and Career Pathways in the Data Sphere

Building end-to-end data systems requires a multidisciplinary workforce operating across specialized roles:

CODE
[Data Engineer] ----(Pipelines & Infra)----> [Data Warehouse / Lake]
                                                    |
             +--------------------------------------+------------------------------------+
             |                                                                           |
             v                                                                           v
     [Data Analyst]                                                               [Data Scientist]
(Descriptive & Diagnostic)                                                   (Predictive & Machine Learning)
             |                                                                           |
             v                                                                           v
[Dashboards & Business KPIs]                                                  [ML Engineer / MLOps]
                                                                             (Production Serving & Drift)
  1. Data Engineer:
    • Core Responsibility: Architecting, building, and maintaining robust data extraction, transformation, and loading (ETL/ELT) pipelines.
    • Key Skills: SQL, Python, Scala, Apache Spark, Kafka, Airflow, distributed database administration, and data warehouse modeling.
  2. Data Scientist:
    • Core Responsibility: Formulating statistical models, designing experiments, mining complex data patterns, and building machine learning prototypes to address high-value business challenges.
    • Key Skills: Advanced statistics, Python/R, Scikit-Learn, PyTorch/TensorFlow, feature engineering, and data storytelling.
  3. Data Analyst:
    • Core Responsibility: Analyzing historical data trends, generating business intelligence reports, and translating raw metrics into actionable operational summaries for non-technical stakeholders.
    • Key Skills: SQL, Excel, Tableau, PowerBI, exploratory data visualization, and domain business metrics.
  4. Machine Learning Engineer / MLOps Engineer:
    • Core Responsibility: Transitioning experimental data science models into scalable, low-latency production microservices with continuous monitoring and automated retraining pipelines.
    • Key Skills: Software engineering, Docker, Kubernetes, CI/CD pipelines, MLflow, Triton Inference Server, and cloud deployment APIs.
  5. Big Data Architect:
    • Core Responsibility: Designing enterprise-wide data governance, hardware topologies, security postures, and end-to-end cloud data strategies.

Summary & Key Takeaways

  • Data Science integrates mathematics, software engineering, and contextual domain expertise to convert raw information into predictive intelligence.
  • Data structures range from structured relational records (schema-on-write) to semi-structured formats (JSON, XML) and vast unstructured media.
  • The 5Vs of Big Data—Volume, Velocity, Variety, Veracity, and Value—encapsulate the architectural criteria driving modern data platforms.
  • Distributed frameworks like Hadoop (HDFS, MapReduce) and in-memory engines like Apache Spark resolve the disk I/O and processing bottlenecks of single-machine systems.
  • Cloud platforms provide scalable, decoupled compute-and-storage foundations (AWS EMR/Redshift, GCP Dataproc/BigQuery, Azure Synapse) enabling modern enterprise data transformations.