shweta singh commited on
Commit
1e2d41b
·
verified ·
1 Parent(s): 85b5da6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +76 -1
app.py CHANGED
@@ -1,3 +1,78 @@
1
  import streamlit as st
2
  import numpy as np
3
- import pandas as pd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
  import numpy as np
3
+ import pandas as pd
4
+
5
+ st.title("**Introduction to Statistics**")
6
+ st.subheader("What is statistics ?")
7
+ st.write("statistics is a huge field where in this field we are going to deal with data like ( how to perform collecting data,interpreting data, analyzing data,structuring data).")
8
+
9
+ st.subheader("**Types of Statistics**")
10
+ st.write("There are two types of statistcs.")
11
+ st.write("1. Descriptive Statistic")
12
+ st.write("2. Inferential Statistic")
13
+
14
+ st.subheader("**1. Descriptive Statistics**")
15
+ st.write("Descriptive statistics involves describing,summarizing and organizing the data so it can be easily understood.example- classroom of maths students (20).marks of the first sem (84,86,78,72,75,65,80,81,45,87,67,54).whar is the average marks of the students in the class?")
16
+
17
+ st.subheader("**Population**")
18
+ st.write("**Population** - Population data is a whole and complete set.The measurable characteristic of the population, like the mean or standard deviation, is known as the parameter.")
19
+
20
+ st.subheader("**Sample**")
21
+ st.write("**Sample** - The sample is a subset of the population that is derived using sampling.The measurable characteristic of the sample is called a statistic.")
22
+
23
+ st.subheader("**2. Inferential Statistcs**")
24
+ st.write("Inferential statistics where is we used the data that we have measured to form conclusions.example- Are the marks of the students of this classroom simlar to the age of the maths classroom in the college? ")
25
+
26
+ st.subheader("**Types of Descriptive statistics**")
27
+ st.write("There are three types of Descriptive statistics. 1)Distribution 2) Measures of central tendency 3) Measures of Dispersion")
28
+
29
+ st.subheader("**Measures of Central Tendency**")
30
+ st.write("Measures of central tendency estimate the center, or average, of a data set. The mean, median and mode are 3 ways of finding the average.")
31
+
32
+ st.subheader("**Mean**")
33
+ st.write("The mean, or M, is the most commonly used method for finding the average.To find the mean, simply add up all response values and divide the sum by the total number of responses. The total number of responses or observations is called N.")
34
+
35
+ st.header("**There are three types of Mean")
36
+ st.write("**Arithmetic Mean** - It is the sum of the sampled values divided by thenumber of items in the sample.")
37
+ st.write("**Geometric Mean** - It is an average that is useful for sets of positivenumbers that are interpreted according to their product.")
38
+ st.write("**Harmonic Mean** - The harmonic mean is a numerical average calculated by dividing the number of observations by the reciprocal of each number.")
39
+
40
+ st.subheader("**Median**")
41
+ st.write("The median is the value that’s exactly in the middle of a data set.To find the median, order each response value from the smallest to the biggest. Then, the median is the number in the middle. If there are two numbers in the middle, find their mean.")
42
+
43
+ st.subheader("**Mode**")
44
+ st.write("The mode is the simply the most popular or most frequent response value. A data set can have no mode, one mode, or more than one mode.To find the mode, order your data set from lowest to highest and find the response that occurs most frequently.")
45
+
46
+ st.subheader("**Measures Of Dispersion**")
47
+ st.write("Measures of variability give you a sense of how spread out the response values are. The range, standard deviation and variance each reflect different aspects of spread.")
48
+
49
+ st.header("**There are two types of dispersion**")
50
+ st.subheader("Absolute Measure of dispersion")
51
+ st.subheader("Relative Measure of dispersion")
52
+
53
+ st.write("**Absolute** - he measures of dispersion that are measured and expressed in the units of data themselves are called Absolute Measure of Dispersion. For example – Meters, Dollars, Kg, etc.")
54
+
55
+ st.subheader("absolute measures of dispersion are: ")
56
+ st.write("**Range** - It is defined as the difference between the largest and the smallest value in the distribution.")
57
+
58
+ st.write("**Mean Deviation** - It is the arithmetic mean of the difference between the values and their mean.")
59
+
60
+ st.write("**Standard Deviation** - It is the square root of the arithmetic average of the square of the deviations measured from the mean.")
61
+
62
+ st.write("**Variance** - It is defined as the average of the square deviation from the mean of the given data set.")
63
+
64
+ st.write("**Quartile Deviation** - It is defined as half of the difference between the third quartile and the first quartile in a given data set.")
65
+
66
+ st.write("**Interquartile Range** - The difference between upper(Q3 ) and lower(Q1) quartile is called Interterquartile Range. Its formula is given as Q3 – Q1.")
67
+
68
+
69
+ st.write("**Relative** - We use relative measures of dispersion to measure the two quantities that have different units to get a better idea about the scattering of the data.")
70
+
71
+ st.subheader("Relative measures of dispersion:")
72
+ st.write("**Coefficient of Range** - It is defined as the ratio of the difference between the highest and lowest value in a data set to the sum of the highest and lowest value.")
73
+
74
+ st.write("**Coefficient of Variation** - It is defined as the ratio of the standard deviation to the mean of the data set. We use percentages to express the coefficient of variation.")
75
+
76
+ st.write("**Coefficient of Mean Deviation**- It is defined as the ratio of the mean deviation to the value of the central point of the data set.")
77
+
78
+ st.write("**Coefficient of Quartile Deviation** - It is defined as the ratio of the difference between the third quartile and the first quartile to the sum of the third and first quartiles.")