Skip to main content
Workforce LibreTexts

2.2: Data Sources

  • Page ID
    48025
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\ket}[1]{\left| #1 \right>}\)
    \(\newcommand{\bra}[1]{\left< #1 \right|}\)
    \(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
    \(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
    \(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
    \(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
    \(\newcommand{\expect}[1]{\langle #1 \rangle}\)
    \(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Data Sources

    As we have already established, data analytics is fueled by data from a wide variety of sources [5]. These sources can be broadly categorized as internal vs. external to an organization, but also by format or origin such as sensor data, web data, third-party databases, etc.

    In this section, we explore common data sources and how they contribute to analytics projects. We also highlight examples from different industries to show how diverse sources are used in practice.

    2.2.1 Internal vs. External Data Sources

    Every organization has internal data it generates through regular operations, and it can also leverage external data from outside its boundaries. Combining internal and external data often yields richer insights. Below we define each and list typical examples:

    Internal data is produced from within the organization itself—by its people, processes, and systems. Internal data is often readily accessible to the company and highly relevant to its own performance and decision-making. Common internal data sources include:

    • Operational Data: Day-to-day transactional data from business operations. For example, sales transaction records, product inventory logs, order fulfillment data, and manufacturing production records. This data reflects the core activities of the business and is crucial for operational analytics and process optimization.

    • Customer Data: Information collected from or about customers. This may come from Customer Relationship Management (CRM) systems, customer feedback forms, support tickets, user behavior on the company’s website or app, and loyalty program databases. Analyzing customer data helps in understanding satisfaction, segmentation, and retention.

    • Employee Data: Human resources and workforce-related data. Includes employee demographics, roles, performance metrics, payroll data, and engagement or satisfaction survey results. This data can be analyzed for HR analytics, organizational health, and productivity improvements.

    • Financial Data: Financial records from the firm’s accounting and finance systems. This covers budgets, revenues, expenses, profit and loss statements, balance sheets, cash flow statements, etc. Financial data analysis supports budgeting, forecasting, and compliance reporting.

    • Marketing Data: Data from marketing efforts and campaigns. For example, digital marketing analytics (website traffic, click-through rates, email campaign stats), social media engagement data, and lead generation metrics. This data helps assess marketing ROI and customer acquisition funnels.

    • Production/Operations Data: In manufacturing or service operations, internal data on production volumes, machine performance, quality control metrics, supply chain and logistics data. For instance, an automotive factory collects internal sensor data on machine uptime and defect rates, which can be analyzed for predictive maintenance and quality improvement.

    • Six main types of data that a company collects from its own operations. Details in caption.

    Figure \(\PageIndex{1}\): This diagram shows the six main types of data that a company collects from its own operations, such as customer records, financial data, and employee information. (CC BY 4.0; Felix Amoruwa) Access to a detailed description of Figure \(\PageIndex{1}\)

     

    Internal data is typically stored in enterprise databases, data warehouses, or internal data lakes. Because it’s proprietary, access is controlled, and data governance within the organization is crucial to maintain its quality and security.

    Case example: A retail company will have internal point-of-sale transaction data that reveals sales trends and inventory turnover. By analyzing this internal data, they can optimize stock levels and store layouts. Similarly, a software company might analyze internal product usage logs (operational data) to inform feature development.

    By contrast, External data is data that originates outside the organization’s own operations. This data is gathered from the external environment in which the organization operates. External data can provide context, benchmarking, or additional variables that enrich internal analyses. Key sources of external data include:

    • Public Data: Openly available data from public agencies, government databases, or public records. Examples are census data, economic indicators from government statistical agencies, public health records, weather data, or SEC filings of companies. These are often free and can be critical for market research or macro-level analysis.
      (Industry example: A real estate analytics firm might use public demographic data and economic indicators to advise investors.)

    • Social Media Data: Data from social networks and online platforms (Twitter, Facebook, LinkedIn, Instagram, etc.). This includes user-generated content like posts, comments, tweets, as well as engagement metrics (likes, shares). Social media data is often unstructured text, but can provide insights into public sentiment, brand reputation, or emerging trends.
      (Industry example: A consumer goods company monitors Twitter feeds to gauge sentiment on a new product launch.)

    • Web Data (Web Scraping): Data extracted from websites using automated scripts or APIs. This could be scraping competitors’ product prices, aggregating customer reviews from e-commerce sites, or collecting news articles. Web scraping can yield structured or semi-structured datasets from the vast information on the internet.
      (Example: An investment firm scrapes job postings and employee reviews to assess a company's health as alternative data for stock analysis.) 

    • Sensor/IoT Data: Data from sensors, smart devices, Internet of Things (IoT) sources not owned by the organization. For instance, a city’s air quality sensors, traffic sensors, or satellite imagery. These often produce continuous streams of measurements. Many industries integrate external sensor data – e.g., agriculture companies using satellite weather data to predict crop yields.

    • Partner/Third-Party Data: Data shared by business partners or purchased from third-party providers. Suppliers, distributors, or strategic partners might share data (like inventory levels or sales figures for your products in their stores). Third-party data providers sell datasets, such as credit scores, market research data, or industry benchmarks.
      (Example: A marketing firm might purchase third-party consumer lifestyle datasets to enhance their internal customer data for better targeting.)

    • Open Data: A special category of public data – often large datasets released for public use, such as data from Open Data portals, research datasets, or global institutions. Open data is usually free and can be anything from maps, genomic databases to academic research data. It may not always be immediately relevant, but can be useful for exploratory analysis or added context.

    • Main types of outside data. Details in caption.

    Figure \(\PageIndex{2}\): This diagram shows the main types of outside data — like government records, social media, and partner information — that organizations can use to improve their analysis. (CC BY 4.0; Felix Amoruwa) Access to a detailed description of Figure \(\PageIndex{2}\)

     

    External data often comes in varied formats and may need substantial cleaning and integration with internal datasets. It can be accessed via APIs, file downloads (CSV, JSON, XML), or direct database connections. One challenge is ensuring external data’s quality and timeliness since it’s outside the organization’s direct control.

    Integrating internal and external data: Many analytics projects blend both types. For instance, consider a supply chain analytics scenario for a manufacturing company: internal data might show current inventory levels and production rates, while external data (like supplier delivery times or commodity price indexes) provides context to optimize reordering. In finance, a bank uses internal customer transaction data combined with external credit bureau data to improve loan risk models. In marketing, a retailer merges its sales records (internal) with social media trends (external) to understand the impact of online buzz on sales. The synergy between internal and external data can uncover insights that neither source could provide alone.

    It is crucial to evaluate external data for reliability (who is the source?), accuracy, and relevance. Data governance (discussed later) should cover not just internal data but also how external data is vetted and used. Issues like licensing, privacy (for personal data), and ethical use also come into play when incorporating data from outside sources.

    2.2.2 Other Data Source Considerations

    Beyond the internal/external dichotomy, data sources are often characterized by how the data is generated or collected. A few important source types and methods include:

    • Databases and Data Warehouses: Many data sources are relational databases (SQL databases) or data warehouses within organizations. For analytics, data engineers often pull data through database queries or via data warehouse exports. For example, an analyst may query the company’s sales database directly to retrieve last quarter’s sales by region.

    • Live Data Streams and APIs: APIs (Application Programming Interfaces) allow programs to fetch data from services in real-time. Many modern data sources—like social media feeds, financial market data, or IoT sensor hubs—provide APIs. For instance, Twitter’s API can stream tweets matching certain keywords (real-time external data), and an organization might also have internal APIs for real-time operational data (e.g., a live feed of website user clicks).

    • Surveys and Data Collection Instruments: In some cases, an organization actively collects data via surveys, forms, or experiments. Survey data (customer satisfaction surveys, market research surveys) is a source that yields structured responses. This could be internal (employee surveys) or external (population surveys). The design of data collection instruments affects data quality significantly.

    • Web Scraping and Crawling: As mentioned, web scraping is the process of automatically extracting data from websites. Tools and scripts simulate a user browsing pages and then parse the HTML to collect specific information (like prices, reviews, or news headlines). Web scraping yields semi-structured data (if one parses HTML tags or known page structure) that needs further cleaning.

    • Machine-Generated Data (Sensors & Logs): With the IoT revolution, sensors embedded in environments (manufacturing equipment, vehicles, wearables, smart homes) generate massive datasets. Machine logs from servers, network devices, or application logs also are sources. These are often high-volume and require specialized processing (e.g., streaming data platforms, time-series databases). In industry, manufacturing companies collect machine sensor logs to predict failures (predictive maintenance), and utilities collect smart meter readings for energy consumption analytics.

    • Crowdsourced Data: Some projects rely on crowdsourcing – data contributed by large numbers of people (often via the internet). For example, OpenStreetMap is a crowdsourced map data source. Crowdsourced reviews (like product reviews on Amazon or hotel reviews on TripAdvisor) are another example, providing rich unstructured data for text analysis.

    Each source type brings its own challenges. For example, sensor data often needs timestamp alignment and may have missing readings when sensors fail. Web data may need parsing and legality checks (some websites disallow scraping). APIs might have rate limits or costs. It's part of an analyst’s role to understand these nuances, ensure data is collected ethically and legally, and account for source limitations in analysis.

    Industry example: In healthcare analytics, a hospital might use internal Electronic Health Record (EHR) databases (structured patient data), alongside external sources like genomic databases or public health datasets. A case study by Precisely (2023) highlighted how healthcare organizations improved patient outcomes by boosting data quality and integrating various data sources. For instance, an analytics initiative might combine internal hospital infection reports with external CDC (Centers for Disease Control) public data to predict and manage outbreaks.

    In summary, the landscape of data sources is vast and ever-growing. Modern analysts and data scientists must often play the role of data detective – finding and gathering data from wherever it resides, and then bringing it together for analysis. The variety of sources underscores the need for strong data management and quality practices, which we will address next.


    This page titled 2.2: Data Sources was last modified on Wed, 16 Sep 2026 21:30:29 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Felix Amoruwa.

    • Was this article helpful?