All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
'- subject to availability -' (Posted on 2022-06-02) Difficulty: 3 of 5

A passenger aircraft seats 210 passengers in economy class, 7 abreast in rows 30 to 59. All seats are full for the current trip.

The in-flight menu for economy passengers has 3 main-course choices: curried mutton with rice, chicken supreme with brocolli, and pork belly with bean sprouts. Given that, on average, one-third of the passengers will prefer each main-course choice, the aircraft carries 70 meals of each type.

The meals are served from large trolleys that the servers push through the aircraft from row 30 abaft. Each passenger in turn is asked which meal they choose. Naturally, this depends on individual preference, but overall each choice is equally likely. Subject to availability, the passenger is then handed their selection.

Questions:
(1) In what row will at least one main-course choice likely become unavailable?
(2) How many passengers will likely receive a non-preferred meal?

No Solution Yet Submitted by broll    
Rating: 2.3333 (3 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: We need a third simulation | Comment 4 of 7 |
(In reply to We need a third simulation by Steve Herman)

In the previous simulations the alternative offered to the unsatisfied customer was randomized; the optional randomization wat the first query from the flight attendant, as to "who wants ____?".


But now the same set was changed so that each person's inability to get first choice is now not randomized, but rather the one with the most remaining. 

The code for this is

        r=find(cart==max(cart));
        r=r(1);
rather than the randomizsion.

The number of unsatisfied has gone down from 8.2 to 6.7; the first row for such to happen, of course, has not changed from 56.8:

(This time I didn't bother to add lines showing zero cases meeting the given number, so you can find line for 31 followed immediately by that for 33)

>> subjectToAvailability
    673866     100000   56.84237    6.73866 randperm
    
          51         178
          52         623
          53        1958
          54        5241
          55       10674
          56       18273
          57       24909
          58       24805
          59       12933
          
           1         377
           2        3430
           3        7070
           4        9977
           5       11559
           6       11262
           7       10517
           8        9550
           9        8243
          10        6601
          11        5225
          12        4383
          13        3316
          14        2567
          15        1827
          16        1295
          17         924
          18         643
          19         456
          20         300
          21         180
          22         114
          23          89
          24          43
          25          25
          26           9
          27           7
          28           6
          29           1
          30           1
          31           1
          33           1
          34           1
>> subjectToAvailability
    672190     100000   56.84705    6.72190 randperm
    
          51         179
          52         652
          53        1991
          54        5134
          55       10749
          56       18007
          57       24909
          58       24916
          59       13049
          
           1         380
           2        3558
           3        7143
           4       10103
           5       11478
           6       11333
           7       10494
           8        9361
           9        8229
          10        6633
          11        5420
          12        4226
          13        3186
          14        2470
          15        1768
          16        1313
          17         966
          18         674
          19         430
          20         311
          21         171
          22         138
          23          80
          24          47
          25          32
          26          26
          27          10
          28           8
          29           4
          30           4
          31           3
          32           1
>> subjectToAvailability
    672364     100000   56.83822    6.72364    1:3
    
          51         161
          52         673
          53        2143
          54        5215
          55       10702
          56       17992
          57       25003
          58       24492
          59       13184
          
           1         396
           2        3563
           3        7370
           4       10052
           5       11482
           6       11164
           7       10560
           8        9231
           9        7954
          10        6728
          11        5375
          12        4304
          13        3281
          14        2496
          15        1793
          16        1350
          17         955
          18         690
          19         449
          20         272
          21         208
          22         135
          23          84
          24          51
          25          26
          26          12
          27           6
          28           6
          29           2
          30           2
          33           2
          35           1
>> subjectToAvailability
    671339     100000   56.83851    6.71339    1:3
    
          51         183
          52         667
          53        2035
          54        5187
          55       10748
          56       18135
          57       24953
          58       24530
          59       13161
          
           1         358
           2        3571
           3        7211
           4       10386
           5       11226
           6       11378
           7       10313
           8        9453
           9        8048
          10        6696
          11        5352
          12        4228
          13        3325
          14        2556
          15        1833
          16        1259
          17         921
          18         681
          19         425
          20         300
          21         172
          22         126
          23          72
          24          52
          25          21
          26          22
          27           9
          29           3
          30           1
          31           1
          35           1 
 

Edited on June 2, 2022, 2:10 pm

Edited on June 2, 2022, 2:14 pm
  Posted by Charlie on 2022-06-02 14:07:55

Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (9)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information