Sas Teacher's Guide
Sas Teacher's Guide
Sas Teacher's Guide
AND
ANALYTICS
TEACHER’S
GUIDE
EXPERIMENT -1
AIM: To prepare a close/open ended hand written questionnaire containing 25 questions.
PURPOSE: A questionnaire can be helpful for collecting data and analyse it.
STRUCTURE:
• Interpretation of the language should be same for all the questions. It means language
should be concise.
• Language should be clear and straight forward.
• Questions should not be long, as it bores the respondents.
• Avoid phrases and expressions that are abstract.
• Questions and statements of leading character-ones that put replies into the mouth of
the respondent should be guarded against.
• Units of questions should be precisely stated or defined in order to ensure proper
orientation of respondent.
• Subjective words such as ‘bad’, ‘good’, ‘fair’ and the like do not lend themselves
either to quantitative or qualitative and as such should be avoided.
• No single question should deal with more than one issue and as such the principle of
one question, one issue should be followed.
• Vocabulary employed in the questions should be appropriate to the background of the
respondents.
• Questions should be so worded that ego of the respondents is not injured in any way.
• Complex questions that require the respondent to go through several steps of
reasoning before answering are undesirable and as such should be avoided.
• Questions on controversial issues should be broken down into components.
A closed ended questionnaire with the problem statement - potential involvement of a person
with drugs not including alcoholic beverages is for your reference.
****************************
Name: ……………………………….. Date:
…………………
Please answer every question by ticking your response. If you have difficulty with a
statement, then choose the response that is mostly right.
1. Have you used drugs other than those required for medical reasons? YES
NO
2. Have you abused prescription drugs? YES
NO
3. Do you abuse more than one drug at a time? YES
NO
4. Can you get through a week without using drugs? YES
NO
5. Can you stop using drugs at any time you want? YES
NO
6. Have you had blackouts or flashbacks as a result of drug use? YES
NO
7. Do you feel guilty of drug use? YES
NO
8. Does your parents (or spouse) ever complain about your involvement with drugs?
YES NO
9. Has drug use created problems with you and your parents or spouse? YES
NO
10. Have you lost friends because of your use of drugs? YES
NO
11. Have you neglected your family because of your drug use? YES
NO
12. Have you been in trouble at work because of your drug use? YES
NO
13. Have you lost your job because of drug use? YES
NO
14. Have you gotten into fights when under the influence of drugs? YES
NO
15. Have you engaged in illegal activities in order to obtain drugs? YES
NO
16. Have you been arrested for possession of illegal drugs? YES
NO
17. Have you experienced withdrawal symptoms? YES
NO
18. Have you had medical problems as a result of drug use? YES
NO
19. Have you gone to anyone for help for a drug problem? YES
NO
20. Have you been involved in a treatment problem specifically related to drug use?
YES NO
21. Do you feel anxious when you use drugs? YES
NO
22. Do you feel comfortable post drug use? YES
NO
23. Did you start drug use for fun? YES
NO
24. Do you take drugs in more dosages? YES
NO
25. Will be consciuos when you drugs? YES
NO
EXPERIMENT -2
AIM: To transform a questionnaire into a Google form for a well-defined problem statement.
PURPOSE: A questionnaire in the form of Google forms helps to gather data by online
survey.
STEPS INVOVLED: The reference questionnaire in experiment 1 is taken to be transformed
into Google form. The following are the steps involved in creating the Google form.
• Login into your email
• Click on New
In the first movie name the text is arrange for proper text as shown above
Mistakes are fixed in the first movie and the auto format is used to format the
rest
Now the data set is arranged according to the priority
This is the best practice to make the data look identical.
➢ In the example below the dataset consists of 50 passengers and their ages who
travelled in the Titanic ship. Some cells in age column are empty. The logical
test (IF) is used to fill the missing values in those cells.
PURPOSE: Tabulation makes the data brief. Therefore, it can be easily presented in the form
of graphs.
STEPS INVOVLED: The following are the steps for tabulating data in Excel spread sheet.
• Gather the ungroup data. For instance
The data set consists of 50 student marks in Mathematics in a class.
Marks Scored
47 44 49 46 13
21 44 36 22 5
31 11 40 26 8
1 29 33 25 47
21 11 16 45 2
41 11 19 9 48
9 29 2 11 11
33 25 23 21 7
16 16 3 46 17
15 32 39 25 49
•
The data in excel spread sheet is as follows
PURPOSE: The data in excel spread sheet will be helpful for collecting data set and
finding relative frequency distribution in charts.
STEPS INVOLVED:
Step1: Tabulate the data which has been gathered.
Inference:
EXPERIMENT -7
AIM: To conduct survey on favorite fruit of 100 persons using excel spread sheet and to plot
bar graph for the collected data.
PURPOSE: Bar graphs have been in widespread use everywhere from textbooks to
newspapers, most audiences understand how to read a bar graph and can grasp the
information the graph conveys.
STEPS INVOLVED:
Step 3: Click on insert tab > chart : Modify the chart by adding tittle name, axis tittles and
format data labels.
120
Total Respose,
100
100
orange, 23
80
banana, 18
sapota, 18
grapes, 10
60
kiwi, 12
40
20
0
Count of Fruits
INFERENCE:
EXPERIMENT - 8
AIM: Using Microsoft Excel spread sheet plot pie chart for the data collected from 50 people(
for example, conduct a survey on the smokers with respect to their ages in your locality.
PURPOSE: A pie chart presents data as a simple and easy-to-understand picture. It can be an
effective communication tool for even an uninformed audience, because it represents data
visually as a fractional part of a whole. Readers or audiences see a data comparison at a glance,
enabling them to make an immediate analysis or to understand information quickly.
STEPS INVOLVED:
Step1: Tabulate the collected data as shown below.
Step2: Select the entire tabulated data and Click on insert >> pie-chart.
Step3: Select pie chart of your choice and label the chart.
PIE CHART
8% 20-34
21%
35-49
35% 50-64
18% 65-79
18% 80-94
INFERENCE:
EXPERIMENT - 9
AIM: Using Microsoft Excel spread sheet draw a line graph for the given dataset.
PURPOSE: A line graph, also known as a line chart, is a type of chart used to visualize the
value of something over time.
STEPS INVOLVED:
Step 1: Put each category and the associated value on one line:
INFERENCE:
EXPERIMENT - 10
AIM: To prepare Microsoft excel spread sheet and to draw frequency polygon and frequency
curve for the data.
PURPOSE Frequency polygons are a graphical device for understanding the shapes of
distributions. They serve the same purpose as histograms, but are especially helpful for
comparing sets of data.
STEPS INVOLVED:
Step2: Select the entire data, Click on insert tab>>insert bar chart>> click on the bar
graph>> select format data series>> make gap width 0 to obtain the Histogram
Histogram
65
53
50 48 50
46 46 47
42 44
41 41 39 40 39
Step4: Once the histogram is constructed join the midpoints of each bar by hand, through a
straight line to develop frequency polygon and smooth curve to develop frequency curve.
INFERENCE:
EXPERIMENT - 11
AIM: To Using Microsoft Excel spread sheet construct a box plot for the given dataset.
PURPOSE: Box plot is usually helpful in explanatory data. It indicates the spread out of data
based on 5 number summary namely minimum, Q1 (Quartile 1), Median, Q3 (Quartile 3), and
Maximum.
STEPS INVOLVED:
Step 1: Select the data>>go to recommendations>>all charts>>click on box plot>>enter
EXPERIMENT - 12
AIM: Using Microsoft Excel spread sheet construct a stem and leaf plot for the given dataset.
PURPOSE: A stem-and-leaf display (also known as a stemplot) is a diagram designed to allow
you to quickly assess the distribution of a given dataset. It indicates the recurrence of data.
STEPS INVOLVED:
Step 1: Select the data as show in the figure
Step 4: Enter the right digit of the data as leaf. Hence the obtained is the leaf plot
stem leaf
1 5 9
2 3 3 6 7 8 8
3 0 1 1 1 2 5 6 6
4 0 0 4 5 5
6 0 0 0
INFERENCE:
EXPERIMENT - 13
AIM: Using Microsoft Excel spread sheet find the Mean, Mode and Median for the data
(univariate data) given and also represent them in a Histogram.
PURPOSE: The central tendencies Mean, Mode and Median help us understand that has
already taken place and predict future values as well.
STEPS INVOLVED:
Step 1: Tabulate the collected data as shown below
Step 2: Select the data and enter the syntax for Mean, Mode and Median
Step 3: Press enter to obtain the Mean or Average, Mode and Median
Step 4: Plot the Histogram with the instruction given in previous examples.
INFERENCE:
EXPERIMENT - 14
AIM: To generate a 50 random data sample (even and odd number dataset) using Microsoft
Excel spread sheet and determine the range and Quartiles.
PURPOSE: The quartiles are especially useful when working with data that isn't symmetrically
distributed, or a data set that has outliers.
STEPS INVOLVED:
Step 1: Consider the odd number and even number data set as shown below
Step 2: To obtain the quartiles the syntax are as follows: range and interquartile range to be
found using the formula: Maximum-Minimum and Q3-Q1.
INFERENCE:
EXPERIMENT - 15
AIM: To determine the mean deviation and quartile deviation for the data collected.
PURPOSE: The Mean deviation is an important descriptive statistic that is not frequently
encountered in mathematical statistics. This is essentially because while mean deviation has a
natural intuitive definition as the "mean deviation from the mean," the introduction of the
absolute value makes analytical calculations using this statistic much more complicated than
the standard deviation
STEPS INVOLVED:
Step 1: Find the mean of the data collected as shown in the figure below
INFERENCE:
EXPERIMENT - 16
AIM: To determine the standard deviation for the data collected.
PURPOSE: SD tells us about the shape of our distribution, how close the individual data values
are from the mean value.
STEPS INVOLVED:
Step 1: Select the data gathered for 2 livestock as shown below
Step 2: Type the syntax for standard deviation and determine the same
INFERENCE:
EXPERIMENT - 17
AIM: To determine the variance for the data collected.
PURPOSE: SD and variance tells us about the shape of our distribution, how close the
individual data values are from the mean value.
STEPS INVOLVED:
Step 1: Find the mean and the follow the instruction as shown below
INFERENCE:
EXPERIMENT - 18
AIM: Using Microsoft Excel spread sheet draw a Skewness graph and Kurtosis graph for
randomly generated dataset.
PURPOSE: Skewness and kurtosis is useful in finding the symmetry and peakedness of the
data distribution.
STEPS INVOLVED:
Step 1: For the collected data determine the mean and mode
Step 2: Draw the line graph
Step 3: In the graph, mark the mean and median and claim the negativeness and
positiveness of the graph.
(If the mean appears before the median then declare that the data is negatively skewed
and positively skewed otherwise)
Step 4: To determine the kurtosis enter the syntax (KURT(number1, number2…))
INFERENCE:
EXPERIMENT - 19
AIM: To write a python program to Convert Decimal to Binary, Octal and Hexadecimal.
CODE:
OUTPUT:
EXPERIMENT - 20
AIM: To write a python program to add 2 integers and 2 strings and print the result
CODE:
OUTPUT:
CODE:
EXPERIMENT - 22
AIM: To write a python program to find whether the number is odd or even.
CODE:
OUTPUT
EXPERIMENT - 25
AIM: To write a python program to create a labeled bar graph using matpoltlib. pyplot.
CODE:
OUTPUT:
EXPERIMENT - 26
AIM: To write a python program to create a labeled bar graph using matpoltlib. pyplot.
CODE:
OUTPUT: