Histograms in Excel: Analysis of Lab Report Grading

  • Thread starter Thread starter Pengwuino
  • Start date Start date
  • Tags Tags
    Excel
AI Thread Summary
Creating a histogram for lab report grades can lead to discrepancies when using Excel's histogram function compared to manual COUNTIF calculations. The issue arises from how bin sizes are defined; while one might expect bins to count ranges like 1-1.999, Excel's histogram function may not align with this assumption. To resolve this, one approach is to truncate scores, forcing half-integer grades into their respective integer bins, allowing for accurate histogram representation. However, this method can be cumbersome for larger datasets. An alternative solution involves using the frequency function, which requires entering the data series and bin ranges, followed by applying an array formula using Ctrl + Shift + Enter to generate the histogram accurately. This method can streamline the process while ensuring correct data representation.
Pengwuino
Gold Member
Messages
5,112
Reaction score
20
I want to have an analysis of my lab report grading for my students and I figured I could make a histogram. I had been manually doing =COUNTIF()'s before but I learned you could install a histogram package just now! However, it seems to be giving me conflicting results that have to do with how the BIN sizes work.

Here's what I have: A bunch of report grades from 0-20 and I occasionally give students half integer grades such as 15.5 or 18.5 or whatever. I have a list of grades, 0 to 20 in integer steps. I do a COUNTIF() and count up the integer guys and the half integer guys. For example, for the 15 score, i count up 15s and 15.5s. Then I plot those both as 15s. However, when I use the actual histogram function, I get numbers that aren't exactly what I have by doing COUNTIF()s. I used the 0-20 list as my bin array. Apparently that must be causing the problem. I assumed, and as far as any site that I read told me, that if they go as 1,2,3,4,5 etc, that it would count how many scores are 1-1.999,2-2.999,3-3.999, etc but that doesn't seem to be exactly how it works. Can someone explain how Excel does this?

Thanks!
 
Computer science news on Phys.org
I'm not sure what the problem is, but could you fix it by just adding a column with the scores truncated (to force the 15.5s into the 15 bin, as you say you want to do anyway)? Then you can run your histogram on the new column instead...
 
PW,

Not sure exactly either what you are looking for but if this excel sheet vaguely resembles that, maybe we should discuss matrix funxions with the ctlr-shift-enter trick.

Andre
 

Attachments

@Berkeman, That would probably take too much time for what I want to do. I also want to figure out exactly how it works for future reference. My students grades are in basically a 25x12 grid... 25ish students, 12 labs. I would have to truncate everything... which I would assume be by hand which defeats the purpose of being able to just toss up a quick histogram to figure out what the breakdown looks like.

@Andre I'm not sure what happened but that spreadsheet you sent me got screwed up. Everything seems to have ASELECTUSSEN(4,100) as the entries...
 
Pengwuino said:
@Andre I'm not sure what happened but that spreadsheet you sent me got screwed up. Everything seems to have ASELECTUSSEN(4,100) as the entries...

Sorry about that, it's probably a mismatch in function names with the Dutch Excel version I happen to have on this laptop.

Anyway the new one has the function replaced by numbers, to demonstate how to make a histogram with the matrix frequency function.

Prepare it by entering your data series (column b) and the bins (column d) in which to divide them.

Then select the cells in a column for the function frequency or in Dutch interval, most convient directly next to the bins hence e4:e13 here.

Enter the data range B4:B103 and bin range D4:D13 and wave the magic wand using <ctrl> + <shift> + <enter> (CSE) to complete the array function.
 

Attachments

Last edited:
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top