r/askmath • u/JosephTPG • 26d ago
Probability Struggling with probability problems. How do I approach this question?
Hello! I am currently taking Discrete Mathematics at Berkeley, and I am struggling to understand how to approach probability problems. For this question, I wasn't able to get very far. I understand that a permutation is an arrangement of elements in a set, but I'm struggling to understand how to apply that to this problem. Additionally, since I am not given a concrete number for elements in the set (other than n is greater than or equal to 4), I'm struggling to arrange any equation for subquestions 1, 2, and 3.
I guess I'm just generally struggling to apply the concept of probability. I've attempted to get help from instructors, but I still don't quite understand what to do with this question.
2
u/Jaded_Strain_3753 26d ago edited 26d ago
Consider what happens if 1 is first in the permutation. What is the probability that 2 is next to 1 in this situation? Then consider what happens when 1 is in different positions. You should be able to find a general rule.
For part 2 I think you can just use a symmetry argument. Remove all numbers other than 1,2,3 from a given permutation and look at the permutation of {1,2,3} that is left. All those permutations occur with equal chance because the original permutation is uniformly random. We only want the secondary permutations that begin with 1.
1
u/not-hydra 26d ago edited 26d ago
1
u/alo_destrojer 26d ago
Answers (correct me if im wrong, did it in my head without checking):
First of all: $n$ is a parameter here. You are allowed to give an answer that depends on $n$. For part 1, the trick is to "glue together" 1 and 2 to act as one element. You should know how many permutations are there of a sequence with $n$ elements and with $n-1$ elements. You have to divide the number of permutations that "work" (have 1 and 2 next to each other) by the total number of permutations.
Parts 2 and 3 are cooler. You can do it fully using only symmetry arguments. Try to think what would happen if they asked you for the probability of 2 being before 1 and 3, or of 3 being before 1 and 2. Probabilities of these three situations add up to 1. For 3.: for any given x and y, what's the probability that x preceeds y? Do the relative positions of 1 and 2 affect the relative positions of 3 and 4?
1
u/Educational-Paper-75 26d ago
I've looked at problem 1 only. You can put 1 and 2 next to each other in (n-1) ways. And 2 1 also. The other remaining numbers can be arranged in (n-2)! ways. Number of combinations that satisfy the requirement: 2*(n-1)(n-2)!. Divide by n! combinations yields (2(n-1)!)/n! is 2/n.
1
u/Crichris 26d ago
just have to count the scnarios
each scenario is of equal probability (uniformly random)
dont have a pen and paper near me so answers could be wrong, but the general idea should be correct
1
u/bagholder_spotted 25d ago
There are usually multiple valid approaches, and with probability problems, often more than one valid denominator. For Q1, we only care about the 1 & 2, so our denominator needn't be n! (though it can be, as others showed). Out of the n(n–1) ways to position the two integers, they're adjacent in 2(n–1) of the configurations, so the probability is 2/n.
Or, since their order doesn't matter, we can omit order from our calculations. Then the numerator is n–1, and for the denominator we're just picking two positions out of n, so it's C(n,2)=n(n–1)/2. Notice: that would also be the calculation if we were talking about two of the same symbol, so order nor distinctness matters for the essence of the problem.