Spaces:
Sleeping
Sleeping
Update pages/5_Descriptive Statistics.py
Browse files
pages/5_Descriptive Statistics.py
CHANGED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
st.title(":blue[DESCRIPTIVE STATISTICS]")
|
| 3 |
+
st.caption("***Elevate Your Insights: The Allure of Descriptive Statistics***")
|
| 4 |
+
|
| 5 |
+
st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/U57NME2YT_De7TsnyFPht.png")
|
| 6 |
+
|
| 7 |
+
multi = '''Descriptive Statistics is a branch of statistics which summarizes or describes the entire collected data.
|
| 8 |
+
It focuses on presenting data in a meaningful way through measures and visualizations.
|
| 9 |
+
Descriptive statistics are commonly used in many fields including business, economics to summarize large amounts of data and provide a clear and concise understanding of its key characteristics
|
| 10 |
+
'''
|
| 11 |
+
st.markdown(multi)
|
| 12 |
+
st.markdown('''
|
| 13 |
+
Descriptive statistics are divided into 3 types based on measures:
|
| 14 |
+
|
| 15 |
+
:violet[1. Measures of Central Tendency]
|
| 16 |
+
|
| 17 |
+
:violet[2. Measures of Variability (Dispersion)]
|
| 18 |
+
|
| 19 |
+
:violet[3. Distribution] ''')
|
| 20 |
+
|
| 21 |
+
st.markdown(multi)
|
| 22 |
+
|
| 23 |
+
st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/3yOxh1hYH8zxksyrYo5R7.png")
|
| 24 |
+
|
| 25 |
+
st.header("1.Measures of Central Tendency",divider="red")
|
| 26 |
+
st.markdown('''It is used for measuring central or average value of the data.
|
| 27 |
+
This measure help to summarize a large data set by providing a single value that represents the "middle" or "central" point of the data distribution''')
|
| 28 |
+
multi='''There are mainly 3 types of Measures of central tendency:'''
|
| 29 |
+
st.markdown(multi)
|
| 30 |
+
multi=''':red[1. Mean]'''
|
| 31 |
+
st.markdown(multi)
|
| 32 |
+
multi=''':red[2. Median]'''
|
| 33 |
+
st.markdown(multi)
|
| 34 |
+
multi=''':red[3. Mode]'''
|
| 35 |
+
st.markdown(multi)
|
| 36 |
+
|
| 37 |
+
st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/uFpmO9i5sXkOK4gwl3By-.png")
|
| 38 |
+
|
| 39 |
+
st.subheader("1.Mean",divider="green")
|
| 40 |
+
multi = '''Mean is one of the best central tendency measure used to find the central value.
|
| 41 |
+
It uses all the observations of the data so that we can get accurate central data point.
|
| 42 |
+
Mean is calculated by summing all the data points and dividing by the number of data points.'''
|
| 43 |
+
st.markdown(multi)
|
| 44 |
+
|
| 45 |
+
st.latex(r'''
|
| 46 |
+
\text{Mean} = \frac{\sum_{i=1}^{n} x_i}{n}
|
| 47 |
+
''')
|
| 48 |
+
|
| 49 |
+
multi = '''
|
| 50 |
+
There are 3 types of :
|
| 51 |
+
|
| 52 |
+
:violet[1. Arithemetic mean]
|
| 53 |
+
|
| 54 |
+
:violet[2. Geometric mean]
|
| 55 |
+
|
| 56 |
+
:violet[3. Harmonic mean]'''
|
| 57 |
+
st.markdown(multi)
|
| 58 |
+
st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/UZDbaPifn2kfsYA5NlSNw.png")
|
| 59 |
+
|