Spaces:
Build error
Build error
Update pages/Measurement_of_Central_Tendency.py
Browse files
pages/Measurement_of_Central_Tendency.py
CHANGED
|
@@ -127,4 +127,14 @@ if numbers_input:
|
|
| 127 |
result = mode(*list1)
|
| 128 |
st.write("Mode result:", result)
|
| 129 |
except ValueError:
|
| 130 |
-
st.write("Please enter a valid list of numbers separated by commas.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
result = mode(*list1)
|
| 128 |
st.write("Mode result:", result)
|
| 129 |
except ValueError:
|
| 130 |
+
st.write("Please enter a valid list of numbers separated by commas.")
|
| 131 |
+
st.subheader("Median")
|
| 132 |
+
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.
|
| 133 |
+
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""",unsafe_allow_html=True)
|
| 134 |
+
st.latex(r'''
|
| 135 |
+
\text{Median} = X_{\left(\frac{n+1}{2}\right)}
|
| 136 |
+
''')
|
| 137 |
+
st.subheader("Median Formula for Even Number of Observations")
|
| 138 |
+
st.latex(r'''
|
| 139 |
+
\text{Median} = \frac{X_{\left(\frac{n}{2}\right)} + X_{\left(\frac{n}{2}+1\right)}}{2}
|
| 140 |
+
''')
|