Lars Masanneck commited on
Commit
fe8c16e
·
1 Parent(s): a3309b8

Update Z-Score_Calculator.py

Browse files
Files changed (1) hide show
  1. Z-Score_Calculator.py +21 -20
Z-Score_Calculator.py CHANGED
@@ -178,26 +178,6 @@ def main():
178
  f"Sample size: {res['n']}**."
179
  )
180
 
181
- # Z-Score Classification Guide
182
- with st.expander("📊 Z-Score Classification Guide"):
183
- st.markdown("""
184
- **How to interpret your Z-Score:**
185
-
186
- | Z-Score Range | Classification | Percentile Range |
187
- |:-------------:|:--------------:|:----------------:|
188
- | z < -2.0 | Very Low | < 2.3% |
189
- | -2.0 ≤ z < -0.5 | Below Average | 2.3% - 30.9% |
190
- | **-0.5 ≤ z < 0.5** | **Average** | **30.9% - 69.1%** |
191
- | 0.5 ≤ z < 2.0 | Above Average | 69.1% - 97.7% |
192
- | z ≥ 2.0 | Very High | > 97.7% |
193
-
194
- **Context matters:**
195
- - For **steps, sleep duration, and active minutes**: Higher values are generally better ✓
196
- - For **heart rate**: Lower resting values are generally better ✓
197
-
198
- *A z-score of 0 means you are exactly at the population average for your demographic group.*
199
- """)
200
-
201
  # Detailed statistics table
202
  st.subheader("Detailed Statistics")
203
  stats_df = pd.DataFrame(
@@ -417,6 +397,27 @@ def main():
417
  "Fill in all inputs and click Compute " "to get normative Z-score."
418
  )
419
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
420
  # Footer
421
  st.markdown("---")
422
  st.markdown(
 
178
  f"Sample size: {res['n']}**."
179
  )
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  # Detailed statistics table
182
  st.subheader("Detailed Statistics")
183
  stats_df = pd.DataFrame(
 
397
  "Fill in all inputs and click Compute " "to get normative Z-score."
398
  )
399
 
400
+ # Z-Score Classification Guide (always visible)
401
+ st.markdown("---")
402
+ with st.expander("📊 Z-Score Classification Guide"):
403
+ st.markdown("""
404
+ **How to interpret Z-Scores:**
405
+
406
+ | Z-Score Range | Classification | Percentile Range |
407
+ |:-------------:|:--------------:|:----------------:|
408
+ | z < -2.0 | Very Low | < 2.3% |
409
+ | -2.0 ≤ z < -0.5 | Below Average | 2.3% - 30.9% |
410
+ | **-0.5 ≤ z < 0.5** | **Average** | **30.9% - 69.1%** |
411
+ | 0.5 ≤ z < 2.0 | Above Average | 69.1% - 97.7% |
412
+ | z ≥ 2.0 | Very High | > 97.7% |
413
+
414
+ **Context matters:**
415
+ - For **steps, sleep duration, and active minutes**: Higher values are generally better ✓
416
+ - For **heart rate**: Lower resting values are generally better ✓
417
+
418
+ *A z-score of 0 means you are exactly at the population average for your demographic group.*
419
+ """)
420
+
421
  # Footer
422
  st.markdown("---")
423
  st.markdown(