Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Lies, Damned Lies, and Statistics
Forum Updated to NodeBB v4.3 + New Features

Lies, Damned Lies, and Statistics

Scheduled Pinned Locked Moved Unsolved The Lounge
52 Posts 8 Posters 21.8k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JKSHJ JKSH

    I like algebra, so here's some notation from probability theory:

    • P(A): Probability that A occurs
    • P(A ∩ B): Probability that A and B both occur
    • P(A | B): Probability that A occurs, given that B occurs

    In this example,

    • A: Have the disease
    • B: Get a positive test result

    @JonB said in Lies, Damned Lies, and Statistics:

    • Out of every 1,000 people, 1 has the affliction.

    P(A) = 0.001

    • The test will always identify that one person as being afflicted.

    P(B | A) = 1

    By the axiom of probability, P(B∩A) = P(B|A) * P(A) so P(B ∩ A) = 0.001

    • Additionally, the test will report 10* other people as being afflicted who in fact are healthy.

    [* Actually, the remaining population is 999, so really 9.99 rather than 10.0. This would affect my final figure, but I imagine you're not looking for that degree of accuracy, so my answer will be right to nearest couple of decimal places!]

    P(B | ¬A) = 0.01

    Similarly to before, P(B ∩ ¬A) = 0.00999

    Well, in this case, the test has reported 11 people as positive. 1 is genuinely positive, while 10 are false positive.

    P(B) = P(B ∩ A) + P(B ∩ ¬A) so P(B) = 0.01099

    My conclusion:

    • Before the test result I had 1 in 1,000 chance of the terminal illness you are imposing.

    Yep, before the test, nothing was given, so you can only use P(A). We already know P(A) = 0.001.

    • After the test I have a 1 in 11 chance of being the positive one, and a 10 in 11 chance of being one of the falsies.

    Given that you got a positive test result, what is the probability that you have the disease?

    P(A | B) = P(A ∩ B) / P(B) = 0.001 / 0.01099 so P(A | B) = 0.0909918... which is a teensy bit more than 1 in 11.

    If it helps any, you can also think of this as balls in a bag:

    • There is 1 black ball, which has "You're toast" on a piece of paper inside it.
    • There are 10 black balls, which have "Only kidding" on a piece of paper inside them.
    • There are 989 white balls.

    You put your hand in the bag and pull out a ball. It's black :( Given that, until you open the ball and look at the piece of paper, there's a 1 in 11 chance it contains the fateful news.

    Right?

    Haha, awesome analogy!

    As Mike Caro (a brilliant professional gambler) has observed, "in the beginning, everything was even money." In other words, lacking any other information, one's best guess as to the probability of ANYTHING is 50-50.

    I don't know if there was a context in which he wrote this which you have omitted, but that's a very strange statement. Lacking any information at all, one's "best guess" of a probability should not be anything like "50-50". I can only think a gambler might think that way!

    I don't think that "50-50" means "Each answer has a 50% chance to be correct". Rather, it means "Each answer has the same chance of being correct as every other possible answer".

    So, if you're guessing heads or tails, there are only 2 possible answers so you have a 50% chance of getting it right. However, with the bag of balls, if the bag is big enough to hold 99 balls then there are 100 possible answers, so you have a 1% chance of getting it right.

    JonBJ Online
    JonBJ Online
    JonB
    wrote on last edited by JonB
    #28

    @JKSH
    Two quick observations:

    P(A | B) = P(A ∩ B) / P(B) = 0.001 / 0.01099 so P(A | B) = 0.0909918... which is a teensy bit more than 1 in 11.

    There is still something wrong here with where you go about calculating these figures, but I'm too tired to spot it. @mzimmers said of my solution above:

    His analysis was spot-on, with one minor nit:
    [...]
    So, the correct answer is exactly (not nearly) 1 in 11.

    In my first attempt, at the end I stated:

    After the test I have a 1 in 11 chance of being the positive one, and a 10 in 11 chance of being one of the falsies.

    And in my second clarification earlier, I had come to the same conclusion when I wrote:

    The test will report 0.11% total positives. 11 people out of 1,000. 10 will be incorrect, 1 will be correct. You have a 1 in 11 chance of being the positive one, and a 10 in 11 chance of being one of the false ones. Period.

    That was my attempt to say ("Period") that I had realized my previous talk about "999" & "roundings" was unnecessary & inaccurate. Like @mzimmers I conclude the chance is exactly 1 in 11.

    I don't think that "50-50" means "Each answer has a 50% chance to be correct". Rather, it means "Each answer has the same chance of being correct as every other possible answer".

    The second sentence might be a better way of phrasing it. Which, certainly to my mind/understanding, should never be referred to as "50-50".

    1 Reply Last reply
    1
    • mzimmersM mzimmers

      Since you guys did so well on that one, here's another: I hand you a bag, inside which are three coins. The coins appear identical, but while two are "fair," one will always land heads-up.

      You pull a coin from the bag, and toss it three times. You get a head every time. What are the chances you pulled the unfair coin?

      (Those who get this right might be ready for the extremely unintuitive Monte Hall problem...)

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #29

      @mzimmers said in Lies, Damned Lies, and Statistics:

      (Those who get this right might be ready for the extremely unintuitive Monte Hall problem...)

      Darn, I was going to quote that one! :) (If you do, I won't say a word, till it's solved by someone who doesn't know.)

      P.S.
      Are you old enough to have watched the show live in the USA? ;-)

      1 Reply Last reply
      1
      • mzimmersM mzimmers

        Since you guys did so well on that one, here's another: I hand you a bag, inside which are three coins. The coins appear identical, but while two are "fair," one will always land heads-up.

        You pull a coin from the bag, and toss it three times. You get a head every time. What are the chances you pulled the unfair coin?

        (Those who get this right might be ready for the extremely unintuitive Monte Hall problem...)

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #30

        @mzimmers said in Lies, Damned Lies, and Statistics:

        You pull a coin from the bag, and toss it three times. You get a head every time. What are the chances you pulled the unfair coin?

        8 in 10
        
        mzimmersM 1 Reply Last reply
        2
        • JonBJ JonB

          @mzimmers said in Lies, Damned Lies, and Statistics:

          You pull a coin from the bag, and toss it three times. You get a head every time. What are the chances you pulled the unfair coin?

          8 in 10
          
          mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #31

          @JonB said in Lies, Damned Lies, and Statistics:

          @mzimmers said in Lies, Damned Lies, and Statistics:

          You pull a coin from the bag, and toss it three times. You get a head every time. What are the chances you pulled the unfair coin?

          8 in 10
          

          Correct (though I would have said 4 in 5). Care to share with the other students how you arrived at this answer?

          JonBJ 1 Reply Last reply
          1
          • mzimmersM mzimmers

            @JonB said in Lies, Damned Lies, and Statistics:

            @mzimmers said in Lies, Damned Lies, and Statistics:

            You pull a coin from the bag, and toss it three times. You get a head every time. What are the chances you pulled the unfair coin?

            8 in 10
            

            Correct (though I would have said 4 in 5). Care to share with the other students how you arrived at this answer?

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #32

            @mzimmers
            I chose to write "8 in 10" rather than "4 in 5" deliberately, because of the way I reached the figure mentally.

            I thought I would not explain, at least for now, so that others might have their opportunity to think it through and see what they came up with. Like you did for the other one, perhaps I should wait for 24 hours before explaining! BTW, I found this one easier to think through than the first one, for some reason --- perhaps because the other one gave me medical frights? ;-)

            1 Reply Last reply
            1
            • mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #33

              Hah...fair enough, though I'm now curious as to how you ended up at 8 in 10...but if everyone else can can wait for the answer, I suppose I can wait for the explanation.

              JonBJ 2 Replies Last reply
              1
              • mzimmersM mzimmers

                Hah...fair enough, though I'm now curious as to how you ended up at 8 in 10...but if everyone else can can wait for the answer, I suppose I can wait for the explanation.

                JonBJ Online
                JonBJ Online
                JonB
                wrote on last edited by
                #34

                @mzimmers I'll post over the weekend... :) Probably only you & I care now!

                1 Reply Last reply
                1
                • mzimmersM mzimmers

                  Since you guys did so well on that one, here's another: I hand you a bag, inside which are three coins. The coins appear identical, but while two are "fair," one will always land heads-up.

                  You pull a coin from the bag, and toss it three times. You get a head every time. What are the chances you pulled the unfair coin?

                  (Those who get this right might be ready for the extremely unintuitive Monte Hall problem...)

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #35

                  @mzimmers said in Lies, Damned Lies, and Statistics:

                  JonB nailed it. His analysis was spot-on, with one minor nit: The problem stated:

                  Someone devises a test for this disorder which, in correctly diagnoses all cases, but also reports a false positive exactly 1% of the time. As stated, the false positive rate is given without regard to any true positives -- it occurs at a rate of 1%. In a population, it will "lie" about 10 individuals.

                  So you meant "1% of the whole population receives a false positive" (P(B ∩ ¬A) = 0.01).

                  I thought you meant "1% of the healthy people receive a false positive" (P(B | ¬A) = 0.01).

                  @JonB said in Lies, Damned Lies, and Statistics:

                  P(A | B) = P(A ∩ B) / P(B) = 0.001 / 0.01099 so P(A | B) = 0.0909918... which is a teensy bit more than 1 in 11.

                  There is still something wrong here with where you go about calculating these figures, but I'm too tired to spot it.

                  It boiled down to the interpretation of the false-positive rate (see above). With the correct interpretation, we have:

                  • P(A) = 0.001 (0.1% of the population have the disorder)
                  • P(B | A) = 1 (The test detects the disorder 100% of the time)
                  • P(B ∩ ¬A) = 0.01 (The test has a 1% false positive rate within the whole population)

                  Finding intermediate parameters,

                  • P(B∩A) = P(B|A) * P(A) ⇒ P(B ∩ A) = 0.001 (0.1% of the whole population have the disorder AND get a positive result)
                  • P(B) = P(B∩A) + P(B ∩ ¬A) ⇒ P(B) = 0.011 (1.1% of the whole population get a positive test result)

                  Finally,

                  • P(A | B) = P(A∩B) / P(B) ⇒ P(A | B) = 1/11 (Given that I got a positive result, I have 1 in 11 chance of having the disorder)

                  All good! :-D

                  @mzimmers said in Lies, Damned Lies, and Statistics:

                  Since you guys did so well on that one, here's another: I hand you a bag, inside which are three coins. The coins appear identical, but while two are "fair," one will always land heads-up.

                  You pull a coin from the bag, and toss it three times. You get a head every time. What are the chances you pulled the unfair coin?

                  I used the same method as my first attempt. Same equations, just different starting numbers.

                  P(X|Y) = 0.8 where

                  • X: Got the unfair coin
                  • Y: Flipped 3 times and got 3 heads

                  P.S. Thanks for the fun puzzles, @mzimmers! I used to do them in school/university but haven't done any in a while.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  1
                  • mzimmersM mzimmers

                    Hah...fair enough, though I'm now curious as to how you ended up at 8 in 10...but if everyone else can can wait for the answer, I suppose I can wait for the explanation.

                    JonBJ Online
                    JonBJ Online
                    JonB
                    wrote on last edited by
                    #36

                    @mzimmers

                    I don't use @JKSH 's equations --- too much brainache!

                    The method is just:

                    • There are 8 permutations from flipping a coin 3 times.
                    • The unfair coin produces 3 heads in all of its permutations.
                    • The fair coins each produce 1 set of 3 heads in each of theirs.
                    • Thus of the possible 24 outcomes, there are 10 with all heads, and of those 2 are produced by the fair coins while 8 are produced by the weighted one.

                    Hence my initial writing of 8 in 10, rather than simplifying :)

                    You should probably now throw Monte Hall at @JKSH :)

                    JKSHJ 1 Reply Last reply
                    2
                    • mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #37

                      @JonB

                      Well done, and well presented. When I was faced with this problem, I did it slightly differently (1/3 * 100%) vs. (2/3 * 12.5%). The underlying logic is the same.

                      JKSH's notations are just a formal representation of what we're doing. Given that I took my only statistics class nearly 40 years ago, I've forgotten all the notation, though I remember most of the principles. As long as we all get to the right answers, the various approaches are equally valid.

                      I'll bring up Monte Hall if KJSH chimes in. And yes, I can remember watching that show live...good entertainment (if you're 12 years old).

                      JonBJ 1 Reply Last reply
                      1
                      • mzimmersM mzimmers

                        @JonB

                        Well done, and well presented. When I was faced with this problem, I did it slightly differently (1/3 * 100%) vs. (2/3 * 12.5%). The underlying logic is the same.

                        JKSH's notations are just a formal representation of what we're doing. Given that I took my only statistics class nearly 40 years ago, I've forgotten all the notation, though I remember most of the principles. As long as we all get to the right answers, the various approaches are equally valid.

                        I'll bring up Monte Hall if KJSH chimes in. And yes, I can remember watching that show live...good entertainment (if you're 12 years old).

                        JonBJ Online
                        JonBJ Online
                        JonB
                        wrote on last edited by JonB
                        #38

                        @mzimmers

                        Given that I took my only statistics class nearly 40 years ago, I've forgotten all the notation, though I remember most of the principles

                        In that case, please remind me what the "Chi squared" test thingy is? I remember the teacher banging on about that one. And no, you are not allowed to look it up. :)

                        kshegunovK 1 Reply Last reply
                        1
                        • mzimmersM Offline
                          mzimmersM Offline
                          mzimmers
                          wrote on last edited by
                          #39

                          Chi squared...ew.

                          "Math's hard; let's go shopping!" (Barbie from the pre men-are-pigs era)

                          JonBJ 1 Reply Last reply
                          3
                          • mzimmersM mzimmers

                            Chi squared...ew.

                            "Math's hard; let's go shopping!" (Barbie from the pre men-are-pigs era)

                            JonBJ Online
                            JonBJ Online
                            JonB
                            wrote on last edited by
                            #40

                            @mzimmers said in Lies, Damned Lies, and Statistics:

                            "Math's hard; let's go shopping!" (Barbie from the pre men-are-pigs era)

                            LOL.

                            1 Reply Last reply
                            1
                            • JonBJ JonB

                              @mzimmers

                              I don't use @JKSH 's equations --- too much brainache!

                              The method is just:

                              • There are 8 permutations from flipping a coin 3 times.
                              • The unfair coin produces 3 heads in all of its permutations.
                              • The fair coins each produce 1 set of 3 heads in each of theirs.
                              • Thus of the possible 24 outcomes, there are 10 with all heads, and of those 2 are produced by the fair coins while 8 are produced by the weighted one.

                              Hence my initial writing of 8 in 10, rather than simplifying :)

                              You should probably now throw Monte Hall at @JKSH :)

                              JKSHJ Offline
                              JKSHJ Offline
                              JKSH
                              Moderators
                              wrote on last edited by
                              #41

                              @JonB said in Lies, Damned Lies, and Statistics:

                              I don't use @JKSH 's equations --- too much brainache!

                              I do find verbal descriptions more meaningful and intuitive, but I also find equations more systematic and comprehensive.

                              Descriptions help me to understand the "reality" of a problem, while equations help me to see connections and patterns (either within the same problem, or across different problems)

                              @JonB I've taken the liberty of translating English into Equations :-) (Your statements in bold)

                              • X: Got the unfair coin
                              • Y: Flipped 3 times and got 3 heads

                              Starting info:

                              • P(X) = 1/3 (I have a 1 in 3 chance of getting the unfair coin)
                              • P(Y | X) = 1 (The unfair coin produces 3 heads in all of its permutations / Given that I got the unfair coin, I'm guaranteed to flip 3 heads in a row)
                              • P(Y | ¬X) = 1/8 (There are 8 permutations from flipping a coin 3 times. The fair coins each produce 1 set of 3 heads in each of theirs. / Given that I didn't get the unfair coin, I have a 1 in 2^3 chance of flipping 3 heads in a row)

                              Intermediate parameters:

                              • P(¬X) = 1 - P(X) ⇒ P(¬X) = 2/3 (I have a 2 in 3 chance of getting a fair coin)
                              • P(Y ∩ X) = P(Y|X) * P(X) ⇒ P(Y ∩ X) = 1/3 (I have a 1 in 3 chance of getting the unfair coin AND flipping 3 heads in a row)
                              • P(Y ∩ ¬X) = P(Y|¬X) * P(¬X) ⇒ P(Y ∩ ¬X) = 1/12 (I have a 1 in 12 chance of getting a fair coin AND flipping 3 heads in a row)
                              • P(Y) = P(Y|X) + P(Y|¬X) ⇒ P(Y) = 5/12 (of the possible 24 outcomes, there are 10 with all heads)

                              Finally:

                              • P(X | Y) = P(X ∩ Y) / P(Y) ⇒ P(X | Y) = 4/5 (...[of these 10,] 8 are produced by the weighted [coin]. / Given that I flipped 3 heads in a row, there is a 4 in 5 chance that I have the unfair coin)

                              You should probably now throw Monte Hall at @JKSH :)

                              Sorry, I looked up the Wikipedia article when it was first mentioned here!

                              @JonB said in Lies, Damned Lies, and Statistics:

                              In that case, please remind me what the "Chi squared" test thingy is? I remember the teacher banging on about that one. And no, you are not allowed to look it up. :)

                              I don't remember how to use it anymore, but I remember using it lots in biology class to test for mutations in a population.

                              @mzimmers said in Lies, Damned Lies, and Statistics:

                              "Math's hard; let's go shopping!" (Barbie from the pre men-are-pigs era)

                              For me, shopping is hard. Too many choices; need to guard against marketers' tactics; need to research to find a good deal; need to haggle or negotiate...

                              ...let's do math! It's just me, my comfy chair, and my trusty pen+paper.

                              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                              JonBJ 1 Reply Last reply
                              3
                              • JonBJ JonB

                                @mzimmers

                                Given that I took my only statistics class nearly 40 years ago, I've forgotten all the notation, though I remember most of the principles

                                In that case, please remind me what the "Chi squared" test thingy is? I remember the teacher banging on about that one. And no, you are not allowed to look it up. :)

                                kshegunovK Offline
                                kshegunovK Offline
                                kshegunov
                                Moderators
                                wrote on last edited by
                                #42

                                @JonB said in Lies, Damned Lies, and Statistics:

                                In that case, please remind me what the "Chi squared" test thingy is?

                                You pose a hypothesis (e.g you have a model of something) and you want to test how well your model fits the experimental data you have - you calculate the χ squared and you get your answer. There's a lot of theory behind it, but you can think of it in simple terms as the (quadratic) measure of the population's dispersion around your model - i.e. how far the real population is from the modelled population.

                                Read and abide by the Qt Code of Conduct

                                JonBJ 1 Reply Last reply
                                2
                                • JKSHJ JKSH

                                  @JonB said in Lies, Damned Lies, and Statistics:

                                  I don't use @JKSH 's equations --- too much brainache!

                                  I do find verbal descriptions more meaningful and intuitive, but I also find equations more systematic and comprehensive.

                                  Descriptions help me to understand the "reality" of a problem, while equations help me to see connections and patterns (either within the same problem, or across different problems)

                                  @JonB I've taken the liberty of translating English into Equations :-) (Your statements in bold)

                                  • X: Got the unfair coin
                                  • Y: Flipped 3 times and got 3 heads

                                  Starting info:

                                  • P(X) = 1/3 (I have a 1 in 3 chance of getting the unfair coin)
                                  • P(Y | X) = 1 (The unfair coin produces 3 heads in all of its permutations / Given that I got the unfair coin, I'm guaranteed to flip 3 heads in a row)
                                  • P(Y | ¬X) = 1/8 (There are 8 permutations from flipping a coin 3 times. The fair coins each produce 1 set of 3 heads in each of theirs. / Given that I didn't get the unfair coin, I have a 1 in 2^3 chance of flipping 3 heads in a row)

                                  Intermediate parameters:

                                  • P(¬X) = 1 - P(X) ⇒ P(¬X) = 2/3 (I have a 2 in 3 chance of getting a fair coin)
                                  • P(Y ∩ X) = P(Y|X) * P(X) ⇒ P(Y ∩ X) = 1/3 (I have a 1 in 3 chance of getting the unfair coin AND flipping 3 heads in a row)
                                  • P(Y ∩ ¬X) = P(Y|¬X) * P(¬X) ⇒ P(Y ∩ ¬X) = 1/12 (I have a 1 in 12 chance of getting a fair coin AND flipping 3 heads in a row)
                                  • P(Y) = P(Y|X) + P(Y|¬X) ⇒ P(Y) = 5/12 (of the possible 24 outcomes, there are 10 with all heads)

                                  Finally:

                                  • P(X | Y) = P(X ∩ Y) / P(Y) ⇒ P(X | Y) = 4/5 (...[of these 10,] 8 are produced by the weighted [coin]. / Given that I flipped 3 heads in a row, there is a 4 in 5 chance that I have the unfair coin)

                                  You should probably now throw Monte Hall at @JKSH :)

                                  Sorry, I looked up the Wikipedia article when it was first mentioned here!

                                  @JonB said in Lies, Damned Lies, and Statistics:

                                  In that case, please remind me what the "Chi squared" test thingy is? I remember the teacher banging on about that one. And no, you are not allowed to look it up. :)

                                  I don't remember how to use it anymore, but I remember using it lots in biology class to test for mutations in a population.

                                  @mzimmers said in Lies, Damned Lies, and Statistics:

                                  "Math's hard; let's go shopping!" (Barbie from the pre men-are-pigs era)

                                  For me, shopping is hard. Too many choices; need to guard against marketers' tactics; need to research to find a good deal; need to haggle or negotiate...

                                  ...let's do math! It's just me, my comfy chair, and my trusty pen+paper.

                                  JonBJ Online
                                  JonBJ Online
                                  JonB
                                  wrote on last edited by JonB
                                  #43

                                  @JKSH said in Lies, Damned Lies, and Statistics:

                                  @mzimmers said in Lies, Damned Lies, and Statistics:

                                  "Math's hard; let's go shopping!" (Barbie from the pre men-are-pigs era)

                                  For me, shopping is hard. Too many choices; need to guard against marketers' tactics; need to research to find a good deal; need to haggle or negotiate...

                                  In that case, you don't seem to have a woman. If you did, I would expect her to insist on making all the shopping choices on your behalf, so it wouldn't be an issue... ;-)
                                  ["JB: Unreconstructed from the pre-PC era."]

                                  1 Reply Last reply
                                  1
                                  • kshegunovK kshegunov

                                    @JonB said in Lies, Damned Lies, and Statistics:

                                    In that case, please remind me what the "Chi squared" test thingy is?

                                    You pose a hypothesis (e.g you have a model of something) and you want to test how well your model fits the experimental data you have - you calculate the χ squared and you get your answer. There's a lot of theory behind it, but you can think of it in simple terms as the (quadratic) measure of the population's dispersion around your model - i.e. how far the real population is from the modelled population.

                                    JonBJ Online
                                    JonBJ Online
                                    JonB
                                    wrote on last edited by
                                    #44

                                    @kshegunov

                                    1. So that's a rather different thing from standard deviation, right. So you make a model, calculate with it, then discover how inaccurate it is by going back and examining the real population, and then make something squared out of it. Is that it?

                                    2. Bonus point for finding the χ key on your keyboard.

                                    While I'm at it.... The other thing I remember the teach banging on about forever was to do with (unlike you I haven't a clue/the will to go find symbols to type) "x-bar" [x with a horizontal bar on top of it] versus "mu" [the Greek letter]. x-bar was the mean you got from a sample, while mu was the actual mean, which you didn't know.

                                    Now, the problem was something about how you had to phrase what you said about x-bar & mu in your conclusion. I presume this was to do with confidence limits, you were trying to say something like "I'm 95% sure x-bar is within one standard deviation of mu". Only there was some deep rule you had to adhere to in phrasing it some way round with some wording. Like, you couldn't say x-bar or mu was likely to be whatever, because it wasn't subject to probability (perhaps that was for mu, because the mean of the population just is whatever it is, even if you don't what that is, or some-such). So what was that one all about? :)

                                    kshegunovK 1 Reply Last reply
                                    1
                                    • JonBJ JonB

                                      @kshegunov

                                      1. So that's a rather different thing from standard deviation, right. So you make a model, calculate with it, then discover how inaccurate it is by going back and examining the real population, and then make something squared out of it. Is that it?

                                      2. Bonus point for finding the χ key on your keyboard.

                                      While I'm at it.... The other thing I remember the teach banging on about forever was to do with (unlike you I haven't a clue/the will to go find symbols to type) "x-bar" [x with a horizontal bar on top of it] versus "mu" [the Greek letter]. x-bar was the mean you got from a sample, while mu was the actual mean, which you didn't know.

                                      Now, the problem was something about how you had to phrase what you said about x-bar & mu in your conclusion. I presume this was to do with confidence limits, you were trying to say something like "I'm 95% sure x-bar is within one standard deviation of mu". Only there was some deep rule you had to adhere to in phrasing it some way round with some wording. Like, you couldn't say x-bar or mu was likely to be whatever, because it wasn't subject to probability (perhaps that was for mu, because the mean of the population just is whatever it is, even if you don't what that is, or some-such). So what was that one all about? :)

                                      kshegunovK Offline
                                      kshegunovK Offline
                                      kshegunov
                                      Moderators
                                      wrote on last edited by
                                      #45

                                      @JonB said in Lies, Damned Lies, and Statistics:

                                      1. So that's a rather different thing from standard deviation, right. So you make a model, calculate with it, then discover how inaccurate it is by going back and examining the real population, and then make something squared out of it. Is that it?

                                      Yep. If you say you're doing a least squares fit, then chi squared would be how good the fit was - basically the sum of the square of distances between the sampled data and the actual regression curve.

                                      1. Bonus point for finding the χ key on your keyboard.

                                      I'm well versed in the greek alphabet, being a physicist and all. ;)

                                      While I'm at it.... The other thing I remember the teach banging on about forever was to do with (unlike you I haven't a clue/the will to go find symbols to type) "x-bar" [x with a horizontal bar on top of it] versus "mu" [the Greek letter]. [...] So what was that one all about? :)

                                      In principle the real expectation value (or mean) will not coincide with the one you got by sampling. So there's some probability that the sampling mean will be in some range around the real one. That's what this is about - Student's distribution.

                                      Read and abide by the Qt Code of Conduct

                                      JonBJ 1 Reply Last reply
                                      1
                                      • kshegunovK kshegunov

                                        @JonB said in Lies, Damned Lies, and Statistics:

                                        1. So that's a rather different thing from standard deviation, right. So you make a model, calculate with it, then discover how inaccurate it is by going back and examining the real population, and then make something squared out of it. Is that it?

                                        Yep. If you say you're doing a least squares fit, then chi squared would be how good the fit was - basically the sum of the square of distances between the sampled data and the actual regression curve.

                                        1. Bonus point for finding the χ key on your keyboard.

                                        I'm well versed in the greek alphabet, being a physicist and all. ;)

                                        While I'm at it.... The other thing I remember the teach banging on about forever was to do with (unlike you I haven't a clue/the will to go find symbols to type) "x-bar" [x with a horizontal bar on top of it] versus "mu" [the Greek letter]. [...] So what was that one all about? :)

                                        In principle the real expectation value (or mean) will not coincide with the one you got by sampling. So there's some probability that the sampling mean will be in some range around the real one. That's what this is about - Student's distribution.

                                        JonBJ Online
                                        JonBJ Online
                                        JonB
                                        wrote on last edited by
                                        #46

                                        @kshegunov said in Lies, Damned Lies, and Statistics:

                                        In principle the real expectation value (or mean) will not coincide with the one you got by sampling. So there's some probability that the sampling mean will be in some range around the real one. That's what this is about - Student's distribution.

                                        Yeah, but the nightmare recollection is something about what you were/were not allowed to "say" about something to do with the probability/confidence limits of the relationship between my & x-bar, if you phrased it wrong you lost all your marks....

                                        BTW, on that subject there was something similar (though not as hard to remember as the mu-x-bar one) when you did "proof by induction". You did your k, then you did your k + 1. But when you wrote the final conclusion for n instead of k, you had to phrase that one in a particular way too... !

                                        kshegunovK J.HilkJ 2 Replies Last reply
                                        1
                                        • JonBJ JonB

                                          @kshegunov said in Lies, Damned Lies, and Statistics:

                                          In principle the real expectation value (or mean) will not coincide with the one you got by sampling. So there's some probability that the sampling mean will be in some range around the real one. That's what this is about - Student's distribution.

                                          Yeah, but the nightmare recollection is something about what you were/were not allowed to "say" about something to do with the probability/confidence limits of the relationship between my & x-bar, if you phrased it wrong you lost all your marks....

                                          BTW, on that subject there was something similar (though not as hard to remember as the mu-x-bar one) when you did "proof by induction". You did your k, then you did your k + 1. But when you wrote the final conclusion for n instead of k, you had to phrase that one in a particular way too... !

                                          kshegunovK Offline
                                          kshegunovK Offline
                                          kshegunov
                                          Moderators
                                          wrote on last edited by
                                          #47

                                          @JonB said in Lies, Damned Lies, and Statistics:

                                          Yeah, but the nightmare recollection is something about what you were/were not allowed to "say" about something to do with the probability/confidence limits of the relationship between my & x-bar, if you phrased it wrong you lost all your marks....

                                          Well, no idea. Formally speaking it's probably wrong to say that x bar is the expectation value (which is μ), but if using jargon you usually equate one with the other.

                                          BTW, on that subject there was something similar (though not as hard to remember as the mu-x-bar one) when you did "proof by induction". You did your k, then you did your k + 1. But when you wrote the final conclusion for n instead of k, you had to phrase that one in a particular way too... !

                                          Well, induction works like: "if granted for k, it is proven for k + 1, and there's some initial k for which the statement holds, then it holds for all k after the initial one" (and requires k be integer as well). I don't remember anything related to the phrasing that'd be similar to what you describe.

                                          Read and abide by the Qt Code of Conduct

                                          JonBJ 1 Reply Last reply
                                          1

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved