01 · conjuntos e intervalos01 · sets and intervals
Unión, intersección, diferencia y complementario se ven en la rectaUnion, intersection, difference and complement are seen on the line
A ∪ B: en A o en Bin A or in B · A ∩ B: en los dosin both · A − B: en A y no en Bin A and not in B · A: fuera de Aoutside A
−4−202357
A
B›
Antes de los sucesos, el examen pide conjuntos de números. A = [−2, 5) son los reales entre −2 y 5, con el −2 dentro (corchete, punto relleno) y el 5 fuera (paréntesis, punto hueco). B = {x ∈ ℝ : x > 3} es «x es un número mayor que 3», o sea (3, +∞): el 3 no entra porque mayor no es mayor o igual. Dibuja siempre los dos en la recta, uno encima del otro, y lee: la intersección es donde hay dos rayas, (3, 5); la unión, donde hay al menos una, [−2, +∞); A − B, donde está A sin B, [−2, 3]. El 3 entra en A − B porque es de A y no es de B. Infinito siempre va con paréntesis: no es un número, no se alcanza.Before events, the exam asks for sets of numbers. A = [−2, 5) is the reals between −2 and 5, with −2 inside (square bracket, filled dot) and 5 outside (round bracket, hollow dot). B = {x ∈ ℝ : x > 3} is "x is a number greater than 3", that is (3, +∞): 3 is not in because greater is not greater or equal. Always draw both on the line, one above the other, and read: the intersection is where there are two bars, (3, 5); the union, where there is at least one, [−2, +∞); A − B, where A is without B, [−2, 3]. The 3 is in A − B because it belongs to A and not to B. Infinity always takes a round bracket: it is not a number, it is never reached.
02 · De Morgan02 · De Morgan
Lo contrario de «A o B» es «ni A ni B»The opposite of "A or B" is "neither A nor B"
A ∪ B = A ∩ B · A ∩ B = A ∪ B
Al negar, la unión se vuelve intersección y al revés. «No es verdad que llueva o haga frío» significa «ni llueve ni hace frío». «No es verdad que llueva y haga frío» significa «o no llueve o no hace frío»: basta con que falle una. De aquí salen las dos fórmulas que más se usan con datos «de lado»: P(A ∩ B) = 1 − P(A ∪ B) y P(A ∪ B) = 1 − P(A ∩ B). Si te dan P(A ∩ B) = 0,2, ya sabes que P(A ∪ B) = 0,8 sin hacer nada más.When you negate, union becomes intersection and the other way round. "It is not true that it rains or it is cold" means "it neither rains nor is cold". "It is not true that it rains and it is cold" means "either it does not rain or it is not cold": one failing is enough. Here come the two formulas used most with data given "sideways": P(A ∩ B) = 1 − P(A ∪ B) and P(A ∪ B) = 1 − P(A ∩ B). If you are given P(A ∩ B) = 0.2, you already know that P(A ∪ B) = 0.8 without doing anything else.
03 · el experimento03 · the experiment
Aleatorio es que, repitiéndolo igual, no sabes qué saldráRandom means that, repeating it the same way, you do not know what will come out
Ω = todos los resultados posiblesall possible outcomes · dadodie: Ω = {1, 2, 3, 4, 5, 6}
Un experimento es determinista si las mismas condiciones dan siempre el mismo resultado: soltar una piedra desde 5 m y medir si cae. Es aleatorio si conoces todos los resultados posibles pero no cuál saldrá: lanzar un dado, sacar una carta, elegir una palabra del diccionario al azar. El espacio muestral Ω es la lista completa de resultados. Cada resultado suelto es un suceso elemental, {4}. Un suceso es cualquier subconjunto: «sale par» = {2, 4, 6}. Ω entero es el suceso seguro, siempre ocurre. El vacío ∅ es el suceso imposible: «sale un 7».An experiment is deterministic if the same conditions always give the same result: dropping a stone from 5 m and checking whether it falls. It is random if you know all the possible outcomes but not which will come out: rolling a die, drawing a card, picking a word from the dictionary at random. The sample space Ω is the complete list of outcomes. Each single outcome is an elementary event, {4}. An event is any subset: "an even number" = {2, 4, 6}. The whole of Ω is the certain event, it always happens. The empty set ∅ is the impossible event: "a 7 comes up".
04 · traducir04 · translating
Cada frase del enunciado es una operación con conjuntosEach phrase in the statement is a set operation
El paso que más puntos cuesta no es la cuenta, es la traducción. Antes de tocar un número, escribe el suceso con símbolos. «Que ocurra A pero no B» es A ∩ B, que también se escribe A − B. La notación del complementario varía: A, A' o Aᶜ significan lo mismo; usa la que use tu profesor.The step that costs most marks is not the arithmetic, it is the translation. Before touching a number, write the event in symbols. "A happens but not B" is A ∩ B, which is also written A − B. The notation for the complement varies: A, A' or Aᶜ mean the same; use the one your teacher uses.
05 · Laplace05 · Laplace
Casos favorables entre casos posibles, solo si todos son igual de probablesFavourable cases over possible cases, only if all are equally likely
P(A) = casos favorablesfavourable casescasos posiblespossible cases
La regla de Laplace exige casos equiprobables. Con dos dados hay 36 parejas ordenadas, (1, 1), (1, 2) hasta (6, 6), y todas valen 1/36. Pero las sumas no son equiprobables: la suma 7 sale de seis parejas, (1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1), y la suma 2 solo de una. Si cuentas «hay 11 sumas posibles, luego P(suma 7) = 1/11», aplicas Laplace donde no vale. La cuenta buena es 6/36 = 1/6. Por eso con dos dados se trabaja siempre con la tabla de 36 casillas, no con la lista de sumas.Laplace's rule demands equally likely cases. With two dice there are 36 ordered pairs, (1, 1), (1, 2) up to (6, 6), and each is worth 1/36. But the sums are not equally likely: sum 7 comes from six pairs, (1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1), and sum 2 from only one. If you count "there are 11 possible sums, so P(sum 7) = 1/11", you apply Laplace where it does not hold. The right count is 6/36 = 1/6. That is why with two dice you always work with the 36-cell table, not with the list of sums.
06 · frecuencia relativa06 · relative frequency
Repitiendo mucho, la frecuencia se acerca a la probabilidadRepeating many times, the frequency approaches the probability
fr = veces que ocurre Atimes A happensveces que repitestimes you repeat → P(A)
Lanza una moneda 10 veces y puede salir 7 caras: 0,7. Lánzala 10.000 y saldrá muy cerca de 0,5. Es la ley de los grandes números, como idea: la frecuencia relativa se estabiliza alrededor de la probabilidad cuando el número de repeticiones crece. No dice que «después de cinco cruces toque cara»: la moneda no tiene memoria. Dice que las rachas se diluyen en el total. Cuando no hay casos equiprobables, como con una chincheta que cae de punta o de lado, la frecuencia relativa es la única forma de estimar la probabilidad. El simulador de Monte Carlo lo enseña en directo.Toss a coin 10 times and you may get 7 heads: 0.7. Toss it 10,000 times and it will come out very close to 0.5. That is the law of large numbers, as an idea: the relative frequency settles around the probability as the number of repetitions grows. It does not say "after five tails, heads is due": the coin has no memory. It says that streaks get diluted in the total. When there are no equally likely cases, as with a drawing pin landing point up or on its side, relative frequency is the only way to estimate the probability. The Monte Carlo simulator shows it live.
07 · axiomas y propiedades07 · axioms and properties
Una probabilidad está entre 0 y 1, Ω vale 1, y la intersección se resta una vezA probability is between 0 and 1, Ω is worth 1, and the intersection is subtracted once
0 ≤ P(A) ≤ 1 · P(Ω) = 1 · P(A) = 1 − P(A) · P(A ∪ B) = P(A) + P(B) − P(A ∩ B) · P(A − B) = P(A) − P(A ∩ B)
Piensa en el rectángulo Ω de área 1 y en A y B como dos manchas dentro. P(A) + P(B) cuenta dos veces la zona común, así que hay que restarla una vez: de ahí la fórmula de la unión. Solo cuando A y B no se tocan, P(A ∩ B) = 0 y la unión es la suma. P(A − B) es la mancha A sin la zona común. Y P(A) es todo lo que queda fuera de A. Si una cuenta te da una probabilidad negativa o mayor que 1, no es un dato curioso: es un error, y está en el paso anterior. El complementario sirve además para el truco más rentable del tema: «al menos uno» es lo contrario de «ninguno», así que P(al menos uno) = 1 − P(ninguno).Think of the rectangle Ω of area 1 and of A and B as two patches inside. P(A) + P(B) counts the common zone twice, so it must be subtracted once: that is where the union formula comes from. Only when A and B do not touch is P(A ∩ B) = 0 and the union the sum. P(A − B) is patch A without the common zone. And P(A) is everything left outside A. If a calculation gives you a negative probability or one greater than 1, it is not a curiosity: it is a mistake, and it is in the previous step. The complement also gives the most profitable trick in the topic: "at least one" is the opposite of "none", so P(at least one) = 1 − P(none).
08 · la confusión más cara08 · the most expensive confusion
Incompatibles no es lo mismo que independientes: es casi lo contrarioMutually exclusive is not the same as independent: it is almost the opposite
incompatiblesmutually exclusive: A ∩ B = ∅, P(A ∩ B) = 0 · independientesindependent: P(A ∩ B) = P(A) · P(B)
Incompatibles significa que no pueden ocurrir a la vez. En un dado, «sale 2» y «sale 5». Independientes significa que saber que ha ocurrido uno no cambia la probabilidad del otro. Con dos dados, «el primero es par» y «el segundo es un 6»: P = 1/2 · 1/6 = 1/12, que es justo 3 casillas de 36. Ahora fíjate: si A y B son incompatibles y sabes que ha ocurrido A, la probabilidad de B pasa a ser 0. Saber A ha cambiado muchísimo lo que sabes de B. Por eso dos sucesos con probabilidad positiva no pueden ser a la vez incompatibles e independientes: incompatibles obliga a P(A ∩ B) = 0, independientes obliga a P(A ∩ B) = P(A)·P(B) > 0. Las dos cosas a la vez solo pasan si P(A) = 0 o P(B) = 0, es decir, si al menos uno es imposible.Mutually exclusive means they cannot happen at the same time. On a die, "a 2" and "a 5". Independent means that knowing one has happened does not change the probability of the other. With two dice, "the first is even" and "the second is a 6": P = 1/2 · 1/6 = 1/12, which is exactly 3 cells out of 36. Now notice: if A and B are mutually exclusive and you know A has happened, the probability of B becomes 0. Knowing A has changed a great deal about what you know of B. That is why two events with positive probability cannot be both mutually exclusive and independent: exclusive forces P(A ∩ B) = 0, independent forces P(A ∩ B) = P(A)·P(B) > 0. Both at once only happen if P(A) = 0 or P(B) = 0, that is, if at least one is impossible.
09 · probabilidad condicionada09 · conditional probability
P(A|B) es reducir el universo a B y mirar qué parte de B es también AP(A|B) is shrinking the universe to B and looking at what part of B is also A
P(A|B) = P(A ∩ B)P(B) · P(A ∩ B) = P(B) · P(A|B) = P(A) · P(B|A) · independientesindependent ⇔ P(A|B) = P(A)
Se lee «probabilidad de A sabiendo que ha ocurrido B». Saber B tacha todo lo que no es B: el nuevo universo es B, y de él solo cuenta la parte que también es A. Con un dado, P(sale 6 | sale par) = (1/6)/(3/6) = 1/3: de los tres pares, uno es el 6. La barra no es una división de sucesos ni es simétrica: P(par | sale 6) = 1, porque si ha salido 6 seguro que es par. Despejando sale la regla del producto, que es la que se usa en los árboles: la probabilidad de «A y B» es la de uno por la del otro sabiendo el primero. Y de ahí la definición de independencia más intuitiva: A y B son independientes si P(A|B) = P(A), saber B no cambia nada. Equivale a P(A ∩ B) = P(A)·P(B). Si son independientes, también lo son A y B, A y B, y A y B.It reads "probability of A given that B has happened". Knowing B crosses out everything that is not B: the new universe is B, and only the part of it that is also A counts. With a die, P(6 | even) = (1/6)/(3/6) = 1/3: of the three even numbers, one is the 6. The bar is not a division of events and is not symmetric: P(even | 6) = 1, because if a 6 has come up it is surely even. Rearranging gives the product rule, the one used in trees: the probability of "A and B" is that of one times that of the other given the first. And from there the most intuitive definition of independence: A and B are independent if P(A|B) = P(A), knowing B changes nothing. It is equivalent to P(A ∩ B) = P(A)·P(B). If they are independent, so are A and B, A and B, and A and B.
10 · tablas y árboles10 · tables and trees
Tabla si te dan cruces de dos características; árbol si el experimento va por etapasA table if you are given two crossed features; a tree if the experiment goes in stages
rama: se multiplica · caminos: se suman · cada nudo suma 1branch: multiply · paths: add · each node sums to 1
Una tabla de contingencia cruza dos clasificaciones (por ejemplo, curso y si hace una actividad) y tiene en cada casilla una intersección. Las condicionadas salen dividiendo una casilla entre el total de su fila o su columna: ese total es el universo reducido. Un árbol sirve cuando hay etapas: primero una urna, luego otra extracción. En cada rama va una probabilidad condicionada a lo de antes; a lo largo de un camino se multiplica; entre caminos que llevan al mismo resultado se suma. Con reemplazamiento, la segunda extracción es igual que la primera. Sin reemplazamiento, el denominador baja en uno y el numerador depende de lo que salió: ahí está la dependencia.A contingency table crosses two classifications (for instance, year group and whether they do an activity) and holds an intersection in each cell. Conditionals come from dividing a cell by the total of its row or column: that total is the shrunken universe. A tree is for stages: first one urn, then another draw. Each branch carries a probability conditional on what came before; along a path you multiply; between paths that lead to the same result you add. With replacement, the second draw is like the first. Without replacement, the denominator drops by one and the numerator depends on what came out: that is where the dependence lies.
11 · probabilidad total y Bayes11 · total probability and Bayes
Total suma caminos; Bayes elige uno de ellos y lo divide entre la totalTotal adds paths; Bayes picks one of them and divides it by the total
P(B) = ∑ P(Ai)·P(B|Ai) · P(Ai|B) = P(Ai)·P(B|Ai)P(B)
Si A1, A2, A3 reparten Ω sin solaparse (por ejemplo, tres máquinas), la probabilidad de B es la suma de los caminos que acaban en B. Bayes da la vuelta a la flecha: sabes que ha pasado B y preguntas de qué camino venía. Se ve mejor en frecuencias naturales: imagina 1.000 personas, reparte por ramas y cuenta. Con una prevalencia del 2 %, una prueba ilustrativa que detecta el 90 % de los enfermos y da falso positivo en el 5 % de los sanos produce 18 positivos verdaderos y 49 falsos. Un positivo es enfermo solo 18 de cada 67 veces, un 27 %.If A1, A2, A3 split Ω without overlapping (for instance, three machines), the probability of B is the sum of the paths ending in B. Bayes turns the arrow round: you know B has happened and ask which path it came from. It is clearer in natural frequencies: imagine 1,000 people, split them along the branches and count. With a prevalence of 2 %, an illustrative test that detects 90 % of the ill and gives a false positive in 5 % of the healthy produces 18 true positives and 49 false ones. A positive is ill only 18 times in 67, about 27 %.
12 · verdadero o falso12 · true or false
Verdadero se demuestra; falso basta con un contraejemploTrue is proved; false needs only a counterexample
Falso: contraejemplo concreto con números. Verdadero: fórmula general o definición.False: a concrete counterexample with numbers. True: a general formula or definition.
Una afirmación de probabilidad es verdadera si se cumple siempre. Para tumbarla basta un caso en el que falle, y el mejor contraejemplo es pequeño: un dado. «P(A ∪ B) = P(A) + P(B)»: falso; con un dado, A = par y B = mayor que 3, P(A ∪ B) = 4/6 pero P(A) + P(B) = 1. Solo vale si son incompatibles. Para decir verdadero no sirve un ejemplo: hay que razonar en general. «Si A y B son incompatibles con P(A) > 0 y P(B) > 0, no son independientes»: verdadero, porque P(A ∩ B) = 0 y P(A)·P(B) > 0. La justificación ideal ocupa dos líneas: el veredicto, y el contraejemplo o la fórmula que lo prueba. Sin justificación, el veredicto suele valer poco o nada; cuánto, puede variar según tu centro.A probability statement is true if it always holds. To knock it down you need one case where it fails, and the best counterexample is small: a die. "P(A ∪ B) = P(A) + P(B)": false; with a die, A = even and B = greater than 3, P(A ∪ B) = 4/6 but P(A) + P(B) = 1. It only holds if they are mutually exclusive. To say true an example is not enough: you must reason in general. "If A and B are mutually exclusive with P(A) > 0 and P(B) > 0, they are not independent": true, because P(A ∩ B) = 0 and P(A)·P(B) > 0. The ideal justification takes two lines: the verdict, and the counterexample or formula that proves it. Without justification the verdict is usually worth little or nothing; how much may vary by school.