Managerial Computing Lab Manual
Managerial Computing Lab Manual
SPSS provides a user-friendly graphical interface that allows users to perform a wide range of
tasks, including:
➢ Data Entry and Management: SPSS facilitates the entry of data from various sources,
such as surveys, questionnaires, or databases. It offers tools for data cleaning,
transformation, and organization.
➢ Descriptive Statistics: Users can generate summary statistics, such as means, medians,
standard deviations, and frequencies, to gain an initial understanding of their data.
➢ Inferential Statistics: SPSS offers a broad array of statistical tests to analyze relationships
between variables, compare groups, and make predictions. These tests include t-tests,
ANOVA, chi-square tests, correlation analysis, regression analysis, and more.
➢ Data Visualization: The software enables the creation of various types of graphs and
charts, such as bar charts, histograms, scatterplots, and pie charts. These visualizations
help to present data patterns and trends.
➢ Reporting: SPSS allows users to generate customized reports that include both statistical
results and visualizations. These reports can be exported to different formats for sharing
with others.
➢ Advanced Analysis: Beyond basic statistics, SPSS can handle more complex analyses
such as factor analysis, cluster analysis, and survival analysis.
➢ Integration with Other Software: SPSS can import and export data in various formats,
making it compatible with other data analysis tools and statistical software.
➢ Syntax Language: For advanced users, SPSS provides a syntax language that allows you
to write scripts to automate repetitive tasks and perform complex analyses. This is
particularly useful for reproducibility and efficiency.
SPSS has two main views to manage and manipulate data: Data View and Variable View.
Data View:
The Data View is where you can see your actual data. Each row in the view represents a case (or
observation), and each column represents a variable. In this view, you can enter or edit data, as
well as sort and filter cases. You can also select which variables to include in your analysis.
Variable View:
The Variable View is where you define and modify variables in your dataset. In this view, you
can specify the variable name, label, type, and format. You can also assign values and missing
values, define variables as categorical or continuous, and specify measurement level (nominal,
ordinal, interval, or ratio). Additionally, you can specify variable role, such as whether it is an
independent or dependent variable, or a factor variable.
Some common terms in Variable View include:
✓ Name: The variable name is used to refer to the variable in syntax or analysis commands.
Variable names must begin with a letter and can contain up to 64 characters.
✓ Label: The label is a descriptive name for the variable, which can help to identify its
meaning and purpose. Labels can contain up to 255 characters.
✓ Type: The variable type defines how the data is stored and analyzed. SPSS supports
various types, including numeric, string, date, and time.
✓ Width: The width is the maximum number of characters that can be stored for a variable.
✓ Decimals: Decimals specify how many decimal places to display for numeric variables.
✓ Values: Values define the possible values for categorical variables. Each value is
associated with a label, which provides a descriptive name for the value.
✓ Missing values: Missing values indicate that data is missing for a variable. You can
define various types of missing values, such as system missing, user-defined missing, or
range of missing values.
By using both views effectively, you can manage and manipulate your data effectively in SPSS.
Experiment 2: Scatter Plot
A scatter plot is a type of data visualization that uses individual data points to display the
relationship between two continuous variables. It helps you understand the correlation or trend
between these variables. Each data point on the scatter plot represents the values of both
variables for a single observation. In SPSS, you can create scatter plots using the "Graphs" menu
and the "Legacy Dialogs" option (as of my last update in September 2021). Here's how you can
create a scatter plot using SPSS:
✓ Navigate to the Graphs Menu: Go to "Graphs" in the main menu at the top of the SPSS
window.
✓ Select Legacy Dialogs: From the "Graphs" menu, choose "Legacy Dialogs."
✓ Specify Variables: In the "Define Simple Scatter plot" dialog box, you'll see two sections:
"Y-Axis" and "X-Axis." In the "Y-Axis" section, select the dependent variable (the one
you want to plot on the vertical axis). In the "X-Axis" section, select the independent
variable (the one you want to plot on the horizontal axis).
✓ Customize Options (Optional): You can customize the appearance of the scatter plot by
clicking the "Options" button in the "Define Simple Scatter plot" dialog. Here, you can
choose to include labels, reference lines, fit lines, etc.
✓ Create the Scatter Plot: After selecting your variables and optionally customizing the
options, click "OK" to create the scatter plot.
✓ View and Save: The scatter plot will be generated in a separate output window. You can
view it, modify it further if needed, and then save it in different formats (e.g., image files,
PDF) for use in reports or presentations.
Experiment 2.1: The table shows the charge (£) by plumbers for jobs of different duration
(hours). Plot the data on the scatter Plot. (Excel & SPSS)
2.1.b (SPSS)
Experiment 2.2: The table below shows information about the monthly rent of an
apartment and the distance of the apartment from a city centre, in miles. Plot the data on
the scatter Plot. (Excel & SPSS)
Solution 2.2:
2.2.a (Excel)
2.2.b (SPSS)
(SPSS Generated Solution)
(Scatter Plot: SPSS)
Experiment 3: Calculate Karl Pearson's coefficient of correlation for the following series:
Price (in ) : 10,11, 12, 13, 14, 15, 16, 17, 18, 19
Demand (in kgs): 420, 410, 400, 310, 280,260, 240, 210, 210, 200
(Excel Generated Solution)
(Excel Generated Solution)
(SPSS)
Correlations
N 10 10
N 10 10
Characteristics of Hypothesis:
between variables.
✓ The hypothesis must be specific and should have scope for conducting more tests.
✓ The way of explanation of the hypothesis must be very simple and it should also be
understood that the simplicity of the hypothesis is not related to its significance.
Parametric and nonparametric tests are two types of statistical tests used to analyze data and
make inferences about populations. The choice between these two types of tests depends on the
characteristics of your data and the assumptions you're willing to make. Here's an overview of
both:
Parametric Tests:
Parametric tests make certain assumptions about the underlying distribution of the data, typically
assuming that the data follows a specific distribution (usually the normal distribution). These
tests are more powerful when their assumptions are met, but they can be sensitive to violations of
those assumptions.
✓ t-Test: Used to compare means of two groups. There are variations like the independent
way ANOVA is used for a single factor, while two-way ANOVA is used for two factors.
✓ Linear Regression: Assesses the relationship between a dependent variable and one or
✓ Z-test: Similar to the t-test, but used when the population parameters are known and the
Nonparametric Tests:
Nonparametric tests make fewer assumptions about the distribution of the data, and they are
often used when the data does not meet the assumptions of parametric tests. These tests are
generally less powerful but are more robust to deviations from assumptions.
✓ Chi-Square Test: Used for categorical data analysis, such as comparing observed and
distribution.
It's important to choose the right test based on the nature of your data and the research question
you're trying to answer. If your data meet the assumptions of parametric tests, they generally
provide more statistical power. However, if your data violate these assumptions or if you're
dealing with non-numerical data, nonparametric tests are often more appropriate. Always
consider the context and characteristics of your data before selecting a test.
(Applying Hypothesis Testing in SPSS)
(Applying Non- Parametric Hypothesis Testing in SPSS)
Solution 5: The chi-square (χ²) test is a statistical test used to analyze categorical data and
determine whether the observed distribution of frequencies in different categories is significantly
different from the expected distribution. It's often used to test the association or independence
between categorical variables. The test is based on comparing the observed frequencies in a
contingency table to the frequencies that would be expected under a null hypothesis of no
association or independence.
Under the null hypothesis of independence, you calculate the expected frequencies for each cell
in the contingency table. The expected frequency for a cell is calculated by multiplying the row
total and the column total for that cell and then dividing by the overall total sample size.
Here, the sum is taken over all cells in the contingency table.
Degrees of Freedom:
The degrees of freedom for the chi-square test are calculated as (r - 1) × (c - 1), where r is the
number of rows in the table and c is the number of columns.
Solution 5:
(Excel Generated Solution)
(SPSS Generated Solution)
Result : As the P-value (0.004) is less than the standard alpha value of 0.05 it can be concluded
that the null hypothesis is rejected.
Subject to: Linear constraints, which are inequalities or equations that the variables must satisfy.
Variables: The quantities that you can adjust to optimize the objective function.
Experiment 8: LPP numerical problem write any two from PPT attached.
SEE ATTACHEMENT
SEE ATTACHEMENT