Docsity

Probability Versus Statistics - Applied Statistics | CSE 2400, Exams of Statistics

Partial preview of the text

Download Probability Versus Statistics - Applied Statistics | CSE 2400 and more Exams Statistics in PDF only on Docsity!

Statistics for Computer Scientists

Statistics for Computer Scientists

This material is provided for the educational use ofstudents in CSE2400 at FIT.

No further use or

reproduction is permitted.

Dr. G. Marin

Statistics for Computer Scientists

Probability vs Statistics

In probability theory we are given a complete description ofthe sample space or we are given the distribution of arandom variable (equivalent) and we compute “probabilities”that particular values (or events) may occur.



A set of independent values from the given random variable (orsample space) is referred to as a “random sample.”



We might ask “In a random sample of ten what is theprobability that at least one value equals 3?”

In statistics we collect data and then attempt to understandthe distribution (and parameters) of the random variable (orsample space) that generated the data.

For example, given a random sample of size 10 what can we determineabout the probability distribution of the random variable thatgenerated the random sample?

The sample space (or random variable) from which the sample isgenerated is referred to as the “population.”



Estimating the true mean and variance of a population from agiven random sample is a typical problem in statistics.

Statistics for Computer Scientists

6-1 Numerical Summaries

Example 6-

Statistics for Computer Scientists

6-1 Numerical Summaries

Figure 6-

The sample mean as a balance point for a

system of weights.

Statistics for Computer Scientists

6-1 Numerical Summaries Definition: Sample Variance

Statistics for Computer Scientists

6-1 Numerical Summaries How Does the Sample Variance Measure Variability? Figure 6-

How the sample variance measures variability

through the deviations

.

x

x

i

−

Statistics for Computer Scientists

6-1 Numerical Summaries

Statistics for Computer Scientists

6-1 Numerical Summaries

Computation of s

2

(

)

(

)

Recall the working formula

. It would seem natural to

approximate

using

. The definition of

gives us

a slightly larger estimate, namely,

1

n

n

i

i

i

i

i

i

E

X

E

X

x

x

s

s

n

n

x

n

s

n

σ

σ

=

−

⎛

⎞

⎜

⎟

⎜

⎟

=

−

⎜

⎟

⎜

⎟

⎝

⎠

=

−

∑

∑

.

n

n

i

i

x

n

n

⎛

⎞

⎛

⎞

⎜

⎟

⎜

⎟

⎜

⎟

⎜

⎟

−

⎜

⎟

⎜

⎟

⎜

⎟

⎜

⎟

⎜

⎟

⎝

⎠

⎝

⎠

∑

∑

error

Statistics for Computer Scientists

6-2 Stem-and-Leaf Diagrams

OMIT this section.

Steps for Constructing a Stem-and-Leaf Diagram

Statistics for Computer Scientists

6-3 Frequency Distributions and Histograms

  • A

frequency distribution

is a more compact

summary of data than a stem-and-leaf diagram. • To construct a frequency distribution, we must dividethe range of the data into intervals, which are usuallycalled

class intervals, cells,

or

bins.

Constructing a Histogram (Equal Bin Widths):

Statistics for Computer Scientists

6-3 Frequency Distributions and Histograms

Figure 6-

A histogram of the compressive strength data

from Minitab with 17 bins.

Statistics for Computer Scientists

6-3 Frequency Distributions and Histograms

Figure 6-

A histogram of the compressive strength data

from Minitab with nine bins.

Statistics for Computer Scientists

Histogram 8 Intervals

Histogram 8Intervals

Histogram 10 Intervals

Histogram 10Intervals

Histogram 15 Intervals

Histogram 15 Intervals

Based on a sample of size100 from a chi-squaredistribution with 12 dof.

Max=26.8 Min=4.1 Mean=11.7 Variance=21.6 Median=11.

Outliers?

Descriptive Statistics

Statistics for Computer Scientists

Poisson Example - Bar Plot & Scatter Plot

Using MathCad

Random Poisson Values (Mean 2)

RnPois

i

i

Random Poisson Values (Mean 2)

RnPois

i

i

Generate 50 random values from a Poisson distribution using the functionrpois(50,2) and store them in the vector RnPois (ORIGIN=1).

Bar Plot

Scatter Plot

mean RnPois

(

)

=

Var RnPois

(

)

=

Sample mean and sample variance