How-to articleMethodology & analyticsComputer science

Big data analytics for doctoral research: data types, the processing pipeline and the Hadoop and Spark stack

What makes data "big", how a big data pipeline works from collection to analysis, what Hadoop, Spark and NoSQL databases actually do, and why a very large dataset can still give a wrong answer: an explainer for doctoral researchers in computing and the data-rich social sciences.

What you will learn

  • Explain what makes a dataset "big" in research terms and when it is not
  • Distinguish structured, semi-structured and unstructured data and the tools suited to each
  • Describe the stages of a big data pipeline, including batch and stream processing
  • Explain the roles of HDFS, MapReduce, YARN, Spark and NoSQL databases
  • Assess data quality and selection bias before trusting results from very large datasets
  • Plan privacy, documentation and reproducibility for a big data thesis

What you will unlearn

  • More data always gives more accurate answers.If the way data are recorded is related to what is measured, a huge dataset can be less accurate than a small random sample.
  • A big data thesis needs a Hadoop cluster.Many doctoral datasets fit on one workstation or a single cloud machine; distributed tools are needed only when data or computation outgrow it.
  • Big data analytics is a kind of statistics that needs no research design.Large observational data still need a question, a sampling argument, validation and a plan for confounding.

Skills you will practise

  • Data pipeline design
  • Distributed processing
  • Data quality assessment
  • Text and log analysis
  • Privacy-preserving analysis
  • Research data documentation

What big data analytics means in a doctoral project

In business writing, big data analytics usually means examining very large datasets to find patterns that help organisations decide. A thesis needs a sharper definition. Data are "big" for your project when their size, speed of arrival or variety means that ordinary tools on one machine can no longer store, process or analyse them in reasonable time. A ten-gigabyte table is routine for one researcher and impossible for another, depending on hardware and method.

A second feature matters more for research. Most big data are not collected to answer your question. Transaction logs, social media posts, sensor streams and administrative records are by-products of other activity. That gives scale and detail, but it also means the researcher must argue that the data represent the population and the concept the thesis is about. Business research has studied how organisations build analytics capability (Wamba et al., 2017); economists use hundreds of time series to forecast inflation and compare the results with simple benchmarks (Botha et al., 2023). In both cases the analytics serve a research design.

Three kinds of data

Table 1. Structured, semi-structured and unstructured data.
TypeWhat it looks likeExamplesTypical storage and tools
StructuredFixed fields in rows and columnsSales transactions, sensor readings, registry recordsRelational databases and SQL; columnar files; Spark SQL
Semi-structuredLabelled fields without a fixed tableJSON from web APIs, XML, server logsDocument databases; Spark; Python libraries that parse nested data
UnstructuredNo predefined fieldsFree text, images, audio, videoObject storage; text-analysis and deep-learning libraries

The categories affect method as well as storage. Turning unstructured text into variables is itself a measurement step, and automated text methods must be validated against careful human reading before their output is used as evidence (Grimmer & Stewart, 2013).

The processing pipeline

  1. 1Acquire and record provenance
  2. 2Store raw data unchanged
  3. 3Process (batch or stream)
  4. 4Clean and transform
  5. 5Analyse and model
  6. 6Validate and report
Figure 1. Stages of a big data pipeline in a research project.

Acquire. Record where each dataset came from, when it was extracted, under what licence or agreement, and what was filtered out. Keep the raw files unchanged so every later step can be rerun.

Process. Batch processing runs over a stored, bounded dataset, for example a year of logs. Stream processing handles records continuously as they arrive, for example sensor readings, and keeps results up to date. Some engines implement streaming as a series of very small batches, which is why the two are sometimes confused. Most theses analyse stored data in batch even when the source is a stream.

Clean. Deduplicate, standardise formats and time zones, handle missing values, and log how many records each rule removes. Cleaning decisions are analytic decisions and belong in the methods chapter.

Analyse and validate. Analysis may be descriptive statistics, data mining, statistical models or machine learning. Whatever the method, evaluate it on data it has not seen, and guard against leakage: duplicates across splits, features computed with future information or preprocessing on the full dataset all inflate results (Kapoor & Narayanan, 2023).

Which analysis methods?

Data mining, predictive analytics and deep learning are often listed together, and deep learning is sometimes said to "assume human learning patterns". That is misleading. Deep learning uses artificial neural networks with many layers; they were loosely inspired by biological neurons, but they do not model how people learn. A clearer way to choose is by purpose. Descriptive analysis summarises what the data contain and is the first chapter of almost every big data thesis. Exploratory methods such as clustering and association rules look for structure without a target. Predictive methods, from regression to gradient boosting and neural networks, forecast an outcome and must be judged on held-out data. Explanatory or causal analysis asks why something happens and needs a design that deals with confounding; more rows do not solve that problem.

Scale changes the practicalities more than the logic. Algorithms that need many passes over the data are slow on disk-based systems, so in-memory engines or sampling become important. Sampling is often the wise choice for model development: build and debug on a random sample, then run the final model on the full data, and report both.

The Hadoop and Spark stack, and what replaced parts of it

Table 2. Core components of the Hadoop and Spark ecosystem.
ComponentWhat it doesNotes for researchers
HDFSHadoop Distributed File System: stores large files in blocks replicated across machinesCommon on university clusters; many projects now use cloud object storage instead
MapReduceHadoop's original batch programming model: map, shuffle, reduceWrites intermediate results to disk; slower for iterative analysis
YARNResource manager that schedules jobs on a Hadoop cluster (from Hadoop 2)Lets Spark and other engines share the cluster
Apache SparkUnified engine for batch, SQL, streaming, machine learning and graph processingKeeps data in memory between steps, which suits iterative methods
NoSQL databasesKey-value, document, wide-column and graph storesChoose by data shape and query pattern, not by fashion
Visual analytics toolsDashboards and exploratory charts, e.g. Tableau (proprietary)Useful for exploration; analysis for the thesis should be scripted and reproducible

Spark was designed to keep working data in memory and to offer one programming model across SQL, streaming, machine learning and graph workloads, which is why it largely replaced hand-written MapReduce for analysis (Zaharia et al., 2016). YARN is sometimes called part of "last-generation" Hadoop; it is the resource manager of current Hadoop. Before choosing any of these tools, measure your data. If it fits in memory on one machine, single-node tools in Python or R are simpler to run, debug and reproduce.

Why very large datasets can still be wrong

The most important lesson of the last decade is that quantity cannot replace quality. Meng's error decomposition shows that when whether a unit is recorded is even slightly related to the value being measured, the error does not shrink as the dataset grows, and a huge non-random dataset can be less informative than a small random sample (Meng, 2018). During the COVID-19 vaccine roll-out in the United States, two very large online surveys overestimated vaccine uptake by 14 to 17 percentage points, while a much smaller survey designed for representativeness did not (Bradley et al., 2021).

The same logic applies to web surveys, social media data and platform logs, which over-represent some groups and miss others (Bethlehem, 2010). A big data thesis should therefore describe who is in the data and who is not, compare the data with a benchmark where one exists, and report how conclusions might change under plausible selection.

Privacy, documentation and reproducibility

Big data about people raise ethical and legal duties. Check the terms under which data were collected, obtain ethics approval, and minimise identifiable information. Where results will be released, formal methods such as differential privacy bound what an output can reveal about any individual (Dwork & Roth, 2014). Federated learning trains models across data held in different places without pooling the raw records (McMahan et al., 2017), which can help when data cannot leave an organisation.

Document the data so that others can understand and reuse them: datasheets describe motivation, composition, collection and recommended uses (Gebru et al., 2021), and the FAIR principles ask that data be findable, accessible, interoperable and reusable (Wilkinson et al., 2016). Script every step and record software versions so the pipeline can be rerun.

Worked example: retail demand and customer reviews (illustrative)

A doctoral student has two years of store-level transactions (about 300 million rows, structured) and two million online product reviews (unstructured), and asks whether review sentiment improves weekly demand forecasts. The figures are hypothetical and no results are implied.

  1. Store raw extracts unchanged, with a provenance log and the data-sharing agreement.
  2. Use Spark on the university cluster to aggregate transactions to product-store-week, because the raw table is too large for one machine (Zaharia et al., 2016).
  3. Build a sentiment measure from the reviews and validate it against a hand-coded sample (Grimmer & Stewart, 2013).
  4. Describe who writes reviews and which products have few, as a check on selection (Bethlehem, 2010).
  5. Compare forecasts with and without sentiment against simple benchmarks, splitting by time so that no future information leaks into training (Botha et al., 2023; Kapoor & Narayanan, 2023).
  6. Publish code and a datasheet; release only aggregated, non-identifying outputs (Gebru et al., 2021).

Related pages: data analytics for doctoral research, big data analytics research in US engineering and open problems in computational models for big data.

Common mistakes

  • Assuming that a large sample guarantees representativeness or accuracy.
  • Adopting a cluster stack before checking whether the data fit on one machine.
  • Cleaning data interactively without logging the rules and their effects.
  • Using automated text or image labels without validating them.
  • Splitting time-ordered data at random, so models see the future.
  • Leaving provenance, licence and privacy decisions out of the methods chapter.

Key takeaways

Your next step

Want to apply this to your own study?

  1. 1Tell us your topic, data and deadline
  2. 2A statistician reviews your work with you
  3. 3You get a plan and a quote
Quantitative analysis

References

  1. Bethlehem, J. (2010). Selection bias in web surveys. International Statistical Review, 78(2), 161–188. https://doi.org/10.1111/j.1751-5823.2010.00112.x
  2. Botha, B., Burger, R., Kotzé, K., Rankin, N., & Steenkamp, D. (2023). Big data forecasting of South African inflation. Empirical Economics, 65(1), 149-188. https://doi.org/10.1007/s00181-022-02329-y
  3. Bradley, V. C., Kuriwaki, S., Isakov, M., Sejdinovic, D., Meng, X.-L., & Flaxman, S. (2021). Unrepresentative big surveys significantly overestimated US vaccine uptake. Nature, 600(7890), 695–700. https://doi.org/10.1038/s41586-021-04198-4
  4. Dwork, C., & Roth, A. (2014). The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 9(3–4), 211–407. https://doi.org/10.1561/0400000042
  5. Gebru, T., Morgenstern, J., Vecchione, B., Vaughan, J. W., Wallach, H., Daumé III, H., & Crawford, K. (2021). Datasheets for datasets. Communications of the ACM, 64(12), 86–92. https://doi.org/10.1145/3458723
  6. Grimmer, J., & Stewart, B. M. (2013). Text as data: The promise and pitfalls of automatic content analysis methods for political texts. Political Analysis, 21(3), 267–297. https://doi.org/10.1093/pan/mps028
  7. Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), 100804. https://doi.org/10.1016/j.patter.2023.100804
  8. McMahan, B., Moore, E., Ramage, D., Hampson, S., & Agüera y Arcas, B. (2017). Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (Vol. 54, pp. 1273–1282). PMLR. https://proceedings.mlr.press/v54/mcmahan17a.html
  9. Meng, X.-L. (2018). Statistical paradises and paradoxes in big data (I): Law of large populations, big data paradox, and the 2016 US presidential election. The Annals of Applied Statistics, 12(2), 685–726. https://doi.org/10.1214/18-AOAS1161SF
  10. Wamba, S. F., Gunasekaran, A., Akter, S., Ren, S. J. F., Dubey, R., & Childe, S. J. (2017). Big data analytics and firm performance: Effects of dynamic capabilities. Journal of Business Research, 70, 356–365. https://ideas.repec.org/r/eee/jbrese/v70y2017icp356-365.html
  11. Wilkinson, M. D., Dumontier, M., Aalbersberg, I. J., Appleton, G., Axton, M., Baak, A., Blomberg, N., Boiten, J.-W., da Silva Santos, L. B., Bourne, P. E., Bouwman, J., Brookes, A. J., Clark, T., Crosas, M., Dillo, I., Dumon, O., Edmunds, S., Evelo, C. T., Finkers, R., . . . Mons, B. (2016). The FAIR guiding principles for scientific data management and stewardship. Scientific Data, 3, Article 160018. https://doi.org/10.1038/sdata.2016.18
  12. Zaharia, M., Xin, R. S., Wendell, P., Das, T., Armbrust, M., Dave, A., Meng, X., Rosen, J., Venkataraman, S., Franklin, M. J., Ghodsi, A., Gonzalez, J., Shenker, S., & Stoica, I. (2016). Apache Spark: A unified engine for big data processing. Communications of the ACM, 59(11), 56-65. https://doi.org/10.1145/2934664

How to cite this article

Choose your referencing style, then copy. Check your university's or journal's guide for local variations.

PhD Research Lab Academy. (2020, November 5). Big data analytics for doctoral research: data types, the processing pipeline and the Hadoop and Spark stack. PhD Research Lab. https://www.phdassistance.com/blog/what-are-big-data-analytics-and-how-its-being-used-mention-the-tools-and-technologies-used-in-big-data-analytics/

PhD Research Lab Academy. “Big Data Analytics for Doctoral Research: Data Types, the Processing Pipeline and the Hadoop and Spark Stack.” PhD Research Lab, 5 Nov. 2020, www.phdassistance.com/blog/what-are-big-data-analytics-and-how-its-being-used-mention-the-tools-and-technologies-used-in-big-data-analytics. Accessed [access date].

PhD Research Lab Academy (2020) Big data analytics for doctoral research: data types, the processing pipeline and the Hadoop and Spark stack. PhD Research Lab. Available at: https://www.phdassistance.com/blog/what-are-big-data-analytics-and-how-its-being-used-mention-the-tools-and-technologies-used-in-big-data-analytics/ (Accessed: [access date]).

PhD Research Lab Academy. “Big Data Analytics for Doctoral Research: Data Types, the Processing Pipeline and the Hadoop and Spark Stack.” PhD Research Lab. November 5, 2020. https://www.phdassistance.com/blog/what-are-big-data-analytics-and-how-its-being-used-mention-the-tools-and-technologies-used-in-big-data-analytics.

PhD Research Lab Academy, ‘Big Data Analytics for Doctoral Research: Data Types, the Processing Pipeline and the Hadoop and Spark Stack’ (PhD Research Lab, 5 November 2020) <https://www.phdassistance.com/blog/what-are-big-data-analytics-and-how-its-being-used-mention-the-tools-and-technologies-used-in-big-data-analytics> accessed [access date].

PhD Research Lab Academy. Big data analytics for doctoral research: data types, the processing pipeline and the Hadoop and Spark stack [Internet]. PhD Research Lab; 2020 Nov 5 [cited [access date]]. Available from: https://www.phdassistance.com/blog/what-are-big-data-analytics-and-how-its-being-used-mention-the-tools-and-technologies-used-in-big-data-analytics/

PhD Research Lab Academy, “Big data analytics for doctoral research: data types, the processing pipeline and the Hadoop and Spark stack,” PhD Research Lab, Nov. 5, 2020. [Online]. Available: https://www.phdassistance.com/blog/what-are-big-data-analytics-and-how-its-being-used-mention-the-tools-and-technologies-used-in-big-data-analytics. [Accessed: [access date]].

@online{what_are_big_data_analytics_and_how_its_being_used_mention_the_tools_and_technologies_used_in_big_data_analytics_2020,
  author = {{PhD Research Lab Academy}},
  title = {{Big data analytics for doctoral research: data types, the processing pipeline and the Hadoop and Spark stack}},
  organization = {PhD Research Lab},
  date = {2020-11-05},
  url = {https://www.phdassistance.com/blog/what-are-big-data-analytics-and-how-its-being-used-mention-the-tools-and-technologies-used-in-big-data-analytics},
  urldate = {[access date]}
}

This article is for learning. Use it to understand the method and cite the original sources above in your own work; do not copy or submit it as your own.

Big data analytics for doctoral researchNeed help applying it to your study?
Quantitative analysis