Lecture 1.
Motivating example
Suppose I tell you that the mean lap time for setup a is 118 seconds and the mean lap time
for setup b is 110 seconds.
Can you confidently recommend setup b? answer: setup b is faster.
What caveats (red flags) might you consider? Answer: weather conditions.
Suppose I tell you that the SD for the times under setup a is 7 seconds and the SD for the
times under setup b is 5 seconds.
How would you incorporate this new information into your decision?
Suppose, instead, that the SD of times under setup a is 35 seconds and the SD under setup b
is 25 seconds.
How should you adjust your appraisal of the setups’ relative benefits?
Answer: We are more confident about setup B under the first scenario. SD of 5 second
might seem to be more precise measure than 25 seconds of SD. (how well we measured the
lap times)
Before making any decision, we have to consider variability
Statistical reasoning
The preceding example calls for statistical reasoning (when we think about uncertainty in
our measurement).
The foundation of all good statistical analyses is a deliberate, careful and through
consideration of uncertainty.
In the previous example, the mean lap time for Setup A is clearly longer than the
mean lap time for Setup B.
If the times are highly variable, with respect to the size of the mean difference, we
may not care much about the mean difference (not much difference between 2
variables).
The purpose of statistics is to systematize the way that we account for uncertainty
when making data-based decisions.
Statistics for Data Science
Data scientists must scrutinize(examine) large numbers of data and extract useful
knowledge
Data contain raw information.
To convert this information into actionable knowledge, data scientists apply various
data analytic techniques.
When presenting the results of such analyses, data scientists must be careful not to
over-state their finding.
Too much confidence in an uncertain finding could lead your employer to waste
large amounts of resources chasing data anomalies (irregular).
Statistic offers us a way to protect ourselves from ourselves.
,Probability Distributions
Before going any further we’ll review the general concept of a probability distribution.
Probability distributions quantify how likely it is to observe each possible value of
some probabilistic entity. / represents the expected outcomes of possible values for a
given data generating process
Probability distributions are re-scaled frequency distributions.
We can build up the intuition of a probability density by beginning with a histogram.
With an infinite number of bins, a
histogram smooths into a
continuous curve.
In a loose sense, each point on
the curve gives the probability
of observing the corresponding
X value in any given sample.
The area under the curve must
integrate to 1.0.
Reasoning with Distribution
We will gain insight by conceptualizing our example problem in terms of the underlying
distributions of lap times.
Instance 1 states that there are two distributions, but in instance 2 they are overlapping, so
you can’t say that they come from two different distributions.
Statistical Testing
In practice, we may want to distill (extract the essential meaning) the information in the
preceding plots into a simple statistic so we can make a judgment.
One way to distill this information and control for uncertainty when generating
knowledge is through statistical testing.
o When we conduct statistical tests, we weight the estimated effect by the
precision of the estimate.
A common type of statistical test, the Wald Test, follows this pattern:
T = Estimate - Null Hypothesized Value / Variability (how well we estimated)
, If we want to test the null hypothesis of a zero-mean difference, applying Wald test
logic to control for the uncertainty in our estimate results in the familiar t-test:
Applying the preceding formula to the first instantiation of our example problem produces:
If we consider the second instantiation of our example problem, the effect does not change,
but our measure of variability does:
As a results, our test statistic changes to reflect our decreased certainty:
(the larger the t test-statistic the better)
In R:
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller adata. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.02. You're not tied to anything after your purchase.