Harika22 commited on
Commit
2ea5795
·
verified ·
1 Parent(s): 871fb01

Update pages/4_Levels of Measurement.py

Browse files
Files changed (1) hide show
  1. pages/4_Levels of Measurement.py +50 -0
pages/4_Levels of Measurement.py CHANGED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ st.title(":blue[LEVELS OF MEASUREMENT]")
3
+ st.caption("***The Foundation of Statistical Analysis***")
4
+ st.markdown('''It is also known as scales of measurement which refers to the ways in data is categorized.
5
+ Levels of measurement refer to the classification of data based on the nature of the information they represent and the types of operations that can be performed.
6
+ Levels of measurement basically tells us how precisely you can record and collect the data''')
7
+ st.markdown('''There are mainly four types of levels of measurements based on the variable these are categorized.They are:
8
+
9
+ :green[1. Nominal]
10
+
11
+ :green[2. Ordinal]
12
+
13
+ :green[3. Interval]
14
+
15
+ :green[4. Ratio]''')
16
+ st.markdown(multi)
17
+ st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/W91oswY8u0lS-BE0kkk-V.png")
18
+ st.subheader("1.Nominal Data",divider="red")
19
+ multi = '''Nominal data is categorical and represent distinct categories . Data don't have any quantitative value or order or ranking
20
+ Data at this level is qualitative and lack any inherent order or ranking.
21
+ It is only categorized data.
22
+ Ex- types of animals (dog, cat, bird) and Gender (male and female)
23
+ Measures of central tendency performed are frequency and mode
24
+ Mathematical operations performed are ** ==, != ** '''
25
+ st.markdown(multi)
26
+ st.subheader("2.Ordinal Data",divider="red")
27
+ multi = '''Ordinal data is categorical data and represent distinct categories which have an inherent order or ranking among the categories.
28
+ The intervals between the categories are not necessarily equal as the order matters, but the difference between values is not consistent or meaningful.
29
+ It is categorized and ordered data.
30
+ Ex- Economic Status - (poor, middle, high) here you can compare the relative order of categories but you cannot assume that the differences between them are equal or meaningful
31
+ Measures of central tendency performed are Frequency, mode, median(only for odd no.of elements), percentiles
32
+ Mathematical operations performed are ** ==, !=, >, < **'''
33
+ st.markdown(multi)
34
+ st.subheader("3.Interval",divider="red")
35
+ multi = '''Interval data is numeric and have equal intervals between values.
36
+ They do not have a true zero point - zero doesn't indicate the absence of the measured quantity.
37
+ It is categorized, ordered and have equal intervals.
38
+ Ex- Temperature in Celsius or Fahrenheit - In interval data you can perform addition and subtraction operations but you cannot meaningfully calculate ratios (e.g., 20°C is not twice as hot as 10°C)
39
+ Measures of central tendency performed are Mean(Arithmetic mean), mode, median
40
+ Mathematical operations performed are ** ==, !=, >, <, +, - **'''
41
+ st.markdown(multi)
42
+ st.subheader("4.Ratio",divider="red")
43
+ multi = '''Ratio data is numeric and have all the properties of interval data and a meaningful and absolute zero point.
44
+ Zero in ratio data represents the complete absence of the measured quantity.
45
+ It is categorized, ordered, have equal intervals and have true zero point.
46
+ Ex- heught, age, income etc..,we can calculate meaningful ratios (e.g., someone with a height of 180 cm is twice as tall as someone with a height of 90 cm).
47
+ Measures of central tendency performed are Mean(Arithmetic mean, Geometric mean, Harmonic mean), mode, median
48
+ All mathematical operations are performed'''
49
+ st.markdown(multi)
50
+ st.image("https://cdn-uploads.huggingface.co/production/uploads/66bde9bf3c885d04498227a0/hlUBcfEK2beldv8OzLQUM.webp")