Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Strange questions from a nitpicker ... ;p

Strange questions from a nitpicker ... ;p

Scheduled Pinned Locked Moved The Lounge
questiondiscussion
28 Posts 19 Posters 0 Views 1 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.
  • 0 0x01AA

    Simply measurements 1...N. No restrictions. The question is: If I have only one measurement, should I display 1.) A mean Value? 2.) A Standard Deviation (which would be 0 for one measurement) Thanks

    M Offline
    M Offline
    Mircea Neacsu
    wrote on last edited by
    #6

    1. For one measurement current value and mean value are the same. No nitpicking here. 2. Standard deviation, that's where nitpicking begins. What you actually calculate is an estimator of the standard deviation and, if you want an unbiased estimator, you need to divide the sum of squares by N-1. That means you cannot display anything until you have at least two measurements.

    Mircea

    0 1 Reply Last reply
    0
    • A Amarnath S

      0x01AA wrote:

      b.)

      What about NA? (not applicable)

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #7

      It's also fun when a device displays "NaN". :doh: Added: https://www.codeproject.com/Uploads/Membership/Uploads/2587207/NaN-NaN-NaN.jpg[^]

      T 1 Reply Last reply
      0
      • P PIEBALDconsult

        It's also fun when a device displays "NaN". :doh: Added: https://www.codeproject.com/Uploads/Membership/Uploads/2587207/NaN-NaN-NaN.jpg[^]

        T Offline
        T Offline
        trønderen
        wrote on last edited by
        #8

        With 1 sample, it is read as Not available Now.

        Religious freedom is the freedom to say that two plus two make five.

        1 Reply Last reply
        0
        • M Mircea Neacsu

          1. For one measurement current value and mean value are the same. No nitpicking here. 2. Standard deviation, that's where nitpicking begins. What you actually calculate is an estimator of the standard deviation and, if you want an unbiased estimator, you need to divide the sum of squares by N-1. That means you cannot display anything until you have at least two measurements.

          Mircea

          0 Offline
          0 Offline
          0x01AA
          wrote on last edited by
          #9

          My idea is for _one_ measurement I will display neither mean nor deviation. But I have a strange feeling this is only nitpicking and will confuse maybe the users. On the other hand, somebody who really understand deviation should understand it :) If not, display of deviation and mean does not make sense anyway, I think :-D

          M 1 Reply Last reply
          0
          • A Amarnath S

            0x01AA wrote:

            b.)

            What about NA? (not applicable)

            0 Offline
            0 Offline
            0x01AA
            wrote on last edited by
            #10

            Simply show a blank field should be ok I think?

            1 Reply Last reply
            0
            • 0 0x01AA

              My idea is for _one_ measurement I will display neither mean nor deviation. But I have a strange feeling this is only nitpicking and will confuse maybe the users. On the other hand, somebody who really understand deviation should understand it :) If not, display of deviation and mean does not make sense anyway, I think :-D

              M Offline
              M Offline
              Mircea Neacsu
              wrote on last edited by
              #11

              0x01AA wrote:

              My idea is for _one_ measurement I will display neither mean nor deviation.

              The more I think about it, the more I tend to agree with you.

              Mircea

              0 1 Reply Last reply
              0
              • M Mircea Neacsu

                0x01AA wrote:

                My idea is for _one_ measurement I will display neither mean nor deviation.

                The more I think about it, the more I tend to agree with you.

                Mircea

                0 Offline
                0 Offline
                0x01AA
                wrote on last edited by
                #12

                The more I think about it, the more confused I become:laugh: I think it is not really worth to think too much about it. But interesting to know how others think about it. Thank you very much :thumbsup:

                1 Reply Last reply
                0
                • 0 0x01AA

                  Simply measurements 1...N. No restrictions. The question is: If I have only one measurement, should I display 1.) A mean Value? 2.) A Standard Deviation (which would be 0 for one measurement) Thanks

                  D Offline
                  D Offline
                  Daniel Pfeffer
                  wrote on last edited by
                  #13

                  The Mean is defined for N = 1, therefore it should be displayed. The Corrected Standard Deviation is not defined for N = 1. It is defined as: xavg = sum(xi)/N xstdev = sqrt(sum((xi-xavg)2)/(N-1)) The formula for Standard Deviation with N is used when one is calculating the Standard deviation of an entire population, not just of a sample. I hope you've been out-nitpicked. :)

                  Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                  0 1 Reply Last reply
                  0
                  • D Daniel Pfeffer

                    The Mean is defined for N = 1, therefore it should be displayed. The Corrected Standard Deviation is not defined for N = 1. It is defined as: xavg = sum(xi)/N xstdev = sqrt(sum((xi-xavg)2)/(N-1)) The formula for Standard Deviation with N is used when one is calculating the Standard deviation of an entire population, not just of a sample. I hope you've been out-nitpicked. :)

                    Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                    0 Offline
                    0 Offline
                    0x01AA
                    wrote on last edited by
                    #14

                    Thank you very much for this. Still for me, mean for N= 1 makes no sense, resp. more: has no information

                    1 Reply Last reply
                    0
                    • 0 0x01AA

                      I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                      M Offline
                      M Offline
                      MarkTJohnson
                      wrote on last edited by
                      #15

                      a and b are easy like you said, just display the value of the single measurement. c now, how about a message like "Not applicable, only one measurement recorded." You don't show blank and you explain why they aren't getting a value.

                      I’ve given up trying to be calm. However, I am open to feeling slightly less agitated. I’m begging you for the benefit of everyone, don’t be STUPID.

                      1 Reply Last reply
                      0
                      • 0 0x01AA

                        I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #16

                        Value has no meaning without time. 1) Never had a value. 2) last value at xx:xx:xx 3) etc. Transparency and visibility lets me sleep at night. (Also ... an early warning system for the attendant).

                        "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                        1 Reply Last reply
                        0
                        • 0 0x01AA

                          I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                          B Offline
                          B Offline
                          BernardIE5317
                          wrote on last edited by
                          #17

                          Perhaps it will be helpful to the users to see displayed the number of said measurements.

                          1 Reply Last reply
                          0
                          • 0 0x01AA

                            I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                            C Offline
                            C Offline
                            CPallini
                            wrote on last edited by
                            #18

                            I see two alternative approaches

                            • Always show current measurement value, but show statistical values only when statistics is meaningful (you have a 'fair' number of samples).

                            or

                            • Always show all values, however, at first measure: show the current value, omit or show the mean value (equal to current value) and omit the standard deviation.

                            my two cents.

                            "In testa che avete, Signor di Ceprano?" -- Rigoletto

                            1 Reply Last reply
                            0
                            • 0 0x01AA

                              I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                              H Offline
                              H Offline
                              Harald M
                              wrote on last edited by
                              #19

                              Mathematicians define the (so called "Arithmetic") Mean as "Sum of all values divided by Count of all values" - see e.g. Arithmetic mean - Wikipedia[^]. Thus, the mathematically defined (Arithmetic) Mean for a single value is that single value. It does not at all matter whether you think whether this "makes sense" :-) However, did whoever gave you this specification ("need to show ... Mean Value ...") specify that he/she actually - meant you to use the arithmetic mean? (most probably yes; but asking back is not wrong - might only confuse the analyst who maybe doesn't even know that there are many other "Means"); - wanted to help the user also in such boundary cases? Maybe the analyst would even say "Oh, but for less than a handful of values that mean doesn't make any sense - there will always be 100 or 1000s of values, in practice"; then, you two should talk for some time what's the actual reason for showing those values ... That's what I think your "feeling" is about - you question the business value of showing the Mean (and Deviation) in boundary cases - which does matter. :) H.M.

                              1 Reply Last reply
                              0
                              • 0 0x01AA

                                I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                                C Offline
                                C Offline
                                Cpichols
                                wrote on last edited by
                                #20

                                If there is only one measurement, I would show something to indicate that measurement has begun with the opening value given and don't show any values for a, b, or c.

                                1 Reply Last reply
                                0
                                • 0 0x01AA

                                  I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                                  G Offline
                                  G Offline
                                  Gary Wheeler
                                  wrote on last edited by
                                  #21

                                  Know your audience. Ask the user who will be looking at these values what they think they should see. The answers might surprise you. For example, I have an application where I don't display statistical data until a certain number of 'stable' samples have been seen. Stability is determined by a filter on the input data, which isn't useful while the process being measured is starting.

                                  Software Zen: delete this;

                                  1 Reply Last reply
                                  0
                                  • 0 0x01AA

                                    I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                                    M Offline
                                    M Offline
                                    maze3
                                    wrote on last edited by
                                    #22

                                    the question for more context is that it depends. so go back to the user and ask for more clerification what is useful to them or what is the end goal of said mesaurement. a number on it's own is meaningless Someone needs to know if value is within tolerance - so current value unless said tolerance is based on a time window and so would need to be able to clearly indicate what that time window is used over the mean

                                    1 Reply Last reply
                                    0
                                    • 0 0x01AA

                                      I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                                      K Offline
                                      K Offline
                                      kholsinger
                                      wrote on last edited by
                                      #23

                                      How often do values update? Once every 0.1 second? Once per second? Minute? Hour? Day? In the first two cases, display probably doesn't matter. If user has more than a few seconds of looking at the display, then it matters. (And how big is the display? "blank" you'd have space for, but I'm guessing not a "can't display value due to insufficient data" message would be too large.

                                      1 Reply Last reply
                                      0
                                      • 0 0x01AA

                                        I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                                        M Offline
                                        M Offline
                                        Martijn Smitshoek
                                        wrote on last edited by
                                        #24

                                        I would really like to add to your confusion. You're talking about sample count = 1 etc, but you're talking of a continuous stream of samples, have you thought about what "average" means if you have had 94760434786353845 samples accumulated over 72 hours in a changing signal, would you *seriously* want to report the average of all that? My engineering self wants to suggest that you use a sliding average window of a fixed size, say, 10, but it could be anything reasonable considering the rate of change, and any noise that you would otherwise want to average out. Then, if you pick that number, say, N=10, then you can only start reporting after you've had at least 10 samples. And that would answer your original question.

                                        1 Reply Last reply
                                        0
                                        • 0 0x01AA

                                          I need to show some value for continous measurement(s): a.) Current Measurement Value b.) Mean Value of the measurements c.) Standard deviation of the measurements c.) In case there is no or only one measurement... From my point of view, I should not show any value here. Not even 0 b.) I have my doubts. The mean value is the current value. Or should I also show blank? a.) Is easy. As soon one has measured it is easy to show current valu Especally b.) drives me crazy Any suggestions/thoughts? Thank you very much in advance ;)

                                          B Offline
                                          B Offline
                                          BernardIE5317
                                          wrote on last edited by
                                          #25

                                          Just wear green socks.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups