Skip to content

Instantly share code, notes, and snippets.

@dkhurana1306
Created September 5, 2016 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkhurana1306/ee266537c38db48a46917f53814e64fd to your computer and use it in GitHub Desktop.
Save dkhurana1306/ee266537c38db48a46917f53814e64fd to your computer and use it in GitHub Desktop.
length(data$Label[data$higgs_defined==0 & data$Label == 's']) / length(data$Label[data$Label == 's']) # fraction of signal where higgs mass in undefined
#[1] 0.03309326
summary(data$Weight[data$higgs_defined==0 & data$Label == 's'])
# Min. 1st Qu. Median Mean 3rd Qu. Max.
#0.001502 0.001502 0.001503 0.003117 0.002653 0.018640
summary(data$Weight[data$higgs_defined==1 & data$Label == 's'])
# Min. 1st Qu. Median Mean 3rd Qu. Max.
#0.001502 0.001503 0.001503 0.008247 0.018640 0.018640
summary(data$Weight[data$higgs_defined==1 & data$Label == 'b'])
# Min. 1st Qu. Median Mean 3rd Qu. Max.
#0.06406 0.96290 1.82800 2.25300 2.85300 7.82300
summary(data$Weight[data$higgs_defined==0 & data$Label == 'b'])
# Min. 1st Qu. Median Mean 3rd Qu. Max.
#0.06406 2.05900 3.09600 3.40800 4.80600 7.82200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment