Expected consultant bill given distribution of time taken

How can a warlock learn from a spellbook?

Leaving job close to major deadlines

What mathematical theory is required for high frequency trading?

How can a clan of females defend themselves in the ancient world against wandering bands?

Print 'A' 1000 times with BrainFuck

Am I legally required to provide a (GPL licensed) source code even after a project is abandoned?

"What is the maximum that Player 1 can win?"

Tznius concerns by a Sota

How to write a nice frame challenge?

Counterfeit checks were created for my account. How does this type of fraud work?

'No arbitrary choices' intuition for natural transformation.

What is this plant I saw for sale at a Romanian farmer's market?

What does this Swiss black on yellow rectangular traffic sign with a symbol looking like a dart mean?

I just entered the USA without passport control at Atlanta airport

The Amazing Sliding Crossword

S&P 500 Index Value

How is the idea of "girlfriend material" naturally expressed in Russian?

Story of a Witch Boy

reverse a call to mmap()

Make symbols atomic, without losing their type

Is declining an undergraduate award which causes me discomfort appropriate?

First occurrence in the Sixers sequence

How does Frenetic Sliver interact with the Unearth from Dregscape Sliver?

"Correct me if I'm wrong"



Expected consultant bill given distribution of time taken














4












$begingroup$



The cdf of the number of hours it takes a consultant to complete a project is given by $F(x)= dfracx^216$ for o to 4. The consultant bills $300 per hour, rounded up to the nearest half hour, for the project. What is the expected amount of the total bill?



(a)900

(b)800

(c)872

(d)950

(e)1100




My work:



$f(x)= dfracdF(x)dx$



$f(x)=dfracx8$



so



integral of $x^2/8$ from 0 to 4 = $x^3/24$ from 0 to 4 = 64/24 = 2.6667



round 2.6667 to nearest half hour is 2.5



so



2.5*300 = 800



But that's wrong; the answer to the question is 872.



Can I please have help understanding why my method is incorrect, so I can try another method while understanding why my last attempt was incorrect.










share|cite|improve this question











$endgroup$







  • 7




    $begingroup$
    It seems to me that you have just ignored the part about rounding up to the nearest half hour. I would say that a discrete approach is necessary here.
    $endgroup$
    – TonyK
    Jun 1 at 18:32







  • 3




    $begingroup$
    The probability distribution is continuous, but the cost is a step function.
    $endgroup$
    – eyeballfrog
    Jun 1 at 18:34






  • 1




    $begingroup$
    How can you think that charging up to $150 extra is subtle?
    $endgroup$
    – TonyK
    Jun 1 at 18:35







  • 2




    $begingroup$
    Just for intuition: If you earn $10$% interest on $$1000$, compounding annually, after $1$ year you'll have $$1100$. If you compound interest continuously, you'll have $$1000e^.1 approx $1105.17$. There's a significant difference.
    $endgroup$
    – Ted Shifrin
    Jun 1 at 18:59







  • 2




    $begingroup$
    Wow, that's the answer I wanted Ted. That would get gold, if I have such powers. I forgot this part of accounting. I always wondered why we had to take accounting... I will remember the difference from compounding interest over time increments versus compounding continuously can have large implications (it should have been obvious and that's the thought I need to pass this f***er)
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 19:01
















4












$begingroup$



The cdf of the number of hours it takes a consultant to complete a project is given by $F(x)= dfracx^216$ for o to 4. The consultant bills $300 per hour, rounded up to the nearest half hour, for the project. What is the expected amount of the total bill?



(a)900

(b)800

(c)872

(d)950

(e)1100




My work:



$f(x)= dfracdF(x)dx$



$f(x)=dfracx8$



so



integral of $x^2/8$ from 0 to 4 = $x^3/24$ from 0 to 4 = 64/24 = 2.6667



round 2.6667 to nearest half hour is 2.5



so



2.5*300 = 800



But that's wrong; the answer to the question is 872.



Can I please have help understanding why my method is incorrect, so I can try another method while understanding why my last attempt was incorrect.










share|cite|improve this question











$endgroup$







  • 7




    $begingroup$
    It seems to me that you have just ignored the part about rounding up to the nearest half hour. I would say that a discrete approach is necessary here.
    $endgroup$
    – TonyK
    Jun 1 at 18:32







  • 3




    $begingroup$
    The probability distribution is continuous, but the cost is a step function.
    $endgroup$
    – eyeballfrog
    Jun 1 at 18:34






  • 1




    $begingroup$
    How can you think that charging up to $150 extra is subtle?
    $endgroup$
    – TonyK
    Jun 1 at 18:35







  • 2




    $begingroup$
    Just for intuition: If you earn $10$% interest on $$1000$, compounding annually, after $1$ year you'll have $$1100$. If you compound interest continuously, you'll have $$1000e^.1 approx $1105.17$. There's a significant difference.
    $endgroup$
    – Ted Shifrin
    Jun 1 at 18:59







  • 2




    $begingroup$
    Wow, that's the answer I wanted Ted. That would get gold, if I have such powers. I forgot this part of accounting. I always wondered why we had to take accounting... I will remember the difference from compounding interest over time increments versus compounding continuously can have large implications (it should have been obvious and that's the thought I need to pass this f***er)
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 19:01














4












4








4





$begingroup$



The cdf of the number of hours it takes a consultant to complete a project is given by $F(x)= dfracx^216$ for o to 4. The consultant bills $300 per hour, rounded up to the nearest half hour, for the project. What is the expected amount of the total bill?



(a)900

(b)800

(c)872

(d)950

(e)1100




My work:



$f(x)= dfracdF(x)dx$



$f(x)=dfracx8$



so



integral of $x^2/8$ from 0 to 4 = $x^3/24$ from 0 to 4 = 64/24 = 2.6667



round 2.6667 to nearest half hour is 2.5



so



2.5*300 = 800



But that's wrong; the answer to the question is 872.



Can I please have help understanding why my method is incorrect, so I can try another method while understanding why my last attempt was incorrect.










share|cite|improve this question











$endgroup$





The cdf of the number of hours it takes a consultant to complete a project is given by $F(x)= dfracx^216$ for o to 4. The consultant bills $300 per hour, rounded up to the nearest half hour, for the project. What is the expected amount of the total bill?



(a)900

(b)800

(c)872

(d)950

(e)1100




My work:



$f(x)= dfracdF(x)dx$



$f(x)=dfracx8$



so



integral of $x^2/8$ from 0 to 4 = $x^3/24$ from 0 to 4 = 64/24 = 2.6667



round 2.6667 to nearest half hour is 2.5



so



2.5*300 = 800



But that's wrong; the answer to the question is 872.



Can I please have help understanding why my method is incorrect, so I can try another method while understanding why my last attempt was incorrect.







probability probability-distributions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jun 2 at 12:08









user21820

41k546166




41k546166










asked Jun 1 at 18:02









Jordan GreenhutJordan Greenhut

577




577







  • 7




    $begingroup$
    It seems to me that you have just ignored the part about rounding up to the nearest half hour. I would say that a discrete approach is necessary here.
    $endgroup$
    – TonyK
    Jun 1 at 18:32







  • 3




    $begingroup$
    The probability distribution is continuous, but the cost is a step function.
    $endgroup$
    – eyeballfrog
    Jun 1 at 18:34






  • 1




    $begingroup$
    How can you think that charging up to $150 extra is subtle?
    $endgroup$
    – TonyK
    Jun 1 at 18:35







  • 2




    $begingroup$
    Just for intuition: If you earn $10$% interest on $$1000$, compounding annually, after $1$ year you'll have $$1100$. If you compound interest continuously, you'll have $$1000e^.1 approx $1105.17$. There's a significant difference.
    $endgroup$
    – Ted Shifrin
    Jun 1 at 18:59







  • 2




    $begingroup$
    Wow, that's the answer I wanted Ted. That would get gold, if I have such powers. I forgot this part of accounting. I always wondered why we had to take accounting... I will remember the difference from compounding interest over time increments versus compounding continuously can have large implications (it should have been obvious and that's the thought I need to pass this f***er)
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 19:01













  • 7




    $begingroup$
    It seems to me that you have just ignored the part about rounding up to the nearest half hour. I would say that a discrete approach is necessary here.
    $endgroup$
    – TonyK
    Jun 1 at 18:32







  • 3




    $begingroup$
    The probability distribution is continuous, but the cost is a step function.
    $endgroup$
    – eyeballfrog
    Jun 1 at 18:34






  • 1




    $begingroup$
    How can you think that charging up to $150 extra is subtle?
    $endgroup$
    – TonyK
    Jun 1 at 18:35







  • 2




    $begingroup$
    Just for intuition: If you earn $10$% interest on $$1000$, compounding annually, after $1$ year you'll have $$1100$. If you compound interest continuously, you'll have $$1000e^.1 approx $1105.17$. There's a significant difference.
    $endgroup$
    – Ted Shifrin
    Jun 1 at 18:59







  • 2




    $begingroup$
    Wow, that's the answer I wanted Ted. That would get gold, if I have such powers. I forgot this part of accounting. I always wondered why we had to take accounting... I will remember the difference from compounding interest over time increments versus compounding continuously can have large implications (it should have been obvious and that's the thought I need to pass this f***er)
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 19:01








7




7




$begingroup$
It seems to me that you have just ignored the part about rounding up to the nearest half hour. I would say that a discrete approach is necessary here.
$endgroup$
– TonyK
Jun 1 at 18:32





$begingroup$
It seems to me that you have just ignored the part about rounding up to the nearest half hour. I would say that a discrete approach is necessary here.
$endgroup$
– TonyK
Jun 1 at 18:32





3




3




$begingroup$
The probability distribution is continuous, but the cost is a step function.
$endgroup$
– eyeballfrog
Jun 1 at 18:34




$begingroup$
The probability distribution is continuous, but the cost is a step function.
$endgroup$
– eyeballfrog
Jun 1 at 18:34




1




1




$begingroup$
How can you think that charging up to $150 extra is subtle?
$endgroup$
– TonyK
Jun 1 at 18:35





$begingroup$
How can you think that charging up to $150 extra is subtle?
$endgroup$
– TonyK
Jun 1 at 18:35





2




2




$begingroup$
Just for intuition: If you earn $10$% interest on $$1000$, compounding annually, after $1$ year you'll have $$1100$. If you compound interest continuously, you'll have $$1000e^.1 approx $1105.17$. There's a significant difference.
$endgroup$
– Ted Shifrin
Jun 1 at 18:59





$begingroup$
Just for intuition: If you earn $10$% interest on $$1000$, compounding annually, after $1$ year you'll have $$1100$. If you compound interest continuously, you'll have $$1000e^.1 approx $1105.17$. There's a significant difference.
$endgroup$
– Ted Shifrin
Jun 1 at 18:59





2




2




$begingroup$
Wow, that's the answer I wanted Ted. That would get gold, if I have such powers. I forgot this part of accounting. I always wondered why we had to take accounting... I will remember the difference from compounding interest over time increments versus compounding continuously can have large implications (it should have been obvious and that's the thought I need to pass this f***er)
$endgroup$
– Jordan Greenhut
Jun 1 at 19:01





$begingroup$
Wow, that's the answer I wanted Ted. That would get gold, if I have such powers. I forgot this part of accounting. I always wondered why we had to take accounting... I will remember the difference from compounding interest over time increments versus compounding continuously can have large implications (it should have been obvious and that's the thought I need to pass this f***er)
$endgroup$
– Jordan Greenhut
Jun 1 at 19:01











4 Answers
4






active

oldest

votes


















7












$begingroup$

Because it gets rounded up to the nearest half hour, the expected fee is simply



$$$150left(frac0.5^216-frac0^216right)+$300left(frac1^216-frac0.5^216right)+cdots+$1200left(frac4^216-frac3.5^216right)$$



(the probability it lands in each half hour multiplied by the amount received in that half hour)



which is just $$$1200-$150left(frac3.5^216+cdots+frac0.5^216+frac0^216right)=$871.875approx$872$$






share|cite|improve this answer









$endgroup$








  • 1




    $begingroup$
    Why can't it be continuous? It's rounded... that's not doing it for me
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 18:49







  • 1




    $begingroup$
    @JordanGreenhut If the amount of time it takes is continuous, but the billing is done based on a rounded form of this time, then the amount billed is discrete, since the time associated to the bill is always some multiple of half an hour.
    $endgroup$
    – Ian
    Jun 1 at 18:51











  • $begingroup$
    I can kinda see that. So time must be viewed as half hour increments, because that's the window the consultant offers their time. "Why wont continuous work?" is a better question
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 18:53










  • $begingroup$
    A continuous treatment of the problem without the rounding would work, but it would most likely give a different answer, unless all the rounding errors somehow cancel out.
    $endgroup$
    – Ian
    Jun 1 at 19:28



















4












$begingroup$

The problem here doesn't really have to do with discrete vs continuous. What you have done is to correctly calculate the expected time the project will take, not the expected bill. It is not correct to multiply the expected time by $300$ to get the expected bill, even if you round up that time.



Why is this? Let's say $X$ is the random variable representing the time taken, and $Y$ is the random variable representing the bill.
If the consultant did not round to the nearest half hour, then we would just have $Y=300X$.
In that case, you could have used the following (correct) reasoning:
$$textSince Y=300X,quad E[Y]=300E[X].$$



However, we actually have $Y=300,mathttrnd(X)$, where $mathttrnd$ is the function that rounds up to the nearest half hour. Your method used the following (incorrect) reasoning:
$$textSince Y=300,mathttrnd(X),quad E[Y]=300,mathttrnd(E[X])quadcolorredtextFalse!$$
While expectation is linear, it does not commute with arbitrary functions (in this case the rounding function).
You have to compute the expectation of the $Y$ variable (the cost) directly, there is no way to get it just from the expectation of the $X$ variable (the time) - because the relationship between the two variables is more complicated than just a linear function.



P.S. The problem also says the time is rounded up to the nearest half hour, so your 2.66667 should have been rounded up to 3, not down to 2.5. That still wouldn't give the right answer for the reasons I explained above, but keep it in mind if you want to try the problem again.






share|cite|improve this answer









$endgroup$




















    3












    $begingroup$

    Let $X$ be the amount of the total bill, in dollars. Then $X$ is certainly a discrete random variable. Its possible values are $0, 150, 300, 450, ldots, 1200$. To treat $X$ as a continuous random variable is an error, because it is simply not so.






    share|cite|improve this answer











    $endgroup$












    • $begingroup$
      Thank you, that helped a little
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 18:55


















    2












    $begingroup$

    The probability for the duration to be between $frack-12$ and $frac k2$ is $frac2k-164$ and the charge would be $150k$. Thus, the expected charge would be
    $$
    beginalign
    frac7532sum_k=1^8left(2k^2-kright)
    &=frac7532sum_k=1^8left[4binomk2+binomk1right]\
    &=frac7532left[4binomk+13+binomk+12right]_k=0^k=8\
    &=frac7532left[4binom93+binom92right]\
    &=frac7532cdot372\[9pt]
    &=871tfrac78
    endalign
    $$






    share|cite|improve this answer









    $endgroup$












    • $begingroup$
      Fancy. Can you explain it further? How do you arrive at the left hand side equation?
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 19:20










    • $begingroup$
      $frac7532left(2k^2-kright)=frac2k-164cdot150k$ from the line above.
      $endgroup$
      – robjohn
      Jun 1 at 19:24










    • $begingroup$
      $sum_kbinomkn=binomk+1n+1$ follows from Pascal's recurrence: $binomk+1n+1=binomkn+1+binomkn$
      $endgroup$
      – robjohn
      Jun 1 at 19:26












    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "69"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3247842%2fexpected-consultant-bill-given-distribution-of-time-taken%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    7












    $begingroup$

    Because it gets rounded up to the nearest half hour, the expected fee is simply



    $$$150left(frac0.5^216-frac0^216right)+$300left(frac1^216-frac0.5^216right)+cdots+$1200left(frac4^216-frac3.5^216right)$$



    (the probability it lands in each half hour multiplied by the amount received in that half hour)



    which is just $$$1200-$150left(frac3.5^216+cdots+frac0.5^216+frac0^216right)=$871.875approx$872$$






    share|cite|improve this answer









    $endgroup$








    • 1




      $begingroup$
      Why can't it be continuous? It's rounded... that's not doing it for me
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 18:49







    • 1




      $begingroup$
      @JordanGreenhut If the amount of time it takes is continuous, but the billing is done based on a rounded form of this time, then the amount billed is discrete, since the time associated to the bill is always some multiple of half an hour.
      $endgroup$
      – Ian
      Jun 1 at 18:51











    • $begingroup$
      I can kinda see that. So time must be viewed as half hour increments, because that's the window the consultant offers their time. "Why wont continuous work?" is a better question
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 18:53










    • $begingroup$
      A continuous treatment of the problem without the rounding would work, but it would most likely give a different answer, unless all the rounding errors somehow cancel out.
      $endgroup$
      – Ian
      Jun 1 at 19:28
















    7












    $begingroup$

    Because it gets rounded up to the nearest half hour, the expected fee is simply



    $$$150left(frac0.5^216-frac0^216right)+$300left(frac1^216-frac0.5^216right)+cdots+$1200left(frac4^216-frac3.5^216right)$$



    (the probability it lands in each half hour multiplied by the amount received in that half hour)



    which is just $$$1200-$150left(frac3.5^216+cdots+frac0.5^216+frac0^216right)=$871.875approx$872$$






    share|cite|improve this answer









    $endgroup$








    • 1




      $begingroup$
      Why can't it be continuous? It's rounded... that's not doing it for me
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 18:49







    • 1




      $begingroup$
      @JordanGreenhut If the amount of time it takes is continuous, but the billing is done based on a rounded form of this time, then the amount billed is discrete, since the time associated to the bill is always some multiple of half an hour.
      $endgroup$
      – Ian
      Jun 1 at 18:51











    • $begingroup$
      I can kinda see that. So time must be viewed as half hour increments, because that's the window the consultant offers their time. "Why wont continuous work?" is a better question
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 18:53










    • $begingroup$
      A continuous treatment of the problem without the rounding would work, but it would most likely give a different answer, unless all the rounding errors somehow cancel out.
      $endgroup$
      – Ian
      Jun 1 at 19:28














    7












    7








    7





    $begingroup$

    Because it gets rounded up to the nearest half hour, the expected fee is simply



    $$$150left(frac0.5^216-frac0^216right)+$300left(frac1^216-frac0.5^216right)+cdots+$1200left(frac4^216-frac3.5^216right)$$



    (the probability it lands in each half hour multiplied by the amount received in that half hour)



    which is just $$$1200-$150left(frac3.5^216+cdots+frac0.5^216+frac0^216right)=$871.875approx$872$$






    share|cite|improve this answer









    $endgroup$



    Because it gets rounded up to the nearest half hour, the expected fee is simply



    $$$150left(frac0.5^216-frac0^216right)+$300left(frac1^216-frac0.5^216right)+cdots+$1200left(frac4^216-frac3.5^216right)$$



    (the probability it lands in each half hour multiplied by the amount received in that half hour)



    which is just $$$1200-$150left(frac3.5^216+cdots+frac0.5^216+frac0^216right)=$871.875approx$872$$







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Jun 1 at 18:48









    auscryptauscrypt

    7,416614




    7,416614







    • 1




      $begingroup$
      Why can't it be continuous? It's rounded... that's not doing it for me
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 18:49







    • 1




      $begingroup$
      @JordanGreenhut If the amount of time it takes is continuous, but the billing is done based on a rounded form of this time, then the amount billed is discrete, since the time associated to the bill is always some multiple of half an hour.
      $endgroup$
      – Ian
      Jun 1 at 18:51











    • $begingroup$
      I can kinda see that. So time must be viewed as half hour increments, because that's the window the consultant offers their time. "Why wont continuous work?" is a better question
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 18:53










    • $begingroup$
      A continuous treatment of the problem without the rounding would work, but it would most likely give a different answer, unless all the rounding errors somehow cancel out.
      $endgroup$
      – Ian
      Jun 1 at 19:28













    • 1




      $begingroup$
      Why can't it be continuous? It's rounded... that's not doing it for me
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 18:49







    • 1




      $begingroup$
      @JordanGreenhut If the amount of time it takes is continuous, but the billing is done based on a rounded form of this time, then the amount billed is discrete, since the time associated to the bill is always some multiple of half an hour.
      $endgroup$
      – Ian
      Jun 1 at 18:51











    • $begingroup$
      I can kinda see that. So time must be viewed as half hour increments, because that's the window the consultant offers their time. "Why wont continuous work?" is a better question
      $endgroup$
      – Jordan Greenhut
      Jun 1 at 18:53










    • $begingroup$
      A continuous treatment of the problem without the rounding would work, but it would most likely give a different answer, unless all the rounding errors somehow cancel out.
      $endgroup$
      – Ian
      Jun 1 at 19:28








    1




    1




    $begingroup$
    Why can't it be continuous? It's rounded... that's not doing it for me
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 18:49





    $begingroup$
    Why can't it be continuous? It's rounded... that's not doing it for me
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 18:49





    1




    1




    $begingroup$
    @JordanGreenhut If the amount of time it takes is continuous, but the billing is done based on a rounded form of this time, then the amount billed is discrete, since the time associated to the bill is always some multiple of half an hour.
    $endgroup$
    – Ian
    Jun 1 at 18:51





    $begingroup$
    @JordanGreenhut If the amount of time it takes is continuous, but the billing is done based on a rounded form of this time, then the amount billed is discrete, since the time associated to the bill is always some multiple of half an hour.
    $endgroup$
    – Ian
    Jun 1 at 18:51













    $begingroup$
    I can kinda see that. So time must be viewed as half hour increments, because that's the window the consultant offers their time. "Why wont continuous work?" is a better question
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 18:53




    $begingroup$
    I can kinda see that. So time must be viewed as half hour increments, because that's the window the consultant offers their time. "Why wont continuous work?" is a better question
    $endgroup$
    – Jordan Greenhut
    Jun 1 at 18:53












    $begingroup$
    A continuous treatment of the problem without the rounding would work, but it would most likely give a different answer, unless all the rounding errors somehow cancel out.
    $endgroup$
    – Ian
    Jun 1 at 19:28





    $begingroup$
    A continuous treatment of the problem without the rounding would work, but it would most likely give a different answer, unless all the rounding errors somehow cancel out.
    $endgroup$
    – Ian
    Jun 1 at 19:28












    4












    $begingroup$

    The problem here doesn't really have to do with discrete vs continuous. What you have done is to correctly calculate the expected time the project will take, not the expected bill. It is not correct to multiply the expected time by $300$ to get the expected bill, even if you round up that time.



    Why is this? Let's say $X$ is the random variable representing the time taken, and $Y$ is the random variable representing the bill.
    If the consultant did not round to the nearest half hour, then we would just have $Y=300X$.
    In that case, you could have used the following (correct) reasoning:
    $$textSince Y=300X,quad E[Y]=300E[X].$$



    However, we actually have $Y=300,mathttrnd(X)$, where $mathttrnd$ is the function that rounds up to the nearest half hour. Your method used the following (incorrect) reasoning:
    $$textSince Y=300,mathttrnd(X),quad E[Y]=300,mathttrnd(E[X])quadcolorredtextFalse!$$
    While expectation is linear, it does not commute with arbitrary functions (in this case the rounding function).
    You have to compute the expectation of the $Y$ variable (the cost) directly, there is no way to get it just from the expectation of the $X$ variable (the time) - because the relationship between the two variables is more complicated than just a linear function.



    P.S. The problem also says the time is rounded up to the nearest half hour, so your 2.66667 should have been rounded up to 3, not down to 2.5. That still wouldn't give the right answer for the reasons I explained above, but keep it in mind if you want to try the problem again.






    share|cite|improve this answer









    $endgroup$

















      4












      $begingroup$

      The problem here doesn't really have to do with discrete vs continuous. What you have done is to correctly calculate the expected time the project will take, not the expected bill. It is not correct to multiply the expected time by $300$ to get the expected bill, even if you round up that time.



      Why is this? Let's say $X$ is the random variable representing the time taken, and $Y$ is the random variable representing the bill.
      If the consultant did not round to the nearest half hour, then we would just have $Y=300X$.
      In that case, you could have used the following (correct) reasoning:
      $$textSince Y=300X,quad E[Y]=300E[X].$$



      However, we actually have $Y=300,mathttrnd(X)$, where $mathttrnd$ is the function that rounds up to the nearest half hour. Your method used the following (incorrect) reasoning:
      $$textSince Y=300,mathttrnd(X),quad E[Y]=300,mathttrnd(E[X])quadcolorredtextFalse!$$
      While expectation is linear, it does not commute with arbitrary functions (in this case the rounding function).
      You have to compute the expectation of the $Y$ variable (the cost) directly, there is no way to get it just from the expectation of the $X$ variable (the time) - because the relationship between the two variables is more complicated than just a linear function.



      P.S. The problem also says the time is rounded up to the nearest half hour, so your 2.66667 should have been rounded up to 3, not down to 2.5. That still wouldn't give the right answer for the reasons I explained above, but keep it in mind if you want to try the problem again.






      share|cite|improve this answer









      $endgroup$















        4












        4








        4





        $begingroup$

        The problem here doesn't really have to do with discrete vs continuous. What you have done is to correctly calculate the expected time the project will take, not the expected bill. It is not correct to multiply the expected time by $300$ to get the expected bill, even if you round up that time.



        Why is this? Let's say $X$ is the random variable representing the time taken, and $Y$ is the random variable representing the bill.
        If the consultant did not round to the nearest half hour, then we would just have $Y=300X$.
        In that case, you could have used the following (correct) reasoning:
        $$textSince Y=300X,quad E[Y]=300E[X].$$



        However, we actually have $Y=300,mathttrnd(X)$, where $mathttrnd$ is the function that rounds up to the nearest half hour. Your method used the following (incorrect) reasoning:
        $$textSince Y=300,mathttrnd(X),quad E[Y]=300,mathttrnd(E[X])quadcolorredtextFalse!$$
        While expectation is linear, it does not commute with arbitrary functions (in this case the rounding function).
        You have to compute the expectation of the $Y$ variable (the cost) directly, there is no way to get it just from the expectation of the $X$ variable (the time) - because the relationship between the two variables is more complicated than just a linear function.



        P.S. The problem also says the time is rounded up to the nearest half hour, so your 2.66667 should have been rounded up to 3, not down to 2.5. That still wouldn't give the right answer for the reasons I explained above, but keep it in mind if you want to try the problem again.






        share|cite|improve this answer









        $endgroup$



        The problem here doesn't really have to do with discrete vs continuous. What you have done is to correctly calculate the expected time the project will take, not the expected bill. It is not correct to multiply the expected time by $300$ to get the expected bill, even if you round up that time.



        Why is this? Let's say $X$ is the random variable representing the time taken, and $Y$ is the random variable representing the bill.
        If the consultant did not round to the nearest half hour, then we would just have $Y=300X$.
        In that case, you could have used the following (correct) reasoning:
        $$textSince Y=300X,quad E[Y]=300E[X].$$



        However, we actually have $Y=300,mathttrnd(X)$, where $mathttrnd$ is the function that rounds up to the nearest half hour. Your method used the following (incorrect) reasoning:
        $$textSince Y=300,mathttrnd(X),quad E[Y]=300,mathttrnd(E[X])quadcolorredtextFalse!$$
        While expectation is linear, it does not commute with arbitrary functions (in this case the rounding function).
        You have to compute the expectation of the $Y$ variable (the cost) directly, there is no way to get it just from the expectation of the $X$ variable (the time) - because the relationship between the two variables is more complicated than just a linear function.



        P.S. The problem also says the time is rounded up to the nearest half hour, so your 2.66667 should have been rounded up to 3, not down to 2.5. That still wouldn't give the right answer for the reasons I explained above, but keep it in mind if you want to try the problem again.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jun 2 at 5:32









        CarmeisterCarmeister

        2,9692925




        2,9692925





















            3












            $begingroup$

            Let $X$ be the amount of the total bill, in dollars. Then $X$ is certainly a discrete random variable. Its possible values are $0, 150, 300, 450, ldots, 1200$. To treat $X$ as a continuous random variable is an error, because it is simply not so.






            share|cite|improve this answer











            $endgroup$












            • $begingroup$
              Thank you, that helped a little
              $endgroup$
              – Jordan Greenhut
              Jun 1 at 18:55















            3












            $begingroup$

            Let $X$ be the amount of the total bill, in dollars. Then $X$ is certainly a discrete random variable. Its possible values are $0, 150, 300, 450, ldots, 1200$. To treat $X$ as a continuous random variable is an error, because it is simply not so.






            share|cite|improve this answer











            $endgroup$












            • $begingroup$
              Thank you, that helped a little
              $endgroup$
              – Jordan Greenhut
              Jun 1 at 18:55













            3












            3








            3





            $begingroup$

            Let $X$ be the amount of the total bill, in dollars. Then $X$ is certainly a discrete random variable. Its possible values are $0, 150, 300, 450, ldots, 1200$. To treat $X$ as a continuous random variable is an error, because it is simply not so.






            share|cite|improve this answer











            $endgroup$



            Let $X$ be the amount of the total bill, in dollars. Then $X$ is certainly a discrete random variable. Its possible values are $0, 150, 300, 450, ldots, 1200$. To treat $X$ as a continuous random variable is an error, because it is simply not so.







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Jun 1 at 18:58

























            answered Jun 1 at 18:54









            littleOlittleO

            31.8k651114




            31.8k651114











            • $begingroup$
              Thank you, that helped a little
              $endgroup$
              – Jordan Greenhut
              Jun 1 at 18:55
















            • $begingroup$
              Thank you, that helped a little
              $endgroup$
              – Jordan Greenhut
              Jun 1 at 18:55















            $begingroup$
            Thank you, that helped a little
            $endgroup$
            – Jordan Greenhut
            Jun 1 at 18:55




            $begingroup$
            Thank you, that helped a little
            $endgroup$
            – Jordan Greenhut
            Jun 1 at 18:55











            2












            $begingroup$

            The probability for the duration to be between $frack-12$ and $frac k2$ is $frac2k-164$ and the charge would be $150k$. Thus, the expected charge would be
            $$
            beginalign
            frac7532sum_k=1^8left(2k^2-kright)
            &=frac7532sum_k=1^8left[4binomk2+binomk1right]\
            &=frac7532left[4binomk+13+binomk+12right]_k=0^k=8\
            &=frac7532left[4binom93+binom92right]\
            &=frac7532cdot372\[9pt]
            &=871tfrac78
            endalign
            $$






            share|cite|improve this answer









            $endgroup$












            • $begingroup$
              Fancy. Can you explain it further? How do you arrive at the left hand side equation?
              $endgroup$
              – Jordan Greenhut
              Jun 1 at 19:20










            • $begingroup$
              $frac7532left(2k^2-kright)=frac2k-164cdot150k$ from the line above.
              $endgroup$
              – robjohn
              Jun 1 at 19:24










            • $begingroup$
              $sum_kbinomkn=binomk+1n+1$ follows from Pascal's recurrence: $binomk+1n+1=binomkn+1+binomkn$
              $endgroup$
              – robjohn
              Jun 1 at 19:26
















            2












            $begingroup$

            The probability for the duration to be between $frack-12$ and $frac k2$ is $frac2k-164$ and the charge would be $150k$. Thus, the expected charge would be
            $$
            beginalign
            frac7532sum_k=1^8left(2k^2-kright)
            &=frac7532sum_k=1^8left[4binomk2+binomk1right]\
            &=frac7532left[4binomk+13+binomk+12right]_k=0^k=8\
            &=frac7532left[4binom93+binom92right]\
            &=frac7532cdot372\[9pt]
            &=871tfrac78
            endalign
            $$






            share|cite|improve this answer









            $endgroup$












            • $begingroup$
              Fancy. Can you explain it further? How do you arrive at the left hand side equation?
              $endgroup$
              – Jordan Greenhut
              Jun 1 at 19:20










            • $begingroup$
              $frac7532left(2k^2-kright)=frac2k-164cdot150k$ from the line above.
              $endgroup$
              – robjohn
              Jun 1 at 19:24










            • $begingroup$
              $sum_kbinomkn=binomk+1n+1$ follows from Pascal's recurrence: $binomk+1n+1=binomkn+1+binomkn$
              $endgroup$
              – robjohn
              Jun 1 at 19:26














            2












            2








            2





            $begingroup$

            The probability for the duration to be between $frack-12$ and $frac k2$ is $frac2k-164$ and the charge would be $150k$. Thus, the expected charge would be
            $$
            beginalign
            frac7532sum_k=1^8left(2k^2-kright)
            &=frac7532sum_k=1^8left[4binomk2+binomk1right]\
            &=frac7532left[4binomk+13+binomk+12right]_k=0^k=8\
            &=frac7532left[4binom93+binom92right]\
            &=frac7532cdot372\[9pt]
            &=871tfrac78
            endalign
            $$






            share|cite|improve this answer









            $endgroup$



            The probability for the duration to be between $frack-12$ and $frac k2$ is $frac2k-164$ and the charge would be $150k$. Thus, the expected charge would be
            $$
            beginalign
            frac7532sum_k=1^8left(2k^2-kright)
            &=frac7532sum_k=1^8left[4binomk2+binomk1right]\
            &=frac7532left[4binomk+13+binomk+12right]_k=0^k=8\
            &=frac7532left[4binom93+binom92right]\
            &=frac7532cdot372\[9pt]
            &=871tfrac78
            endalign
            $$







            share|cite|improve this answer












            share|cite|improve this answer



            share|cite|improve this answer










            answered Jun 1 at 19:16









            robjohnrobjohn

            274k28320655




            274k28320655











            • $begingroup$
              Fancy. Can you explain it further? How do you arrive at the left hand side equation?
              $endgroup$
              – Jordan Greenhut
              Jun 1 at 19:20










            • $begingroup$
              $frac7532left(2k^2-kright)=frac2k-164cdot150k$ from the line above.
              $endgroup$
              – robjohn
              Jun 1 at 19:24










            • $begingroup$
              $sum_kbinomkn=binomk+1n+1$ follows from Pascal's recurrence: $binomk+1n+1=binomkn+1+binomkn$
              $endgroup$
              – robjohn
              Jun 1 at 19:26

















            • $begingroup$
              Fancy. Can you explain it further? How do you arrive at the left hand side equation?
              $endgroup$
              – Jordan Greenhut
              Jun 1 at 19:20










            • $begingroup$
              $frac7532left(2k^2-kright)=frac2k-164cdot150k$ from the line above.
              $endgroup$
              – robjohn
              Jun 1 at 19:24










            • $begingroup$
              $sum_kbinomkn=binomk+1n+1$ follows from Pascal's recurrence: $binomk+1n+1=binomkn+1+binomkn$
              $endgroup$
              – robjohn
              Jun 1 at 19:26
















            $begingroup$
            Fancy. Can you explain it further? How do you arrive at the left hand side equation?
            $endgroup$
            – Jordan Greenhut
            Jun 1 at 19:20




            $begingroup$
            Fancy. Can you explain it further? How do you arrive at the left hand side equation?
            $endgroup$
            – Jordan Greenhut
            Jun 1 at 19:20












            $begingroup$
            $frac7532left(2k^2-kright)=frac2k-164cdot150k$ from the line above.
            $endgroup$
            – robjohn
            Jun 1 at 19:24




            $begingroup$
            $frac7532left(2k^2-kright)=frac2k-164cdot150k$ from the line above.
            $endgroup$
            – robjohn
            Jun 1 at 19:24












            $begingroup$
            $sum_kbinomkn=binomk+1n+1$ follows from Pascal's recurrence: $binomk+1n+1=binomkn+1+binomkn$
            $endgroup$
            – robjohn
            Jun 1 at 19:26





            $begingroup$
            $sum_kbinomkn=binomk+1n+1$ follows from Pascal's recurrence: $binomk+1n+1=binomkn+1+binomkn$
            $endgroup$
            – robjohn
            Jun 1 at 19:26


















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3247842%2fexpected-consultant-bill-given-distribution-of-time-taken%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

            Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020