Quantitative Reasoning Exam #1

0.0(0)
studied byStudied by 39 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/137

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:10 AM on 12/6/22
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

138 Terms

1
New cards
graph
a set of edges connected by vertices
2
New cards
vertex/vertices
the points that connect each edge together
3
New cards
edges
the "links" between vertices
4
New cards
On a city map, ____ are vertices and ____ are edges
islands; bridges
5
New cards
valence/degee
the number of edges attached to a vertex
6
New cards
path
a sequence of vertices
such that there is an edge
between each vertex and the
next one.
7
New cards
circuit
a path that starts and ends at the same vertex
8
New cards
eulerian circuit
a circuit that crosses each edge exactly once
9
New cards
A graph has a Eulerian circuit if and only if .....
the degree of all its vertices
is even.
10
New cards
eulerian path
a path that crosses each edge exactly once.
11
New cards
A graph has a Eulerian path if and only if...
• either the degree of all its vertices is even (then it is even better: it has a Eulerian circuit);
• or the degree of all its vertices except 2 of them is even (then it has a Eulerian path, but no Eulerian circuit)
12
New cards
hamiltonian circuit
a circuit that visits each vertex of the graph exactly once
13
New cards
hamiltonian path
a path that visits each vertex of the graph exactly once.
14
New cards
complete graph
a graph where there is exactly one edge between different pairs of vertices
15
New cards
weighted graph
a graph where there is a number attached to each edge
16
New cards
The weight of a path is the ....
sum of the weights on all edges encountered on this path (counted once for every passage)
17
New cards
traveling salesman problem
consists in finding a path / circuit that visits all
vertices of a weighted graph (a Hamiltonian path / circuit); and that has the smallest
weight.
18
New cards
brute force solution (for TSP)

1. Look at all possible Hamiltonian paths.
2. Check the weight of each of these paths.
3. Choose the one with the smallest weight.
19
New cards
n factorial
In a complete graph with n vertices, there are n! Hamiltonian paths
Even if n is small, n! is humongous
20
New cards
nearest-neighbor algorithm
1. Start from any vertex.
2. Jump to the closest vertex (that is, the edge to this vertex has the smallest weight).
3. Then go to the closest vertex which has not been visited yet.
4. Continue until you have seen all the vertices.
5. If you want a circuit, eventually return to the starting vertex.
21
New cards
The nearest-neighbor algorithm provides a path with the following properties:
• It is usually “short”.
• Its length can depend on the vertex that we start from.
• Its length can depend of the choices that we make (if there are edges with the same length).
• It usually does NOT provide a solution to the TSP (meaning, it is not always the shortest path).
22
New cards
sorted-edge algorithm
1. List the weight of all edges in increasing order.
2. Choose the first edge (the one with the smallest weight).
3. As long as not all vertices are included, add the next edge in the list (except if it makes three chosen edges meet at a vertex or it closes a circuit that does not include all the vertices)
4. When a Hamiltonian circuit has been created, we are done
23
New cards
The sorted-edge algorithm provides an approximate solution to the TSP. However...
-it is usually not the shortest path;
-its length can depend of the choices that we make (if there are edges with the same length);
- it only works to find a circuit
24
New cards
tree
a graph which contains no circuits
25
New cards
spanning tree
a tree that has only the edges of the original graph (but not always all the edges) and has all the vertices of the original graph
26
New cards
applications for a tree problem are:
Electrical grid: connect every home to the electrical grid at the
minimum cost.
Broadcasting: transmit one message to all recipients in the fastest way.
Circuit board design: connect all parts at minimum cost.
27
New cards
How to obtain a spanning tree
• Start from the graph.
• Remove edges one by one until no circuit remains.
28
New cards
The weight of a spanning tree is....
the sum of the weights of all its edges
29
New cards
minimum spanning tree
a spanning tree whose weight is minimum amongst all the possible spanning trees for a graph
30
New cards
kruskal's algorithm (MST)
1. List all the edges in increasing order of their weights.
2. At each step, add the next edge of the list if it does not create a circuit.
3. Stop when we get a spanning tree.
31
New cards
Prim's algorithm (MST)
1. Choose any vertex.
2. Look at all edges attached to this vertex, and choose the one with the minimum weight.
3. At each step, look at all the vertices that we saw, and all edges connected to these vertices, and choose the one with minimum weight, except if it creates a circuit.
4. Stop when we get a spanning tree
32
New cards
Prim’s algorithm is conceptually more _______ than Kruskal’s, but Kruskal’s needs to compare the weight of all the edges at the _______.
complicated; same time
33
New cards
coloring problem
consists in giving a color to each vertex,
in such a way that two vertices that are connected by an edge have different colors.
34
New cards
chromatic number
the minimum number of colors
needed to solve the vertexcoloring problem
35
New cards
how do you find the chromatic number?
1. Start from a vertex and give it a color.
2. Give a different color to a neighboring vertex.
3. Continue by going from neighboring vertex to neighboring vertex.
4. Try to use as few colors as possible: reuse colors as much as possible
36
New cards
planar graph
a graph that can be drawn without any edges intersecting
37
New cards
According to the four-color theorem, the chromatic number of a planar graph is at most ___
4
38
New cards
statistics
the art and science of
• collecting data;
• summarizing and analyzing data;
• presenting data;
• interpreting data
39
New cards
population
all the individuals for a problem
40
New cards
sample
all the individuals that we will actually gather data from
41
New cards
variables
the information that we gather from the experiment (ex: intended vote, grades, size, opinion, …)
42
New cards
discrete variable
an integer/whole number (1, 2, 3)
ex: number of pets, number of classes taken
43
New cards
continuous variable
can be any number, not only whole; like 2.5, 3.9, etc
ex: weight, height, price, size
44
New cards
how to find the frequency distribution of a variable:
1. Choose some non-overlapping intervals of values (for instance 0, 1 –2, 3 – 5, 6 – 10, more than 10).
2. Count how many times the variables takes such values.
45
New cards
how to find the relative frequency distribution of a variable:
1. Choose some non-overlapping intervals of values (for instance 0, 1 –2, 3 – 5, 6 – 10, more than 10).
2. Count the percentage of times the variables take such values.
46
New cards
histogram
a graphical representation of the distribution of a
variable using bars of different heights.
47
New cards
outlier
an individual or data that does not fit the overall pattern
48
New cards
symmetric distribution
A distribution is symmetric if we can draw a vertical line on the histogram, and both sides are approximate mirror images of each other
49
New cards
skewed right distribution
A distribution is skewed right if the longer tail of the histogram is on the right side
50
New cards
skewed-left distribution
A distribution is skewed left if the longer tail of the histogram is on the left side
51
New cards
mean
the average of all the values
52
New cards
median
a list of values is a number such that half the values are higher than this number and half the values are lower than this number.
53
New cards
mode
the most frequently occurring value in a set of data
54
New cards
standard deviation
the average amount a value deviates from the mean; the square root of the variance
55
New cards
variance
The square of the standard deviation
56
New cards
how to find the variance and standard deviation
1. Compute the mean
2. Compute the deviations (x1-mean), (x2-mean),...
3. Compute the squared deviations (x1-mean)^2, (x2-mean)^2,....
4. Sum all these quantities.
5. Divide the result by n− 1 to get the variance.
6. Take the square root of the result to get the standard deviation
57
New cards
normal distribution
When the shape of a distribution is more or less
"regular".
• It looks like a bell curve.
• The curve is an idealized version of the distribution
58
New cards
A normal distribution is characterized by two parameters:
1. The mean is where the curve reaches its maximum.
2. The standard deviation is
the width of the curve, between the two points where
it changes curvature (inflection points).
59
New cards
The 68-95-99.7 rule
For a normal distribution with a mean µ and a standard deviation σ:
68% of the values are between µ-σand µ+σ
95% of the values are between µ– 2σ and µ+ 2σ
99.7% of the values are between µ– 3σ and µ+ 3σ
60
New cards
For a normal distribution, less than ___% of the values are more than 2σ from the mean and less than ____% of the values are more than 3σ from the mean.
5%; 0.3%
61
New cards
distributions
we study one variable, and wish to
analyze it: average value, spread of the values, etc.
62
New cards
relationships
we study two variables and wish to know whether they are related
63
New cards
response variable
measures the outcome of a study; is typically
directly observed.
64
New cards
explanatory variable
a variable that explains the changes of a response variable; is typically hidden / not obvious.
65
New cards
correlation coefficient
a numerical value that measures the strength and direction of the relationship between two variables (usually denoted by r)
66
New cards
correlation
a relationship between two or more things
67
New cards
If r> 0, then it is a ________ association, if r< 0, then it is a ___________ association
positive; negative
68
New cards
The closer r is to 1 or -1, the more _______ associated/ correlated the variables are.
strongly
69
New cards
Correlation only makes sense for _______ values and ________ relationships
numerical; straight-line
70
New cards
If two variables are highly correlated, then....
• when one goes up, the other one goes up (r close to 1)
• or when one goes up, the other one goes down (r close to -1)
71
New cards
correlation does not imply _______
causation
72
New cards
the equation of a line is
y=mx+b
73
New cards
m in a regression line equation is the _____
slope (rise over run; (y2-y1/x2-x1)
74
New cards
b is the ______ or a regression line equation
y-intercept
75
New cards
slope
rise over run
(y2-y1/x2-x1)
76
New cards
(least-square)regression line
the line that fits the closest to all the points
77
New cards
how to find the least-square regression line
1. Take a straight line.
2. Compute the vertical distances
from each point to the line.
3. Square these distances.
4. Sum all these quantities.
5. The line that makes this sum as
small as possible is the least-square regression line
78
New cards
The regression line allows to make predictions only if the correlation is ______ (r close to -1 or +1) and only works for ______ correlations
high; linear
79
New cards
proportion
the number of times something happens out of the total outcomes
80
New cards
occam's razor
the principle that entities should not be multiplied needlessly; the simplest of two competing theories is to be preferred
81
New cards
statistical inference
the method of drawing conclusion about an
entire population based on data from a sample
82
New cards
parameter
a fixed quantity that describes some characteristic of
the population (for instance average height, proportion of women, result of a vote, opinion about hippos, etc.)
83
New cards
statistic
a quantity that describes some characteristic of a
sample
84
New cards
central limit theorem
the larger the population, the closer the results will be to a normal distribution
85
New cards
confidence interval
the amount of confidence we have that a certain range of values will fall within 95% of the possible outcomes for that data
86
New cards
how to find the 95% confidence interval
1. find the approximate standard deviation (square root of p(1-0)/n)
2. take the percentage/probability you have and subract and add that by 2 times the approximate standard deviation
ex: if your percentage is 56% and your approximate standard deviation is 5%, then you would calculate for 56%-(2*5%) and 56%+(2*5%)
87
New cards
Each poll comes with a _______, which is given by the standard deviation
Each poll comes with a margin of error
88
New cards
Sample Space (S)
the set of all possible outcomes of a
random phenomenon
89
New cards
probability of an outcome (an element of the sample space)
the proportion of times the outcome occurs in an infinitely long series of
repetitions
90
New cards
Probabilities can be expressed as....
decimals, percentages, or fractions
91
New cards
The probability of an outcome is between __ and ___ (inclusive)
92
New cards
Probability of a coin flip
For a coin flip: the probability of H or T is 1/2 = 0.5 = 50%
93
New cards
Probability of picking a card
the probability of each card (1S, 1H, …) is 1/52
94
New cards
event (E)
any set of outcomes of a random phenomenon; an event is the occurrence of something.
95
New cards
probability of events
For an event (E) we denote by P(E) the probability of E, that is, the proportion of times that the event E occurs when we repeat the same experiment infinitely many times
96
New cards
The goal of probability is to compute the _________: the
proportion of time this event will occur when we repeat the _______ experiment infinitely many times
probability of events; same
97
New cards
property
The probability of an event is the sum of the individual probabilities of each outcome that it contains
98
New cards
The sum of the probabilities of all outcomes must be ____
1
99
New cards
The complement of an
event A
-the event that happens when A does
not occur; denoted by A^c
-It contains all the outcomes of
the sample space that; does not
contain
100
New cards
The probability of the complement of an event is 1 minus the probability of the ______
event