DOMMETI commited on
Commit
1cdcb16
·
verified ·
1 Parent(s): 90c5569

Update pages/1_Probability.py

Browse files
Files changed (1) hide show
  1. pages/1_Probability.py +84 -0
pages/1_Probability.py CHANGED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import numpy as np
4
+ import matplotlib.pyplot as plt
5
+ import random
6
+ st.markdown("""
7
+ <style>
8
+ /* Set a soft background color */
9
+ body {
10
+ background-color: #eef2f7;
11
+ }
12
+ /* Style for main title */
13
+ h1 {
14
+ color: #00FFFF;
15
+ font-family: 'Roboto', sans-serif;
16
+ font-weight: 700;
17
+ text-align: center;
18
+ margin-bottom: 25px;
19
+ }
20
+ /* Style for headers */
21
+ h2 {
22
+ color: #FFFACD;
23
+ font-family: 'Roboto', sans-serif;
24
+ font-weight: 600;
25
+ margin-top: 30px;
26
+ }
27
+
28
+ /* Style for subheaders */
29
+ h3 {
30
+ color: #ba95b0;
31
+ font-family: 'Roboto', sans-serif;
32
+ font-weight: 500;
33
+ margin-top: 20px;
34
+ }
35
+ .custom-subheader {
36
+ color: #00FFFF;
37
+ font-family: 'Roboto', sans-serif;
38
+ font-weight: 600;
39
+ margin-bottom: 15px;
40
+ }
41
+ /* Paragraph styling */
42
+ p {
43
+ font-family: 'Georgia', serif;
44
+ line-height: 1.8;
45
+ color: #FFFFFF; /* Darker text color for better visibility */
46
+ margin-bottom: 20px;
47
+ }
48
+ /* List styling with checkmark bullets */
49
+ .icon-bullet {
50
+ list-style-type: none;
51
+ padding-left: 20px;
52
+ }
53
+ .icon-bullet li {
54
+ font-family: 'Georgia', serif;
55
+ font-size: 1.1em;
56
+ margin-bottom: 10px;
57
+ color: #FFFFF0; /* Darker text color for better visibility */
58
+ }
59
+ .icon-bullet li::before {
60
+ content: "✔️";
61
+ padding-right: 10px;
62
+ color: #b3b3ff;
63
+ }
64
+ /* Sidebar styling */
65
+ .sidebar .sidebar-content {
66
+ background-color: #ffffff;
67
+ border-radius: 10px;
68
+ padding: 15px;
69
+ }
70
+ .sidebar h2 {
71
+ color: #495057;
72
+ }
73
+ </style>
74
+ """, unsafe_allow_html=True)
75
+ st.title('PROBABILITY')
76
+ st.markdown("""Probability is a measure of how likely an event is to occur and is expressed as a number between 0 and 1, where:
77
+ <ul class="icon-bullet">
78
+ <li> 0 means the event will definitely not happen.</li>
79
+ <li> 1 means the event will definitely happen.</li>
80
+ </ul>
81
+ """,unsafe_allow_html=True)
82
+ st.latex(r"""
83
+ P(E) = \frac{\text{Number of favorable outcomes}}{\text{Total number of possible outcomes}}
84
+ """)