Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ checking the frequency in list we come across a situtaion where we will find two
|
|
| 61 |
st.markdown(''':violet[Tri_Mode] \n Let's understand why this situation raises for example let's take list of numbers [1,1,2,2,3,3,4,5]. here by
|
| 62 |
checking the frequency in list we come across a situtaion where we will find three maximun frequecy repeated value hence the output will be Tri_Mode.
|
| 63 |
''')
|
| 64 |
-
st.markdown(''':violet[
|
| 65 |
checking the frequency in list we come across a situtaion where we will find more than three maximun frequecy repeated value hence the output will be Multi_Mode.
|
| 66 |
''')
|
| 67 |
def mode(*args):
|
|
@@ -99,4 +99,15 @@ if numbers_input:
|
|
| 99 |
# Display the result
|
| 100 |
st.write("Mode result:", result)
|
| 101 |
except ValueError:
|
| 102 |
-
st.write("Please enter a valid list of numbers separated by commas.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
st.markdown(''':violet[Tri_Mode] \n Let's understand why this situation raises for example let's take list of numbers [1,1,2,2,3,3,4,5]. here by
|
| 62 |
checking the frequency in list we come across a situtaion where we will find three maximun frequecy repeated value hence the output will be Tri_Mode.
|
| 63 |
''')
|
| 64 |
+
st.markdown(''':violet[Multi_Mode] \n Let's understand why this situation raises for example let's take list of numbers [1,1,2,2,3,3,4,4,5]. here by
|
| 65 |
checking the frequency in list we come across a situtaion where we will find more than three maximun frequecy repeated value hence the output will be Multi_Mode.
|
| 66 |
''')
|
| 67 |
def mode(*args):
|
|
|
|
| 99 |
# Display the result
|
| 100 |
st.write("Mode result:", result)
|
| 101 |
except ValueError:
|
| 102 |
+
st.write("Please enter a valid list of numbers separated by commas.")
|
| 103 |
+
st.subheader("Median",divider=True)
|
| 104 |
+
st.markdown("""Median will also be giving the central tendency.But the major drawback of median is it prior foucus will be on the central value.
|
| 105 |
+
In order to find the mean first we have to sort the give list and based on the length of the list the formula are changed""")
|
| 106 |
+
st.subheader("Median Formula for Odd Number of Observations")
|
| 107 |
+
st.latex(r'''
|
| 108 |
+
\text{Median} = X_{\left(\frac{n+1}{2}\right)}
|
| 109 |
+
''')
|
| 110 |
+
st.subheader("Median Formula for Even Number of Observations")
|
| 111 |
+
st.latex(r'''
|
| 112 |
+
\text{Median} = \frac{X_{\left(\frac{n}{2}\right)} + X_{\left(\frac{n}{2}+1\right)}}{2}
|
| 113 |
+
''')
|