Chapterبەش 2 · Lectureوانە 2.5

Grouping Data: Frequency Tablesپۆلێنکردنی دراوە: خشتەکانی دووبارەبوونەوە

Turn a long list of numbers into a frequency table: range, number of classes (Sturges and Yule), class width rounded up, class limits and boundaries, class marks, tally counting, relative and cumulative frequency — on the course's 60-value example and the 100-value homework, where decimal data need continuous classes.

لیستێکی درێژی ژمارە بکە بە : ، ژمارەی ( و )، کە بەرەو سەرەوە نزیک دەکرێتەوە، و ، ، ژماردن بە ، و — لەسەر نموونە ⁦60⁩ نرخییەکەی کۆرسەکە و ڕاهێنانە ⁦100⁩ نرخییەکە، کە تێیدا دەیی پێویستی بە بەردەوام هەیە.

19 min read20 خولەک خوێندنەوە · 20 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Explain the difference between ungrouped and grouped data.
  • Find the range, the number of classes and the class width (rounded up).
  • Build classes without gaps or overlaps, for whole-number and for decimal data.
  • Count frequencies with tally marks and check that they add up to n.
  • Add class marks, boundaries, relative and cumulative frequencies to the table.
  • جیاوازیی نێوان و ڕوون بکەیتەوە.
  • ، ژمارەی و (بەرەو سەرەوە) بدۆزیتەوە.
  • بێ بۆشایی و بێ تێکەڵبوون بۆ و بۆ ژمارەی دەیی دروست بکەیت.
  • بە بژمێریت و بپشکنیت کە دەکەنە n.
  • ، ، و بخەیتە سەر خشتەکە.

From a long list to a short tableلە لیستێکی درێژەوە بۆ خشتەیەکی کورت

Here are the first 15 of 60 numbers that the course calls Example 1: 142, 76, 80, 120, 132, 82, 96, 126, 157, 60, 164, 88, 90, 98, 101, … Looking at a list like this, you cannot see much: Is 120 a typical value? Are there many small values? Each number is one observation of a variable. To see the pattern, we put the observations into groups and count how many fall into each group.

ئەمە یەکەم ⁦15⁩ ژمارەیە لە ⁦60⁩ ژمارە کە کۆرسەکە پێی دەڵێت نموونەی ⁦1: 142⁩، ⁦76⁩، ⁦80⁩، ⁦120⁩، ⁦132⁩، ⁦82⁩، ⁦96⁩، ⁦126⁩، ⁦157⁩، ⁦60⁩، ⁦164⁩، ⁦88⁩، ⁦90⁩، ⁦98⁩، ⁦101⁩، … بە سەیرکردنی لیستێکی لەم شێوەیە زۆر شت نابینیت: ئایا ⁦120⁩ نرخێکی ئاساییە؟ ئایا نرخی بچووک زۆرن؟ هەر ژمارەیەک یەک لە گۆڕاوێک. بۆ بینینی شێوەکە، دەخەینە نێو گرووپەوە و دەژمێرین چەندیان دەکەوێتە هەر گرووپێکەوە.

Definitionپێناسە

Data as it was collected: a plain list of values not yet arranged into .

دراوە وەک کۆکراوەتەوە: لیستێکی سادەی نرخەکان کە هێشتا نەخراونەتە نێو .

Definitionپێناسە

Data arranged into with a for each class, as in a .

دراوەیە کە خراوەتە نێو و بۆ هەر کلاسێک هەیە، وەک لە .

So data come in two forms: ungrouped (the original list, as collected) and grouped (arranged in a frequency table). This lesson turns the first into the second.

کەواتە بە دوو شێوە دێت: (لیستە ڕەسەنەکە وەک کۆکراوەتەوە) و (ڕیزکراو لە ). ئەم وانەیە یەکەمیان دەکاتە دووەم.

Quick checkپشکنینی خێراA teacher writes down the 35 marks of a class in the order the papers were marked. What kind of data is this list?مامۆستایەک ⁦35⁩ نمرەی پۆلێک بەو ڕیزەی پەڕەکان ڕاست کراونەتەوە دەنووسێت. ئەم لیستە چ جۆرە ؟

From a long list to a short tableلە لیستێکی درێژەوە بۆ خشتەیەکی کورت

Like sorting lettersوەک ڕیزکردنی نامە

Sorting letters at the post officeڕیزکردنی نامە لە پۆستەخانە

A post office in Erbil does not keep letters in one big heap. It sorts them into pigeonholes, one for each district, and then counts each pigeonhole. A frequency table does the same with numbers: each class is a pigeonhole for an interval of values, and the frequency is how many values landed in it.

پۆستەخانەیەک لە هەولێر نامەکان لە یەک کۆگای گەورەدا ناهێڵێتەوە. ڕیزیان دەکات بۆ ناو چەند کونجێک، هەر کونجێک بۆ گەڕەکێک، پاشان هەر کونجێک دەژمێرێت. هەمان کار بە ژمارە دەکات: هەر کونجێکە بۆ نرخ و ئەوەیە چەند نرخ کەوتووەتە ناوییەوە.

Where the analogy stops workingسنووری ئەم نموونەیە

Every letter has exactly one district. Number classes must be built the same way: no gaps and no overlaps, so that every value has exactly one class. That is the hard part of this lesson.

هەر نامەیەک تەنها یەک گەڕەکی هەیە. ژمارەش دەبێت بە هەمان شێوە دروست بکرێن: بێ بۆشایی و بێ تێکەڵبوون، بۆ ئەوەی هەر نرخێک تەنها یەک هەبێت. ئەمە بەشە قورسەکەی ئەم وانەیەیە.

Quick checkپشکنینی خێراWhy must every value fall into exactly one class?بۆچی دەبێت هەر نرخێک ڕێک بکەوێتە ناو یەک ؟

The parts of a frequency tableبەشەکانی خشتەیەکی دووبارەبوونەوە

Definitionپێناسە

A table that lists the values or of a with the of each. It shows how the data is distributed.

خشتەیەکە کە نرخەکان یان لەگەڵ هەر یەکێکیان ڕیز دەکات. پیشانی دەدات دراوەکە چۆن دابەش بووە.

  • Class: one of the groups. Every class covers an interval of values, for example 60–74.
  • Class frequency f: how many observations fall into the class.
  • Class limits: the smallest value of a class is its lower class limit (LL); the largest is its upper class limit (UL).
  • Class mark (midpoint): the middle of the class. It stands for all the values of the class when we calculate with grouped data (see the mean of grouped data).
  • : یەکێک لە گرووپەکان. هەر نرخ دەگرێتەوە، بۆ نموونە ⁦60–74⁩.
  • f: چەند دەکەونە ناو .
  • : بچووکترین نرخی سنووری خوارەوەیەتی ⁦(LL)⁩؛ گەورەترینیان سنووری سەرەوەیەتی ⁦(UL)⁩.
  • : ناوەڕاستی . کاتێک بە ژماردن دەکەین، جێگەی هەموو نرخەکانی دەگرێتەوە (سەیری ناوەندی دراوەی پۆلێنکراو بکە).
class mark=lower limit+upper limit2=LL+UL2\text{class mark} = \frac{\text{lower limit} + \text{upper limit}}{2} = \frac{LL + UL}{2}

For the class 60–74: 60+742=67\frac{60 + 74}{2} = 67.

بۆ ⁦60–74⁩: 60+742=67\frac{60 + 74}{2} = 67.

A number line from 55 to 82 with the class 60–74 drawn as a box. Below the line: lower class limit LL = 60, class mark 67 = (60 + 74) ÷ 2 marked with a dot, upper class limit UL = 74. Above the box: dashed lines at the class boundaries 59.5 and 74.5, and an arrow between them labelled width L = 74.5 − 59.5 = 15. A faded box to the right is the next class, 75–89.هێڵێکی ژمارەکان لە 55 تا 82 کە کلاسی 60–74 وەک چوارگۆشەیەک کێشراوە. لە ژێر هێڵەکە: سنووری خوارەوەی کلاس LL = 60، خاڵی ناوەڕاستی کلاس 67 = (60 + 74) ÷ 2 بە خاڵێک و سنووری سەرەوەی کلاس UL = 74. لە سەرووی چوارگۆشەکە: هێڵی پچڕپچڕ لە سنوورە ڕاستەقینەکانی کلاس 59.5 و 74.5 و تیرێک لە نێوانیاندا بە ناونیشانی پانی L = 74.5 − 59.5 = 15. چوارگۆشەیەکی کاڵ لە لای ڕاست کلاسی دواترە، 75–89.
Limits are values in the class; boundaries sit halfway between neighbouring classes. نرخی ناو ؛ لە نیوەی نێوان دوو دراوسێدان.CêIT
Quick checkپشکنینی خێراWhat is the class mark of the class 75–89? بۆ ⁦75–89⁩ چەندە؟

Steps 1 and 2: the range and the number of classesهەنگاوەکانی 1 و 2: مەودا و ژمارەی کلاسەکان

T.R=largest value−smallest valueT.R = \text{largest value} - \text{smallest value}

Step 1, the total range: how far the data spread from end to end.

هەنگاوی 1، گشتی: لە سەرێکەوە بۆ سەرەکەی تر چەند بڵاوە.

Definitionپێناسە

The largest value minus the smallest value. It is the simplest measure of , but it uses only two values.

گەورەترین نرخ لە بچووکترین نرخ کەم دەکرێتەوە. سادەترین پێوەری ، بەڵام تەنها دوو نرخ بەکار دەهێنێت.

Step 2: choose the number of classes m. Too few classes hide the shape; too many leave most classes nearly empty. The course gives two formulas, where n is the number of observations:

هەنگاوی 2: ژمارەی m هەڵبژێرە. زۆر کەم شێوەکە دەشارێتەوە؛ زۆر زۆر زۆربەی نزیکەی بەتاڵ دەهێڵێتەوە. کۆرسەکە دوو هاوکێشە دەدات، کە n ژمارەی :

Sturges: m=1+3.322log⁡10nYule: m=2.5n4\text{Sturges: } m = 1 + 3.322\log_{10} n \qquad\qquad \text{Yule: } m = 2.5\sqrt[4]{n}

Both grow slowly. The number 3.322 is 1/log⁡1021/\log_{10}2, so Sturges' rule is the same as m=1+log⁡2nm = 1 + \log_2 n: each time the data double, you get just one more class.

هەردووکیان هێواش گەورە دەبن. ژمارەی ⁦3.322⁩ دەکاتە 1/log⁡1021/\log_{10}2، بۆیە هەمان m=1+log⁡2nm = 1 + \log_2 nـە: هەر جارێک دوو هێندە ببێت، تەنها یەک زیاتر بەدەست دێت.

Number of classes from the two rules (round m to a whole number).ژمارەی بە هەردوو یاسا (m بۆ نزیک بکەرەوە).
nSturgesYulem
205.32205.28695
606.90706.95797
1007.64407.90578
100010.966014.058511–14
Quick checkپشکنینی خێراA data set has n=100n = 100 observations. How many classes does Yule's rule give?کۆمەڵە n=100n = 100 هەیە. چەند دەدات؟

Step 3: the class width — always round upهەنگاوی 3: پانیی کلاس — هەمیشە بەرەو سەرەوە

Definitionپێناسە

The size of each : the divided by the number of classes, always rounded up.

قەبارەی هەر : دابەش بە ژمارەی کلاسەکان، هەمیشە بەرەو سەرەوە نزیک دەکرێتەوە.

L=T.RmL = \frac{T.R}{m}

The width L (the notes call it the length of a class) shares the whole range between the m classes.

پانیی L (تێبینییەکان پێی دەڵێن درێژیی ) هەموو بەسەر m دابەش دەکات.

L is usually not a whole number, and here the rounding rule is special: always round L up. The m classes must reach from the smallest to the largest value. If LL is rounded down, m×Lm \times L is shorter than the range and the largest values have no class. Example 1: L=104/7=14.857L = 104/7 = 14.857 → 15, and 7×15=105≥1047 \times 15 = 105 \ge 104, so the classes reach far enough. With L=14L = 14 the seventh class would end at 60+7×14−1=15760 + 7 \times 14 - 1 = 157, and 164 would have no class.

L زۆرجار نییە و لێرەدا یاسای تایبەتە: هەمیشە L بەرەو سەرەوە نزیک بکەرەوە. m دەبێت لە بچووکترین نرخەوە بگەنە گەورەترینیان. ئەگەر LL بەرەو خوار نزیک بکرێتەوە، m×Lm \times L لە کورتتر دەبێت و گەورەترین نرخەکان نابێت. نموونەی 1: L=104/7=14.857L = 104/7 = 14.857 ← ⁦15⁩ و 7×15=105≥1047 \times 15 = 105 \ge 104، بۆیە تا دوورێکی پێویست دەگەن. بە L=14L = 14 حەوتەم لە 60+7×14−1=15760 + 7 \times 14 - 1 = 157 کۆتایی دەهات و ⁦164⁩ هیچ نەدەبوو.

Quick checkپشکنینی خێراThe range is 50 and you want 8 classes. Which width do you use? ⁦50⁩ـە و 8 دەوێت. کام پانی بەکار دەهێنیت؟

Example 1: 60 values in 7 classesنموونەی ⁦1: 60⁩ نرخ لە 7 کلاسدا

The task in the notes: change these ungrouped data into grouped data with a frequency table.

ئەرکەکە لە تێبینییەکاندا: ئەم بکە بە بە .

142, 76, 80, 120, 132, 82, 96, 126, 157, 60, 164, 88, 90, 98, 101, 103, 104, 109, 114, 126, 122, 111, 116, 130, 142, 120, 113, 121, 119, 125, 126, 156, 136, 150, 154, 122, 123, 139, 125, 111, 65, 68, 72, 150, 116, 119, 116, 120, 78, 93, 95, 98, 131, 136, 118, 126, 156, 136, 137, 110.

⁦142⁩، ⁦76⁩، ⁦80⁩، ⁦120⁩، ⁦132⁩، ⁦82⁩، ⁦96⁩، ⁦126⁩، ⁦157⁩، ⁦60⁩، ⁦164⁩، ⁦88⁩، ⁦90⁩، ⁦98⁩، ⁦101⁩، ⁦103⁩، ⁦104⁩، ⁦109⁩، ⁦114⁩، ⁦126⁩، ⁦122⁩، ⁦111⁩، ⁦116⁩، ⁦130⁩، ⁦142⁩، ⁦120⁩، ⁦113⁩، ⁦121⁩، ⁦119⁩، ⁦125⁩، ⁦126⁩، ⁦156⁩، ⁦136⁩، ⁦150⁩، ⁦154⁩، ⁦122⁩، ⁦123⁩، ⁦139⁩، ⁦125⁩، ⁦111⁩، ⁦65⁩، ⁦68⁩، ⁦72⁩، ⁦150⁩، ⁦116⁩، ⁦119⁩، ⁦116⁩، ⁦120⁩، ⁦78⁩، ⁦93⁩، ⁦95⁩، ⁦98⁩، ⁦131⁩، ⁦136⁩، ⁦118⁩، ⁦126⁩، ⁦156⁩، ⁦136⁩، ⁦137⁩، ⁦110⁩.

Building the classesدروستکردنی کلاسەکان
  1. Rangeمەودا

    T.R=164−60=104T.R = 164 - 60 = 104.

    T.R=164−60=104T.R = 164 - 60 = 104.

  2. Number of classesژمارەی کلاسەکان

    Yule: m=2.5604=6.9579≈7m = 2.5\sqrt[4]{60} = 6.9579 \approx 7. (Sturges gives 6.9070≈76.9070 \approx 7 too.)

    : m=2.5604=6.9579≈7m = 2.5\sqrt[4]{60} = 6.9579 \approx 7. ( 6.9070≈76.9070 \approx 7 دەدات.)

  3. Widthپانی

    L=104/7=14.8571L = 104/7 = 14.8571, rounded up to 15.

    L=104/7=14.8571L = 104/7 = 14.8571، بەرەو سەرەوە دەبێتە ⁦15⁩.

  4. Classesکلاسەکان

    Start at the smallest value, 60. The data are whole numbers, so UL=LL+L−1UL = LL + L - 1: 60+15−1=7460 + 15 - 1 = 74. The class 60–74 holds exactly 15 whole numbers (60, 61, …, 74), and the next class starts at 75.

    لە بچووکترین نرخەوە دەست پێبکە، ⁦60⁩. ، بۆیە UL=LL+L−1UL = LL + L - 1: 60+15−1=7460 + 15 - 1 = 74. ⁦60–74⁩ ڕێک ⁦15⁩ لە خۆ دەگرێت (⁦60⁩، ⁦61⁩، …، ⁦74⁩) و دواتر لە ⁦75⁩ دەست پێدەکات.

C1:60–74,  C2:75–89,  C3:90–104,  C4:105–119,  C5:120–134,  C6:135–149,  C7:150–164C_1: 60\text{–}74,\; C_2: 75\text{–}89,\; C_3: 90\text{–}104,\; C_4: 105\text{–}119,\; C_5: 120\text{–}134,\; C_6: 135\text{–}149,\; C_7: 150\text{–}164
Quick checkپشکنینی خێراWhy is the first class 60–74 and not 60–75?بۆچی یەکەم ⁦60–74⁩ـە نەک ⁦60–75⁩؟

Example 1: 60 values in 7 classesنموونەی ⁦1: 60⁩ نرخ لە 7 کلاسدا

Counting with tally marksژماردن بە نیشانەکانی ژماردن

Now go through the 60 values once. For each value, draw a short stroke in its class. Every fifth stroke crosses the four before it, so the strokes can be counted in fives. At the end, count the strokes: they become the frequencies.

ئێستا یەک جار بە ناو ⁦60⁩ نرخەکەدا بڕۆ. بۆ هەر نرخێک هێڵێکی کورت لە بکێشە. هەر پێنجەمین هێڵ چوار هێڵەکەی پێشووی دەبڕێت، بۆیە دەتوانیت هێڵەکان پێنج پێنج بژمێریت. لە کۆتاییدا هێڵەکان بژمێرە: دەبنە .

Definitionپێناسە

A short stroke drawn for each value while counting; every fifth stroke crosses the four before it, so you count in fives.

هێڵێکی کورتە کە لە کاتی ژماردندا بۆ هەر نرخێک دەکێشرێت؛ هەر پێنجەمین هێڵ چوار هێڵەکەی پێشووی دەبڕێت، بۆیە بە پێنج پێنج دەژمێریت.

Animation of Table (1). The 60 values arrive ten at a time in a row of boxes at the top. Below is a table with the seven classes 60–74 to 150–164 and a tally column. With each group of ten values the tally marks grow; every fifth stroke crosses the four before it. In the last frame the strokes are counted and the frequency column shows 4, 5, 9, 12, 16, 7, 7, with Σf = 60.
Animation of Table (1). The 60 values arrive ten at a time in a row of boxes at the top. Below is a table with the seven classes 60–74 to 150–164 and a tally column. With each group of ten values the tally marks grow; every fifth stroke crosses the four before it. In the last frame the strokes are counted and the frequency column shows 4, 5, 9, 12, 16, 7, 7, with Σf = 60.
Tally marks grow as the values are read; at the end they become the frequency column. لەگەڵ خوێندنەوەی نرخەکان زیاد دەکەن؛ لە کۆتاییدا دەبنە ستوونی .CêIT
Table (1): frequency table of Example 1 (recomputed)خشتەی ⁦(1)⁩: نموونەی 1 (دووبارە ژمێردراوە)
ClassFrequency f fClass mark XiX_i XiX_i
60–74467
75–89582
90–104997
105–11912112
120–13416127
135–1497142
150–1647157
Totalکۆ60

Always check the total: the frequencies must add up to n. Here 4+5+9+12+16+7+7=604 + 5 + 9 + 12 + 16 + 7 + 7 = 60, so no value was lost or counted twice.

هەمیشە کۆکە بپشکنە: دەبێت بکەنە n. لێرەدا 4+5+9+12+16+7+7=604 + 5 + 9 + 12 + 16 + 7 + 7 = 60، کەواتە هیچ نرخێک ون نەبووە یان دوو جار نەژمێردراوە.

Quick checkپشکنینی خێراWhich class of Example 1 has the highest frequency?کام نموونەی 1 بەرزترین هەیە؟

Example 1: 60 values in 7 classesنموونەی ⁦1: 60⁩ نرخ لە 7 کلاسدا

Counting with Pythonژماردن بە Python

A computer does the tally in a loop. Because the classes start at 60 and are 15 wide, (x - 60) // 15 gives the class number of a value x directly: 0 for 60–74, 1 for 75–89, and so on.

کۆمپیوتەر ژماردنەکە بە دەکات. چونکە لە ⁦60⁩ دەست پێدەکەن و پانییان ⁦15⁩ـە، (x - 60) // 15 ڕاستەوخۆ ژمارەی نرخی x دەدات: 0 بۆ ⁦60–74⁩، 1 بۆ ⁦75–89⁩ و بەم شێوەیە.

PYTHONType in a terminalلە تێرمیناڵدا بینووسە
data = [142, 76, 80, 120, 132, 82, 96, 126, 157, 60, 164, 88, 90, 98, 101,
        103, 104, 109, 114, 126, 122, 111, 116, 130, 142, 120, 113, 121, 119, 125,
        126, 156, 136, 150, 154, 122, 123, 139, 125, 111, 65, 68, 72, 150, 116,
        119, 116, 120, 78, 93, 95, 98, 131, 136, 118, 126, 156, 136, 137, 110]

lowest, width, m = 60, 15, 7
freq = [0] * m
for x in data:
    k = (x - lowest) // width      # class number 0, 1, ..., 6
    freq[k] += 1

n = len(data)
for k in range(m):
    lower = lowest + k * width
    upper = lower + width - 1
    print(f"{lower}-{upper}   f = {freq[k]:2}   f/n = {freq[k] / n:.4f}")
print("total:", sum(freq), "n =", n)
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 6-7

Start with seven zero counters, one for each class.

بە حەوت سفر دەست پێبکە، یەکێک بۆ هەر .

Lineدێڕی 8-10

Integer division // finds the class; the counter of that class goes up by one — a tally mark.

دابەشکردنی تەواو // دەدۆزێتەوە؛ ئەو یەکێک زیاد دەکات — .

Lineدێڕی 16

:.4f prints 4 decimal places, the course's rule.

:.4f چوار چاپ دەکات، یاسای کۆرسەکە.

Quick checkپشکنینی خێراFor the value 164, what does (164 - 60) // 15 give?بۆ نرخی ⁦164⁩، (164 - 60) // 15 چی دەدات؟

Class boundaries: closing the gapsسنوورە ڕاستەقینەکانی کلاس: داخستنی بۆشاییەکان

The class 60–74 ends at 74 and the next one starts at 75. On the number line there is a gap between them. For whole numbers nothing falls into it, but a graph (next lesson) needs classes that touch, and real measurements such as 74.6 would have no home. So each class gets boundaries halfway between neighbouring limits: (74+75)/2=74.5(74 + 75)/2 = 74.5.

⁦60–74⁩ لە ⁦74⁩ کۆتایی دێت و دواتر لە ⁦75⁩ دەست پێدەکات. لەسەر بۆشاییەک لە نێوانیاندا هەیە. بۆ هیچ شتێک ناکەوێتە ناوییەوە، بەڵام هێڵکارییەک (وانەی داهاتوو) پێویستی بە پێکەوەلکاو هەیە و پێوانەی ڕاستەقینەی وەک ⁦74.6⁩ هیچ شوێنێکی نابوو. بۆیە هەر وەردەگرێت لە نیوەی نێوان سنوورە دراوسێکاندا: (74+75)/2=74.5(74 + 75)/2 = 74.5.

Definitionپێناسە

The point halfway between the upper limit of one class and the lower limit of the next, so the classes touch without gaps.

ئەو خاڵەیە کە ڕێک لە نێوەڕاستی سنووری سەرەوەی کلاسێک و سنووری خوارەوەی کلاسی دواتردایە، بۆیە کلاسەکان بێ بۆشایی بەیەکەوە دەلکێن.

lower boundary=LL−u2,upper boundary=UL+u2\text{lower boundary} = LL - \tfrac{u}{2}, \qquad \text{upper boundary} = UL + \tfrac{u}{2}

uu is the unit of the data: 1 for whole numbers (so ±0.5\pm 0.5), 0.1 for one decimal place (so ±0.05\pm 0.05). A boundary always has one more decimal place than the data, so no value can fall exactly on it.

uu یەکەی : 1 بۆ (کەواتە ±0.5\pm 0.5)، ⁦0.1⁩ بۆ یەک (کەواتە ±0.05\pm 0.05). هەمیشە یەک زیاتر لە هەیە، بۆیە هیچ نرخێک ناتوانێت ڕێک بکەوێتە سەری.

ClassBoundariesWidthپانیClass mark
60–7459.5–74.51567
75–8974.5–89.51582
90–10489.5–104.51597
105–119104.5–119.515112
120–134119.5–134.515127
135–149134.5–149.515142
150–164149.5–164.515157

Two useful facts: the width is upper boundary − lower boundary: 74.5−59.5=1574.5 - 59.5 = 15 (not 74−60=1474 - 60 = 14), and the class mark is the same from the limits or from the boundaries: (59.5+74.5)/2=67(59.5 + 74.5)/2 = 67.

دوو ڕاستیی بەسوود: پانییەکە جیاوازیی نێوان هەردوو : 74.5−59.5=1574.5 - 59.5 = 15 (نەک 74−60=1474 - 60 = 14) و لە یان لە یەک شتە: (59.5+74.5)/2=67(59.5 + 74.5)/2 = 67.

Quick checkپشکنینی خێراWhat are the boundaries of the class 105–119? بۆ ⁦105–119⁩ چین؟

Relative frequencyدووبارەبوونەوەی ڕێژەیی

Definitionپێناسە

A class divided by the total number of values: f/nf/n, or f/n×100f/n \times 100 as a .

کلاسێکە دابەش بە کۆی ژمارەی نرخەکان: f/nf/n، یان f/n×100f/n \times 100 وەک .

Fi∗=Fi∑i=1mFi=Finor, as a percentage,Fin×100F^{*}_i = \frac{F_i}{\sum_{i=1}^{m} F_i} = \frac{F_i}{n} \qquad \text{or, as a percentage,} \qquad \frac{F_i}{n}\times 100

A relative frequency is a share of the whole, from 0 to 1. Multiplied by 100 it is a percentage. All the relative frequencies add up to 1 (100%).

بەشێکە لە گشت، لە 0 تا 1. کە لە ⁦100⁩ لێک بدرێت دەبێتە . کۆی هەموو دەکاتە ⁦1 (100%)⁩.

Relative frequencies of Example 1 (4 and 2 decimal places) لە نموونەی 1دا (⁦4⁩ و 2 )
Classff/n%
60–7440.06676.67
75–8950.08338.33
90–10490.150015.00
105–119120.200020.00
120–134160.266726.67
135–14970.116711.67
150–16470.116711.67
Totalکۆ601100

The rounded values add up to 1.0001 and 100.01 instead of 1 and 100. That is a rounding error, not a counting mistake (see Rounding).

بەها نزیککراوەکان لە جیاتی 1 و ⁦100⁩ دەکەنە ⁦1.0001⁩ و ⁦100.01⁩. ئەمە ، نەک هەڵەی ژماردن (سەیری نزیککردنەوە بکە).

Quick checkپشکنینی خێراA class has frequency 12 out of n=60n = 60. What is its relative frequency? ⁦12⁩ـە لە n=60n = 60. چەندە؟

Relative frequencyدووبارەبوونەوەی ڕێژەیی

Why shares?بۆچی بەش؟

Why use shares? To compare groups of different sizes. Suppose another class of 100 students has 20 marks in 120–134. 20 is more than 16, but as a share it is smaller: 20/100=0.2020/100 = 0.20 against 16/60=0.266716/60 = 0.2667. Relative frequency also leads to probability: the share of times something happens estimates its chance (What is probability?).

بۆچی بەش بەکار دەهێنین؟ بۆ بەراوردکردنی گرووپی قەبارە جیاواز. وا دابنێ پۆلێکی تری ⁦100⁩ قوتابی ⁦20⁩ نمرەیان لە ⁦120–134⁩دایە. ⁦20⁩ لە ⁦16⁩ زیاترە، بەڵام وەک بەش بچووکترە: 20/100=0.2020/100 = 0.20 بەرامبەر 16/60=0.266716/60 = 0.2667. بەرەو دەبات: بەشی ئەو جارانەی شتێک ڕوو دەدات ڕوودانەکەی دەخەمڵێنێت (ئەگەر چییە؟).

Quick checkپشکنینی خێراClass A has 16 of its 60 marks in 120–134; class B has 20 of its 100 marks there. Which class has the larger share?پۆلی A لە ⁦60⁩ نمرەی ⁦16⁩ـیان لە ⁦120–134⁩دایە؛ پۆلی B لە ⁦100⁩ نمرەی ⁦20⁩ـیان لەوێدایە. کام پۆل بەشی گەورەتری هەیە؟

Running totals: cumulative frequencyکۆی بەردەوام: دووبارەبوونەوەی کەڵەکەبوو

Two more columns are often added. The cumulative frequency is a running total of f: add each class to all the classes before it. The cumulative relative frequency does the same with f/nf/n.

دوو ستوونی تر زۆرجار زیاد دەکرێن. کۆیەکی بەردەوامی fـە: هەر بخەرە سەر هەموو پێش خۆی. هەمان کار بە f/nf/n دەکات.

Definitionپێناسە

The running total of the relative frequencies: the share of all values that lie at or below a class's upper boundary. It is the divided by nn, and the last one is always 1 (100%).

کۆی کەڵەکەبووی کلاسەکانە: ئەو بەشەی هەموو نرخەکان کە لە سنووری سەرەوەی کلاسێکدان یان لە خوارییەوەن. دەکاتە دابەش بە nn و دوایینیان هەمیشە دەکاتە ⁦1 (100%)⁩.

ClassfCumulative fCumulative f/n
60–74440.0667
75–89590.1500
90–1049180.3000
105–11912300.5000
120–13416460.7667
135–1497530.8833
150–1647601.0000

Read a row like this: 30 of the 60 values are 119 or less, which is 0.5=50%0.5 = 50\%. So half of the data lie below 119.5 — a first look at the median. The last row is always n (and 1). The next lesson builds the “less than” and “more than” cumulative tables and draws them as graphs: Histograms and cumulative frequency graphs.

ڕیزێک بەم شێوەیە بخوێنەرەوە: ⁦30⁩ لە ⁦60⁩ نرخەکە ⁦119⁩ یان کەمترن، واتە 0.5=50%0.5 = 50\%. کەواتە نیوەی لە خوار ⁦119.5⁩ـەوەن — یەکەم سەیرکردنی ناوەڕاستە. دوایین ڕیز هەمیشە nـە (و ⁦1⁩). وانەی داهاتوو خشتە کەڵەکەبووەکانی «کەمتر لە» و «زیاتر لە» دروست دەکات و وەک هێڵکاری دەیانکێشێت: هیستۆگرامەکان و هێڵکارییەکانی دووبارەبوونەوەی کەڵەکەبوو.

Quick checkپشکنینی خێراUsing the table, how many values of Example 1 are 134 or less?بەپێی خشتەکە، چەند نرخی نموونەی 1 دەکەنە ⁦134⁩ یان کەمتر؟

H.W 1: decimal data need continuous classesڕاهێنانی 1: دراوەی دەیی پێویستی بە کلاسی بەردەوام هەیە

Homework 1 of the notes gives 100 values with one decimal place and asks for a frequency table and the relative frequency of each class:

ڕاهێنانی ماڵەوەی 1ـی تێبینییەکان ⁦100⁩ نرخ بە یەک دەدات و داوای و بۆ هەر دەکات:

101, 65.3, 70.5, 83, 94, 55, 45, 61.3, 62.9, 66.5, 66.9, 68.3, 70, 73.2, 58.2, 59.9, 54.4, 58.7, 52.6, 51.8, 74.1, 58.5, 52, 66.3, 65.2, 67.1, 88.2, 89.1, 96.3, 61.1, 65, 63.1, 64.9, 66.2, 65.3, 69.2, 71.2, 60.1, 49.2, 55, 62.1, 68.1, 95.1, 88.2, 81.3, 82, 84, 75, 69.1, 52.9, 55.1, 66, 67, 65.2, 69.3, 75.1, 51.9, 54.8, 58.6, 52.4, 63, 65.1, 66.2, 78.3, 69.1, 71.2, 73.9, 72.1, 64.8, 65.9, 47.5, 61.3, 79.1, 73.8, 60.2, 82.4, 80.2, 75.1, 76.3, 80.1, 75.3, 81.1, 72, 73.6, 67, 70.3, 85, 88.1, 62.3, 58.1, 59.8, 79.2, 81.3, 74.5, 68.4, 72.1, 77.8, 65.2, 64.8, 50.6.

⁦101⁩، ⁦65.3⁩، ⁦70.5⁩، ⁦83⁩، ⁦94⁩، ⁦55⁩، ⁦45⁩، ⁦61.3⁩، ⁦62.9⁩، ⁦66.5⁩، ⁦66.9⁩، ⁦68.3⁩، ⁦70⁩، ⁦73.2⁩، ⁦58.2⁩، ⁦59.9⁩، ⁦54.4⁩، ⁦58.7⁩، ⁦52.6⁩، ⁦51.8⁩، ⁦74.1⁩، ⁦58.5⁩، ⁦52⁩، ⁦66.3⁩، ⁦65.2⁩، ⁦67.1⁩، ⁦88.2⁩، ⁦89.1⁩، ⁦96.3⁩، ⁦61.1⁩، ⁦65⁩، ⁦63.1⁩، ⁦64.9⁩، ⁦66.2⁩، ⁦65.3⁩، ⁦69.2⁩، ⁦71.2⁩، ⁦60.1⁩، ⁦49.2⁩، ⁦55⁩، ⁦62.1⁩، ⁦68.1⁩، ⁦95.1⁩، ⁦88.2⁩، ⁦81.3⁩، ⁦82⁩، ⁦84⁩، ⁦75⁩، ⁦69.1⁩، ⁦52.9⁩، ⁦55.1⁩، ⁦66⁩، ⁦67⁩، ⁦65.2⁩، ⁦69.3⁩، ⁦75.1⁩، ⁦51.9⁩، ⁦54.8⁩، ⁦58.6⁩، ⁦52.4⁩، ⁦63⁩، ⁦65.1⁩، ⁦66.2⁩، ⁦78.3⁩، ⁦69.1⁩، ⁦71.2⁩، ⁦73.9⁩، ⁦72.1⁩، ⁦64.8⁩، ⁦65.9⁩، ⁦47.5⁩، ⁦61.3⁩، ⁦79.1⁩، ⁦73.8⁩، ⁦60.2⁩، ⁦82.4⁩، ⁦80.2⁩، ⁦75.1⁩، ⁦76.3⁩، ⁦80.1⁩، ⁦75.3⁩، ⁦81.1⁩، ⁦72⁩، ⁦73.6⁩، ⁦67⁩، ⁦70.3⁩، ⁦85⁩، ⁦88.1⁩، ⁦62.3⁩، ⁦58.1⁩، ⁦59.8⁩، ⁦79.2⁩، ⁦81.3⁩، ⁦74.5⁩، ⁦68.4⁩، ⁦72.1⁩، ⁦77.8⁩، ⁦65.2⁩، ⁦64.8⁩، ⁦50.6⁩.

  1. Rangeمەودا

    T.R=101−45=56T.R = 101 - 45 = 56.

    T.R=101−45=56T.R = 101 - 45 = 56.

  2. Number of classesژمارەی کلاسەکان

    m=2.51004=2.5⋅3.1623=7.9057≈8m = 2.5\sqrt[4]{100} = 2.5 \cdot 3.1623 = 7.9057 \approx 8 (Sturges: 7.6440≈87.6440 \approx 8).

    m=2.51004=2.5⋅3.1623=7.9057≈8m = 2.5\sqrt[4]{100} = 2.5 \cdot 3.1623 = 7.9057 \approx 8 (: 7.6440≈87.6440 \approx 8).

  3. Widthپانی

    L=56/8=7L = 56/8 = 7, already whole.

    L=56/8=7L = 56/8 = 7، خۆی .

Quick checkپشکنینی خێراFor H.W 1, the range is 56 and m=8m = 8. What is the class width L?بۆ ڕاهێنانی 1، ⁦56⁩ـە و m=8m = 8. L چەندە؟

بابەتی ئامار(الاحصاء) ڤیدیۆی دووەم لە شیکاری بابەتی یەکەمی ئامار تایبەت بە ژمێریاری و کارگێڕی کارdastan baabany · Kurdish (Sorani)کوردی (سۆرانی) · 2.2K viewsبینین · 47 likesلایک

In Kurdish: a full frequency table for 30 decimal values: range, Sturges' number of classes, class width, tally marks, frequencies and midpoints.

بە کوردی: تەواو بۆ ⁦30⁩ نرخی : ، ژمارەی بە ، ، ، و .

In Kurdish; a worked example with decimal data and continuous classes.

بە کوردی؛ نموونەیەکی چارەسەرکراو بە و بەردەوام.

H.W 1: decimal data need continuous classesڕاهێنانی 1: دراوەی دەیی پێویستی بە کلاسی بەردەوام هەیە

A first try: classes with gapsهەوڵی یەکەم: کلاسەکان بە بۆشایی

A first try (the course owner's own homework) copied Example 1: whole-number classes with UL=LL+(7−1)UL = LL + (7 - 1), that is 45–51, 52–58, …, 94–100, and wrote the frequencies 6, 14, 23, 24, 15, 10, 4, 4 with relative frequencies 6%, 14%, 23%, 24%, 15%, 10%, 4%, 4%. But these classes have gaps, and decimal values fall into them:

هەوڵێکی یەکەم (ڕاهێنانی خاوەنی کۆرسەکە خۆی) نموونەی 1ـی کۆپی کرد: بە UL=LL+(7−1)UL = LL + (7 - 1)، واتە ⁦45–51⁩، ⁦52–58⁩، …، ⁦94–100⁩ و 6، ⁦14⁩، ⁦23⁩، ⁦24⁩، ⁦15⁩، ⁦10⁩، 4، 4 لەگەڵ ⁦6%⁩، ⁦14%⁩، ⁦23%⁩، ⁦24%⁩، ⁦15%⁩، ⁦10%⁩، ⁦4%⁩، ⁦4%⁩ نووسی. بەڵام ئەم بۆشاییان هەیە و نرخە دەییەکان دەکەونە ناویانەوە:

Two number lines from 45 to 101. Top: the eight whole-number classes 45–51, 52–58, …, 94–100 drawn as boxes with small orange gaps between them (51 to 52, 58 to 59, and so on) and after 100. Orange triangles mark the 19 values that fall into a gap or after the last class, for example 51.8 and 51.9 between 51 and 52, and 101 after 100; only 81 values are counted. Bottom: continuous classes with boundaries 44.95, 51.95, …, 101.05 that touch each other; the same values now all fall inside a class.دوو هێڵی ژمارەکان لە 45 تا 101. سەرەوە: هەشت کلاسی ژمارە تەواوەکان 45–51، 52–58، …، 94–100 وەک چوارگۆشە کێشراون و بۆشایی بچووکی پرتەقاڵی لە نێوانیاندا هەیە (51 تا 52، 58 تا 59 و بەم شێوەیە) و لە دوای 100. سێگۆشەی پرتەقاڵی ئەو 19 نرخە دیاری دەکەن کە دەکەونە بۆشاییەک یان دوای کۆتا کلاس، بۆ نموونە 51.8 و 51.9 لە نێوان 51 و 52 و 101 لە دوای 100؛ تەنها 81 نرخ دەژمێردرێن. خوارەوە: کلاسی بەردەوام بە سنوورە ڕاستەقینەکانی کلاس 44.95، 51.95، …، 101.05 کە بەیەکەوە لکاون؛ هەمان نرخەکان ئێستا هەموویان دەکەونە ناو کلاسێکەوە.
Whole-number classes leave gaps that decimal values fall into; continuous classes do not. بۆشایی دەهێڵنەوە کە نرخە دەییەکان دەکەونە ناوییەوە؛ بەردەوام ئەمە ناکات.CêIT

Counted strictly, the whole-number classes hold only 81 of the 100 values (4, 9, 16, 22, 13, 10, 4, 3). The 19 values left out are 51.8, 51.9, 58.1, 58.2, 58.5, 58.6, 58.7, 65.1, 65.2, 65.2, 65.2, 65.3, 65.3, 65.9, 72.1, 72.1, 79.1, 79.2, 101. The frequencies the first try wrote down are right — but only for the corrected classes below.

بە وردی بژمێردرێن، تەنها ⁦81⁩ نرخ لە ⁦100⁩ نرخەکە دەگرنەوە (⁦4⁩، 9، ⁦16⁩، ⁦22⁩، ⁦13⁩، ⁦10⁩، 4، ⁦3⁩). ئەو ⁦19⁩ نرخەی دەمێننە دەرەوە بریتین لە ⁦51.8⁩، ⁦51.9⁩، ⁦58.1⁩، ⁦58.2⁩، ⁦58.5⁩، ⁦58.6⁩، ⁦58.7⁩، ⁦65.1⁩، ⁦65.2⁩، ⁦65.2⁩، ⁦65.2⁩، ⁦65.3⁩، ⁦65.3⁩، ⁦65.9⁩، ⁦72.1⁩، ⁦72.1⁩، ⁦79.1⁩، ⁦79.2⁩، ⁦101⁩. لە هەوڵی یەکەمدا دروستن — بەڵام تەنها بۆ ڕاستکراوەکانی خوارەوە.

Quick checkپشکنینی خێراWith the classes 45–51, 52–58, …, where does the value 65.3 go?بە ⁦45–51⁩، ⁦52–58⁩، …، نرخی ⁦65.3⁩ دەچێتە کوێ؟

H.W 1: decimal data need continuous classesڕاهێنانی 1: دراوەی دەیی پێویستی بە کلاسی بەردەوام هەیە

The fix: continuous classesچارەسەر: کلاسی بەردەوام

Decimal data are continuous, so the classes must touch. The owner's corrected homework gives a “Continuous Rule” in two forms:

دەیی دراوەی بەردەوامە، بۆیە دەبێت پێکەوە بلکێن. ڕاهێنانە ڕاستکراوەکەی خاوەنی کۆرسەکە «یاسای بەردەوام» بە دوو شێوە دەدات:

(1)    LL+L=UL(2)    LL+(L−0.1)=UL\text{(1)}\;\; LL + L = UL \qquad\qquad \text{(2)}\;\; LL + (L - 0.1) = UL
  • Rule (1) gives 45–52, 52–59, …: neighbouring classes share a limit. Then you need an agreement: a value exactly on a shared limit (52, 66, 94 here) belongs to the class that starts there.
  • Rule (2) gives 45.0–51.9, 52.0–58.9, …: subtract one unit of the last decimal place — 0.1 for one decimal, 0.01 for two. If the values have different numbers of decimals, use the most precise one (the smallest unit).
  • The owner's note adds: if rule (2) causes a problem (for example the total no longer comes out right), use rule (1). Both give the same counts here.
  • یاسای ⁦(1)⁩ ⁦45–52⁩، ⁦52–59⁩، … دەدات: دراوسێکان یەک سنووریان هاوبەشە. ئەوکات پێویستت بە ڕێککەوتنێکە: نرخێک کە ڕێک لەسەر سنوورێکی هاوبەشە (لێرەدا ⁦52⁩، ⁦66⁩، ⁦94⁩) سەر بەو کە لەوێوە دەست پێدەکات.
  • یاسای ⁦(2)⁩ ⁦45.0–51.9⁩، ⁦52.0–58.9⁩، … دەدات: یەک یەکە لە دوایین کەم بکەرەوە — ⁦0.1⁩ بۆ یەک خانە، ⁦0.01⁩ بۆ دوو خانە. ئەگەر نرخەکان ژمارەی خانەی جیاوازیان هەبێت، وردترینیان بەکار بهێنە (بچووکترین یەکە).
  • تێبینیی خاوەنی کۆرسەکە زیاد دەکات: ئەگەر یاسای ⁦(2)⁩ کێشەی دروست کرد (بۆ نموونە کۆکە ئیتر ڕاست دەرنەچوو)، یاسای ⁦(1)⁩ بەکار بهێنە. لێرەدا هەردووکیان هەمان ژماردن دەدەن.

Both rules lead to the same picture as class boundaries with one more decimal place than the data: 44.95, 51.95, 58.95, … No value with one decimal place can land exactly on such a boundary, so there is never a doubt where it belongs. This is the standard method in statistics books (for example OpenStax).

هەردوو یاسا دەگەنە هەمان وێنەی کە یەک زیاتر لە هەیە: ⁦44.95⁩، ⁦51.95⁩، ⁦58.95⁩، … هیچ نرخێکی یەک خانەیی ناتوانێت ڕێک بکەوێتە سەر سنوورێکی لەم شێوەیە، بۆیە هەرگیز گومان نییە سەر بە کوێیە. ئەمە ڕێگا ستانداردەکەی کتێبەکانی (بۆ نموونە OpenStax).

Quick checkپشکنینی خێراThe data have two decimal places, and L=5L = 5. With rule (2), what is the first class if it starts at 12.00? دوو هەیە و L=5L = 5. بە یاسای ⁦(2)⁩، ئەگەر یەکەم لە ⁦12.00⁩ دەست پێبکات، چییە؟

H.W 1: decimal data need continuous classesڕاهێنانی 1: دراوەی دەیی پێویستی بە کلاسی بەردەوام هەیە

The last class must hold the largest valueدوایین کلاس دەبێت گەورەترین نرخ لە خۆ بگرێت

H.W 1 with continuous classes (the last class stretched to 101.0)ڕاهێنانی 1 بە بەردەوام (دوایین تا ⁦101.0⁩ درێژ کراوەتەوە)
Class (rule 2) (یاسای ⁦2⁩)Boundariesff/n%
45.0–51.944.95–51.9560.066
52.0–58.951.95–58.95140.1414
59.0–65.958.95–65.95230.2323
66.0–72.965.95–72.95240.2424
73.0–79.972.95–79.95150.1515
80.0–86.979.95–86.95100.1010
87.0–93.986.95–93.9540.044
94.0–101.093.95–101.0540.044
Totalکۆ1001.00100

Because n=100n = 100, each relative frequency is simply f/100f/100, and the percentage equals ff. The class marks from the boundaries are 48.45, 55.45, …, 90.45 and, for the stretched last class, 97.5.

چونکە n=100n = 100ـە، هەر بە سادەیی f/100f/100ـە و یەکسانە بە ff. لە ⁦48.45⁩، ⁦55.45⁩، …، ⁦90.45⁩ن و بۆ دوایین درێژکراوە ⁦97.5⁩.

Quick checkپشکنینی خێراIn H.W 1, 8×7=568 \times 7 = 56 is exactly the range. With rule (2), where does the largest value, 101, go?لە ڕاهێنانی 1دا 8×7=568 \times 7 = 56 ڕێک . بە یاسای ⁦(2)⁩، گەورەترین نرخ، ⁦101⁩، دەچێتە کوێ؟

Common mistakesهەڵە باوەکان

MistakeهەڵەWhat goes wrongچی تێک دەچێتFixچارەسەر
Rounding L down L بەرەو خوارThe classes stop before the largest value. پێش گەورەترین نرخ دەوەستن.Round L up; check m×L≥T.Rm \times L \ge T.RL بەرەو سەرەوە نزیک بکەرەوە؛ m×L≥T.Rm \times L \ge T.R بپشکنە
Whole-number classes for decimal data بۆ دەییValues like 51.8 fall into gaps.نرخی وەک ⁦51.8⁩ دەکەونە بۆشاییەوە.Continuous classes or boundaries بەردەوام یان
Classes 45–52, 52–59 with no agreement ⁦45–52⁩، ⁦52–59⁩ بێ ڕێککەوتن52 could be counted twice.⁦52⁩ دەکرێت دوو جار بژمێردرێت.A shared limit belongs to the class that starts thereسنووری هاوبەش سەر بەو کە لەوێوە دەست پێدەکات
Last class misses the maximumدوایین گەورەترین نرخی تێدا نییە101 is not counted.⁦101⁩ ناژمێردرێت.Stretch the last class or add oneدوایین درێژ بکەرەوە یان یەکێکی زیاد بکە
Width =UL−LL= UL - LLپانی =UL−LL= UL - LL74−60=1474 - 60 = 14, but the width is 15.74−60=1474 - 60 = 14، بەڵام پانییەکە ⁦15⁩ـە.Upper boundary − lower boundaryجیاوازیی هەردوو
Not checking ∑f=n\sum f = nنەپشکنینی ∑f=n\sum f = nA lost or doubled value goes unnoticed.نرخێکی ونبوو یان دووجارە ناناسرێتەوە.Always add up the f columnهەمیشە ستوونی f کۆ بکەرەوە
Cutting off decimals in f/nf/n ژمارە دەییەکان لە f/nf/n6.6666 instead of 6.67⁦6.6666⁩ لە جیاتی ⁦6.67⁩Round (4 places or 2 for %)نزیک بکەرەوە (⁦4⁩ خانە یان 2 بۆ %)
Quick checkپشکنینی خێراYour frequencies add up to 99, but n=100n = 100. What is the most likely cause? دەکەنە ⁦99⁩، بەڵام n=100n = 100. بە زۆری هۆکارەکە چییە؟

Exercisesڕاهێنانەکان

ExerciseڕاهێنانH.W 1 from the startڕاهێنانی 1 لە سەرەتاوە

Make the full frequency table of the 100 values of H.W 1: range, number of classes (Yule), width, continuous classes with boundaries, frequencies and relative frequencies. Check that ∑f=100\sum f = 100.

تەواو بۆ ⁦100⁩ نرخەکەی ڕاهێنانی 1 دروست بکە: ، ژمارەی ()، پانی، بەردەوام لەگەڵ ، و . بپشکنە کە ∑f=100\sum f = 100.

Show answerوەڵامەکە پیشان بدە

T.R=56T.R = 56, m=7.9057≈8m = 7.9057 \approx 8, L=7L = 7. Classes 45.0–51.9, 52.0–58.9, …, 87.0–93.9, 94.0–101.0 (boundaries 44.95, 51.95, …, 93.95, 101.05). Frequencies 6, 14, 23, 24, 15, 10, 4, 4 (∑f=100\sum f = 100); relative frequencies 0.06, 0.14, 0.23, 0.24, 0.15, 0.10, 0.04, 0.04 — the full table is in The last class must hold the largest value.

T.R=56T.R = 56، m=7.9057≈8m = 7.9057 \approx 8، L=7L = 7. ⁦45.0–51.9⁩، ⁦52.0–58.9⁩، …، ⁦87.0–93.9⁩، ⁦94.0–101.0⁩ ( ⁦44.95⁩، ⁦51.95⁩، …، ⁦93.95⁩، ⁦101.05⁩). 6، ⁦14⁩، ⁦23⁩، ⁦24⁩، ⁦15⁩، ⁦10⁩، 4، 4 (∑f=100\sum f = 100)؛ ⁦0.06⁩، ⁦0.14⁩، ⁦0.23⁩، ⁦0.24⁩، ⁦0.15⁩، ⁦0.10⁩، ⁦0.04⁩، ⁦0.04⁩ — خشتە تەواوەکە لە دوایین کلاس دەبێت گەورەترین نرخ لە خۆ بگرێتدایە.

ExerciseڕاهێنانSpot the gapبۆشاییەکە بدۆزەرەوە

A student used the classes 45–51, 52–58, 59–65, … for H.W 1. Find three values of the data that fit in no class, and explain how to fix the table.

قوتابییەک بۆ ڕاهێنانی 1 ⁦45–51⁩، ⁦52–58⁩، ⁦59–65⁩، … بەکار هێنا. سێ نرخی بدۆزەرەوە کە لە هیچ جێیان نابێتەوە و ڕوونی بکەرەوە خشتەکە چۆن چاک دەکرێت.

Show answerوەڵامەکە پیشان بدە

For example 51.8 (between 51 and 52), 65.3 (between 65 and 66) and 101 (after 100). Use continuous classes: LL+L=ULLL + L = UL with shared limits going to the upper class, or LL+(L−0.1)=ULLL + (L - 0.1) = UL, i.e. boundaries 44.95, 51.95, …; and let the last class reach 101.

بۆ نموونە ⁦51.8⁩ (لە نێوان ⁦51⁩ و ⁦52⁩)، ⁦65.3⁩ (لە نێوان ⁦65⁩ و ⁦66⁩) و ⁦101⁩ (دوای ⁦100⁩). بەردەوام بەکار بهێنە: LL+L=ULLL + L = UL کە سنوورە هاوبەشەکان دەچن بۆ سەرەوە، یان LL+(L−0.1)=ULLL + (L - 0.1) = UL، واتە ⁦44.95⁩، ⁦51.95⁩، …؛ و با دوایین بگاتە ⁦101⁩.

Exercisesڕاهێنانەکان

More exercisesڕاهێنانی زیاتر

ExerciseڕاهێنانWaiting for a taxiچاوەڕوانیی تاکسی

At a taxi garage, 24 passengers recorded how many minutes they waited: 3, 7, 12, 5, 9, 15, 4, 8, 11, 6, 14, 2, 10, 7, 9, 13, 5, 8, 6, 12, 18, 4, 9, 7. Build a frequency table with Sturges' rule: range, m, L, classes, class marks, frequencies, relative frequencies (4 places) and cumulative frequencies.

لە گەراجێکی تاکسی، ⁦24⁩ سەرنشین تۆماریان کرد چەند خولەک چاوەڕێ بوون: 3، 7، ⁦12⁩، 5، 9، ⁦15⁩، 4، 8، ⁦11⁩، 6، ⁦14⁩، 2، ⁦10⁩، 7، 9، ⁦13⁩، 5، 8، 6، ⁦12⁩، ⁦18⁩، 4، 9، 7. بە دروست بکە: ، m، L، ، ، ، (⁦4⁩ خانە) و .

Show answerوەڵامەکە پیشان بدە

T.R=18−2=16T.R = 18 - 2 = 16. Sturges: 1+3.322log⁡1024=5.5851≈61 + 3.322\log_{10} 24 = 5.5851 \approx 6 (Yule gives 5.5334≈65.5334 \approx 6 too). L=16/6=2.667→3L = 16/6 = 2.667 \to 3; check 6×3=18≥166 \times 3 = 18 \ge 16.

T.R=18−2=16T.R = 18 - 2 = 16. : 1+3.322log⁡1024=5.5851≈61 + 3.322\log_{10} 24 = 5.5851 \approx 6 ( 5.5334≈65.5334 \approx 6 دەدات). L=16/6=2.667→3L = 16/6 = 2.667 \to 3؛ پشکنین 6×3=18≥166 \times 3 = 18 \ge 16.

ClassClass markff/nCumulative f
2–4340.16674
5–7670.291711
8–10960.250017
11–131240.166721
14–161520.083323
17–191810.041724
ExerciseڕاهێنانCount H.W 1 with Pythonڕاهێنانی 1 بە Python بژمێرە

Change the Python program of Example 1 so that it counts the 100 decimal values of H.W 1 into the 8 continuous classes that start at 45 and are 7 wide. Make sure that 101 is counted.

بەرنامەی Pythonـی نموونەی 1 بگۆڕە بۆ ئەوەی ⁦100⁩ نرخە دەییەکەی ڕاهێنانی 1 بۆ ناو 8 بەردەوامەکە بژمێرێت کە لە ⁦45⁩ دەست پێدەکەن و پانییان 7ـە. دڵنیا بە کە ⁦101⁩ دەژمێردرێت.

Show answerوەڵامەکە پیشان بدە
PYTHONType in a terminalلە تێرمیناڵدا بینووسە
data = [101, 65.3, 70.5, 83, 94, 55, 45, 61.3, 62.9, 66.5, 66.9, 68.3, 70, 73.2,
        58.2, 59.9, 54.4, 58.7, 52.6, 51.8, 74.1, 58.5, 52, 66.3, 65.2, 67.1, 88.2,
        89.1, 96.3, 61.1, 65, 63.1, 64.9, 66.2, 65.3, 69.2, 71.2, 60.1, 49.2, 55,
        62.1, 68.1, 95.1, 88.2, 81.3, 82, 84, 75, 69.1, 52.9, 55.1, 66, 67, 65.2,
        69.3, 75.1, 51.9, 54.8, 58.6, 52.4, 63, 65.1, 66.2, 78.3, 69.1, 71.2, 73.9,
        72.1, 64.8, 65.9, 47.5, 61.3, 79.1, 73.8, 60.2, 82.4, 80.2, 75.1, 76.3, 80.1,
        75.3, 81.1, 72, 73.6, 67, 70.3, 85, 88.1, 62.3, 58.1, 59.8, 79.2, 81.3, 74.5,
        68.4, 72.1, 77.8, 65.2, 64.8, 50.6]

lowest, width, m = 45, 7, 8
freq = [0] * m
for x in data:
    k = int((x - lowest) // width)
    k = min(k, m - 1)          # 101 would be class 8: keep it in the last class
    freq[k] += 1

print(freq, sum(freq))
Explain the codeڕوونکردنەوەی کۆدەکە
Lineدێڕی 13

(x - 45) // 7 gives 0 to 7 for every value except 101, which would give 8.

(x - 45) // 7 بۆ هەموو نرخێک 0 تا 7 دەدات جگە لە ⁦101⁩ کە 8 دەدات.

Lineدێڕی 14

min(k, m - 1) keeps the largest value in the last class — the owner's “stretch the last class”.

min(k, m - 1) گەورەترین نرخ لە دوایین دەهێڵێتەوە — «دوایین درێژ بکەرەوە»ـی خاوەنی کۆرسەکە.

Summaryپوختە

  1. Rangeمەودا

    T.R=max⁡−min⁡T.R = \max - \min

    T.R=max⁡−min⁡T.R = \max - \min

  2. Number of classesژمارەی کلاسەکان

    m=1+3.322log⁡10nm = 1 + 3.322\log_{10} n or m=2.5n4m = 2.5\sqrt[4]{n}, rounded to a whole number.

    m=1+3.322log⁡10nm = 1 + 3.322\log_{10} n یان m=2.5n4m = 2.5\sqrt[4]{n}، بۆ نزیک دەکرێتەوە.

  3. Widthپانی

    L=T.R/mL = T.R/m, always rounded up.

    L=T.R/mL = T.R/m، هەمیشە بەرەو سەرەوە نزیک دەکرێتەوە.

  4. Classesکلاسەکان

    Whole numbers: UL=LL+L−1UL = LL + L - 1. Decimals: continuous classes, boundaries with one extra decimal. The last class must hold the largest value.

    : UL=LL+L−1UL = LL + L - 1. ژمارەی دەیی: بەردەوام، بە یەک خانەی زیاتر. دوایین دەبێت گەورەترین نرخ لە خۆ بگرێت.

  5. Countبژمێرە

    Tally once through the data; check ∑f=n\sum f = n.

    یەک جار بە ناو دابنێ؛ ∑f=n\sum f = n بپشکنە.

  6. Extra columnsستوونی زیادە

    Class mark (LL+UL)/2(LL + UL)/2, relative frequency f/nf/n, cumulative frequency (running total).

    (LL+UL)/2(LL + UL)/2، f/nf/n، (کۆی بەردەوام).

Review questionsپرسیارەکانی پێداچوونەوە
Why must the class width be rounded up?بۆچی دەبێت پانیی کلاس بەرەو سەرەوە نزیک بکرێتەوە؟

So that m classes of width L reach from the smallest to the largest value.

بۆ ئەوەی m بە پانیی L لە بچووکترین نرخەوە بگەنە گەورەترینیان.

What are the boundaries of the class 60–74 for whole-number data?سنوورە ڕاستەقینەکانی کلاس بۆ کلاسی ⁦60–74⁩ بۆ دراوەکە ژمارە تەواوەکان چین؟

59.5 and 74.5.

⁦59.5⁩ و ⁦74.5⁩.

Why did whole-number classes fail for H.W 1?بۆچی کلاسی ژمارە تەواوەکان لە ڕاهێنانی 1دا سەرکەوتوو نەبوو؟

The data have decimals, so values such as 51.8 fell into the gaps between classes, and 101 was past the last class: only 81 of 100 values were counted.

ژمارەی دەیی هەیە، بۆیە نرخی وەک ⁦51.8⁩ کەوتنە بۆشایی نێوان و ⁦101⁩ دوای کۆتا بوو: تەنها ⁦81⁩ لە ⁦100⁩ نرخ ژمێردران.

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

Histograms and Cumulative Frequency Graphsهیستۆگرامەکان و هێڵکارییەکانی دووبارەبوونەوەی کەڵەکەبوو

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.