Chapter 2 Flashcards
(14 cards)
c()
to create an object containing a set of values (we call this a “Vector”, and c stands for concatenate). dolphin = c(2, 3, 7, 45, 4, 0)
help.start()
help()
example()
vvv
data()
hhh
Quantitative
A way of describing data using numbers
quantities
Qualitative:
A way of describing data using descriptions and concepts (qualities), rather than numbers.
Numerical variable:
A set of recorded observations that
are inherently ordered on a scale of numbers. Example:
height (for people) or number of letters (for spelled forms
of words).
Continuous values:
Values that you can always
subdivide into smaller units. The number of distinct
values for a continuous variable is in theory infinite.
Example: height. If your range is 70-170 cm, you may have
an infinite number of possible fractions or decimals, such as
the possible values {72.5, 72.49, 72.486458, 72 . …}
Discrete values:
Values that are always integers and
can’t be subdivided into fractions. For a definite
range of values, you will have a finite number of
possible values. Example: number of letters. If your
range is 1-15 letters, you can only have 15 possible
values {1,2,3,4…15}.
Histogram
A special type of bar plot used to
represent the frequencies for different values of a
discrete numerical variable. Specifically, the bars of a
histogram must be arranged in strict numerical order
and there must be a space left for an “invisible” bar for
any value where there are no tokens within the range
of values for the sample.
Categorical variable
a set of recorded
observations of group or category membership
Example: Digraph gh has for possible pronunciations: /f/,
/g/, /p/, and
Ordinal variable
ranked categorical variables Example: familiar, unfamiliar, unknown Ranking can be expressed in numbers. Example: familiarity rating for words (1-7) Example: speech accent rating (1-5)
Nine letters
most common size of our
“bigwords” sample
four letters
most common size for our “small words”
sample.