Cover of the summary of “Data Science and Big Data Analytics”

Book summary “Data Science and Big Data Analytics”: summary

EMC Education Services

5,605 words · 32 min read

You face a world where organizations accumulate massive volumes of diverse data at unprecedented speeds. Traditional business intelligence tools can no longer process these complex inputs or answer predictive questions.

Summary text

5,605 words · 32 min read

Introduction

You face a world where organizations accumulate massive volumes of diverse data at unprecedented speeds. Traditional business intelligence tools can no longer process these complex inputs or answer predictive questions. You need modern methods to extract genuine value from unstructured information and massive data sets.

Master the analytical lifecycle, advanced methods, and big data tools to turn massive data sets into actionable business insights.

Data Science and Big Data Analytics by EMC Education Services provides a comprehensive framework for this transition. The book guides you through a structured six-phase analytics lifecycle, core statistical techniques, machine learning algorithms, and modern distributed tools like Hadoop.

You will discover answers to critical operational questions:

  • How do you structure a successful data science project from start to finish?
  • Which statistical and machine learning methods apply to specific business problems?
  • How do you process and analyze unstructured text and massive data sets efficiently?

1. Big Data Overview and Ecosystem

Big Data demands new technical architectures and analytics approaches to extract value from massive, complex, and fast-moving data types.

Big Data is characterized by massive volumes, high complexity of data structures, and rapid velocity of creation that traditional databases cannot efficiently handle. While volume often attracts attention, variety and velocity provide a more apt definition. According to the McKinsey Global report, Big Data requires new technical architectures and analytics to enable insights that unlock new sources of business value.

Facebook users posted 700 status updates per second worldwide in 2012, which can be leveraged to deduce latent interests and show relevant advertisements.

Data Structures

Future data growth is predominantly driven by non-structured data types, categorized into structured, semi-structured, quasi-structured, and unstructured data. Eighty to ninety percent of future data growth comes from non-structured data types. These require distributed computing environments and massively parallel processing architectures to ingest and analyze successfully.

A call center may store structured call timestamps alongside semi-structured XML call logs, quasi-structured web clickstreams, and unstructured audio files of phone conversations.

Data Repositories

While Enterprise Data Warehouses provide centralized reporting and data accuracy, they restrict analytical flexibility, necessitating the use of centrally managed analytic sandboxes. Spreadsheets create data islands and multiple versions of the truth. EDWs solve reporting issues but restrict analysts who must wait for IT approvals. Analytic sandboxes resolve this conflict by providing a nonproduction workspace for high-performance, flexible exploration.

Targeted local departmental warehouses or spreadmarts emerge when business users bypass IT controls to accommodate their need for flexible analysis.

Key Roles

The Big Data ecosystem demands three distinct talent categories: Deep Analytical Talent, Data Savvy Professionals, and Technology and Data Enablers. Deep Analytical Talent possesses advanced quantitative and programming skills. Data Savvy Professionals have basic knowledge of statistics to define business questions. Technology and Data Enablers provide technical infrastructure support.

Statisticians, economists, and data scientists represent deep analytical talent, whereas financial analysts and operations managers represent data savvy professionals. By 2018, the forecasted U.S. talent gap reaches 140,000 to 190,000 for deep analytical talent and 1.5 million for data savvy professionals.

Data scientists perform recurring activities centered around reframing business challenges, deploying statistical models on Big Data, and developing actionable insights. You must execute these core practices:

  • Reframe business challenges as analytics challenges by diagnosing business problems and determining candidate analytical methods.
  • Design, implement, and deploy statistical models and data mining techniques on Big Data.
  • Develop insights that lead to actionable recommendations by drawing insights out of data and communicating them effectively.

2. Data Analytics Lifecycle

Data science projects require a specialized, iterative six-phase lifecycle that governs exploratory work without impeding discovery.

Unlike traditional Business Intelligence projects, data science initiatives are exploratory and benefit from a structured yet flexible process. The lifecycle allows teams to move both forward and backward through phases as new insights emerge, driving ultimately toward operationalizing the work. You work through 6 phases in the Data Analytics Lifecycle:

  • Phase 1: Discovery
  • Phase 2: Data preparation
  • Phase 3: Model planning
  • Phase 4: Model execution
  • Phase 5: Communicate results
  • Phase 6: Operationalize

A high-functioning data science team requires 7 key roles needed for a successful analytics team to execute analytic projects. As few as 3 people can fulfill the roles on a small team. Conversely, 20 or more people may be required for a very large project.

Discovery and Preparation

Phase 1 involves thorough business domain learning, resource assessment, problem framing, stakeholder identification, and initial hypothesis generation. Before collecting data, you must frame the business problem, define success and failure criteria, and interview project sponsors. You should execute these interview practices:

  • Prepare for the interview; draft questions, and review with colleagues.
  • Use open-ended questions; avoid asking leading questions.
  • Probe for details and pose follow-up questions.
  • Avoid filling every silence in the conversation; give the other person time to think.
  • Let the sponsors express their ideas and ask clarifying questions.
  • Use active listening techniques; repeat back what was heard or reframe what was said.
  • Try to avoid expressing the team's opinions, which can introduce bias.
  • Be mindful of body language and use eye contact.
  • Minimize distractions.
  • Document what the team heard, and review it with the sponsors.

Data preparation is the most labor-intensive phase, requiring an analytic sandbox and an extract, load, and transform approach to preserve raw data for deeper analysis. You spend at least 50% of a data science project's time in Phase 2. A good rule for planning analytic sandbox size is 5–10 times the size of the original datasets. You use these practices:

  • Extract data in its raw form and load it into the datastore.
  • Transform data into a new state or leave it in its original condition.
  • Perform gap analysis comparing available datasets with needed datasets.

Operationalization

Model planning and model building involve selecting appropriate analytical techniques, exploring variable relationships, and training models on split datasets. You choose from nearly 5,000 packages for data analysis and graphical representation available in R. You follow specific operational practices:

  • Assess the structure of the datasets.
  • Ensure analytical techniques meet business objectives and accept or reject working hypotheses.
  • Determine if the situation warrants a single model or a series of techniques.
  • Develop datasets for training, testing, and production purposes.
  • Run models from analytical software packages on file extracts and small datasets for testing.

Communicating results and operationalizing the model require translating technical findings into business value and deploying via controlled pilot projects. You measure impact and monitor performance over time. You execute these practices:

  • Determine if results are statistically significant and valid.
  • Record all findings and select the three most significant ones to share.
  • Quantify the business impact of the results.
  • Run a pilot project to implement models in a production environment.
  • Create a mechanism for ongoing monitoring of model accuracy.

EMC's Global Innovation Network and Analysis team analyzed 5 years of idea submissions from internal innovation contests and 6 months of textual notes from global innovation and research activities. The team developed 10 main initial hypotheses using social network analysis. They found that in 2011, 15% of innovation contest finalists and 15% of winners came from Cork, Ireland.

3. Review of Basic Data Analytic Methods Using R

Exploratory data analysis using R uncovers hidden patterns, validates assumptions, and prepares data for advanced modeling.

Introduction to R

R provides an open-source programming language and interactive software environment designed specifically for statistical analysis and graphics. It operates under the GNU General Public License and receives packages from the Comprehensive R Archive and Network. R scripts typically flow from data acquisition and import to data examination, plotting, modeling, and diagnostics. It supports generic functions whose behavior adapts based on input arguments, such as summary() and plot().

An annual sales dataset of 10,000 retail customers in a CSV file is imported, examined via head() and summary(), plotted, and modeled using a linear regression function, producing a -154.1 intercept and 166.2 slope values for the fitted linear equation. Attributes providing qualitative and quantitative measures are categorized into four types, which dictate the valid statistical operations. Attributes are classified into nominal, ordinal, interval, and ratio types. Nominal and ordinal attributes are categorical, whereas interval and ratio attributes are numeric.

Diamond cuts {Fair, Good, Very Good, Premium, Ideal} form an ordinal attribute, whereas customer gender {F, M} forms a nominal attribute. R relies on specific data structures to organize and manipulate diverse datasets:

  • vectors store elements of the same class;
  • matrices provide two-dimensional arrays;
  • data frames handle mixed types as variable lists;
  • lists can nest any object types;
  • factors encode categorical variables with discrete levels.

The read.csv() function imports external comma-separated data into a data frame where character columns like gender are automatically stored as factors. You can perform operations such as a 3x3 matrix multiplication to obtain the identity matrix or handle data frames like the diamonds data frame with 53940 observations of 10 variables.

Exploratory Data Analysis

Visualizing data prior to numerical analysis is critical because datasets with identical descriptive statistics can have completely different structures.

Statistician Francis Anscombe constructed Anscombe's quartet to show that four distinct datasets can share nearly identical means of 9 for x, 7.50 mean of y, variances, correlations of 0.816 between x and y, and regression lines while displaying divergent patterns when plotted. Anscombe's quartet demonstrates that Dataset 1 is linear, Dataset 2 is nonlinear, Dataset 3 has an outlier, and Dataset 4 relies on only two x values. Exploratory data analysis with visualization helps detect anomalies, missing values, and systematic data corruption known as dirty data.

Visualizations can reveal erroneous entries such as zero or negative ages resulting from missing data input replacements, or capped maximum values representing censored data ranges from system migrations. A bank checking account holder age distribution shows an abnormal spike at zero or negative ages, indicating missing data replaced during system transfers. Mortgage loans showed a disproportionate frequency at a 10 years old threshold due to uncapped historical data.

  • Look for anomalies, verify the data with domain knowledge, and decide the most appropriate approach to clean the data.

Various plotting techniques including histograms, density plots, boxplots, and hexbinplots reveal distributions, relationships, and scale transformations. When data is heavily skewed, applying logarithmic scales or density plots uncovers hidden structures and multimodality. Hexbinplots combine scatterplots and histograms to effectively display high-density, high-volume big data. Taking the log10 of diamond prices or household income exposes distinct humps and concentration clusters that are obscured on a standard scale, such as 4000 observations generated from log normal distribution or 75 numbers generated between 0 and 10 for LOESS and regression comparison.

Statistical Evaluation

Statistical hypothesis testing evaluates assertions about populations by setting up a default null hypothesis against an alternative hypothesis. The null hypothesis assumes no effect or no difference between populations, while the alternative hypothesis assumes a specific difference or impact. Decisions are made using test statistics and p-values against a standard significance level alpha of 0.05. You might test whether drug A has a greater effect than drug B, or whether a new recommendation algorithm outperforms the current system.

Parametric t-tests and nonparametric rank-sum tests assess whether the means or distributions of two populations differ significantly. Student's t-test assumes equal variances, Welch's t-test does not require equal variances, and the Wilcoxon rank-sum test is a nonparametric alternative that avoids distribution shape assumptions by using ranked observations. Generating 10 and 20 random observations selected from two populations with means of 100 and 105 allows you to run Student's t-test with 28 degrees of freedom and Welch's t-test with 15.118 non-integer degrees of freedom.

Hypothesis evaluations involve managing Type I and Type II errors, ensuring adequate statistical power, and utilizing ANOVA for multiple group comparisons. Type I error rejects a true null hypothesis, while Type II error accepts a false null hypothesis. Power helps determine required sample sizes for specific effect sizes. Analysis of Variance generalizes mean comparisons to multiple populations using an F-test statistic. You can test six different weight loss strategies or three website promotional offers using ANOVA with 500 simulated observations of purchase sizes across three offer options, 497 residual degrees of freedom in the ANOVA model summary, and Tukey's Honest Significant Difference test.

4. Advanced Analytical Theory and Methods: Clustering

Clustering is an unsupervised machine learning technique used to group unlabeled objects based on similarities in their attributes. Unlike classification, clustering does not make predictions or use preassigned labels. It is primarily an exploratory analysis method to uncover hidden structures, grouping objects by proximity in multidimensional space.

Grouping customers by arbitrary income buckets like $10,000 lower income delineation bracket or $100,000 upper income delineation bracket fails to capture natural affinities, whereas multi-variable clustering finds naturally occurring customer groupings.

The k-means algorithm iteratively identifies k clusters by assigning data points to the nearest centroid and recomputing centroids until convergence.

The method begins by selecting $k$ and initial centroid guesses, calculates distances using Euclidean distance, assigns points to the closest centroid, computes new arithmetic means for the clusters, and repeats until convergence.

Follow these execution steps for k-means:

  • Choose the value of $k$ and the $k$ initial guesses for the centroids.
  • Compute the distance from each data point to each centroid and assign each point to the closest centroid.
  • Compute the centroid, the center of mass, of each newly defined cluster from Step 2.
  • Repeat Steps 2 and 3 until the algorithm converges to an answer.

The Within Sum of Squares metric plotted against the number of clusters helps determine the optimal value for $k$ by identifying an elbow point. WSS measures the sum of squared distances between data points and their closest centroid. Plotting WSS for increasing values of $k$ typically reveals an elbow where adding more clusters yields diminishing returns.

A k-means analysis on 620 high school seniors in the grade dataset grouped by English, math, and science grades used 15 values of $k$ evaluated in the R loop to plot WSS and select $k$ equals 3, achieving 76.5 percent between_SS divided by total_SS for $k$ equals 3.

Attributes with larger scales or magnitudes can disproportionately dominate distance calculations in k-means unless properly rescaled.

Because distance formulas sum squared differences, variables with large numerical ranges completely overshadow variables with small numerical ranges. Dividing each attribute by its standard deviation eliminates this distortion without needing location centering.

Measuring patient height in centimeters versus meters drastically alters the cluster boundaries because age ranges up to 80 years dwarf height changes measured in single-digit meters, generating 2.0 minus 0 squared equals 4 maximum height contribution to radicand and 80 minus 0 squared equals 6,400 maximum age contribution to radicand with 23.1 years standard deviation for age and 36.4 cm standard deviation for height.

Use these rescaling steps before modeling:

  • Identify attributes with disproportionate numerical magnitudes or different units of measure.
  • Divide each attribute value by the attribute's standard deviation.
  • Perform the k-means analysis using the unitless rescaled attributes.

K-means can employ alternative distance functions such as Manhattan distance or cosine similarity depending on the data type and analytical goal. Manhattan distance calculates grid-like distances resembling city blocks, for which the median is a better centroid choice than the mean. Cosine similarity is frequently used for text documents based on word frequencies.

Calculating Manhattan distance from point 1, 1 to point 4, 5 yields absolute differences of 1 minus 4 plus 1 minus 5 equaling 7 calculated Manhattan distance between 1, 1 and 4, 5.

Alternative algorithms like k-modes, Partitioning around Medoids, hierarchical, and density-based clustering handle data types and structures that k-means cannot. K-means struggles with categorical variables because numerical assignments imply false distances. K-modes uses component differences for categorical data, PAM uses actual data objects as medoids, hierarchical agglomerative clustering builds nested clusters, and density-based clustering finds irregularly shaped groups.

Clustering car sales using car color assigned as red equals 1, yellow equals 2, and green equals 3 improperly implies yellow is closer to red than green, necessitating alternative methods like k-modes, which calculates 3 distance calculated from a, b, e, d to d, d, d, d in k-modes.

5. Advanced Analytical Theory and Methods: Association Rules

Association rules are an unsupervised learning method designed to discover hidden relationships and frequent itemsets in large transactional datasets rather than make predictions. Rules are represented in the form X -> Y, meaning that observing item X implies the observation of item Y. This methodology is heavily utilized in market basket analysis to understand customer purchasing behavior, cross-sell products, and plan store merchandising.

In a retail store context, rules might indicate that when cereal is purchased, 90 percent of the time milk is purchased as well.

The Apriori algorithm uses a bottom-up iterative approach combined with the Apriori property to efficiently prune candidate itemsets and prevent exponential growth.

The Apriori property states that if an itemset is frequent, then all of its subsets must also be frequent. To run this efficiently, you can follow these steps:

  • Set a minimum support threshold delta and an optional maximum length N for itemsets.
  • Compute the set of 1-itemsets that satisfy minimum support.
  • Iteratively generate candidate k-itemsets from previous frequent itemsets.
  • Scan the database of transactions to increment and evaluate counts of candidate itemsets against the minimum support threshold.
  • Return the final collection of frequent k-itemsets.

Confidence measures the percentage of transactions containing both X and Y out of those containing X. Lift measures how many times more often X and Y occur together than expected if independent, while leverage measures the absolute probability difference. For 1,000 transactions where milk and eggs appear in 300, milk in 500, and eggs in 400, the lift of milk -> eggs is 0.3 / (0.5 * 0.4) = 1.5, whereas milk -> bread yields a higher lift of 2.

Practical association rule mining can be implemented using R packages like arules and arulesViz on real-world transaction data. The Groceries dataset from the arules package contains 9,835 transactions with 169 categories for items. Using this dataset, the Apriori algorithm identifies frequent itemsets and extracts rules, generating 2,918 rules at support 0.001 and confidence 0.6.

6. Advanced Analytical Theory and Methods: Regression

Regression models quantify relationships between input variables and continuous or categorical outcomes to forecast future events.

Unlike deterministic physical models, linear regression is a probabilistic model accounting for randomness via an error term. Parameters are estimated using Ordinary Least Squares to minimize the sum of squared vertical differences between observed points and the fitted line.

Real estate home prices are modeled as a function of living area, number of bathrooms, lot size, and school district rankings.

Categorical variables with multiple values must be represented using m-1 binary variables to avoid redundancy and lack of meaningful numeric ordering. Assigning arbitrary sequential numbers to categories like U.S. states based on alphabetical order creates false mathematical distance. Instead, creating m-1 binary variables treats one category as a reference case.

  • Identify the number of possible values m for the categorical variable.
  • Add m minus 1 binary indicator variables to the model.
  • Designate one category as the reference case by setting all binary variables to zero.

Using 49 binary state variables for U.S. states while leaving Wyoming as the reference case.

Linear Regression Diagnostics

Validating a linear regression model requires examining residual plots for linearity, zero-centered symmetry, constant variance, and checking normality via histograms or Q-Q plots. If residuals show nonlinear trends, non-constant variance, or non-normality, transformations like logarithms or square roots, or additional polynomial terms like age squared, should be applied.

  • Plot the outcome variable against each input variable to evaluate linearity.
  • Plot residuals against fitted outcome values to check for constant variance.
  • Examine a histogram or Q-Q plot of the residuals to confirm normality.
  • Apply variable transformations or add polynomial terms if assumptions are violated.

Confidence intervals estimate the uncertainty of the expected outcome on the regression line, while prediction intervals estimate the range for a single future observation. Because individual observations are normally distributed around the regression line with a constant variance, prediction intervals are substantially wider than confidence intervals for the same expected outcome.

For a 41-year-old person with 12 years of education, the 95 percent confidence interval for expected income is ($67,831, $69,567), while the 95 percent prediction interval is ($44,988, $92,409).

Logistic Regression

Logistic regression uses the logistic function to predict the probability of a categorical outcome taking one of two possible values based on linear input variables. The output of the logistic function varies between 0 and 1, modelling the probability of an event. Parameters are estimated using Maximum Likelihood Estimation to maximize the likelihood of observing the dataset.

Predicting the probability that a telecommunications customer will churn within six months based on age and churned contacts.

Logistic regression models are evaluated using deviance, pseudo-R-squared, log-likelihood ratio tests, and the Receiver Operating Characteristic curve. Deviance measures lack of fit using log-likelihood. The ROC curve plots the True Positive Rate against the False Positive Rate across different threshold values, and the Area Under the Curve measures classifier performance.

  • Compare null deviance and residual deviance using the log-likelihood ratio test.
  • Generate predicted probabilities for the dataset.
  • Compute true positive rates and false positive rates across threshold values.
  • Plot the Receiver Operating Characteristic curve and calculate the Area Under the Curve.

Evaluating the churn classifier with an ROC curve and adjusting the probability threshold from 0.5 to 0.15 to capture 91 percent of churners.

Diagnostics

Multicollinearity occurs when input variables are highly correlated, leading to unstable coefficient estimates, which can be addressed using ridge or lasso regression. Ridge regression adds a penalty proportional to the sum of squared coefficients to the residual sum of squares, while lasso regression penalizes the sum of absolute coefficient values.

  • Identify highly correlated input variables causing multicollinearity.
  • Remove redundant variables or replace them with combined metrics like Body Mass Index.
  • Apply ridge regression or lasso regression to penalize large coefficient magnitudes.

Replacing highly correlated medical variables like height and weight with Body Mass Index.

7. Advanced Analytical Theory and Methods: Classification

Classification is a supervised learning method where a classifier uses prelabeled examples to assign class labels to new, unseen observations. Unlike clustering, which discovers structures without training sets, classification starts with prelabeled data to determine how attributes contribute to future predictions.

Supervised classification assigns category labels to new observations using decision trees, naive Bayes, and ensemble methods.

Developing a classifier uses marketing, sales, and customer demographic data to assign purchase or no-purchase labels to potential future customers.

Decision Trees

Decision trees use a tree structure of nodes and branches to specify sequences of decisions and test points for predicting response variables. They handle both categorical and continuous variables and make no underlying assumptions of linear relationships.

Using a bank marketing dataset to predict whether a client will subscribe to a term deposit relies on categorical attributes like job, marital status, and education. The modified bank marketing dataset subset contains 2,000 instances, featuring 1,789 out of 2,000 clients who have not subscribed in the root node.

  • Choose the most informative attribute using entropy-based methods like information gain.
  • Partition the dataset according to the attribute's values.
  • Recursively construct subtrees until leaf nodes satisfy minimum purity thresholds, cannot be further split, or other stopping criteria are met.

Entropy measures the impurity of an attribute, while information gain measures purity and determines the best split point in a decision tree. The bank marketing example shows 0.4862 base entropy and 0.0289 information gain for the poutcome attribute in the first split.

Decision trees use greedy algorithms that make optimal local choices at each step. Overfitting can be mitigated by stopping tree growth early or applying post-pruning techniques.

  • Stop growing the tree early before it reaches the point where all training data is perfectly classified.
  • Grow the full tree and post-prune it using reduced-error pruning or rule-based post pruning.

You can use 10-row CSV data of weather factors in R with the rpart package to predict whether to play golf.

Naïve Bayes

Naïve Bayes is a probabilistic classification method based on Bayes' theorem that assumes conditional independence among all input features given a class label. It handles high-dimensional data efficiently but is sensitive to correlated variables.

Classifying whether an employee will enroll in an onsite educational program uses attributes like age, income, job satisfaction, and desire from 14 rows of training data in the sample1.csv file.

Smoothing techniques assign small nonzero probabilities to rare or unseen events in training data to prevent zero-probability issues and numerical underflow. Laplace add-one smoothing adds 1 to counts, yielding an adjusted probability of 0.2039 for single clients subscribing.

Classifier Diagnostics

Diagnostics such as confusion matrices, ROC curves, and AUC scores evaluate classifier performance by measuring correct guesses, error rates, and trade-offs. A confusion matrix displays true positives, false positives, true negatives, and false negatives.

Evaluating a naive Bayes classifier on 100 testing instances from a bank training dataset of 2,000 instances yields a corresponding AUC score of 0.915 for the ROC curve.

Ensemble methods and support vector machines combine multiple models or linear boundaries to achieve higher predictive performance than single models. Bagging, boosting, random forests, and support vector machines build robust predictions using bootstrap sampling, adaptive weighting, randomized decision trees, and critical boundary instances called support vectors.

8. Advanced Analytical Theory and Methods: Time Series Analysis

Time series models capture trends, seasonality, and temporal structures to forecast future outcomes from sequential data.

A time series consists of ordered values over equally spaced time intervals. The primary goals are to identify and model the time series structure and to forecast future values. Applications span finance, retail, and manufacturing.

A clothing retailer forecasts monthly sales accounting for seasonality, such as high sweater sales in fall and swimsuit sales in late spring and early summer. There are 144 values in the monthly international airline passengers dataset spanning a 12-year period. High-frequency stock traders use pairs trading where a statistically larger than expected price difference between two consistently co-moving stocks indicates an opportunity to buy one stock and sell the other.

Overview and Stationarity

Applying autoregressive and moving average models requires a stationary time series with a constant mean, finite variance, and time-invariant covariance. A time series must meet three conditions to be stationary: its expected value must be constant for all t, its variance must be finite, and its covariance must depend only on the lag h between observations rather than the absolute time.

ARIMA Models

The Box-Jenkins methodology provides a structured approach to condition data, select a model, estimate parameters, and assess the results. You can apply it using these steps:

  • Condition data and select a model by identifying and accounting for trends or seasonality and determining a suitable model from the remaining time series.
  • Estimate the model parameters.
  • Assess the model and return to the first step if necessary.

Differencing transforms nonstationary series with trends into stationary series with constant mean and variance. You can execute this preparation with specific actions:

  • Compute the difference between successive y-values for the n values in a given time series.
  • Apply differencing additional times if the differenced series is not reasonably stationary, while avoiding over-differencing.

Diagnostics

Autocorrelation Function and Partial Autocorrelation Function plots help determine the appropriate orders for autoregressive and moving average models. Information criteria like AIC, AICc, and BIC evaluate model goodness of fit by penalizing models with excess parameters. Maximum Likelihood Estimation estimates model coefficients by maximizing the log-likelihood function.

ARIMA models simplify short-term forecasting using historical data alone, but they cannot establish causal relationships or support long-term projections. Shocks such as refinery fires, international incidents, or hurricanes cause short-term production drops followed by high increases. Specialized methods include ARMAX for external dependencies, spectral analysis for signal processing, GARCH for volatility, Kalman filtering for real-time state tracking, and VARIMA for multiple interacting time series.

9. Advanced Analytical Theory and Methods: Text Analysis

Text analysis problems generally consist of parsing, search and retrieval, and text mining steps. Parsing transforms unstructured text into structured formats. Search and retrieval identifies documents containing specific key terms. Text mining uses these indexes to discover insights, often adapting traditional techniques like clustering and classification.

Text analysis and natural language processing extract structured themes, topics, and sentiments from unstructured text corpora.

You follow these steps to turn unstructured text into actionable business intelligence:

  • Collect raw text
  • Represent text
  • Compute the usefulness of each word using methods such as TFIDF
  • Categorize documents by topics
  • Determine sentiments of the reviews
  • Review the results and gain greater insights

Morphological techniques like POS tagging, lemmatization, and stemming are used to reduce dimensionality and normalize text variations. Part-of-Speech tagging assigns grammatical tags to words. Lemmatization uses a dictionary to find the base form of a word. Stemming applies heuristics to strip affixes and produce stems without needing a dictionary.

For the sentence obesity causes many problems, lemmatization outputs obesity cause many problem, whereas Porter's stemming algorithm outputs obes caus mani problem.

Raw text must be normalized through tokenization and case folding, then represented using the bag-of-words model. Tokenization separates text into individual words or tokens, while case folding reduces letters to lowercase. Bag-of-words represents a document as an unordered vector of term counts, ignoring word order and context.

Author Dr. Seuss wrote Green Eggs and Ham using only 50 distinct words out of 804 total words, which still results in a 50-dimension problem when modeled as a vector of counts.

TFIDF combines term frequency and inverse document frequency to measure term importance across fetched documents without relying on a static corpus. Term frequency counts how often a term appears in a document. Inverse document frequency measures how scarce a term is across all documents in the corpus. TFIDF gives higher scores to terms frequent in a specific document but rare across the corpus.

In a corpus of 1,000 documents where the word the appears in all 1,000 and bPhone appears in 10, the IDF of the is 0, while the IDF of bPhone is higher.

10. The Hadoop Ecosystem

Apache Hadoop provides distributed storage and parallel batch processing frameworks to manage massive unstructured data efficiently.

MapReduce is a programming paradigm that breaks large processing tasks into smaller parts, executes them in parallel across a cluster, and consolidates the intermediate outputs into a final result.

The map step applies an operation to a piece of data and outputs intermediate key/value pairs. The reduce step consolidates these intermediate outputs using key/value pairs to produce the final output.

In 2007, the New York Times converted 11 million newspaper articles from 1851 to 1980 into PDF files on a 100-node cluster in about 24 hours using MapReduce.

  • Apply an operation to a piece of data in the map step to provide an intermediate output
  • Consolidate the intermediate outputs from the map steps in the reduce step to provide the final output

MapReduce and HDFS

The Hadoop Distributed File System (HDFS) distributes file blocks across computer clusters to enable parallel processing and provides built-in data redundancy.

  • Contact the NameNode to get the locations of various blocks for a file
  • Communicate with the appropriate DataNodes to access the file

Hadoop Tools

Apache Pig provides a high-level data-flow scripting language called Pig Latin that compiles into underlying MapReduce jobs for batch processing.

  • Enter the Pig execution environment by typing pig at the command prompt
  • Designate a text file and define fields using the LOAD command
  • Filter records based on specific criteria using the FILTER command
  • Write filtered records to an HDFS folder using the STORE command

NoSQL

Apache HBase is a NoSQL column family store built on HDFS that provides real-time read and write access to large datasets.

  • Create an HBase table specifying column families and row split points using the create command
  • Add data to a table specifying row key and column using the put command
  • Retrieve data entries or multiple versions using the get command
  • Scan rows between a specified start row and stop row using the scan command

Conclusion

Data science succeeds when you combine a disciplined lifecycle with rigorous statistical methods and scalable distributed tools. You must manage projects through clear phases, from discovery and planning to operational deployment, while maintaining close alignment with business stakeholders. Advanced analytics transforms raw data into predictive insights, but the underlying infrastructure must scale to handle volume, velocity, and variety.

  1. Define business goals and hypotheses clearly before touching the data.
  2. Follow the iterative six-phase analytics lifecycle without skipping discovery and planning.
  3. Prepare and clean data thoroughly using exploratory data analysis and appropriate statistical tools.
  4. Select advanced analytical methods that match the structure of your data and the nature of your problem.
  5. Deploy models into production environments and communicate findings effectively to technical and nontechnical stakeholders.

10 Key Ideas

  1. Big Data requires new technical architectures and analytics approaches to extract value from massive, complex, and fast-moving data types.
  2. Data science projects require a specialized, iterative six-phase lifecycle that governs exploratory work without impeding discovery.
  3. Exploratory data analysis using R uncovers hidden patterns, validates assumptions, and prepares data for advanced modeling.
  4. The k-means algorithm iteratively identifies k clusters by assigning data points to the nearest centroid and recomputing centroids until convergence.
  5. The Apriori algorithm uses a bottom-up iterative approach combined with the Apriori property to efficiently prune candidate itemsets and prevent exponential growth.
  6. Regression models quantify relationships between input variables and continuous or categorical outcomes to forecast future events.
  7. Supervised classification assigns category labels to new observations using decision trees, naive Bayes, and ensemble methods.
  8. Time series models capture trends, seasonality, and temporal structures to forecast future outcomes from sequential data.
  9. Text analysis and natural language processing extract structured themes, topics, and sentiments from unstructured text corpora.
  10. MapReduce is a programming paradigm that breaks large processing tasks into smaller parts, executes them in parallel across a cluster, and consolidates the intermediate outputs into a final result.

A summary is an independent retelling, not the text of the book.

Cover of the summary of “The Last Whalers” 20 min read

The Last Whalers

Doug Bock Clark
Cover of the summary of “Confess” 21 min read

Confess

Rob Halford
Cover of the summary of “Toast” 17 min read

Toast

Nigel Slater
Cover of the summary of “Ace Voices” 24 min read

Ace Voices

Eris Young
Cover of the summary of “For Small Creatures Such as We” 17 min read
Cover of the summary of “Two Trees Make a Forest” 16 min read
Cover of the selected audiobook Choose a chapter The player is ready
0:00 0:00

Volume