Graph not binning correctly for just one numerical variable

Tags:
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13726
    Bill Finzer
    Keymaster

    Hello Terri,

    I must admit you had me stumped for a while, convinced that you’d uncovered a serious bug! I stumbled on the cause of the problem when I wondered what would happen if I changed the “alignment.” When I went to edit it, I discovered a lot of trailing zeroes and, when I cursored out far enough through them, a non-zero trailing digit. Getting rid of that brought the points into the bins you would expect them to be.

    It’s still a bug, of course, that the alignment is chosen as it is. I’ll report that and we’ll get it fixed, if not in the current version, at least in the new version to be released early next year.

    Thank you very much for discovering and reporting this problem.

    Bill

    #13712 Score: 0
    Terri Johnson
    Participant

    This might be a niche issue, but CODAP isn’t consistently and accurately binning one of my numerical variables. I know the default is left-bound binning, but for a dataset I created, it keeps mis-binning one variable that I have specifically classified as “numeric” with a precision of 2 (even though all of the values only go out to the tenths digit). The simulated data consists of GPA values ranging from 2.5 to 4.0, and some observations have missing values.

    Here’s a link to a clean CODAP file with the original dataset: <span style=”font-size: 11pt; font-family: Lato, sans-serif; color: #1155cc; background-color: transparent; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; font-variant-position: normal; font-variant-emoji: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;”>CODAP Suspect Data File</span>. I’ve also included some photos of the bug/issue I’m having. You can see that it’s incorrectly placing values of 4 into the >= 3.8 or < 4 bin, when those values should go into a bin of >= 4 or < 4.2. This happens with 3.8 as well (so it seems like it’s confused in terms of the upper bound of each bin). The only numerical variable I am having issues with is “GPA.”

    I’ve been able to play around with the bin width and alignment values and sort of force it to work ~sometimes~ but it’s not consistent. I also know a lot of students will just accept the default plot given, so I am looking for any advice or solution, if there is one.

    Thank you for reading this far!

    Terri Johnson

    #13727
    Bill Finzer
    Keymaster

    Hello again,

    My colleague Dan Damelin pointed out that at least one point is still in the wrong bin after fixing the alignment. So, more investigation is needed. We’ll keep you posted.

    Bill

    #13728
    Terri Johnson
    Participant

    Thank you so much, Bill! It’s good to know I wasn’t losing my mind haha

    For now, I’ll just change the alignment. Thank you again for your quick reply.

    Terri

    #13746
    Dan Damelin
    Keymaster

    Teri, for now, until we can fix this, for the alignment to work in your particular case, set it to something like 2.3999999. Then everything will be binned in the appropriate place.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.