Beruflich Dokumente
Kultur Dokumente
(vii)
Q: Glossary
Variable: A characteristic about each individual element of a population or
sample.
Data (singular): The value of the variable associated with one element of a
population or sample. This value may be a number, a word, or a symbol.
Data (plural): The set of values collected for the variable from each of the
elements belonging to the sample.
Experiment: A planned activity whose results yield a set of data.
Page 2 of 24
Q: Scales of Measurement
Nominal
Ordinal
Q: Variable
A variable is a characteristic or condition that can change or take on different
values.
Variable a characteristic that can vary in value among subjects in a sample or a
population.
Q: Types of Variable
Variables can be classified as
(i) Discrete and (ii) Continuous.
Discrete variables (such as class size) number of family members, and
Continuous variables (such as time or weight) are infinitely divisible into
whatever units a researcher may choose. For example, time can be measured
to the nearest minute, second, half-second, etc.
Q: Data and Variables
Data are often discussed in terms of variables, where a variable is:
Any characteristic that varies from one member of a population to another.
A simple example is height in centimeters, which varies from person to person.
Q: Types of Variables
There are two basic types of variables:
(i) Categorical and (ii) Numerical variables.
Categorical Variables: variables defined by the classes or categories into which
an individual member falls. Example Male/Female, Yes/No, 1st/2nd etc.
Numerical Variables: variables to which a number is assigned as a quantitative
value. Example Family size, Age, temperature etc.
Q: Categorical Variables
Defined by the classes or categories into which an individual member falls.
Nominal Scale: Name only--Gender, hair color, ethnicity, religion etc.
The data have the properties of nominal data and the order or
rank of the data is meaningful.
A nonnumeric label or a numeric code may be used.
Example:
Students of a university are classified by their class standing using a
nonnumeric label such as Freshman, Sophomore, Junior, or Senior.
Alternatively, a numeric code could be used for the class standing variable (e.g.
1 denotes Freshman, 2 denotes Sophomore, and so on).
Q: Data
* Elements, Variables, and Observations
* Scales of Measurement
Qualitative and Quantitative Data
Cross-Sectional and Time Series Data
Q: Elements, Variables, and Observations
The elements are the entities on which data are collected. E.g.,
IBM, Dell, Apple, etc. in the previous setting.
A variable is a characteristic of interest for the elements. E.g.,
Sales revenue, stock price (of a company)
The set of measurements collected for a particular element is called an
observation.
Sales revenue, stock price for 2003
The total number of data values in a data set is the number of elements
multiplied by the number of variables.
Q: Data, Data Sets, Elements, Variables, and Observations
Page 3 of 24
HRN/Statistics/exam preparation/ Oct2016
Example:
Melissas college record shows 36 credit hours earned, while Kevins record
shows 72 credit hours earned. Kevin has twice as many credit hours earned as
Melissa.
Q: Scales of Measurement
Interval
The data have the properties of ordinal data and the interval
between observations is expressed in terms of a fixed unit of
measure.
Q: Numerical Variables
(i)
Q: Ratio
The data have all the properties of interval data and the ratio of
two values is meaningful.
Variables such as distance, height, weight, and time use the ratio
scale.
This scale must contain a zero value that indicates that nothing
exists for the variable at the zero point.
Interval
Example:
Q: Measurement
Q: Ratio scale:
Melissa has an SAT score of 1205, while Kevin has an SAT score of 1090.
Melissa scored 115 points more than Kevin. GPA etc.
=++++++++++++++++++=
Q: Scales of Measurement
Ratio
Capital or uppercase letters are usually used to denote sets while small
or lowercase letters denote elements of a set.
denotes is an element of or belongs to
denotes is not an element of or does not belong to
Example:
Let A the set of letters in the English alphabet
B the set of primary colors
C the set of positive integers
g A , orange B, 100 C
Q: Ways of Describing a Set
List (or roster) method describes a set by enumerating the elements
of the set.
A = {a, b, c, d,,z}
B = {red, yellow, blue}
C = {1, 2, 3, 4,}
Rule (or set builder) method describes a set by a statement or a rule.
A = {x | x is an English alphabet}
B = {a | a is a primary color}
C = {y | y is a positive integer}
Q: Examples of Sets
Important Sets
N = {0,1,2,3,}, the set of natural numbers, non-negative integers,
(occasionally IN)
Z = { , -2, -1, 0, 1, 2,3, ), the set of integers
Z+ = {1,2,3,} set of positive integers
Q = {p/q | p Z, q Z, and q0}, set of rational numbers
R, the set of real numbers
Q: Definition of Terms
C is an infinite set.
The null set or empty set, denoted by the symbol , is the set that
contains no elements, that is, A is empty iff n(A) = 0.
D = {x|x is a month in the Gregorian calendar with less than 28 days}
n(D) = 0, so D =
A singleton set is a set that contains only one element, that is, B is a
singleton set iff n(B) = 1.
E = {y|y is prime number, 5 < y < 10}
Q: Empty Set
Example: Subset
G = {x|x is an integer}
F = {y|y is a whole number}
C = {z|z is a positive integer}
C G because every element of C is found in G.
F C because 0F but 0C.
Set A is a proper subset of B, denoted A B, if A is a subset of B and
there is at least one element of B that is not in A. That is, A B iff A B
and A B.
P = {1, 3, 5, 7}
Q = {3, 7}
Then, QP
The set containing all of the elements for any particular discussion is
called the universal set, denoted as U.
Exercise:
What is the power set of A = {x, y, z}?
What is the power set of the null set?
What is the power set of the power set of the null set?
What is the power set of B = {0, {1}, 3, {2, 4}}
Definition: Given a set A,
the power set of A, denoted P (A) ,
is the set of all subsets of A.
Example: P ({a,b}) = {, {a}, {b}, {a,b}} .
Properties:
1) If A B then P (A) P (B) .
2) If a set A has n elements
then P (A) has 2n elements.
Q: Exercise
Describe the following sets using the list method and give the set
cardinality:
a. A = {x|x is a natural number which is 1 less than a multiple of 3}
b. B = {a|a is a rational number whose value is 2/3}
c. C = {b|b is a vowel that appears in the phrase set of vowels}
d. D = {z|z is an even prime integer greater than 2}
Describe the following sets using the rule method:
a. F = {0, 1, 8, 27, 64, 125, 216, }
b. G = {, -30, -20, -10, 0, 10, 20, 30, 40, }
c. H = {1, 2, 3, 5, 7, 11, 13, 17, 19, 23, }
Determine which of the following statements are true and which are
false:
a) N
b) {1, 2, 3} N
c) {0} N
d) {1, 2, 3} {1, 2, 3}
e) 1 {1, 2, 3}
f) n(N) = 1010
g) A B n(A) > n(B)
h) {3} N
Given a set S, the power set of S is the set of all subsets of the set S. The
power set of S is denoted by P(S) or (S).
Example:
S = {0, 1, 2}
(S) = {, {0}, {1}, {2}, {0, 1}, {0, 2}, {1, 2}, {0, 1, 2}}
Note that the empty set and the set itself are members of this
set of subsets.
If a set has n elements, then its power set has 2n elements.
Q: Union
Page 6 of 24
HRN/Statistics/exam preparation/ Oct2016
Example:
A = {1, 3, 5} and B = {1, 2, 3}
A B = {5}
-Venn Diagram
Q: Intersection
Q: Complement
A B = {x|x A and x B}
Example:
A = {1, 3, 5} and B = {1, 2, 3}
A B = {1, 3}
A = {x|x A}
Example:
A = {a, e, i, o, u}
where the universal set is the set of letters in the English
alphabet
A = {y|y is a consonant}
Venn diagram
Q: Set Theory Operators
The intersection of two sets A and B is:
A B = { x : x A x B}
If A = {Charlie, Lucy, Linus}, and B = {Lucy,
Desi}, then
A B = {Lucy}
-Venn Diagram
Q: Disjoint
Two sets are called disjoint if their intersection is the empty set.
AB={}
Example:
A = {1, 3, 5, 7, 9}
B = {2, 4, 6, 8, 10}
A B = , then A and B are disjoint
Q: Difference
Let A and B be sets. The difference of A and B, denoted by A B, is
the set containing those elements that are in A but not in B.
Q: Cartesian Products
B = {1, 2},
find A x B x C.
Q: Exercise
Let A be the set of students who live one km from school and let B be
the set of students who walk to classes. Describe the students in each of
these sets.
a. A B
b. A B
c. A B
d. B A
Let A = {1, 2, 3, 4, 5} and B = {0, 3, 6}. Find
a. A B
b. A B
c. A B
d. B A
Let A = {0, 2, 4, 6, 8, 19}, B = {0, 1, 2, 3, 4, 5, 6} and C = {4, 5, 6, 7, 8, 9, 10}
a. A B C b. A B C
c. (A B) C d. (A B) C
1. The removal of the null set from any set has no effect on the set. A
=A
2. The removal of the elements of any set from itself will leave the empty
set. A A =
3. No elements can be removed from the null set. A =
4. The result of removing the elements of a set from any given set is a
subset of the given set. A B A
5. A (B C) = (A B) (A C)
A (B C) = (A B) (A C)
Q: Set Properties
(a) A B B A
Commutative Laws: (b) A B B A
( a ) ( A B) C A ( B C )
Associative Laws: (b) ( A B) C A ( B C )
( a ) A ( B C ) ( A B) ( A C )
Distributive Laws: (b) A ( B C ) ( A B) ( A C )
c c
Double Complement Law: ( A ) A
1.
2.
3.
4.
5.
1.
2.
3.
4.
5.
( a ) ( A B ) c Ac B c
c
c
c
De Morgans Laws: (b) ( A B ) A B
( a) A ( A B) A
Absorption Laws: (b) A ( A B) A
dy
or
dx
f '( x) or
df ( x )
dx
Definition:
-
dy
y
lim
dx x 0 x
f ' x lim
h 0
f x h f x
h
In this lesson we are going to learn and use some basic rules of
differentiation that are derived from the definition. For these rules, lets
assume that we are discussing differentiable functions.
Rule 1: Derivative of a constant
d c
0
dx
f ( x) 5
f ' ( x) 0
Q: Differential Calculus
The two basic forms of calculus are differential calculus and integral
calculus.
9
Rule 3: Derivative of a Constant Multiple of a Function
, where c is a constant
This rule states that the derivative of a constant times a
function is the constant times the derivative of the function.
For example, find the derivative of
d
f x d 5 x 4
dx
dx
d 4
5
x
dx
5 4 x3
20x 3
Rule 2: The Power Rule
, where n is any real number
This rule states that the derivative of x raised to a power is the
power times x raised to a power one less or n-1.
For example,
f x x 5 , f ' x 5 x 4
Notice that the derivative is the original power, 5 times x raised to the fourth,
which is one less than 5.
Page 10 of 24
HRN/Statistics/exam preparation/ Oct2016
d 2
d 2
d
d
x 2x 3
x 2 x 3
dx
dx
dx
dx
2x 2 0
2x 2
The derivative of x squared is done by the Power Rule (2), the
derivative of 2x is done by rule 3 and power rule and the derivative
of 3, a constant is 0.
Page 11 of 24
HRN/Statistics/exam preparation/ Oct2016
d 1
2
dx
x
More Examples: Find
d
More Examples: Find dx
Youll notice none of the basic rules specifically mention radicals, so you
should convert the radical to its exponential form, X1/2 and then use the
power rule.
d
dx
x dxd x
1
2
1 12 1 1 21
1
1
x x 1
2
2
2 x
2x 2
Again, you need to rewrite the expression so that you can use one of the
basic rules for differentiation. If we rewrite the fraction as x-2 ,then we can
use the power rule.
d 1 d 2
2
21
2 x 3 3
2 x 2 x
dx x dx
x
3
d 4x 2x 7
dx
x
4 x3 2 x 7 4 x3 2 x 7
4 x 2 2 7 x 1
x
x
x x
Now differentiate using the basic rules.
d 4 x3 2 x 7 d
4 x 2 2 7 x 1
dx
x
dx
d
d
d
4 x 2 2
7 x 1
dx
dx
dx
11
4 2 x 0 7 1x
8 x 7 x 2
7
8x 2
x
Another example: Find the slope and equation of the tangent line to the
curve at the point (1,3).
Page 12 of 24
HRN/Statistics/exam preparation/ Oct2016
Recall from the previous chapter, the derivative gives the slope of the
tangent to the curve. So we will need to find the derivative and evaluate it
at x = 1 to find the slope at the point (1,3). Then well use the slope and the
point to write the equation of the tangent line using the point slope form.
Find the slope and equation of the tangent line to the curve
at the point (1,3).
First find the derivative of the function.
d
y d 2 x 2 1 d 2 x 2 d 1
dx
dx
dx
dx
2 1
2 2x 0
4x
Now, evaluate the derivative at x = 1 to find the slope at (1,3).
m 4 1 4
Example continued: Now we have the slope of the tangent line at the point
(1,3) and we can write the equation of the line.
Recall to write the equation of a line, start with the point slope form and
use the slope, 4 and the point (1,3).
y y1 mx x1
y 3 4x 1
y 3 4x 4
y 4x 1
d 3
x 2 x 2 x 3x 2 4 x 1
Find the derivative. dx
Since horizontal lines have a slope of 0, set the derivative equal to 0 and
solve for x.
3x 2 4 x 1 0
3x 1x 1 0
3x 1 0 or x 1 0
1
x
or x 1
3
Thus the x values where the function has horizontal tangents is at x = -1 , -1/3.
Q: Chain Rule
y f (u )
u u ( x)
Page 13 of 24
dy df (u ) du
du
f '(u )
dx
du dx
dx
f '(u )
df (u )
du
Where
Example 6-2. Approximate the derivative of y=x2 at x=1 by forming small changes.
2
y
(1.01)
(1.01)
1.0201
=>
y 1.0201 1 0.0201
y (1) (1)2 1
dy y 0.0201
2.01
dx x
0.01
Example 6-3. The derivative of sin u with respect to u is given below.
d
sin u cos u
du
Use the chain rule to find the derivative with respect toy x of
y 4sin x 2
Example 6-3. Continuation.
u x2
du
2x
dx
=>
dy
du dy du
f '(u )
dx
dx du dx
4(cos u )(2 x) 8 x cos x 2
Table 6-1. Derivatives
Page 14 of 24
HRN/Statistics/exam preparation/ Oct2016
Q: Exercise
Page 15 of 24
HRN/Statistics/exam preparation/ Oct2016
Derivative: Give me distance and time, and Ill give you velocity (speed,
rate)
Integral: Give me velocity and time, and Ill give you distance
Q: Why we include C
-The derivative of a constant is 0. However, when you integrate, you should
consider that there is a possible constant involved, but we dont know what it is
for a particular problem. Therefore, you can just use C to represent the value.
-To solve for C, you will be given a problem that gives you the y(0) value. Then
you can plug the 0 in for x and the y(0) value for y.
Q: Power Rule
u n 1
u du n 1 C
n
=====================End of Differentiation======================
C = Constant of integration
u = Function
n = Power
du = Derivative
Q: Integration by parts
================(Lecture-6: Integration)========================
History of integration
-Archimedes is the founder of surface areas and volumes of solids such as the
sphere and the cone. His integration method was very modern since he did not
have algebra, or the decimal representation of numbers
-Gauss was the first to make graphs of integrals, and with others continued to
apply integrals in the mathematical and physical sciences.
-Leibniz and Newton discovered calculus and found that differentiation and
integration undo each other
-Is a rule that transforms the integral of products of functions into other
functions
-If the functions are not related then use integration by parts
The equation is
u dv= uv-
u du
Page 16 of 24
HRN/Statistics/exam preparation/ Oct2016
Page 17 of 24
HRN/Statistics/exam preparation/ Oct2016
Q: Recall
Previous learning:
If f(x) = ex then f(x) = ex
If f(x) = ax then f(x) = (ln a)ax
If f(x) = ekx then f(x) = kekx
If f(x) = akx then f(x) = k(ln a)akx
This leads to the following formulas:
Page 18 of 24
HRN/Statistics/exam preparation/ Oct2016
2xdx
Approximate 0
the area of the region under the graph of
f(x) = 2x above the x-axis, and between x=0 and x=4. Use 4 rectangles of
equal width whose heights are the values of the function at the
midpoint of each subinterval .
f (x )x
i 1
===================Lecture 3: Matrix=================
Outline
Definition of a Matrix
Operations of Matrices
Determinants
Inverse of a Matrix
Linear System
Matrix Definiteness
Q: What is Matrix?
Matrix - a rectangular array of variables or constants in horizontal rows and
vertical columns enclosed in brackets.
Element - each value in a matrix; either a number or a constant.
Dimension - number of rows by number of columns of a matrix.
**A matrix is named by its dimensions.
Q: Example
Page 19 of 24
HRN/Statistics/exam preparation/ Oct2016
Jim, Mario and Mike are married to Shana, Kelly and Lisa. Mario is
Kellys brother and lives in Florida with his wife. Mike is shorter
than Lisas husband. Mike works at a bank. Shana and her husband
live in Kentucky. Kelly and her husband work in a candy store. Who
is married to whom?
a11 ,, a1n
a21 ,, a2 n
A
Aij
a , , a
kn
k1
Matrix
A matrix is any doubly subscripted array of elements arranged in rows and
columns.
a11 , , a1n
a 21 ,, a 2 n
Aij
A
am1 , , amn
Different types of Matrices
Page 20 of 24
HRN/Statistics/exam preparation/ Oct2016
Q: Identity Matrix
An identity matrix is a diagonal matrix where the diagonal elements all equal
one.
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
I=
Q: Matrix Operations
AI=A
* Transposition
* Addition and Subtraction
* Multiplication
* Inversion
Q: Matrix Addition and Subtraction
A new matrix C may be defined as the additive combination of matrices A and
B where: C = A + B
is defined by: Cij Aij Bij
Q: Special matrices
There are a number of special matrices
Diagonal
Null
Identity
Q: Diagonal Matrices
0
0
a11 0
0 a
0
0
22
0
0 a33 0
0
0 a44
0
A diagonal matrix is a square matrix that has values on
the diagonal with all off-diagonal entities being zero.
Q: Null Matrix
0 0 0 0
0 0 0 0
0 0 0 0
3 4 1 2 4 6
A B
C
5 6 3 4 8 10
Q: Matrix Subtraction
C = A - B,
Is defined by
=
=
Q: Matrix Multiplication
Page 21 of 24
HRN/Statistics/exam preparation/ Oct2016
Q: Multiplication Conformability
Regular Multiplication
To multiply two matrices A and B:
# of columns in A = # of rows in B
Multiply: A (m x n) by B (n by p)
n
Cij = k=1
Aik x Bkj
Q: Operations with Matrices (Scalar Multiple)
3 4 1 6 8 2
2
6 7 0 12 14 0
Example:
Associative Laws :
A (B C) (A B) C, (AB)C A(BC).
Commutative Law for Addition :
A B B A
Distributive Laws :
A(B C) AB AC, (A B)C AC BC.
Q: Operations with Matrices (Transpose)
Transpose
The transpose, AT , of a matrix A is the matrix obtained from A by writing its rows
as columns. If A is an kn matrix and B = AT then B is the nk matrix with bij = aji.
If AT=A, then A is symmetric.
Usually denoted by
Sometimes T
Exchanges rows and columns
(m x n) matrix becomes (n x m)
Aij = Aji
Q: Determinants
Determinant is a scalar
Defined for a square matrix
Is the sum of selected products of the elements of the matrix,
each product being multiplied by +1 or -1
Page 22 of 24
HRN/Statistics/exam preparation/ Oct2016
Inverse of (2 x 2) matrix
Find determinant
Swap a11 and a22
Change signs of a12 and a21
Divide each element by determinant
Check by pre- or post-multiplying by inverse
u
u
(m n) (p n) = cannot be done
(1 n) (n 1) = a scalar (1x1)
Q: Properties
u Matrix multiplication is Associative
A(BC) = (AB)C
u Multiplication and transposition
(AB)' = B'A'
Q: Matrix Multiplication
u
Page 24 of 24
HRN/Statistics/exam preparation/ Oct2016