Concept explainers
Consider a directory of classified advertisements that consists of m pages, where m is very large. Suppose that the number of advertisements per page varies and that your only method of finding out how many advertisements there are on a specified page is to count them. In addition, suppose that there are too many pages for it to be feasible to make a complete count of the total number of advertisements and that your objective is to choose a directory advertisement in such a way that each of them has an equal chance of being selected.
a. If you randomly choose a page and then randomly choose an advertisement from that page, would that satisfy your objective? Why or why not?
Let
Step 1. Choose a page at random. Suppose it is page X. Determine n(X) by counting the number of advertisements on page X.
Step 2. “Accept” page X with
Step 3. Randomly choose one of the advertisements on page X.
Call each pass of the algorithm through step 1 an iteration. For instance, if the first randomly chosen page is rejected and the second accepted, then we would have needed 2 iterations of the algorithm to obtain an advertisement.
b. What is the probability that a single iteration of the algorithm results in the acceptance of an advertisement on page i?
c. What is the probability that a single iteration of the algorithm results in the acceptance of an advertisement?
d. What is the probability that the algorithm goes through k iterations, accepting the jth advertisement on page i on the final iteration?
e. What is the probability that the jth advertisement on page i is the advertisement obtained from the algorithm?
f. What is the expected number of iterations taken by the algorithm?
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
A First Course in Probability (10th Edition)
- RVW (Restored Volkswagens) buys 15 used VW's at each of two car auctions each week held at different locations. It then transports the cars to repair shops it contracts with. When they are restored to RVW's specifications, RVW sells 10 each to three different used car lots. There are various costs associated with the average purchase and transportation prices from each auction to each repair shop. Also there are transportation costs from the repair shops to the used car lots. RVW is concerned with minimizing its total cost given the costs in the table below. a. Given the costs below, draw a network representation for this problem. Repair Shops Used Car Lots S1 S2 L1 L2 L3 Auction 1 460 520 S1 250 300 500 Auction 2 450 500 S2 300 550 450 b. Formulate this problem as a transshipment…arrow_forwardWithin a group of 12 women, there are five who have known each other for a long time and have an excellent relationship. The other 7 women do not know the 5 friends nor do they know each other. Whenever a subset of the five friends is equal to or greater than 50% of the number of people in another work group (for example, if there are two of the five friends in the work group of three or four people), then the group work becomes high performance It is desired to form a working group by selecting five women from the 12 women. What is the probability that the work group is high performing? Please indicate your answer in the space provided below as a number between zero and one, to four decimal places.arrow_forwardA psychologist at the Royal Ottawa Hospital was asked to determine whether there was any clear difference in the length of stay (in days) of patients with different categories of diagnosis. The hospital was looking for ways to reduce costs and free up some more beds so that they could treat more patients from the community. They chose three diagnostic categories that they thought were possibly staying the longest and selected the 4 more recent admissions from each of these diagnostic categories: affective disorders, cognitive disorders, and drug-related disorders. The results are presented in Table 3 below. Using an alpha = .05 and showing all the steps of hypothesis testing, is there a significant difference in length of stay among diagnosistic categories? -do not use excel use formulasarrow_forward
- Consider there are only two computer companies in a country. The companies are named “Dude” and “Imac”. Each year, company Dude keeps 1/5th of its customers, while the rest switch to Imac. Each year, Imac keeps 1/3rd of its customers, while the rest switch to Dude. If in 2002, Dude has 1/6th of the market and Imac has 5/6th of the market, what is the distribution of the market share between the two companies in 2003. (Hint: you can cast this as a matrix multiplication problem)arrow_forwardThe sales manager of a large automotive parts distributor wants to estimate the total annual sales for each of the company’s regions. Five factors appear to be related to regional sales: the number of retail outlets in the region, the number of automobiles in the region registered as of April 1, the total personal income recorded in the first quarter of the year, the average age of the automobiles (years), and the number of sales supervisors in the region. The data for each region were gathered for last year. For example, see the following table. In region 1 there were 1,739 retail outlets stocking the company’s automotive parts, there were 9,270,000 registered automobiles in the region as of April 1, and so on. The region’s sales for that year were $37,702,000. constant outlet automobile reg income age bosses 37.702 1,739 9.27 85.4 3.5 9 24.196 1,221 5.86 60.7 5 5 32.055 1,846 8.81 68.1 4.4 7 3.611 120 3.81 20.2 4 5 17.625 1,096 10.31 33.8 3.5 7 45.919 2,290 11.62 95.1…arrow_forwardAJ’s sleep pattern had been fluctuating due to stress and diet, so he started to keep a diary of how many hours he slept each night. On the 4th night after he started the diary, AJ slept 9.4 hours, which was the most sleep he got any night. Gradually, he got less sleep each successive night until, on the 18th night after he started the diary, AJ slept 6.2 hours, which was the least sleep he got any night. After keeping his diary for 6 months, he realized that the number of hours he got each night followed a sinusoidal curve. Let t be the number of nights since he started his diary, and s be how many hours he slept that night. It may be helpful to draw a crude sketch of the sleep time function and label the known t − and s − values on it. POSITIVE or NEGATIVE SIN or COS Maximum s − value = Minimum s − value = ______________ ______________ Middle s − value = ______________ = D Amplitude = ______________ = A ⇒ B = ______________ Given the crude sketch of the height function, the…arrow_forward
- In a certain city, only 2 newspapers A and B are published. It is known that 25% of the city population read A and 20% read B while 8% reads both A and B. It is also known that 30% of those who read A but not B look into advertisement and 40% of those who read B but not A look into advertisements while 50% of those who read both A and B look into advertisements. What is the percentage of the population who read an advertisement?arrow_forwardconsidered a data 1,3,5,7,9,11,13,15,17,19,21,......81. how many iteration are required in linear searcharrow_forwardIn the city of AZ, there are two supermarkets, X-Mart and Y-Mart. It is assumed that every shopper makes a purchase once a week at one of these supermarkets (not both).In a study, 100 samples of shoppers were taken over 10 weeks. From the study, it is known that if a shopper goes to X-Mart in one week, 85 people will continue to shop at X-Mart in the following week, and if a shopper goes to Y-Mart in one week, 70 people will continue to shop at Y-Mart in the following week.Create a transition probability table and matrix for this scenario, and then If in the first week Ivankov buys from X-Mart, what is the probability that Terry will buy from X-Mart in the third and fourth weeks?arrow_forward
- conditions of both the districts with reference to these two causes of death. Assume The following are the information about the number of persons who are affected by Diabetes and Lung Cancer and the number of persons died due to Find the 1llness specific death rates for the two districts. Also, compare health District A District B No. of Persons No. of Persons Cause of Death Affected Died Affected Died 20000 325 22000 400 Diabetes 19500 300 21225 380 Lung Cancer la person affected by Diabetes is not affected by Lung Cancer and vice-versa.arrow_forwardWe need to assign 4 students (Daniel, Jeremy, Xiaoying, Ashu) to 3 different teams (Team 1, Team 2, and Team 3). Each team needs to have at least 1 student. To maximize productivity, it has been determined that Ashu and Jeremy cannot be on the same team. How many different ways are there to assign the teams?arrow_forwardSuppose Martin is a very talented used-car salesman. Whenever Martin talks to a new customer, there is a 90% chance that he convinces the customer to purchase one of his used cars. Brian, Martin's boss, is envious that Martin sells many more cars than he does. Because of his jealousy, Brian institutes a new rule that Martin is only allowed to talk to 35 customers per day. Thus, Martin continues to work each day until he speaks to 35 customers, at which point Brian sends him home. Let ? represent the number of used cars that Martin sells on a given day. What are the mean, ?, and variance, ?^2, of ?? Please round your answers to the nearest two decimal places. ?=_______? ?^2=_________?arrow_forward
- Glencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillLinear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage LearningHolt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGAL