Skip to content
AI13 min read

What is a data scientist? What they do, the skills you need and what it pays

A data scientist turns messy data into predictions and decisions. Here is what the job involves day to day, how it differs from analyst and engineer roles, the latest official pay and job figures, and a tested mini project that shows the work in under 30 lines of Python.

By

Editor

Published

Cover image for “What is a data scientist?”: What they do, skills and pay, illustrated with a scatter chart, a trend line and a magnifying glass over the data points.

The short answer

A data scientist is a professional who uses statistics, programming and machine learning to turn raw data into predictions and recommendations that help an organization decide what to do. The work runs from framing the question and cleaning the data to building, testing and explaining models. In the US, the median pay is about $120,000 a year, according to the Bureau of Labor Statistics.

"Data scientist" is one of those job titles everyone has heard and few people can describe. It has been called the sexiest job of the century, a unicorn role and, lately, a job that AI will take over. None of those labels tells you what a data scientist actually does on a Tuesday afternoon.

This guide answers that plainly. You will get a clear definition, the real day-to-day work (including where the time goes), how the role differs from data analysts and engineers, the skills that matter, and the latest official pay and job-growth figures. To make it concrete, we also ran a small data science project in Python and show every step, including the check most beginners skip.

What is a data scientist?

A data scientist is a professional who uses statistics, programming and machine learning to turn raw data into predictions, explanations and recommendations that help an organization make decisions. The US Bureau of Labor Statistics sums the job up as using analytical tools and techniques to extract meaningful insights from data (opens in a new tab). In practice that means questions like "Which customers are about to cancel?", "Did the new checkout page actually raise sales?" or "How much stock will each store need next month?"

The field they work in is data science. Harvard's engineering school describes it as an interdisciplinary field that utilizes statistics, algorithms, and technology (opens in a new tab) to pull insight out of data. The word interdisciplinary is the key. A data scientist sits where three skill sets overlap:

  • Statistics and math, to know whether a pattern is real or just noise.
  • Programming, usually Python, R and SQL, to handle data far too large for a spreadsheet.
  • Domain knowledge, to ask questions that matter to the business and spot answers that make no sense.

Someone strong in only one of those is usually a statistician, a software developer or a business analyst. The data scientist is the person who can move between all three. The term itself went mainstream in October 2012, when Thomas H. Davenport and DJ Patil called it "the sexiest job of the 21st century" (opens in a new tab) in Harvard Business Review, meaning a rare skill set in high demand.

What does a data scientist do?

The BLS lists five core duties: working out which data is available and useful for a project; collecting, categorizing and analyzing it; creating, validating, testing and updating algorithms and models; presenting findings with data visualization software; and making business recommendations based on the analysis. O*NET, the US Department of Labor's occupation database, adds tasks such as interviewing stakeholders to identify questions (opens in a new tab), comparing models with statistical performance metrics and designing surveys to collect data.

Those duties follow a fairly standard project cycle. Microsoft's guide to data science processes (opens in a new tab) breaks it into eight steps, from defining the business problem to visualizing and communicating the results. Grouped into six stages, it looks like this:

The data science project cycle in six stages: define the question, get the data, clean and check it, explore it, model and test, then communicate and deploy. Below it, a bar showing where data professionals say their time goes: about 38% data preparation and cleaning, 26% working with models, 16% reporting and presentation, 13% visualization and 7% other.
The data science project cycle, and where the time actually goes (Anaconda's 2022 survey of data professionals).
  1. Define the question. Agree with the people who will use the answer what decision it should inform and how success will be measured. A vague question ("use AI on our sales data") produces a vague answer.
  2. Get the data. Pull it from databases, logs, APIs, surveys or outside sources, usually with SQL or Python.
  3. Clean and check it. Fix missing values, duplicates, wrong formats and impossible entries. The BLS notes that data scientists often start with large, unstructured raw data that must be cleaned before software can read it.
  4. Explore it. Summarize, chart and look for patterns, outliers and relationships before building anything.
  5. Model and test. Fit statistical or machine learning models, then test them on data they have not seen, and compare them against a simple baseline.
  6. Communicate and deploy. Turn the result into a chart, a recommendation or a model that runs inside a product, and keep checking it as new data arrives.

Where the time actually goes

The job sounds like building clever models. The data says otherwise. Anaconda surveyed 3,493 people in data science and AI in 2022; its State of Data Science report (opens in a new tab) found that commercial data professionals spend more time preparing data than on anything else:

How data professionals say they split their working time
TaskShare of time
Data preparation and cleansing37.75%
Working with models (selection, training, deployment)26.44%
Reporting and presentation16.20%
Data visualization12.99%
OtherAbout 7%

Examples of data science work by industry

Data scientists work almost everywhere data piles up. The BLS lists the largest employers as publishing, broadcasting and content providers (12% of data scientists), then insurance, computer systems design and corporate management (10% each), and credit intermediation such as banks (6%). Microsoft's guide lists typical projects like these:

Typical data science projects by industry
IndustryExample projects
Business and e-commerceProduct recommendations, supply chain and inventory management, customer service improvements
Finance and bankingFraud and security breach prevention, investment portfolio risk management
Entertainment and mediaMedia usage patterns, personalized recommendations, content performance
HealthcareReal-time disease outbreak tracking, evidence-based drug therapy, wearable devices for patient care
Utilities and telecomsSmart meter analysis, spotting patterns that lead to equipment failure, reducing dropped calls
GovernmentPolicy decisions, constituent satisfaction monitoring, fraud detection

A data scientist's workflow in under 30 lines of Python (tested)

To show what the cycle looks like in practice, here is a complete mini project. It uses the diabetes dataset that ships with scikit-learn, so it runs offline: 442 patients, ten baseline measurements each (opens in a new tab) (age, sex, BMI, blood pressure and six blood tests), plus a score for how much their disease progressed one year later. The question: can we predict that progression from the starting measurements, and how much better than a guess can we do?

ds_demo.py: question, check, explore, model, compare (tested)
from sklearn.datasets import load_diabetes
from sklearn.dummy import DummyRegressor
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import cross_val_score

# 1. Get the data: 442 patients, 10 measurements taken at the start,
#    and a score for how much the disease progressed a year later.
df = load_diabetes(as_frame=True).frame

# 2. Check it before trusting it.
print("rows, columns:", df.shape)
print("missing values:", int(df.isna().sum().sum()))

# 3. Explore: which single measurement tracks progression most closely?
corr = df.corr()["target"].drop("target").sort_values(key=abs, ascending=False)
print("strongest links:", corr.head(3).round(2).to_dict())

# 4. Model, and always compare with a baseline that just guesses the average.
X, y = df.drop(columns="target"), df["target"]
def mae(model, cols):
    scores = cross_val_score(model, X[cols], y, cv=5, scoring="neg_mean_absolute_error")
    return round(-scores.mean(), 1)

print("baseline (guess the average):", mae(DummyRegressor(), list(X.columns)))
print("one measurement (bmi):       ", mae(LinearRegression(), ["bmi"]))
print("all ten measurements:        ", mae(LinearRegression(), list(X.columns)))
Output from Python 3.13 with scikit-learn 1.9.1
rows, columns: (442, 11)
missing values: 0
strongest links: {'bmi': 0.59, 's5': 0.57, 'bp': 0.44}
baseline (guess the average): 66.0
one measurement (bmi):        51.9
all ten measurements:         44.3

Here is how a data scientist would read that. The progression scores run from 25 to 346. Simply guessing the average for every patient is off by 66 points on average; that is the baseline, and any model has to beat it to be worth anything. A straight line using BMI alone cuts the error to 51.9, and all ten measurements bring it to 44.3, about a third better than guessing. Each number comes from five-fold cross-validation, which tests the model only on patients it did not learn from.

Just as important is what the data scientist would not claim. An average error of 44 points is still large, so this model could rank patients by risk but should not drive anyone's treatment. And scikit-learn itself warns that its toy datasets are often too small to represent real-world machine learning tasks. On a real project, the next steps would be checking the result with the clinicians who own the question, testing more flexible models, and writing up the limits as clearly as the findings. If you want to try this kind of work yourself, our machine learning for beginners guide walks through a first model step by step.

Data scientist vs data analyst vs data engineer vs machine learning engineer

These titles overlap, and companies use them inconsistently. Davenport and Patil, revisiting their famous article a decade later, noted that work once expected of one data scientist has been split among machine learning engineers, data engineers, AI specialists, analytics and AI translators, and data-oriented product managers (opens in a new tab), partly because no single person can hold every skill. Here is how the main roles usually divide:

Data roles compared
RoleMain focusTypical questionMain outputCore tools
Data analystDescribing what happened and whyWhy did sales fall last quarter?Reports and dashboardsSQL, Excel, Tableau or Power BI
Data scientistPredicting what will happen and testing what worksWhich customers will cancel next month?Models, experiments, recommendationsPython or R, SQL, statistics, machine learning libraries
Data engineerMoving and storing data reliablyHow do we get clean data to everyone each morning?Pipelines and data platformsSQL, Python, Spark, Airflow, cloud warehouses
Machine learning engineerRunning models in production at scaleHow do we serve this model to millions of users?Deployed, monitored ML systemsPython, Docker, Kubernetes, MLOps tools

IBM draws the engineer and scientist line clearly: a data engineer develops and maintains data architecture and pipelines (opens in a new tab), while a data scientist studies large datasets using advanced statistical analysis and machine learning. Harvard SEAS puts the analyst distinction this way: analytics focuses on interpreting and visualizing data, while data science adds more complex techniques for prediction and automation. In smaller companies, one person may cover several of these roles.

What skills does a data scientist need?

Technical skills

  • Python or R. Microsoft calls Python the language of choice for many data scientists, because it is easy to learn and has ready-made data science libraries. R remains popular for statistics.
  • SQL. Most business data lives in databases, and SQL is how you get it out.
  • Statistics and probability. Hypothesis testing, regression, sampling and knowing when a result is just chance. This is what separates a data scientist from someone who can only run code.
  • Machine learning. Supervised models for prediction, clustering for grouping, and how to evaluate them honestly. Our guide to how AI models are trained covers the core ideas.
  • Data wrangling and visualization. pandas, plotting libraries, and BI tools such as Tableau or Power BI.
  • Big data and cloud tools. Spark, cloud warehouses and MLOps tools. O*NET's list of in-demand technologies for the role includes Apache Airflow, Docker, Kubernetes, PostgreSQL, Amazon Redshift and GitHub.

Non-technical skills

  • Framing questions. Turning "we want more customers" into something data can answer.
  • Communication. Explaining a model's result, and its limits, to people who will never read the code.
  • Domain knowledge. Understanding the business, the patients or the product well enough to spot nonsense.
  • Skepticism and ethics. Checking for bias in the data and being honest about uncertainty. Davenport and Patil note that non-technical skills such as ethics and change management now matter more than they did a decade ago.

How much does a data scientist make?

The most reliable US figures come from the BLS, which surveys employers rather than asking job seekers. Its latest data puts the median annual wage for data scientists at $120,230 in May 2025. The lowest-paid 10% earned less than $67,240 and the highest-paid 10% more than $199,130. Many of the top-ranking guides still quote older BLS figures from earlier surveys, so check the date on any salary number you read.

Median data scientist pay in the industries that employ the most
IndustryMedian annual wage
Publishing, broadcasting and content providers$142,240
Computer systems design and related services$132,380
Credit intermediation and related activities$129,490
Management of companies and enterprises$128,050
Insurance carriers and related activities$108,650
All data scientists$120,230

For context, the median for all US occupations in the same survey was $50,980, so the typical data scientist earns more than twice the typical worker. Outside the US, pay is lower in absolute terms. The UK's National Careers Service gives a range of £32,000 at starter level to £83,000 for experienced data scientists (opens in a new tab), typically on 37 to 39 hours a week.

Is data science still in demand?

Yes, by the official projections. The BLS counted about 275,600 data scientist jobs in 2025 and projects employment to grow 35% from 2025 to 2035, with about 24,800 openings a year on average. That puts data scientists third on its list of the fastest growing occupations (opens in a new tab), behind only nurse practitioners and solar photovoltaic installers.

The reason is AI itself. In its 2025 to 2035 employment projections (opens in a new tab), the BLS says data scientists will be in demand to develop, improve and use AI and other digital tools to improve business operations and support decisions. The same release cautions that productivity gains from AI may reduce demand in other occupations, which is a reminder that projections are estimates, not guarantees.

The job is also changing shape. Davenport and Patil describe automated machine learning taking over parts of the work and opening it up to "citizen data scientists" with less quantitative training, while professionals increasingly check that those models are accurate. AI assistants can also draft routine analysis code, which raises the value of the parts they handle poorly: framing the right question, judging whether the data can answer it and spotting a confident answer that is wrong. Our explainer on why AI makes things up shows why that last skill matters. For the wider picture of where AI is heading, see our look at the future of artificial intelligence.

How do you become a data scientist?

The BLS says data scientists typically need at least a bachelor's degree in mathematics, statistics, computer science or a related field, and some employers require or prefer a master's or doctoral degree. O*NET's survey of new hires shows how split employers are: 48% reported needing a bachelor's degree and 44% a master's. In the UK, the National Careers Service also lists a Level 6 data scientist degree apprenticeship and postgraduate conversion courses for graduates of other subjects.

  1. Build the math foundation. The BLS suggests linear algebra, calculus, and probability and statistics.
  2. Learn Python and SQL properly. Write code every week, not just in courses. Get comfortable with pandas and with joining and filtering tables in SQL.
  3. Learn core machine learning. Regression, classification, clustering and, above all, how to evaluate a model fairly, as in the baseline example above. Start with our beginner's guide to AI models.
  4. Build a portfolio of real projects. Pick public datasets on topics you care about, ask a clear question, and write up the answer, the limits and the code. A finished analysis with a clear write-up shows employers more than a list of courses.
  5. Get a foothold role. A common route is to start as data analysts, business intelligence analysts or in research roles, then move across as you take on modeling work.
  6. Specialize over time. Common directions include machine learning engineering, experimentation, natural language processing, or deep expertise in one industry.

Is it hard to become a data scientist?

It is demanding, mainly because you need three skill sets at once. But it is a learnable path, not a talent test. The hard part for most people is not any single topic; it is keeping up steady practice on messy, real data until cleaning, modeling and explaining become second nature.

Is data science the right career for you? A quick test

Answer these honestly. If most answers are yes, the field is worth a serious look:

  • Do you enjoy finding out why something happened, not just what happened?
  • Could you spend a whole morning fixing a messy spreadsheet and feel it was time well spent?
  • Are you comfortable with math, or willing to relearn statistics properly?
  • Do you like writing code to automate repetitive work?
  • Can you explain a technical result to a friend who has no technical background?
  • Are you happy to say "the data can't answer that" when it can't?

If you said yes to the coding questions but no to the explaining ones, data engineering or machine learning engineering may suit you better. If you love the explaining and the business side more than the math, a data analyst role is a great place to start.

The bottom line

A data scientist is someone who uses statistics, code and domain knowledge to turn raw data into predictions and decisions. Most of the work is framing questions, cleaning data and explaining results, with modeling in between. Official figures put US median pay at $120,230 and project 35% job growth to 2035, driven largely by demand for AI. If that mix of detective work, math and storytelling appeals to you, start with Python, SQL and statistics, and build small, honest projects like the one above. For more plain-English guides to how AI and machine learning work, browse our AI guides.

Common questions

What is the salary of a data scientist?

In the US, the median annual wage for data scientists was $120,230 in May 2025, according to the Bureau of Labor Statistics. The lowest-paid 10% earned less than $67,240 and the highest-paid 10% more than $199,130. In the UK, the National Careers Service gives a range of about £32,000 for starters to £83,000 for experienced data scientists.

What qualifications do I need to be a data scientist?

Most employers expect at least a bachelor's degree in mathematics, statistics, computer science or a related field, and some prefer a master's or doctorate. In the UK, a Level 6 data scientist degree apprenticeship is another route. Employers also look for proof of skill, such as a portfolio of projects in Python and SQL.

Is it hard to become a data scientist?

It takes real effort, because you need three skill sets at once: statistics, programming and enough business knowledge to ask useful questions. Most people get there in stages, often through a data analyst or similar role first, rather than in one jump. The math is learnable; consistent practice on real datasets matters more than talent.

Is data science a well-paid job?

Yes, by official figures. The BLS median for data scientists ($120,230 in May 2025) was more than double the median for all US occupations ($50,980) in the same survey. Pay varies widely by industry, location and seniority, so treat the median as a midpoint, not a promise.

What does a data scientist do on a typical day?

Less modeling than most people expect. In Anaconda's 2022 survey, data professionals said they spent about 38% of their time preparing and cleaning data, 26% working with models, 16% on reporting and presentation and 13% on visualization, with the remaining few percent on other tasks.

Will AI replace data scientists?

Not on current evidence. The BLS still projects 35% employment growth for data scientists from 2025 to 2035 and links that demand to building and using AI. But automation is taking over routine parts of the work, so the role is shifting toward framing problems, checking results and explaining them.

Sources

  1. Data Scientists (Occupational Outlook Handbook), U.S. Bureau of Labor Statistics
  2. Fastest growing occupations, U.S. Bureau of Labor Statistics
  3. Employment Projections: 2025-2035 Summary, U.S. Bureau of Labor Statistics
  4. Data Scientists (15-2051.00), O*NET OnLine, U.S. Department of Labor
  5. What is data science?, Microsoft Azure
  6. What Is Data Science? Definition, Skills, Applications & More, Harvard John A. Paulson School of Engineering and Applied Sciences
  7. What's the Difference? Data Engineer vs Data Scientist vs Analytics Engineer, IBM
  8. 2022 State of Data Science Report, Anaconda
  9. Is Data Scientist Still the Sexiest Job of the 21st Century? (Harvard Business Review, republished copy), Thomas H. Davenport and DJ Patil
  10. Is Data Scientist the Sexiest Job of Our Time?, IEEE Spectrum
  11. Data scientist (job profile), National Careers Service (UK)
  12. Toy datasets: diabetes dataset, scikit-learn

About A. Farooq

Qualified software engineer with 4+ years of experience in the software industry

A. Farooq is a qualified software engineer with 4+ years of experience in the software industry. A. Farooq edits GeeklyPlug and writes many of its AI and technology guides, from how AI agents are built to which laptop to buy and when. Every article lists its sources and shows when it was last updated; corrections go on the original piece.

data sciencecareersmachine learningpythonexplainer

Keep reading

More from AI, then the rest of the archive.