STA641 – Statistical Packages and its Applications: Midterm Important Subjective (20 Solved Q&As)
Statistics • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · STA641 Course Page · STA641 MCQ Pack (86 MCQs)
-
Midterm Paper (Spring 2019): For the following frequency distribution, find the Mid Point, Relative Frequency and Percentage Relative Frequency of each class, describe how to draw the Histogram, and find the Mean and Variance of the data. Class Boundaries: 5-10, 10-15, 15-20, 20-25, 25-30, 30-35; Frequencies: 3, 8, 12, 15, 4, 1.
Topic: Core Subjective Topics
Total frequency N = 3 + 8 + 12 + 15 + 4 + 1 = 43. Class | Mid Point (x) | f | Relative Frequency (f/N) | % Relative Frequency 5-10 | 7.5 | 3 | 0.070 | 6.98% 10-15 | 12.5 | 8 | 0.186 | 18.60% 15-20 | 17.5 | 12 | 0.279 | 27.91% 20-25 | 22.5 | 15 | 0.349 | 34.88% 25-30 | 27.5 | 4 | 0.093 | 9.30% 30-35 | 32.5 | 1 | 0.023 | 2.33% Mid Point = (lower boundary + upper boundary) / 2, e.g. (5 + 10)/2 = 7.5. Histogram: In Excel, enter the class boundaries and frequencies, select the data, then Insert > Charts > Column chart (with gap width set to zero). Class boundaries are marked on the horizontal axis and frequencies on the vertical axis; the touching bars show that the classes are continuous. Mean = Sum of (f x Mid Point) / N = (22.5 + 100 + 210 + 337.5 + 110 + 32.5) / 43 = 812.5 / 43 = 18.90 (approx.). In Excel the same result is obtained by computing SUMPRODUCT of frequencies and midpoints divided by SUM of frequencies. Variance = Sum of f(x - Mean)^2 / N = 1416.28 / 43 = 32.94 (approx.), so the standard deviation is 5.74 (approx.).
-
Midterm Paper (Spring 2019): The average scores of school students on 20 days are: 273, 281, 250, 241, 250, 266, 272, 317, 266, 309, 224, 227, 238, 284, 266, 250, 309, 250, 305, 302. Find the MEAN, MODE, LOWEST SCORE, HIGHEST SCORE and STANDARD DEVIATION, writing down all the steps performed in Excel.
Topic: Core Subjective Topics
Steps in Excel: (1) Type the dates in one column and the 20 scores in the next column, e.g. scores in B2:B21. (2) Click an empty cell and apply each function below. (3) Write the results with labels. MEAN = AVERAGE(B2:B21) = 5380 / 20 = 269. MODE = MODE(B2:B21) = 250 (it occurs 4 times, more than any other score). LOWEST SCORE = MIN(B2:B21) = 224. HIGHEST SCORE = MAX(B2:B21) = 317. STANDARD DEVIATION = STDEV(B2:B21) = 28.37 (approx., sample standard deviation). If the 20 days are treated as the whole population, STDEVP gives 27.65.
-
What is SPSS? Name its two main windows and explain the difference between Data View and Variable View.
Topic: Core Subjective Topics
SPSS (Statistical Package for the Social Sciences) is a statistical software package used for data entry, data management and statistical analysis; in this course SPSS 19 is used along with MS Excel 2010. Its two main windows are the Data View and the Variable View, both inside the Data Editor. In Data View the data are displayed like an Excel sheet: rows represent individual cases and columns represent variables, and this is where data are entered and viewed. In Variable View the characteristics of the variables are created and defined: each row represents one variable and each column represents a characteristic of the variable, such as Name, Type, Width, Decimals, Label, Values, Missing, Columns, Align and Measure.
-
State the rules for naming variables in SPSS. Which of the following names are valid and which are invalid: "my age", "roll-no", "age.", "school", "birth_date"? Give reasons.
Topic: Core Subjective Topics
Rules for SPSS variable names: a name must begin with a letter; it may contain letters, digits, and the characters . @ # _ $ after the first character; it must not contain spaces or other special characters such as - or *; it must not end with a full stop (period); it should be unique and within the allowed length. "my age" - INVALID, because it contains a space. "roll-no" - INVALID, because the hyphen (-) is not allowed. "age." - INVALID, because a variable name must not end with a period. "school" - VALID. "birth_date" - VALID, because the underscore is allowed.
-
How is a variable name different from a variable label in SPSS?
Topic: Core Subjective Topics
A variable name is the short identifier of the variable used in the Data View column heading and in commands; it is shorter and less detailed, must follow the SPSS naming rules (no spaces, no special characters, cannot end with a period). A variable label is a longer, descriptive title for the same variable that can contain spaces and full wording, for example the name "marks" may carry the label "Marks obtained in the final examination". Labels appear in the output to make the results easy to understand, while names are used to refer to the variable in analysis.
-
Write the steps for bringing (importing) data from an Excel file into SPSS.
Topic: Core Subjective Topics
Bringing data from Excel into SPSS is called importing the data. Steps: (1) Open SPSS and choose File > Open > Data. (2) In the Files of type box, select Excel (*.xls, *.xlsx). (3) Browse and select the Excel file and click Open. (4) In the Opening Excel Data Source dialog, select the worksheet, and tick "Read variable names from the first row of data" if the first row of the Excel sheet contains variable names. (5) Click OK. The data appear in the Data View of SPSS, and the file can then be saved in SPSS format with the .sav extension.
-
Define mean, median and mode. For the data 12, 15, 15, 18, 20, 15, 22, calculate all three and state which measure is preferred when the data contain extreme values.
Topic: Core Subjective Topics
Mean is the sum of all values divided by the number of values. Median is the middle (midpoint) value of the ranked (ordered) data. Mode is the most frequently observed value. Arranged data: 12, 15, 15, 15, 18, 20, 22 (n = 7). Mean = (12 + 15 + 15 + 18 + 20 + 15 + 22) / 7 = 117 / 7 = 16.71 (approx.). Median = 4th value of the ranked data = 15. Mode = 15 (occurs 3 times). In Excel these are obtained with =AVERAGE(), =MEDIAN() and =MODE(). When the data contain extreme values (outliers), the median is preferred because the mean is pulled towards the extreme values while the median is not affected by them.
-
Define range, variance and standard deviation. Calculate the range and the sample standard deviation for the data 4, 8, 6, 10, 7, and name the Excel functions used for these measures.
Topic: Core Subjective Topics
Range is the difference between the largest and smallest values. Variance is the average of the squared deviations of the values from their mean. Standard deviation is the square root of the variance and is expressed in the same units as the data. For 4, 8, 6, 10, 7: Range = 10 - 4 = 6. Mean = 35 / 5 = 7. Deviations from the mean: -3, 1, -1, 3, 0; squared deviations: 9, 1, 1, 9, 0; sum = 20. Sample variance = 20 / (5 - 1) = 5, so sample standard deviation = sqrt(5) = 2.24 (approx.). Excel functions: =MAX() - =MIN() for range, =VAR() for sample variance and =STDEV() for sample standard deviation.
-
Write down the steps for constructing a frequency distribution from raw data.
Topic: Core Subjective Topics
(1) Sort the raw data in ascending order (ordered array). (2) Find the range = largest value - smallest value. (3) Decide the number of class groupings; use at least 5 but no more than 15 classes. (4) Compute the class width = range / number of classes and round it up to a convenient number. (5) Set the class boundaries so that they never overlap and every value falls in exactly one class. (6) Tally the observations in each class to get the class frequencies. (7) If required, also compute the relative frequency (class frequency / total frequency), percentage relative frequency and cumulative frequency for each class.
-
Differentiate between a histogram and a bar chart.
Topic: Core Subjective Topics
A histogram is used for grouped numerical (continuous) data: the classes are marked on the horizontal axis, frequencies on the vertical axis, and the bars touch each other because there is no gap between consecutive classes. A bar chart is used for categorical data: each bar represents a category, the height of the bar shows the frequency (or percentage) of that category, and the bars are separated by equal gaps because the categories are distinct. In Excel both are drawn from the Insert > Charts menu, but the histogram requires the gap width between bars to be reduced to zero.
-
What is a control chart? Describe its components and explain the difference between common causes and special causes of variation.
Topic: Core Subjective Topics
A control chart is a statistical process control (SPC) tool, originally developed by Walter A. Shewhart, used to monitor variation in the characteristics of a product or service over time. Its components are: a central line (CL) representing the process average, an upper control limit (UCL) and a lower control limit (LCL), usually placed at +/- 3 sigma from the central line, and the sample values plotted in time order. Common causes of variation are the natural, random causes always present in a stable process; the plotted points stay within the control limits. Special causes are assignable disturbances; when a point falls outside the control limits or an unusual pattern appears, a special cause is indicated and the process is considered out of control and needs investigation.
-
What is correlation? Interpret the values r = 0.92, r = -0.85, r = 0.05 and r = 0. Also write the Excel function used to compute the correlation coefficient.
Topic: Core Subjective Topics
Correlation analysis measures the strength of the linear association (relationship) between two variables; it is concerned only with the strength of the relationship and does not imply any causal effect. The correlation coefficient r lies between -1 and +1. r = 0.92: a very strong positive linear relationship - as one variable increases, the other also increases. r = -0.85: a strong negative linear relationship - as one variable increases, the other decreases. r = 0.05: an almost negligible (very weak) positive linear relationship. r = 0: no linear relationship between the variables. In Excel the correlation coefficient between two ranges is computed with =CORREL(range1, range2), and the relationship is first inspected visually through a scatter plot (Insert > Charts > Scatter).
-
In the fitted regression line Y = 12 + 3.5X, interpret the intercept and the slope. Also state what the least squares method minimizes.
Topic: Core Subjective Topics
In the regression equation Y = a + bX, the intercept a = 12 is the estimated value of Y when X = 0. The slope b = 3.5 means that for every one-unit increase in X, the estimated value of Y increases by 3.5 units on average. The least squares method fits the line by minimizing the sum of the squared residuals, where a residual is the difference between an observed value of Y and the value predicted by the line for the same X. In Excel the slope and intercept of the regression line are obtained with =SLOPE() and =INTERCEPT().
-
Write down the steps of a hypothesis test.
Topic: Core Subjective Topics
(1) State the null hypothesis H0 and the alternative hypothesis H1 from the claim to be tested. (2) Choose the significance level alpha (commonly 0.05 or 0.01). (3) Select the appropriate test statistic (Z, t or F) according to the data and what is known about the population. (4) Compute the value of the test statistic from the sample data, and find the critical value or the p-value. (5) Apply the decision rule: reject H0 if the test statistic falls in the rejection region, equivalently if the p-value is less than alpha; otherwise fail to reject H0. (6) State the conclusion in the words of the original problem.
-
Differentiate between Type I and Type II errors with the help of examples.
Topic: Core Subjective Topics
A Type I error is committed when we reject the null hypothesis H0 although it is actually true; its probability is the significance level alpha. Example: declaring a medicine effective (rejecting "no effect") when in reality it has no effect. A Type II error is committed when we fail to reject H0 although it is actually false; its probability is denoted by beta. Example: concluding that a medicine has no effect when in reality it is effective. Decreasing alpha reduces the chance of a Type I error but increases the chance of a Type II error for the same sample size; increasing the sample size reduces both.
-
When is a Z-test used and when is a t-test used? Also state the purpose of the F-test.
Topic: Core Subjective Topics
A Z-test is used for testing a mean when the population standard deviation is known (and the sample is large or the population is normal); the test statistic follows the standard normal distribution. A t-test is used when the population standard deviation is unknown and is replaced by the sample standard deviation, especially with small samples; the test statistic follows the t-distribution with n - 1 degrees of freedom for a one-sample test. The F-test is used to compare two variances (for example, to check whether two populations have equal variances); its statistic is the ratio of the two sample variances and follows the F-distribution.
-
Write short notes on the following Excel terms: Workbook, Worksheet, Cell, Formula Bar and Name Box.
Topic: Core Subjective Topics
Workbook: the Excel file itself, which may contain many worksheets. Worksheet: a single spreadsheet within a workbook, organized into columns (labeled with letters) and rows (labeled with numbers); worksheets can be renamed, given coloured tabs and reordered. Cell: the intersection of a row and a column; it may contain a label, a value or a formula, and it is identified first by its column letter and then by its row number, e.g. D2. Formula Bar: the bar that displays the contents (value or formula) of the active cell and is used to enter or edit them. Name Box: the box that shows the address (reference) of the active cell; it can also be used to jump to a named cell or range.
-
Write the steps to create a chart (graph) in MS Excel.
Topic: Core Subjective Topics
(1) Enter and arrange the data in rows/columns with proper labels. (2) Select (highlight) the data range including the labels. (3) Go to the Insert tab on the Ribbon and choose the required chart type from the Charts group, e.g. Column, Bar, Pie or Scatter. (4) The chart appears on the worksheet; use the Chart Tools (Design and Format tabs) to add a chart title, axis titles and data labels. (5) Edit the chart as needed, for example setting the gap width to zero for a histogram, and move or resize it to the required position.
-
Which procedure is used in SPSS to obtain the mean, median, mode and standard deviation of a variable? Write its steps.
Topic: Core Subjective Topics
These statistics are obtained through the Frequencies procedure (Descriptives can also be used for mean and standard deviation). Steps: (1) Enter or import the data in the Data View. (2) Click Analyze > Descriptive Statistics > Frequencies. (3) Move the required variable(s) into the Variable(s) box. (4) Click the Statistics button and tick Mean, Median, Mode and Standard Deviation (Quartiles etc. if needed), then Continue. (5) Click OK. The results, including the statistics table, appear in the Output Viewer, and the output file can be saved with the .spv extension.
-
What is a frequency distribution? Using the data of daily high temperatures 24, 35, 17, 21, 24, 37, 26, 46, 58, 30, 32, 13, 12, 38, 41, 43, 44, 27, 53, 27, construct a frequency distribution with classes 10 but less than 20, 20 but less than 30, 30 but less than 40, 40 but less than 50, 50 but less than 60.
Topic: Core Subjective Topics
A frequency distribution is a table that organizes raw data into classes (groupings) together with the number of observations (frequency) falling in each class, making the data easy to understand and use for decision making. First sort the data: 12, 13, 17, 21, 24, 24, 26, 27, 27, 30, 32, 35, 37, 38, 41, 43, 44, 46, 53, 58. The range is 58 - 12 = 46. Class | Frequency | Relative Frequency | Percentage 10 but less than 20 | 3 (12, 13, 17) | 0.15 | 15% 20 but less than 30 | 6 (21, 24, 24, 26, 27, 27) | 0.30 | 30% 30 but less than 40 | 5 (30, 32, 35, 37, 38) | 0.25 | 25% 40 but less than 50 | 4 (41, 43, 44, 46) | 0.20 | 20% 50 but less than 60 | 2 (53, 58) | 0.10 | 10% Total frequency = 20, and the percentages add to 100%.