liveBook · Manning

Hypothesis

As explained in The Well-Grounded Data Analyst

A hypothesis is a specific, testable proposition about a relationship or difference in a domain.

A hypothesis is a specific, testable proposition about a relationship or difference. It keeps analysis focused on evidence that can support or contradict a stakeholder’s theory. section 6.2.1 section 6.3

A practical hypothesis starts with a vague business concern and identifies the data needed to test it. One investigation asks whether coding experience changes how developers use, assess, or trust generative AI tools. section 6.2.1

A results-oriented analysis turns hypotheses into a minimum viable investigation:

  • Read the survey questions closely and select variables connected to experience, usefulness, trust, or likely influencing factors. section 6.3
  • Choose an initial dataset deliberately; using the latest survey can reduce unnecessary scope when AI-tool usage changed substantially over time. section 6.3
  • Explore the proposed relationship with grouped comparisons, crosstabs, and heatmaps before deciding whether a statistical test is warranted. section 6.3 section 7.2.1

Experience and trust in AI outputs

After exploratory heatmaps suggest that more experienced developers trust AI outputs less, formulate the testable hypothesis that continuous years of experience affects trust ratings. section 7.2.1

exp_bins = pd.cut(survey_ai_users["YearsCodePro"],
                  bins=[-1, 0, 2, 5, 10, 20, 50],
                  labels=["0", "1-2 years", "3-5 years",
                          "6-10 years", "11-20 years",
                          "over 20 years"]
                 )

survey_ai_users.groupby(exp_bins)["YearsCodePro"].agg(["min", "max"])

Operationalize experience by binning YearsCodePro into ordered ranges, then compare trust responses across those groups. section 7.2.1

How The Well-Grounded Data Analyst covers it

How deep it goes
Moves from proposition to variable selection, exploratory comparison, and possible statistical testing, but does not specify the test procedure.
Examples
Uses developer experience, generative AI usage, usefulness, favorability, and trust responses from the Stack Overflow Developer Survey.
What it assumes
Assumes a stakeholder question and an available survey, while requiring careful reading of survey wording before analysis.
What you can do after
Evaluate whether a proposed relationship is supported by survey evidence and decide which analytical paths serve the stakeholder question.
How it connects
Connects hypotheses with stakeholder analysis, survey data, categorical data, crosstabs, heatmaps, and statistical tests.

Also explained in

Compare how 9 books explain hypothesis →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of The Well-Grounded Data Analyst. The section links point to the parts of the book it draws on.