0% found this document useful (0 votes)
16 views5 pages

Data Sources in Predictive Modeling

This document discusses data sources and exploring data sources for predictive modeling projects. It describes primary and secondary data sources, as well as internal and external sources. Specific data sources mentioned include databases, the web, social media, sensors, surveys, and observation studies. Methods of collecting data include APIs, web scraping, and data streams from devices. Popular tools for data mining discussed are spreadsheets, R, Python with packages like Pandas and NumPy, SAS Enterprise Miner, and Jupyter Notebooks. The conclusion emphasizes the importance of a defined data collection method to ensure clean, consistent, reliable data.

Uploaded by

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

Data Sources in Predictive Modeling

This document discusses data sources and exploring data sources for predictive modeling projects. It describes primary and secondary data sources, as well as internal and external sources. Specific data sources mentioned include databases, the web, social media, sensors, surveys, and observation studies. Methods of collecting data include APIs, web scraping, and data streams from devices. Popular tools for data mining discussed are spreadsheets, R, Python with packages like Pandas and NumPy, SAS Enterprise Miner, and Jupyter Notebooks. The conclusion emphasizes the importance of a defined data collection method to ensure clean, consistent, reliable data.

Uploaded by

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

Lecture Notes 2

Data Sources and Exploring the data sources for the project in
predictive modeling.

Introduction

A data source can be the original site where data is created or where physical information is
first digitized. Still, even the most polished data can be used as a source if it is accessed and
used by another process. A data source can be a database, a flat file, real-time measurements
from physical equipment, scraped online data, or any of the numerous static and streaming
data providers available on the internet.

There are a variety of outcomes for which data collectors gather data. However, the primary
goal of data collection is to place a researcher in a position to make predictions about future
probability and trends.

Primary and secondary data are the two types of data obtained. The former is gathered by a
model in predictive based system using first-hand sources, whereas the latter is gathered by
someone other than the user.

Based on Nature

Primary Data Sources

he data sources which provide primary data are known as primary data sources, and
information gathered directly from first-hand experience is referred to as preliminary data.
This is the information you collect for the aim of a particular research endeavour.

Primary data gathering is a straightforward method suited to a company’s particular


requirements. It’s a time-consuming procedure, but it provides valuable first-hand knowledge
in many business situations.

E.g., in Census data collected by the government, Stock prices are taken from the stock
market.

Secondary Data Sources

These data sources provide secondary data. Secondary data has previously been gathered for
another reason but is relevant to your investigation. Additionally, the data is collected by
someone other than the team who needs the data.
Secondhand information is referred to as secondary data. It is not the first time it has been
used, and that’s why it’s referred to as secondary.

Secondary data sources contribute to the interpretation and analysis of main data. They may
describe primary materials in-depth and frequently utilize them to promote a certain thesis or
point of view.

Identifying and Gathering Data

The first step in identifying data is deciding what information needs to be gathered, which is
decided by the aim we want to achieve. After we have identified the data, we will need to
choose the sources from which we shall extract the essential information and create a data
collecting strategy. At this step, we decide on the duration over which we want the data
collection, as well as how much data is required to arrive at a viable analysis.

Data sources can be internal or external to the company, and they can be primary, secondary,
or third-party, depending on whether we are getting data directly from the source, accessing it
from external data sources, or buying it from data aggregators.

Databases

Databases, the web, social media, interactive platforms, sensor devices, data exchanges,
surveys, and observation studies are some of the data sources we may be using. Data from
diverse data sources is recognized and acquired, then merged using a range of tools and
methodologies to create a unified interface for querying and manipulating data. The data we
identify, the source of that data, and the methods we use to collect it all have quality, security,
and privacy concerns that must be considered at this time.

APIs

APIs, or Application Program Interfaces, and Web Services are provided by many data
providers and websites, allowing various users or programmes to communicate with and
access data for processing or analysis. APIs and Web Services often listen for incoming
requests from users or applications, which might be in the form of web requests or network
requests, and return data in plain text, XML, HTML, JSON, or media files.

APIs (Application Programming Interfaces) are widely used to retrieve data from a number
of data sources. APIs are used by apps that demand data and access an end-point that contains
the data. Databases, online services, and data markets are examples of end-points. APIs are
also used to validate data. An API might be used by a data analyst to validate postal addresses
and zip codes, for example.
Web Scraping

Web scraping is a technique for obtaining meaningful data from unstructured sources. Online
scraping, also known as screen scraping, web harvesting, and web data extraction, allows you
to retrieve particular data from websites depending on predefined parameters.

Web scrapers may harvest text, contact information, photos, videos, product items, and other
information from a website. Web scraping is commonly used for a variety of purposes,
including gathering product details from retailers, manufacturers, and eCommerce websites to
provide price comparisons, generating sales leads from public data sources, extracting data
from posts and authors on various forums and communities, and gathering training and
testing datasets for machine learning models. BeautifulSoup, Scrapy, Pandas, and Selenium
are some prominent web scraping tools.

Data Streams

Data streams are another popular method for collecting continuous streams of data from
sources such as instruments, IoT devices and apps, GPS data from cars, computer
programmes, websites, and social media posts. This information is often timestamped and
geotagged for geographic identification. Stock and market tickers for financial trading, retail
transaction streams for projecting demand and supply chain management, surveillance and
video feeds for danger detection, social media feeds for emotion research, and so on are
examples of data streams and how they may be utilized.
Data Mining Tools

Spreadsheets

Basic data mining operations are usually performed using spreadsheets such as Microsoft
Excel and Google Sheets. Spreadsheets may be used to store data in an easily accessible and
readable manner that has been exported from other systems. When you have a large quantity
of data to go through and evaluate, pivot tables can help you highlight key features of your
data. They also make comparisons between various sets of data a little simpler. Data Mining
Client for Excel, XLMiner, and KnowledgeMiner for Excel is Excel add-ins that allow you to
do basic mining activities including classification, regression, association rules, clustering,
and model development. Google sheets also have a number of add-ons for analysis and
mining, including Text Analysis, Text Mining, and Google Analytics.

R is a popular data mining tool. R is a free and open-source programming language created
by Bell Laboratories (formerly AT&T, now Lucent Technologies). For statistical computing,
analytics, and machine learning tasks, data scientists, machine learning engineers, and
statisticians choose R. R libraries such as Dplyr, Caret, Ggplot2, Shiny, and data table is used
in machine learning and data mining.

Python

Python is a popular programming language that allows programmers to work swiftly and
efficiently. Python is highly sought for Machine Learning Algorithms. Many Python feature
libraries, such as NumPy, pandas, SciPy, Scikit-Learn, Matplotlib, Tensorflow, and Keras,
make machine learning tasks relatively simple to implement.

Python packages for data mining, such as Pandas and NumPy, are widely used. Pandas is a
free and open-source data structuring and analysis package. It is perhaps one of the most used
Python packages for data analysis. It accepts data in any format and gives an easy platform
for organizing, sorting, and manipulating that data. Using Pandas, you can: do fundamental
numerical operations such as mean, median, mode, and range; compute statistics and answer
questions about data correlation and distribution; visually and quantitatively examine data,
and visualize data with the aid of other Python tools.

NumPy is a Python utility for mathematical processing and data preparation. NumPy comes
with a slew of built-in data mining methods and features. When working with Python to
undertake data mining and statistical analysis, Jupyter Notebooks have become the tool of
choice for Data Scientists and Data Analysts.

Statistical Analysis System


SAS Enterprise Miner is the company’s primary data mining product. Its main goal is to
simplify the data mining process by providing a diverse range of analytic skills to assist
business users with predictive analysis, which leads to better and more efficient decision
making. SAS Enterprise Miner scans through massive volumes of data for patterns,
partnerships, particular relationships, or trends that might otherwise be missed.

SAS Enterprise Miner is a sophisticated, graphical data mining workstation. It offers


extensive interactive data exploration features, allowing users to uncover correlations among
data. SAS can manage information from a variety of sources, mine and convert data, and
perform statistical analysis. It provides non-technical users with a graphical user interface.
SAS allows you to: detect patterns in data using a variety of modelling tools; examine
correlations and anomalies in data; analyze huge data, and assess the trustworthiness of data
analysis conclusions.

Because of its syntax, SAS is incredibly simple to use and debug. It can handle big datasets
and provides its users with a high level of security.

Conclusion

A defined method is required for good data collecting to guarantee that the data you collect is
clean, consistent, and dependable. Although data might be beneficial, having too much
information is cumbersome, and having the wrong data is pointless. The correct data
collecting methods and tools can be the difference between meaningful insights and time-
wasting detours.

When it is necessary to arrive at a solution to a question, data gathering methods assist in


making assumptions about the outcome in the future. It is critical that we acquire trustworthy
data from the appropriate sources in order to simplify computations and analysis.

Common questions

Powered by AI

A well-defined data collection strategy ensures that relevant, accurate, and sufficient data is gathered, aligning tightly with the research objectives and enhancing the quality of data analysis . This strategy includes setting clear objectives for data types, identifying suitable sources, and planning the duration and extent of data collection, mitigating risks of data redundancy or irrelevancy and optimizing resource use .

Python and its libraries like Pandas, NumPy, and Scikit-Learn provide robust data manipulation capabilities, allowing for complex analytical processes that are not achievable with spreadsheets . These libraries support advanced data analysis and visualization, enable handling of large datasets efficiently, and offer built-in methods for machine learning tasks, unlike spreadsheets which are more limited to basic mining operations and less efficient when dealing with large data volumes .

Web scraping involves extracting data directly from websites based on predetermined parameters, allowing access to data not provided through public APIs . Unlike APIs, web scraping is more prone to issues such as potential legal risks, website changes disrupting scrapers, and a lack of standardized data formats . Additionally, web scraping may face challenges regarding data quality and reliability, as the extracted data needs to be cleaned and validated .

Companies may prefer using sensor devices in scenarios requiring real-time, continuous data acquisition, such as monitoring equipment performance in manufacturing, tracking vehicle locations through GPS, and gathering environmental data in smart cities . Sensors offer automated, precise, and low-latency data that is essential for time-sensitive decision-making, adherence to regulatory requirements, and operational efficiency, unlike traditional manual data collection methods that can be slower and prone to errors .

Statistical analysis systems like SAS offer comprehensive tools for predictive analysis, including pattern detection and data relationship examination, and are notable for their user-friendly graphical interfaces . SAS supports the handling of large datasets with high security and is favored for enterprise-level applications. Compared to open-source tools, SAS provides extensive support and stability, while open-source alternatives like R and Python offer flexibility, customization, and a broad range of community-driven enhancements .

APIs streamline data collection and integration by providing predefined endpoints to acquire data, thus simplifying how applications communicate and exchange information across different platforms . They enable efficient data retrieval for processing or analysis by allowing precise and automated requests, which is essential in predictive modeling for real-time data access and flexibility .

Data streams provide continuous, real-time data, enabling applications to perform dynamic and timely analytics . This facilitates immediate responses to events such as stock trading alerts, retail transaction flows, and social media sentiment analysis, thus enhancing the decision-making process by offering up-to-date information . The inclusion of timestamped and geotagged data enriches the context for analysis, allowing for more informed decision-making .

Integrating data from multiple sources through a unified interface facilitates comprehensive data analysis by providing a holistic view of the information . It allows for cross-referencing data from varied datasets, improving the depth of analysis and enabling more nuanced insights. This integration aids in identifying trends, correlations, and causations that may not be apparent when datasets are viewed separately, thereby enhancing predictive modeling and decision-making .

Primary data sources provide data collected directly from first-hand experience, tailored to specific research needs, thus ensuring relevance and accuracy for the intended analysis . Secondary data sources offer previously gathered data by different users, potentially saving time and resources but possibly misaligned with specific research goals . The use of primary data in predictive modeling can increase the accuracy and relevance of the results, whereas reliance on secondary data may necessitate additional analysis to ensure alignment with the research objectives .

Organizations may opt to purchase data from third-party aggregators to access comprehensive, ready-to-use datasets without incurring the time and resource costs associated with internal data collection or challenges of open-source data such as variability in quality or scope . Third-party data can offer insights otherwise unavailable internally, support scalability, and allow companies to focus on analysis and application rather than data acquisition .

You might also like