- Laboratory Activity Frequency Distribution Discussion Given A Sample Of Size N X X2 Xn Listed In No Parti 1 (237.66 KiB) Viewed 65 times
↓ Laboratory Activity- Frequency Distribution Discussion Given a sample of size n: {x₁, X2, ..., Xn}, listed in no parti
-
- Posts: 43759
- Joined: Sat Aug 07, 2021 7:38 am
↓ Laboratory Activity- Frequency Distribution Discussion Given a sample of size n: {x₁, X2, ..., Xn}, listed in no parti
↓ Laboratory Activity- Frequency Distribution Discussion Given a sample of size n: {x₁, X2, ..., Xn}, listed in no particular order, it is often required to group this data into a series of classes by counting the frequency or number of values corresponding to each class. XBk+1}, so that class number 1 is Suppose that the classes will be selected by dividing the interval (Xbot, Xtop), into k classes by selecting a number of class boundaries, i.e., {xB₁, XB2, limited by XB₁-XB2, class number 2 by xB₂- xB3, and so on. be limited by xBk - XBk+1. The last class, class number k, will The value of x corresponding to the middle point of each class is known as the class mark, and is defined as XM; = (XB; + XB +1)/2, for i = 1, 2, ..., k. If the classes are chosen such that the class size is the same, then we can define the class size as the value AX = (Xmax - Xmin) / k, and the class boundaries can be calculated as XB₁ = Xbot + (1 - 1).AX. Any data point, xj, j = 1, 2, ..., n, belongs to the i-th class if XB; ≤ x; < XB i+1. The values fi, i = 1,2, ..., k, represent the frequency count (i.e., the number of sample values) in the i-th class. By definition, f₁ = n. I-1 Procedure A SCILAB function for determining frequency distributions The data for frequency counts, relative frequency, and cumulative frequency is typically presented as a table. The following function, freqdist, produces such table given the data in a row vector x and the class boundaries in a row vector xclass. The function also plots a histogram of relative frequencies, using SCILAB's own histplot function, and a cumulative frequency ogive: