Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,51 +1,125 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import math
|
| 3 |
from functools import reduce
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
st.title(":red[**1 : INTRODUCTION TO STATISTICS**]")
|
| 5 |
-
st.markdown("""
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
| 10 |
st.subheader(":blue[DATA]")
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
""")
|
| 15 |
-
st.
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
st.subheader("**Structured Data**")
|
| 20 |
-
st.markdown("""
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
st.image('https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/dSbyOXaQ6N_Kg2TLxgEyt.png', width=400)
|
|
|
|
| 25 |
st.subheader("**Unstructured Data**")
|
| 26 |
-
st.markdown("""
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
st.image("https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/xhaNBRanDaj8esumqo9hl.png", width=400)
|
| 31 |
-
|
| 32 |
-
st.
|
| 33 |
-
|
| 34 |
-
data
|
| 35 |
-
""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
st.image("https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/Nupc6BePInRVo9gJwLfWH.png", width=400)
|
|
|
|
|
|
|
| 37 |
st.title("2 : INTRODUCTION TO STATISTICS")
|
| 38 |
-
st.markdown("""
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
st.subheader("2.
|
| 44 |
-
st.
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import math
|
| 3 |
from functools import reduce
|
| 4 |
+
|
| 5 |
+
# Custom CSS for background, fonts, and text styling
|
| 6 |
+
st.markdown("""
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
background-color: #f5f5f5;
|
| 10 |
+
}
|
| 11 |
+
h1 {
|
| 12 |
+
color: #d63384;
|
| 13 |
+
font-family: 'Arial', sans-serif;
|
| 14 |
+
font-weight: bold;
|
| 15 |
+
text-align: center;
|
| 16 |
+
}
|
| 17 |
+
h2 {
|
| 18 |
+
color: #1f77b4;
|
| 19 |
+
font-family: 'Arial', sans-serif;
|
| 20 |
+
font-weight: bold;
|
| 21 |
+
}
|
| 22 |
+
h3 {
|
| 23 |
+
color: #6c757d;
|
| 24 |
+
font-family: 'Arial', sans-serif;
|
| 25 |
+
}
|
| 26 |
+
.custom-subheader {
|
| 27 |
+
color: #2ca02c;
|
| 28 |
+
font-family: 'Arial', sans-serif;
|
| 29 |
+
margin-bottom: 0;
|
| 30 |
+
}
|
| 31 |
+
p {
|
| 32 |
+
font-family: 'Georgia', serif;
|
| 33 |
+
line-height: 1.6;
|
| 34 |
+
color: #343a40;
|
| 35 |
+
}
|
| 36 |
+
.icon-bullet {
|
| 37 |
+
list-style-type: none;
|
| 38 |
+
}
|
| 39 |
+
.icon-bullet li::before {
|
| 40 |
+
content: "✔️";
|
| 41 |
+
padding-right: 10px;
|
| 42 |
+
}
|
| 43 |
+
</style>
|
| 44 |
+
""", unsafe_allow_html=True)
|
| 45 |
+
|
| 46 |
+
# Title Section
|
| 47 |
st.title(":red[**1 : INTRODUCTION TO STATISTICS**]")
|
| 48 |
+
st.markdown("""
|
| 49 |
+
In this field, we will be dealing with data using the programming language Python. The term **DATA ANALYSIS** itself indicates working with data. We will collect, clean, and analyze the data to gain insights. Let's first understand the term *data*.
|
| 50 |
+
""")
|
| 51 |
+
|
| 52 |
+
# Header Section
|
| 53 |
+
st.header("*What does the term data refer to?*")
|
| 54 |
st.subheader(":blue[DATA]")
|
| 55 |
+
|
| 56 |
+
st.markdown("""
|
| 57 |
+
Data is a collection of information gathered from observation. There are many sources of information. Below are some examples:
|
| 58 |
""")
|
| 59 |
+
st.markdown("""
|
| 60 |
+
<ul class="icon-bullet">
|
| 61 |
+
<li>IMAGE</li>
|
| 62 |
+
<li>TEXT</li>
|
| 63 |
+
<li>VIDEO</li>
|
| 64 |
+
<li>AUDIO</li>
|
| 65 |
+
</ul>
|
| 66 |
+
""", unsafe_allow_html=True)
|
| 67 |
+
|
| 68 |
+
# Data Classification Section
|
| 69 |
+
st.header("DATA is classified into 3 types.")
|
| 70 |
st.subheader("**Structured Data**")
|
| 71 |
+
st.markdown("""
|
| 72 |
+
This type of data is well-organized, typically in rows and columns. Examples include:
|
| 73 |
+
<ul class="icon-bullet">
|
| 74 |
+
<li>EXCEL DOCUMENT</li>
|
| 75 |
+
<li>STRUCTURED QUERY LANGUAGE DATABASE</li>
|
| 76 |
+
</ul>
|
| 77 |
+
""", unsafe_allow_html=True)
|
| 78 |
st.image('https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/dSbyOXaQ6N_Kg2TLxgEyt.png', width=400)
|
| 79 |
+
|
| 80 |
st.subheader("**Unstructured Data**")
|
| 81 |
+
st.markdown("""
|
| 82 |
+
This type of data is not organized in a predefined manner. Examples include:
|
| 83 |
+
<ul class="icon-bullet">
|
| 84 |
+
<li>IMAGE</li>
|
| 85 |
+
<li>VIDEO</li>
|
| 86 |
+
<li>TEXT</li>
|
| 87 |
+
<li>Social Media Feeds</li>
|
| 88 |
+
</ul>
|
| 89 |
+
""", unsafe_allow_html=True)
|
| 90 |
st.image("https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/xhaNBRanDaj8esumqo9hl.png", width=400)
|
| 91 |
+
|
| 92 |
+
st.subheader("**Semi-Structured Data**")
|
| 93 |
+
st.markdown("""
|
| 94 |
+
This data combines elements of both structured and unstructured data. Examples include:
|
| 95 |
+
<ul class="icon-bullet">
|
| 96 |
+
<li>COMMA SEPARATED VARIABLE (CSV)</li>
|
| 97 |
+
<li>JSON FILES</li>
|
| 98 |
+
<li>E-MAILS</li>
|
| 99 |
+
<li>HTML</li>
|
| 100 |
+
</ul>
|
| 101 |
+
""", unsafe_allow_html=True)
|
| 102 |
st.image("https://cdn-uploads.huggingface.co/production/uploads/64c972774515835c4dadd754/Nupc6BePInRVo9gJwLfWH.png", width=400)
|
| 103 |
+
|
| 104 |
+
# Introduction to Statistics
|
| 105 |
st.title("2 : INTRODUCTION TO STATISTICS")
|
| 106 |
+
st.markdown("""
|
| 107 |
+
_Statistics is a branch of mathematics focused on collecting, analyzing, interpreting, and structuring data. It is classified into two types:_
|
| 108 |
+
""")
|
| 109 |
+
|
| 110 |
+
# Descriptive Statistics Section
|
| 111 |
+
st.subheader("2.1 Descriptive Statistics")
|
| 112 |
+
st.markdown("""
|
| 113 |
+
Descriptive Statistics describes the main features of data. It can be performed on sample data as well as population data. Key concepts include:
|
| 114 |
+
<ul class="icon-bullet">
|
| 115 |
+
<li>Measurement of Central Tendency (Mean, Median, Mode)</li>
|
| 116 |
+
<li>Measurement of Dispersion (Range, Variance, Standard Deviation)</li>
|
| 117 |
+
<li>Distribution (e.g., Gaussian, Random, Normal)</li>
|
| 118 |
+
</ul>
|
| 119 |
+
""", unsafe_allow_html=True)
|
| 120 |
+
|
| 121 |
+
# Inferential Statistics Section
|
| 122 |
+
st.subheader("2.2 Inferential Statistics")
|
| 123 |
+
st.markdown("""
|
| 124 |
+
Inferential Statistics makes predictions about a population based on sample data.
|
| 125 |
+
""")
|