0% found this document useful (0 votes)
40 views

COST Practical New

The document contains descriptions of 12 practical exercises involving importing data from Excel into R and performing statistical analyses including finding the median, mode, standard deviation, variance, Pearson's coefficients of skewness, chi-square tests, linear regression, and trend line analysis. For each practical, the student is asked to enter data in Excel, import it into R and write an R program to conduct the required statistical analysis.

Uploaded by

dharneriya31
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

COST Practical New

The document contains descriptions of 12 practical exercises involving importing data from Excel into R and performing statistical analyses including finding the median, mode, standard deviation, variance, Pearson's coefficients of skewness, chi-square tests, linear regression, and trend line analysis. For each practical, the student is asked to enter data in Excel, import it into R and write an R program to conduct the required statistical analysis.

Uploaded by

dharneriya31
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Practical 1:

Output:
Practical 3:

Output:

Practical No: 4
Enter the following details of wages of 65 employees at the ABC Ltd. In Excel:
Wages Number of Employees
25000-25999 8
26000-26999 10
27000-27999 16
28000-28999 14
29000-29999 10
30000-30999 5
31000-31999 2
Total 65
Import the data in R and find the median wage and mode wage of the 65 employees.

Output: -
Practical No: 5
Enter the following details of wages of 65 employees at the ABC Ltd. In Excel:
Wages Number of Employees
25000-25999 8
26000-26999 10
27000-27999 16
28000-28999 14
29000-29999 10
30000-30999 5
31000-31999 2
Total 65
Import the data in R and find the median wage and mode wage of the 65 employees.
Output: -
Practical No: 6
Enter the following data sets in Excel:
a) 12, 6, 7, 3, 15, 10, 18, 5 b) 9, 3, 8, 8, 9, 8, 9, 18.
Import the data in R and find standard deviation and variance of the data sets using R
OUTPUT: -
Practical No: 7
Enter the following table of three distributions f1, f2 and f3 for the variable X in
EXCEL.
X f1 f2 f3
0 10 1 1
1 5 2 2
2 2 14 2
3 2 2 5
4 1 1 10
Import the data in R and write and program to find Pearson’s first and second
coefficients of skewness.
OUTPUT: -
Practical No: 8
Many casinos use card-dealing machines to deal cards at random. Occasionally, the machine is
tested to ensure an equal likelihood of dealing for each suit. To conduct the test, 1,500 cards are
dealt from the machine, while the number of cards in each suit is counted. Theoretically, 375
cards should be dealt from each suit. But this is not the case as shown in the following table:
Spades Diamonds Clubs Hearts
Observed 402 358 273 467
Expected 375 375 375 375
Enter the data in Excel. Import the date in R and write a program using chi-square test to
determine if the discrepancies are significant. If the discrepancies are significant, then the game
would not be fair.
OUTPUT: -

Practical No: 9
A business owner had been working to improve employee relations in his company. He predicted
that he met his goal of increasing employee satisfaction from 65% to 80%. Employees from four
departments were asked if they were satisfied with the working conditions of the company. The
results are shown in the following table:
Finance Sales HR Technology
Satisfied 12 38 5 8
Dissatisfied 7 19 3 1
Total 19 57 8 9
Enter the data in Excel. Import the date from Excel to R and write a program suing chi-square
test to determine whether the results support or reject the business owner's prediction.
OUTPUT: -
Practical No: 10
Suppose the number of games in which major league baseball players play during their careers is
normally distributed with mean equal to 1500 games and standard deviation equal to 350 games.
Use R to solve the following problems.
(a) What percentage play in fewer than 750 games? (b) What percentage play in more than 2000
games?
(c) Find the 90th percentile for the number of games played during a career.

Output: -

Practical No: 11
Enter the following table which shows the heights(H) to the nearest inch (in) and the weights(W)
to the nearest pound (lb) of a sample of 12 male students drawn at random from the first-year
students at College.
H 70 63 72 60 66 70 74 65 62 67 65 68
W 155 150 180 135 156 168 178 160 132 145 139 152
Import the data in R and write a program to fit a least squares line using a) H as the independent
variable
b) H as dependent variable.
OUTPUT: -
Practical No: 12
Enter the total agricultural exports in millions of dollars in Excel:
Year 2000 2001 2002 2003 2004 2005
Total 51246 53659 53115 59364 61383 62958
Value
Import the data in R and perform the following
(a) Graph the data and show the least-squares regression line. (b) Find and plot the trend line for
the data.
(c) Estimate the value of total agricultural exports in the year 2006.
OUTPUT: -

You might also like