Spaces:
Sleeping
Sleeping
File size: 6,570 Bytes
df9c5ab c85eece d818f13 df9c5ab 8fa8125 b5e436a 8fa8125 1502f2f e1bc73c 44cb32f e1bc73c 4c17a3f c85eece 3be9231 c53d967 23ffb0a c53d967 44cb32f 8487619 44cb32f 8487619 d818f13 8487619 98f3b48 8487619 98f3b48 8487619 4516cd8 30afa4a 260ce6a f281f63 260ce6a f281f63 260ce6a 2c65c74 eb64946 473d6ae a6a2713 260ce6a a6a2713 260ce6a f281f63 2c65c74 f281f63 d4faa20 f281f63 ba9a330 41dfeee 8bd017a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
import streamlit as st
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import random
st.markdown("""
<style>
/* Set a soft background color */
body {
background-color: #eef2f7;
}
/* Style for main title */
h1 {
color: #00FFFF;
font-family: 'Roboto', sans-serif;
font-weight: 700;
text-align: center;
margin-bottom: 25px;
}
/* Style for headers */
h2 {
color: #FFFACD;
font-family: 'Roboto', sans-serif;
font-weight: 600;
margin-top: 30px;
}
/* Style for subheaders */
h3 {
color: #ba95b0;
font-family: 'Roboto', sans-serif;
font-weight: 500;
margin-top: 20px;
}
.custom-subheader {
color: #00FFFF;
font-family: 'Roboto', sans-serif;
font-weight: 600;
margin-bottom: 15px;
}
/* Paragraph styling */
p {
font-family: 'Georgia', serif;
line-height: 1.8;
color: #FFFFFF; /* Darker text color for better visibility */
margin-bottom: 20px;
}
/* List styling with checkmark bullets */
.icon-bullet {
list-style-type: none;
padding-left: 20px;
}
.icon-bullet li {
font-family: 'Georgia', serif;
font-size: 1.1em;
margin-bottom: 10px;
color: #FFFFF0; /* Darker text color for better visibility */
}
.icon-bullet li::before {
content: "✔️";
padding-right: 10px;
color: #b3b3ff;
}
/* Sidebar styling */
.sidebar .sidebar-content {
background-color: #ffffff;
border-radius: 10px;
padding: 15px;
}
.sidebar h2 {
color: #495057;
}
</style>
""", unsafe_allow_html=True)
st.snow()
st.title('STATISTICS')
st.subheader('What does the term statistics means?')
st.markdown("""It is a huge field in this we are going to deal data.The below mentioned are some of the operations which we will be doing on data""",unsafe_allow_html=True)
st.markdown("""
<ul class="icon-bullet">
<li>Collecting</li>
<li>Interpreting</li>
<li>Analysis</li>
<li>Structuring</li>
</ul>""",unsafe_allow_html=True)
st.title('Terminology')
st.subheader('Experiment')
st.markdown("""It's a simple test or a procedure or an investigation which are carried out to discover what will be the consiquences.Given below is one of the example of experminet.
""",unsafe_allow_html=True)
st.title("Drug Trial Analysis Between Covaxine and Covishiled")
total_participants = st.number_input("Total Participants For Covaxine:", min_value=100, max_value=10000, value=1000)
total_participants_1 = st.number_input("Total Participants For Covishield:", min_value=100, max_value=1000, value=1000)
side_effects_drug_1 = st.number_input("Number of Side Effects in Covaxine:", min_value=0, max_value=10000, value=100)
side_effects_drug_2 = st.number_input("Number of Side Effects in Covishield:", min_value=0, max_value=10000, value=20)
p_side_effects_drug_1 = (side_effects_drug_1 / total_participants)*100
p_side_effects_drug_2 = (side_effects_drug_2 / total_participants_1)*100
st.subheader("Results:")
st.write(f"Probability of Side Effects in Covaxine: {p_side_effects_drug_1}%")
st.write(f"Probability of Side Effects in Covishield: {p_side_effects_drug_2}%")
fig,axis=plt.subplots()
axis.pie(x=[p_side_effects_drug_1,p_side_effects_drug_2],labels=['covaxine','covishield'],autopct="%0.1f%%")
st.pyplot(fig)
st.subheader("Random Experiment")
st.markdown("""A random experiment is also an experiment bt in order to become a random experiment it show satisfy 2 condition's.
<ul class="icon-bullet">
<li>It show have more than one outcome.</li>
<li>We cannot predict what will be the outcome of the experiment.</li>
</ul>
""",unsafe_allow_html=True)
st.title("Random Experiment:Will it rain or not")
st.write("""
This simple experiment simulates a random prediction will it rain or not. Each time you click the button you will get a random result that it will rain or not.
""")
if st.button('Will it rain or not'):
result = random.choice(['Rain','NoRain'])
st.write(f"The result is: **{result}**")
st.subheader("Trail")
st.markdown("""A single execution of random experiment""")
st.title("Random Experiment:Will it rain or not with respect to trail")
st.write("""
This simple experiment simulates a random prediction will it rain or not with respect to trail. Each time you click the button you will get a random result that it will rain or not.
""")
Trail = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7)
if st.button('Start the Experiment: Will it Rain or Not?'):
st.write(f"Running {Trail} trials...")
for i in range(1, Trail + 1):
result = random.choice(['Rain', 'No Rain'])
st.write(f"Trial {i}: **{result}**")
st.subheader("Outcome")
st.markdown("""Outcome is nothing but result of a trail.""",unsafe_allow_html=True)
st.subheader("Sample Space")
st.markdown("""Set of all possible outcome of Sample Space..""",unsafe_allow_html=True)
st.title("Example of Sample Space")
st.write("""
This simple experiment simulates a random prediction will it rain or not with respect to trail and will tell you about sample space.
""")
Trail_1 = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7,key="Trail_1")
if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment"):
st.write(f"Running {Trail_1} trials...")
list1=[]
for i in range(1, Trail_1 + 1):
result = random.choice(['Rain', 'No Rain'])
list1+=[result]
st.write(f"Sample_Space:{np.unique(list1)}")
st.subheader("Event")
st.markdown("It's a subset of sample space or in easy term's the question's raised on a random experiemnt.",unsafe_allow_html=True)
st.write("""
This simple experiment simulates a random prediction will it rain or not with respect to trail and will tell you about event.
""")
st.title("Example of an Event")
Trail_2 = st.number_input("Number of Trials:", min_value=1, max_value=100, value=7,key="Trail_2")
if st.button('Start the Experiment: Will it Rain or Not?',key="start_experiment_1"):
st.write(f"Running {Trail_2} trials...")
list1=[]
for i in range(1, Trail_2 + 1):
result = random.choice(['Rain', 'No Rain'])
list1+=[result]
st.write(f"Sample_Space:{np.unique(list1)}")
st.write(f"Event_1 Chance of Rain: Rain")
st.write(f"Event_2 Chance of No Rain: No_Rain")
st.write(f"Both Event_1 and Event_2 are subset of sample space")
|