Statistical analysis means investigating trends, patterns, and relationships using quantitative data. It is an important research tool used by scientists, governments, businesses, and other organizations. In this lab we are going do lot of analysis on data sets using Python and R.

Pre Requisites:

- The students must have knowledge on the basics of Mathematics Syllabus

Course Objectives:

- To provide an overview of a new language R used for data science.
- To familiarize students with how various statistics like mean median etc. can be collected for data exploration in PYTHON
- To provide a solid undergraduate foundation in both probability theory and mathematical statistics and at the same time provides an indication of the relevance and importance of the theory in solving practical problems in the real world

**Experiment 1:** Basics of PYTHON Programming

- Download and install PYTHON ID
- Write a program to illustrate basic Arithmetic in PYTHON
- Write a program to illustrate Variable assignment in PYTHON
- Write a program to illustrate data types in PYTHON

**Experiment 2:** Decision making, Looping Statement and Functions

- Write a program to illustrate if-else-else if in PYTHON
- Write a Program to illustrate While and For loops in PYTHON
- Write a program to demonstrate working with functions in PYTHON.

**Experiment 3**: Data Structures in PYTHON

- Write a program to demonstrate working with Vectors, Lists in PYTHON
- Write a program to demonstrate working with arrays and Matrix in PYTHON
- Write a program to demonstrate working with Data Frames in PYTHON
- Write a program to demonstrate Data Frames sorting and ranking in PYTHON

**Experiment 4**: Packages & Data Reshaping

- Write a program to demonstrate working with installing and loading packages in PYTHON
- Write a programs to demonstrate working with Data Reshaping in PYTHON

**Experiment 5:** Functions in Python

- Develop a python program to calculate the Greatest Common Divisor for two numbers. Create two separate procedures (functions) to illustrate the iterative and recursive solutions.
- Develop a python program to calculate the next number in the Fibonacci series for a given number (which may or may not be in the Fibonacci series).
- Develop a python program to calculate the square root of (N+1)th Prime number for a given number N using binary search with a precision of upto 7 decimal places.(Avoid built-in square root function)
- Design a Python program to determine the difference in days for two dates in YYYY:MM:DD format (0 <= YYYY <= 9999, 1 <= MM <= 12, 1 <= DD <= 31) following the leap year rules.

**Experiment 6: **Text file processing & Basic Statistics

1. Develop Python program to generate count of words in a text file.

2.Write a program in Python with functions to calculate the following for comma-separated numbers in a text file(.txt)

a) 3rd Maximum number

b) 9th Minimum number

c) Total Unique Count

d )Mean

e) Standard Deviation

f) Number(s) with maximum frequency

g) Number(s) with minimum frequency

Notes:- First three bits a,b,c solutions are in a single program

**Experiment 7**: Exploring the Numpy library for multi-dimensional array processing

1.Develop programs in Python to implement the following in Numpy

a.Array slicing, reshaping, concatenation and splitting

b.Universal functions in Numpy

c.Aggregations

d.Broadcasting

e.Fast sorting**Experiment 8:** Data cleaning and processing with Pandas

a) Implementing and querying the Series data structure

b) Implementing and querying the Data Frame data structure

c) Merge two different Data Frames

**Experiment 9:** Advanced Data Processing and Transformation-Implement the following using the Pandas library

**Experiment 10:**Data Interfaces

- Write a program to demonstrate following operations on the given datasets.

2) Data Description

**Experiment 11:**Data Visualization-I in PYTHON

- Write programs to demonstrate the different plots like Line Chart, Bar Chart, Histogram, Pie Chart, Stacked Bar Chart, Scatter Plot, Box Plot, Heat Map by loading the real-time data.
- Write programs to demonstrate to create subplots.

**Experiment 12**: Data Visualization-II in PYTHON

- Write programs to illustrate the different plotting data distributions like, Univariate Distributions, Bivariate Distributions.
- Write programs to demonstrate plotting Categorical and Time-Series Data.

**Experiment 13:**Probability Distributions

- Generate and Visualize Discrete and continuous distributions using the statistical environment.
- Demonstration of normal, binomial and Poisson distributions.
- Students are expected to generate artificial data using and explore various distribution and its properties. Various parameter changes may be studied.

**Experiment 14**: Building Confidence in Confidence Intervals

- Populations Versus Samples
- Large Sample Confidence Intervals
- Simulating Data Sets
- Evaluating the Coverage of Confidence Intervals

**Experiment 15**: Perform Tests of Hypotheses

- How to perform tests of hypotheses about the mean when the variance is known.
- How to compute the p-value.
- Explore the connection between the critical region, the test statistic, and the p-value

**Experiment 16**: Regression

- Write a program to demonstrate line regression in PYTHON for the given dataset by following the below steps.

1.Reading and Understanding the Data

2.Hypothesis Testing in Linear Regression

3.Building a Linear Model

4.Residual Analysis and Predictions

## 0 comments:

## Post a Comment

Note: only a member of this blog may post a comment.