Statistics in Python
Descriptive and Inferential
Martín Samán AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Statistics is the tool
to understand the world, but
it is also the tool for
make the world understand you
Martín Samán AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Types of statistics
Descriptive Inferential
Describe the available data using Make inferences about the population based on
descriptive variables. from the sample data using techniques
of estimation and hypothesis testing.
Martin Samán AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Examples
Descriptive Statistics Inferential Statistics
Calculate the mean, the median, and the mode of the Determine if there is a significant difference in the
grades of a group of students in a grades between two groups of students that
exam. they received different teaching methods.
Calculate the standard deviation and the range of the Estimate the size of a population from a
incomes of a sample of the population. representative sample.
Test the hypothesis that the result of
Calculate the frequency of the results of a
the flipping of a coin is random and is not
coin toss experiment.
biased.
Plot a histogram of the height distribution Estimate the probability of an event occurring in
in a population. function of historical data.
Calculate the correlation between age and level of Identify the relationship between two variables and predict
education in a sample of the population. the value of one variable based on the value of another.
Martín Samán AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Martin Saman AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Some of the most functionalities
important:
Create arrays and matrices
Perform mathematical operations
Apply mathematical functions
[Link] The code is vectorized (C/C++
precompiled and low-level libraries
Perform mathematical calculations and
Numpy allows us to perform calculations more
efficient scientists (arrays and
efficient and fast than with the functions
matrices) basics of Python
Martin Samán AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Practical part
Martin Saman AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Pandas offers two data structures
mainly, Series and DataFrames, which
allow working with data in a manner
organized and efficient
Pandas allows you to manipulate and transform
data easily and quickly, including
[Link] the selection of columns and rows, the
data aggregation, data filtering,
etc
Allows manipulation and analysis Pandas also offers tools for
efficiently data and data cleaning, such as deletion
of missing data, the detection and
quick correction of outliers, the
data normalization, etc
Martin Saman AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Practical part
Martín Samán AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Some of the most functionalities
important:
● Creation of high-quality graphics in
various formats
Support for various types of charts,
[Link] including line graphs, bar charts,
of dispersion, of surface, etc.
Customization of features
Create static visualizations, the graphics, like the color palette,
animated and interactive axis labels, titles, etc.
● Integration with other libraries: Numpy and
Pandas
Martin Samán AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python
Practical part
Martín Samán AEJ ACADEMIC AREA OF SYSTEMS ANALYSIS Statistics in Python