第 1 / 5 页
非代码面试题
显示 20 / 81 道匹配题目
答题状态:未尝试未正确已正确
ID题目领域难度题型进度权限
105Expected Number of Suits in a Poker HandA 5-card hand is dealt from a standard 52-card deck. Let S be the number of distinct suits represented in the hand. Using indicator random variables, find E[S].概率困难derivation未尝试面试订阅114Expected Cards to See All Four SuitsA standard 52-card deck is shuffled uniformly at random and cards are turned over one at a time from the top. Let X be the number of cards turned over until all four suits have appeared at least once. Find E[X].概率困难derivation未尝试面试订阅120Expected Distinct Ranks in a Seven-Card HandSeven cards are drawn without replacement from a standard 52-card deck. Let R be the number of distinct ranks represented among the seven cards. Find E[R].概率困难derivation未尝试面试订阅130Expected Distinct Faces on Four DiceYou roll four fair six-sided dice. What is the expected number of distinct face values that appear among the four dice?概率困难数值题未尝试免费144All Six Faces Represented in Eight DiceYou roll 8 fair six-sided dice. What is the probability that every face value from 1 to 6 appears at least once among the 8 dice?概率困难数值题未尝试免费154Expected Number of Birthday-Collision PairsIn a group of n people whose birthdays are independent and uniform on \ 1,\ldots,365\ , let X be the number of unordered pairs (i,j) with i < j who share a birthday. Using indicator random variables, find E[X]. Then determine the smallest n for which E[X] \ge 1.概率中等derivation未尝试免费155Variance of Birthday-Collision Pair CountContinuing from the setup of the expected collision-pair count: n people have independent uniform birthdays on \ 1,\ldots,d\ . Define X = \sum i<j 1 [B i = B j]. (a) Compute Var (X). (b) A surprising intermediate step: show that Cov ( 1 [B i = B j],\, 1 [B j = B k]) = 0 for distinct i,j,k even though the two indicators share the index j. Explain intuitively why this zero covariance holds. (c) For d = 365 and n = 28, compute Var (X) numerically and give the coefficient of variation \sigma X / E[X].概率困难derivation未尝试面试订阅157Non-Uniform Birthdays Increase Collision ProbabilitySuppose d days have birthday probabilities p 1, p 2, \ldots, p d with \sum j p j = 1 (not necessarily uniform). For n people whose birthdays are independent draws from this distribution: (a) Show that for n = 2, P( collision ) = \sum j=1 d p j 2 \ge 1 d , with equality if and only if all p j = 1 d . (b) Deduce that the uniform distribution minimizes the collision probability among all distributions on d days. Give a one-line intuitive explanation for why non-uniformity helps collisions.概率中等derivation未尝试免费158Triple Birthday Collision ThresholdIn a room of n people with birthdays uniform on \ 1,\ldots,365\ , let A be the event that at least three people share the same birthday. (a) Using a Poisson approximation (model the occupancy of each day as an independent Poisson (n/365) variable), derive an approximate formula for P(A). (b) Find the smallest n such that P(A) \ge 1 2 under this approximation.概率中等数值题未尝试免费159Near-Birthday Problem: Birthdays Within One DayFourteen people have birthdays chosen independently and uniformly on a circular calendar of 365 days (day 1 is adjacent to day 365). Two people have a **near-match** if their birthdays differ by at most 1 day (i.e., they land on the same day or on consecutive days). Let M be the number of unordered near-match pairs. (a) Compute E[M]. (b) Using a Poisson approximation for the probability that M \ge 1, estimate P( at least one near-match ). (c) Contrast with the standard birthday problem: for n = 14 people, what is P( at least one exact match )?概率中等数值题未尝试免费160Expected and Variance of Distinct Birthday CountAmong n people whose birthdays are independent and uniform on \ 1, \ldots, d\ , let D be the number of distinct birthdays observed. (a) Derive E[D] using indicator random variables. (b) Derive Var (D). You will need P( day j and day k both occupied ) for j \ne k. (c) For n = 100 and d = 365, compute E[D], Var (D), and the expected number of "collision people" n - D (people whose birthday coincides with at least one other person). (d) Is E[n - D] the same as the expected number of collision pairs \binom n 2 /d from the indicator-pair approach? Explain the distinction.概率困难derivation未尝试面试订阅161Expected Near-Birthday PairsForty people have independent uniform birthdays on a 365-day circular calendar. What is the expected number of unordered pairs whose birthdays are either the same day or one day apart on the circle?概率简单数值题未尝试免费162Triple-Collision Expectation Above OneIn a 365-day uniform birthday model, what is the smallest n for which the expected number of unordered triples sharing an exact birthday is at least 1?概率简单数值题未尝试免费163Expected Number of Exact Triple CollisionsFor n independent uniform birthdays on an m-day calendar, what is the expected number of unordered triples of people that share an exact birthday?概率中等derivation未尝试面试订阅164Exactly One Pair Among Four BirthdaysFour people have independent uniform birthdays on a 365-day calendar. What is the probability that there is exactly one matching pair and no larger collision?概率困难derivation未尝试面试订阅165Expected Number of People Who Share Someone's BirthdayFor n independent uniform birthdays on a 365-day calendar, what is the expected number of people whose birthday is shared by at least one other person?概率困难derivation未尝试面试订阅166Expected Cross-Team Birthday MatchesTeam A has 12 people and team B has 18 people. Birthdays are independent and uniform over 365 days. What is the expected number of cross-team exact birthday matches (one person from A and one from B)?概率简单数值题未尝试免费167Expected Days Hit by Both GroupsGroup A has a people and group B has b people, with independent uniform birthdays on a 365-day calendar. What is the expected number of calendar days on which both groups have at least one birthday?概率中等derivation未尝试面试订阅168Pair Expectation Under a Nonuniform CalendarBirthdays fall on days 1 through m with probabilities p1,...,pm, not necessarily uniformly. For n independent people, what is the expected number of unordered matching pairs?概率中等derivation未尝试面试订阅169Expected Pairs Within Two DaysOn a 365-day circular calendar, what is the expected number of unordered pairs among n independent uniform birthdays whose birthdays are at circular distance at most 2 days?概率困难derivation未尝试面试订阅