A coin, having probability p of landing heads and probability of q=(1-p) of landing on heads. Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Flipping a special coin: probability of getting heads equals the proportion of heads in the flips so farBiased coin flipped until $r$ heads appearBiased coin probabilityCoin-flipping experiment: the expected number of flips that land on headsWhy are odds of a coin landing heads $50%$ after $'n'$ consecutive headsWhat is the probability of a biased coin flipping heads (probability of heads is $frac 35$) exactly $65$ times in $100$ trials?Flipping rigged coin, calculating most common number of flips between headsChernoff bound probability: value of $n$ so that with probability $.999$ at least half of the coin flips come out headsFlip a coin 6 times. Probability with past results and probability without past results are different?Probability density function of flipping until heads and tails

How to call a function with default parameter through a pointer to function that is the return of another function?

Why aren't air breathing engines used as small first stages

porting install scripts : can rpm replace apt?

Why am I getting the error "non-boolean type specified in a context where a condition is expected" for this request?

Storing hydrofluoric acid before the invention of plastics

Coloring maths inside a tcolorbox

Should I discuss the type of campaign with my players?

When do you get frequent flier miles - when you buy, or when you fly?

How to run gsettings for another user Ubuntu 18.04.2 LTS

Why are there no cargo aircraft with "flying wing" design?

Why is my conclusion inconsistent with the van't Hoff equation?

Why do people hide their license plates in the EU?

Short Story with Cinderella as a Voo-doo Witch

Can a USB port passively 'listen only'?

How to tell that you are a giant?

How to find out what spells would be useless to a blind NPC spellcaster?

What would be the ideal power source for a cybernetic eye?

How to align text above triangle figure

Can a non-EU citizen traveling with me come with me through the EU passport line?

Book where humans were engineered with genes from animal species to survive hostile planets

What does this icon in iOS Stardew Valley mean?

Using audio cues to encourage good posture

A coin, having probability p of landing heads and probability of q=(1-p) of landing on heads.

Apollo command module space walk?



A coin, having probability p of landing heads and probability of q=(1-p) of landing on heads.



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Flipping a special coin: probability of getting heads equals the proportion of heads in the flips so farBiased coin flipped until $r$ heads appearBiased coin probabilityCoin-flipping experiment: the expected number of flips that land on headsWhy are odds of a coin landing heads $50%$ after $'n'$ consecutive headsWhat is the probability of a biased coin flipping heads (probability of heads is $frac 35$) exactly $65$ times in $100$ trials?Flipping rigged coin, calculating most common number of flips between headsChernoff bound probability: value of $n$ so that with probability $.999$ at least half of the coin flips come out headsFlip a coin 6 times. Probability with past results and probability without past results are different?Probability density function of flipping until heads and tails










1












$begingroup$


A coin, having probability p of landing heads and probability of q=(1-p) of landing on heads. It is continuously flipped until at least one head and one tail have been flipped.



This is not part of a homework assignment. I am studying for a final and don't understand the professors solutions.



a.) Find the expected number of flips needed.



Since this is clearly geometric, I would think the solution would be:



E(N)=$Sigma_i=0^inftyip^n-1q+Sigma_i=0^niq^n-1p=frac1q+frac1p$.



However, I am completely wrong.
The answer is



E(N)=$p(1+frac1q)+q(1+frac1p)$



For example, consider we flip for heads first. Then we have:



E(N|H)=$p+pSigma_i=0^inftynp^n-1q$... I am not sure why this makes sense.



I am not entirely sure why we have an added 1 and a factored p,q. Could someone carefully explain why it makes sense that this is the right answer?










share|cite|improve this question









New contributor




Mistah White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 2




    $begingroup$
    It's all a question of the first toss. If it is $H$ then you just get one more than the expected time to get a $T$, if it is $T$ then you just get one more than the expected time to get $H$. Your method is incorrect because the expected number of tosses needed to get one of the two is $1$.
    $endgroup$
    – lulu
    2 hours ago







  • 1




    $begingroup$
    In both the title and first paragraph it appears there is $0$ chance of landing tails, so you will wait forever.
    $endgroup$
    – Ross Millikan
    2 hours ago











  • $begingroup$
    Note: your sums are hard to follow. What's $n$? The upper limit of the sums should be $infty$, the exponent of the probability ought to be a simple function of $i$. Done correctly, your method ought to work (though it's easier to do it the other way).
    $endgroup$
    – lulu
    1 hour ago















1












$begingroup$


A coin, having probability p of landing heads and probability of q=(1-p) of landing on heads. It is continuously flipped until at least one head and one tail have been flipped.



This is not part of a homework assignment. I am studying for a final and don't understand the professors solutions.



a.) Find the expected number of flips needed.



Since this is clearly geometric, I would think the solution would be:



E(N)=$Sigma_i=0^inftyip^n-1q+Sigma_i=0^niq^n-1p=frac1q+frac1p$.



However, I am completely wrong.
The answer is



E(N)=$p(1+frac1q)+q(1+frac1p)$



For example, consider we flip for heads first. Then we have:



E(N|H)=$p+pSigma_i=0^inftynp^n-1q$... I am not sure why this makes sense.



I am not entirely sure why we have an added 1 and a factored p,q. Could someone carefully explain why it makes sense that this is the right answer?










share|cite|improve this question









New contributor




Mistah White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 2




    $begingroup$
    It's all a question of the first toss. If it is $H$ then you just get one more than the expected time to get a $T$, if it is $T$ then you just get one more than the expected time to get $H$. Your method is incorrect because the expected number of tosses needed to get one of the two is $1$.
    $endgroup$
    – lulu
    2 hours ago







  • 1




    $begingroup$
    In both the title and first paragraph it appears there is $0$ chance of landing tails, so you will wait forever.
    $endgroup$
    – Ross Millikan
    2 hours ago











  • $begingroup$
    Note: your sums are hard to follow. What's $n$? The upper limit of the sums should be $infty$, the exponent of the probability ought to be a simple function of $i$. Done correctly, your method ought to work (though it's easier to do it the other way).
    $endgroup$
    – lulu
    1 hour ago













1












1








1


1



$begingroup$


A coin, having probability p of landing heads and probability of q=(1-p) of landing on heads. It is continuously flipped until at least one head and one tail have been flipped.



This is not part of a homework assignment. I am studying for a final and don't understand the professors solutions.



a.) Find the expected number of flips needed.



Since this is clearly geometric, I would think the solution would be:



E(N)=$Sigma_i=0^inftyip^n-1q+Sigma_i=0^niq^n-1p=frac1q+frac1p$.



However, I am completely wrong.
The answer is



E(N)=$p(1+frac1q)+q(1+frac1p)$



For example, consider we flip for heads first. Then we have:



E(N|H)=$p+pSigma_i=0^inftynp^n-1q$... I am not sure why this makes sense.



I am not entirely sure why we have an added 1 and a factored p,q. Could someone carefully explain why it makes sense that this is the right answer?










share|cite|improve this question









New contributor




Mistah White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




A coin, having probability p of landing heads and probability of q=(1-p) of landing on heads. It is continuously flipped until at least one head and one tail have been flipped.



This is not part of a homework assignment. I am studying for a final and don't understand the professors solutions.



a.) Find the expected number of flips needed.



Since this is clearly geometric, I would think the solution would be:



E(N)=$Sigma_i=0^inftyip^n-1q+Sigma_i=0^niq^n-1p=frac1q+frac1p$.



However, I am completely wrong.
The answer is



E(N)=$p(1+frac1q)+q(1+frac1p)$



For example, consider we flip for heads first. Then we have:



E(N|H)=$p+pSigma_i=0^inftynp^n-1q$... I am not sure why this makes sense.



I am not entirely sure why we have an added 1 and a factored p,q. Could someone carefully explain why it makes sense that this is the right answer?







probability probability-theory probability-distributions expected-value






share|cite|improve this question









New contributor




Mistah White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question









New contributor




Mistah White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question








edited 2 hours ago







Mistah White













New contributor




Mistah White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 hours ago









Mistah WhiteMistah White

62




62




New contributor




Mistah White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Mistah White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Mistah White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 2




    $begingroup$
    It's all a question of the first toss. If it is $H$ then you just get one more than the expected time to get a $T$, if it is $T$ then you just get one more than the expected time to get $H$. Your method is incorrect because the expected number of tosses needed to get one of the two is $1$.
    $endgroup$
    – lulu
    2 hours ago







  • 1




    $begingroup$
    In both the title and first paragraph it appears there is $0$ chance of landing tails, so you will wait forever.
    $endgroup$
    – Ross Millikan
    2 hours ago











  • $begingroup$
    Note: your sums are hard to follow. What's $n$? The upper limit of the sums should be $infty$, the exponent of the probability ought to be a simple function of $i$. Done correctly, your method ought to work (though it's easier to do it the other way).
    $endgroup$
    – lulu
    1 hour ago












  • 2




    $begingroup$
    It's all a question of the first toss. If it is $H$ then you just get one more than the expected time to get a $T$, if it is $T$ then you just get one more than the expected time to get $H$. Your method is incorrect because the expected number of tosses needed to get one of the two is $1$.
    $endgroup$
    – lulu
    2 hours ago







  • 1




    $begingroup$
    In both the title and first paragraph it appears there is $0$ chance of landing tails, so you will wait forever.
    $endgroup$
    – Ross Millikan
    2 hours ago











  • $begingroup$
    Note: your sums are hard to follow. What's $n$? The upper limit of the sums should be $infty$, the exponent of the probability ought to be a simple function of $i$. Done correctly, your method ought to work (though it's easier to do it the other way).
    $endgroup$
    – lulu
    1 hour ago







2




2




$begingroup$
It's all a question of the first toss. If it is $H$ then you just get one more than the expected time to get a $T$, if it is $T$ then you just get one more than the expected time to get $H$. Your method is incorrect because the expected number of tosses needed to get one of the two is $1$.
$endgroup$
– lulu
2 hours ago





$begingroup$
It's all a question of the first toss. If it is $H$ then you just get one more than the expected time to get a $T$, if it is $T$ then you just get one more than the expected time to get $H$. Your method is incorrect because the expected number of tosses needed to get one of the two is $1$.
$endgroup$
– lulu
2 hours ago





1




1




$begingroup$
In both the title and first paragraph it appears there is $0$ chance of landing tails, so you will wait forever.
$endgroup$
– Ross Millikan
2 hours ago





$begingroup$
In both the title and first paragraph it appears there is $0$ chance of landing tails, so you will wait forever.
$endgroup$
– Ross Millikan
2 hours ago













$begingroup$
Note: your sums are hard to follow. What's $n$? The upper limit of the sums should be $infty$, the exponent of the probability ought to be a simple function of $i$. Done correctly, your method ought to work (though it's easier to do it the other way).
$endgroup$
– lulu
1 hour ago




$begingroup$
Note: your sums are hard to follow. What's $n$? The upper limit of the sums should be $infty$, the exponent of the probability ought to be a simple function of $i$. Done correctly, your method ought to work (though it's easier to do it the other way).
$endgroup$
– lulu
1 hour ago










2 Answers
2






active

oldest

votes


















4












$begingroup$

If you get a head with probability $p$ then the expected number of throws is $1+E(X)$ where $X$ is a geometric distribution requiring a tail to be thrown with probability $q$ so $1+E(X)=1+frac1q$. Similarly if you throw a tail with probability $q$ then the expected number of throws is $1+E(Y)$ where $Y$ is a geometric distribution requiring a head to be thrown with probability $p$ so $1+E(Y)=1+frac1p$. This means that the overall expected number of throws is
$$pleft(1+frac1qright)+qleft(1+frac1pright)$$
because there is a probability $p$ that the expected number of throws is given by $1+E(X)$ and probability $q$ that it is given by $1+E(Y)$.






share|cite|improve this answer











$endgroup$




















    2












    $begingroup$

    Let $X$ be the time of the first head, and $Y$ the time of the first tail, and $W$ the first time when a head and a tail has been flipped.



    You are right in assuming that $E[X]=frac1p$ and $E[Y]=frac1q$, But you are wrong in assuming that $W=X+Y$, that's simply not true, actually $W=max(X,Y)$.



    A possible approach. Let $A$ be the indicator variable of the event: "first coin was a head" (hence $X=1$).



    Then use $$E[W]=E[E[W | A ]] = P(A=1) E[W|A=1]+P(A=0) E[W|A=0]=\=p(E[Y]+1)+q(E[X]+1)$$






    share|cite|improve this answer











    $endgroup$













      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
      );



      );






      Mistah White is a new contributor. Be nice, and check out our Code of Conduct.









      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3190435%2fa-coin-having-probability-p-of-landing-heads-and-probability-of-q-1-p-of-land%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4












      $begingroup$

      If you get a head with probability $p$ then the expected number of throws is $1+E(X)$ where $X$ is a geometric distribution requiring a tail to be thrown with probability $q$ so $1+E(X)=1+frac1q$. Similarly if you throw a tail with probability $q$ then the expected number of throws is $1+E(Y)$ where $Y$ is a geometric distribution requiring a head to be thrown with probability $p$ so $1+E(Y)=1+frac1p$. This means that the overall expected number of throws is
      $$pleft(1+frac1qright)+qleft(1+frac1pright)$$
      because there is a probability $p$ that the expected number of throws is given by $1+E(X)$ and probability $q$ that it is given by $1+E(Y)$.






      share|cite|improve this answer











      $endgroup$

















        4












        $begingroup$

        If you get a head with probability $p$ then the expected number of throws is $1+E(X)$ where $X$ is a geometric distribution requiring a tail to be thrown with probability $q$ so $1+E(X)=1+frac1q$. Similarly if you throw a tail with probability $q$ then the expected number of throws is $1+E(Y)$ where $Y$ is a geometric distribution requiring a head to be thrown with probability $p$ so $1+E(Y)=1+frac1p$. This means that the overall expected number of throws is
        $$pleft(1+frac1qright)+qleft(1+frac1pright)$$
        because there is a probability $p$ that the expected number of throws is given by $1+E(X)$ and probability $q$ that it is given by $1+E(Y)$.






        share|cite|improve this answer











        $endgroup$















          4












          4








          4





          $begingroup$

          If you get a head with probability $p$ then the expected number of throws is $1+E(X)$ where $X$ is a geometric distribution requiring a tail to be thrown with probability $q$ so $1+E(X)=1+frac1q$. Similarly if you throw a tail with probability $q$ then the expected number of throws is $1+E(Y)$ where $Y$ is a geometric distribution requiring a head to be thrown with probability $p$ so $1+E(Y)=1+frac1p$. This means that the overall expected number of throws is
          $$pleft(1+frac1qright)+qleft(1+frac1pright)$$
          because there is a probability $p$ that the expected number of throws is given by $1+E(X)$ and probability $q$ that it is given by $1+E(Y)$.






          share|cite|improve this answer











          $endgroup$



          If you get a head with probability $p$ then the expected number of throws is $1+E(X)$ where $X$ is a geometric distribution requiring a tail to be thrown with probability $q$ so $1+E(X)=1+frac1q$. Similarly if you throw a tail with probability $q$ then the expected number of throws is $1+E(Y)$ where $Y$ is a geometric distribution requiring a head to be thrown with probability $p$ so $1+E(Y)=1+frac1p$. This means that the overall expected number of throws is
          $$pleft(1+frac1qright)+qleft(1+frac1pright)$$
          because there is a probability $p$ that the expected number of throws is given by $1+E(X)$ and probability $q$ that it is given by $1+E(Y)$.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited 2 hours ago

























          answered 2 hours ago









          Peter ForemanPeter Foreman

          7,8931320




          7,8931320





















              2












              $begingroup$

              Let $X$ be the time of the first head, and $Y$ the time of the first tail, and $W$ the first time when a head and a tail has been flipped.



              You are right in assuming that $E[X]=frac1p$ and $E[Y]=frac1q$, But you are wrong in assuming that $W=X+Y$, that's simply not true, actually $W=max(X,Y)$.



              A possible approach. Let $A$ be the indicator variable of the event: "first coin was a head" (hence $X=1$).



              Then use $$E[W]=E[E[W | A ]] = P(A=1) E[W|A=1]+P(A=0) E[W|A=0]=\=p(E[Y]+1)+q(E[X]+1)$$






              share|cite|improve this answer











              $endgroup$

















                2












                $begingroup$

                Let $X$ be the time of the first head, and $Y$ the time of the first tail, and $W$ the first time when a head and a tail has been flipped.



                You are right in assuming that $E[X]=frac1p$ and $E[Y]=frac1q$, But you are wrong in assuming that $W=X+Y$, that's simply not true, actually $W=max(X,Y)$.



                A possible approach. Let $A$ be the indicator variable of the event: "first coin was a head" (hence $X=1$).



                Then use $$E[W]=E[E[W | A ]] = P(A=1) E[W|A=1]+P(A=0) E[W|A=0]=\=p(E[Y]+1)+q(E[X]+1)$$






                share|cite|improve this answer











                $endgroup$















                  2












                  2








                  2





                  $begingroup$

                  Let $X$ be the time of the first head, and $Y$ the time of the first tail, and $W$ the first time when a head and a tail has been flipped.



                  You are right in assuming that $E[X]=frac1p$ and $E[Y]=frac1q$, But you are wrong in assuming that $W=X+Y$, that's simply not true, actually $W=max(X,Y)$.



                  A possible approach. Let $A$ be the indicator variable of the event: "first coin was a head" (hence $X=1$).



                  Then use $$E[W]=E[E[W | A ]] = P(A=1) E[W|A=1]+P(A=0) E[W|A=0]=\=p(E[Y]+1)+q(E[X]+1)$$






                  share|cite|improve this answer











                  $endgroup$



                  Let $X$ be the time of the first head, and $Y$ the time of the first tail, and $W$ the first time when a head and a tail has been flipped.



                  You are right in assuming that $E[X]=frac1p$ and $E[Y]=frac1q$, But you are wrong in assuming that $W=X+Y$, that's simply not true, actually $W=max(X,Y)$.



                  A possible approach. Let $A$ be the indicator variable of the event: "first coin was a head" (hence $X=1$).



                  Then use $$E[W]=E[E[W | A ]] = P(A=1) E[W|A=1]+P(A=0) E[W|A=0]=\=p(E[Y]+1)+q(E[X]+1)$$







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited 2 hours ago

























                  answered 2 hours ago









                  leonbloyleonbloy

                  42.5k647108




                  42.5k647108




















                      Mistah White is a new contributor. Be nice, and check out our Code of Conduct.









                      draft saved

                      draft discarded


















                      Mistah White is a new contributor. Be nice, and check out our Code of Conduct.












                      Mistah White is a new contributor. Be nice, and check out our Code of Conduct.











                      Mistah White is a new contributor. Be nice, and check out our Code of Conduct.














                      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%2f3190435%2fa-coin-having-probability-p-of-landing-heads-and-probability-of-q-1-p-of-land%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

                      Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

                      Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                      How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2