DOMMETI commited on
Commit
2e96081
·
verified ·
1 Parent(s): af67c47

Update pages/Measurement_of_disperssion.py

Browse files
Files changed (1) hide show
  1. pages/Measurement_of_disperssion.py +18 -0
pages/Measurement_of_disperssion.py CHANGED
@@ -73,6 +73,24 @@ st.subheader("Relative Quartile Deviation")
73
  st.latex(r'''
74
  \text{Relative QD} = \frac{Q3 - Q1}{Q3 + Q1} \times 100
75
  ''')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  st.markdown(''':orange[**Varience**] is one of the measure to find the disperssion.It is one of the best measure to find the disperssion.The only
77
  drawback is when in Varience is in order to overcome negitive value we square them thus the distance is doubled
78
  ''')
 
73
  st.latex(r'''
74
  \text{Relative QD} = \frac{Q3 - Q1}{Q3 + Q1} \times 100
75
  ''')
76
+ def abs_quartile_dev(list1):
77
+ q1=np.percentile(list1,25)
78
+ q3=np.percentile(list1,75)
79
+ return round((q3-q1)/2,2)
80
+ st.title("Absolute Quartile Deviation")
81
+ num_input2=st.text_input("Enter the values separated by commas (e.g., 1,2,3,4)", key="num_input2")
82
+ value=num_input2.split(",")
83
+ list1=[]
84
+ for i in value:
85
+ if i.isdigit():
86
+ list1.append(int(i))
87
+ else:
88
+ pass
89
+ if list1:
90
+ result=relative_range(list1)
91
+ st.write("Absolute Quartile Deviation",result)
92
+ else:
93
+ st.write("Please enter valid numbers.")
94
  st.markdown(''':orange[**Varience**] is one of the measure to find the disperssion.It is one of the best measure to find the disperssion.The only
95
  drawback is when in Varience is in order to overcome negitive value we square them thus the distance is doubled
96
  ''')