cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
%3CLINGO-SUB%20id%3D%22lingo-sub-777147%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECDF%20%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9F%E5%80%A4%E3%81%A7%E3%81%AE%E6%AD%A3%E7%A2%BA%E3%81%AA%E7%B4%AF%E7%A9%8D%E7%A2%BA%E7%8E%87%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777147%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%B7%BB%E4%BB%98%E3%81%AE%E4%BE%8B%E3%81%A7%E3%81%AF%E3%80%81CDF%20%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9F%E5%80%A4%20(500)%20%E3%81%A7%E3%81%AE%E6%AD%A3%E7%A2%BA%E3%81%AA%E7%B4%AF%E7%A9%8D%E7%A2%BA%E7%8E%87%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%3F%3C%2FP%3E%3CP%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%EF%BC%81%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F66569iF853436BCFAC23FE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ChernoffTurtle7_0-1722227853858.png%22%20alt%3D%22ChernoffTurtle7_0-1722227853858.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-777147%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E3%83%87%E3%83%BC%E3%82%BF%E5%88%86%E6%9E%90%E3%81%A8%E3%83%A2%E3%83%87%E3%83%AA%E3%83%B3%E3%82%B0%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CDF%20%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9F%E5%80%A4%E3%81%A7%E3%81%AE%E6%AD%A3%E7%A2%BA%E3%81%AA%E7%B4%AF%E7%A9%8D%E7%A2%BA%E7%8E%87%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%81%8B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E1%E3%81%A4%E3%81%AE%E9%81%B8%E6%8A%9E%E8%82%A2%E3%81%AF%E3%80%81%E3%82%AF%E3%83%AD%E3%82%B9%E3%83%98%E3%82%A2%E3%83%84%E3%83%BC%E3%83%AB%E3%83%90%E3%83%BC%E3%83%84%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%A7%E3%81%99%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_0-1722229523647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F66570iFD06548A1752CF29%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22jthi_0-1722229523647.png%22%20alt%3D%22jthi_0-1722229523647.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777203%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CDF%20%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9F%E5%80%A4%E3%81%A7%E3%81%AE%E6%AD%A3%E7%A2%BA%E3%81%AA%E7%B4%AF%E7%A9%8D%E7%A2%BA%E7%8E%87%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%81%8B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777203%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E4%BD%9C%E6%88%90%E3%81%97%E3%81%A6%E3%81%8A%E3%81%8A%E3%82%88%E3%81%9D%E3%81%AE%E5%80%A4%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%82%82%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22)%3B%0A%0Adist%20%3D%20dt%20%26lt%3B%26lt%3B%20Distribution(Column(%3ANPN1)%2C%20CDF%20Plot(1))%3B%0Afb%20%3D%20Report(dist)%5B%22CDF%20Plot%22%2CFrameBox(1)%5D%3B%0A%0Als%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LinesSeg(1))%3B%0A%0Am%20%3D%20ls%20%26lt%3B%26lt%3B%20get%20lines%3B%0A%0Axval%20%3D%20115%3B%0A%0Aidx%20%3D%20Loc%20Min(m%5B0%2C%201%5D%20-%20xval%20%26lt%3B%200)%20-%201%3B%0Aval%20%3D%20m%5Bidx%2C%202%5D%3B%0A%0Ashow(val)%3B%0A%0A%2F%2F%20Report(dist)%5B%22CDF%20Plot%22%2CAxisBox(1)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(val)%3B%0A%2F%2F%20Report(dist)%5B%22CDF%20Plot%22%2CAxisBox(2)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(xval)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Em%E8%A1%8C%E5%88%97%E3%81%8B%E3%82%89%E7%89%B9%E5%AE%9A%E3%81%AE%E5%80%A4%E3%82%92%E8%A8%88%E7%AE%97%E3%81%99%E3%82%8B%E3%83%AD%E3%82%B8%E3%83%83%E3%82%AF%E3%82%92%E6%94%B9%E8%89%AF%E3%81%99%E3%82%8B%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8B%E3%81%8B%E3%82%82%E3%81%97%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CDF%20%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9F%E5%80%A4%E3%81%A7%E3%81%AE%E6%AD%A3%E7%A2%BA%E3%81%AA%E7%B4%AF%E7%A9%8D%E7%A2%BA%E7%8E%87%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%81%8B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%82%8F%E3%81%82%E3%80%81%E3%81%9D%E3%82%8C%E3%81%AF%E5%BC%B7%E5%8A%9B%E3%81%A7%E3%81%99%E3%81%AD%EF%BC%81%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777449%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20CDF%20%E3%83%97%E3%83%AD%E3%83%83%E3%83%88%E3%81%A7%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9F%E5%80%A4%E3%81%A7%E3%81%AE%E6%AD%A3%E7%A2%BA%E3%81%AA%E7%B4%AF%E7%A9%8D%E7%A2%BA%E7%8E%87%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%97%E3%82%87%E3%81%86%E3%81%8B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777449%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%8C%E3%81%AF%E8%A9%B1%E9%A1%8C%E3%81%8B%E3%82%89%E5%A4%A7%E3%81%8D%E3%81%8F%E5%A4%96%E3%82%8C%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81LinesSeg%20%E3%81%AE%E4%BB%A3%E3%82%8F%E3%82%8A%E3%81%AB%20LineSeg%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%20Graph%20Builder%20%E3%81%A7%E5%90%8C%E6%A7%98%E3%81%AE%E3%81%93%E3%81%A8%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%E3%82%B9%E3%83%A0%E3%83%BC%E3%82%B8%E3%83%B3%E3%82%B0%E3%81%AE%E3%81%9B%E3%81%84%E3%81%A7%E9%9D%9E%E5%B8%B8%E3%81%AB%E9%9B%A3%E3%81%97%E3%81%8F%E3%81%AA%E3%82%8A%E3%80%81%E8%AB%A6%E3%82%81%E3%82%8B%E6%99%82%E3%81%8C%E6%9D%A5%E3%81%BE%E3%81%97%E3%81%9F%20(%E5%B0%91%E3%81%AA%E3%81%8F%E3%81%A8%E3%82%82%E4%BB%8A%E3%81%AE%E3%81%A8%E3%81%93%E3%82%8D%E3%81%AF)%E3%80%82%E6%B7%BB%E4%BB%98%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%AE%E3%81%AF%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%A7%E3%80%81%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88%20%E3%82%A2%E3%82%A6%E3%83%88%E3%81%95%E3%82%8C%E3%81%9F%E3%82%B3%E3%83%BC%E3%83%89%E3%81%A8%E3%81%97%E3%81%A6%E3%80%8C%E4%BD%9C%E6%A5%AD%E3%83%A1%E3%83%A2%E3%80%8D%E3%81%AE%E4%B8%80%E9%83%A8%E3%82%92%E6%AE%8B%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%81%8C%E3%80%81%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AF%E3%81%BE%E3%81%A3%E3%81%9F%E3%81%8F%E6%9C%80%E9%81%A9%E5%8C%96%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jthi_1-1722354318500.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22jthi_1-1722354318500.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F66611i1CE2E3D391647709%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22jthi_1-1722354318500.png%22%20alt%3D%22jthi_1-1722354318500.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CDIV%20class%3D%22lia-spoiler-container%22%3E%3CA%20class%3D%22lia-spoiler-link%22%20href%3D%22%23%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%E3%82%82%E3%81%A3%E3%81%A8%E8%A6%8B%E3%82%8B...%3C%2FA%3E%3CNOSCRIPT%3E%EF%BC%88%E3%83%8F%E3%82%A4%E3%83%A9%E3%82%A4%E3%83%88%E3%81%97%E3%81%A6%E8%AA%AD%E3%82%93%E3%81%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%EF%BC%89%3C%2FNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-border%22%3E%3CDIV%20class%3D%22lia-spoiler-content%22%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F*%22%22%22%20Attempt%20to%20get%20y-value%20from%20Graph%20Builder%20LineSeg%0A%0AAuthor%3A%20jthi%0ACreation%20Date%3A%202024-07-30%0ACreation%20JMP%20Version%3A%20JMP%20Pro%2018.0.0%0A%0ADescription%3A%20%0A%09Original%20post%20which%20gave%20me%20this%20idea%20(LinesSeg)%0A%09https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FHow-to-get-exact-cumulative-Prob-at-specified-value-in-CDF-Plot%2Fm-p%2F777203%0A%09%0A%22%22%22*%2F%0A%0ANames%20Default%20To%20Here(1)%3B%0A%2F%2F%20https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FUnderstanding-cubic-splines%2Fba-p%2F39511%20can%20be%20interesting%20read%0A%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22)%3B%0A%0Aslider_x%20%3D%20200%3B%0A%0Anw%20%3D%20New%20Window(%22Test%22%2C%0A%09V%20List%20Box(align(%22center%22)%2C%0A%09%09V%20List%20Box(%0A%09%09%09Text%20Box(%22Adjust%20to%20change%20X%22)%2C%0A%09%09%09Slider%20Box(110%2C%20530%2C%20slider_x%2C%20nw%20%26lt%3B%26lt%3B%20update%20window%2C%20%26lt%3B%26lt%3B%20Set%20Width(1000))%3B%0A%09%09)%2C%0A%09%09Text%20Box(%22Change%20graph%20builder%20smoother%20settings%20to%20see%20changes%20to%20see%20different%20fits%22)%2C%0A%09%09gb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%09%09%09Size(1000%2C%20600)%2C%0A%09%09%09Show%20Control%20Panel(1)%2C%0A%09%09%09Fit%20To%20Window(%22On%22)%2C%0A%09%09%09Variables(X(%3APNP1)%2C%20Y(%3ANPN1))%2C%0A%09%09%09Elements(Smoother(X%2C%20Y%2C%20Legend(4)))%0A%09%09)%3B%0A%09)%3B%0A)%3B%0A%0Afb%20%3D%20Report(gb)%5BFrameBox(1)%5D%3B%0A%0A%2F*%0Als%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LineSeg(1))%3B%0Am_x%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20X%20Values%3B%0Am_y%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20Y%20Values%3B%0Asmooth%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20Smoothness%3B%0A%0Aidx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%0A%2F%2F%20%7BEstimates%2C%20Std_Error%2C%20Diagnostics%7D%20%3D%20Linear%20Regression(m_y%5Bidx%3A%3Aidx%2B1%5D%2C%20m_x%5Bidx%3A%3Aidx%2B1%5D)%3B%0A%2F%2F%20yval%20%3D%20Estimates%5B2%5D%20*%20xval%20%2B%20Estimates%5B1%5D%3B%0Aidx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%0Ayval%20%3D%20Interpolate(xval%2C%20m_x%2C%20m_y)%3B%0AReport(gb)%5BAxisBox(1)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(xval)%3B%0AReport(gb)%5BAxisBox(2)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(yval)%3B%0A*%2F%0A%0A%0A%2F*%0Am_x%5B2%3A%3AN%20Rows(m_x)%3A%3A2%5D%20-%20m_x%5B1%3A%3AN%20Rows(m_x)%20-%201%3A%3A2%5D%0Am_y%5B2%3A%3AN%20Rows(m_y)%3A%3A2%5D%20-%20m_y%5B1%3A%3AN%20Rows(m_y)%20-%201%3A%3A2%5D%0Asl%20%3D%20Spline%20Smooth(m_x%2C%20m_y%2C%20smooth)%3B%0A*%2F%0A%0A%0AReport(gb)%5BFrameBox(1)%5D%20%26lt%3B%26lt%3B%20Add%20Graphics%20Script(%0A%09ls%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LineSeg(1))%3B%0A%09m_x%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20X%20Values%3B%0A%09m_y%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20Y%20Values%3B%0A%09Marker(Marker%20State(3)%2C%20m_x%2C%20m_y)%3B%0A%09Pen%20Size(1)%3B%0A%09Line(m_x%2C%20m_y)%3B%0A%09%0A%09yval%20%3D%20Interpolate(slider_x%2C%20m_x%2C%20m_y)%3B%0A%09%0A%09Marker%20Size(5)%3B%0A%09Marker(Marker%20State(12)%2C%20%7Bslider_x%2C%20yval%7D)%3B%0A%09V%20Line(slider_x)%3B%0A%09H%20Line(yval)%3B%0A%09%0A%09Text(Right%20Justified%2C%20Eval%20List(%7Bslider_x%2C%20yval%20%2B%201%7D)%2C%20Eval%20Insert(%22(%5ERound(slider_x%2C%203)%5E%2C%20%5ERound(yval%2C%203)%5E)%22))%3B%0A%09%0A%09peaks%20%3D%20m_y%5B1%3A%3AN%20Rows(m_y)%20-%202%5D%20%26lt%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26amp%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26gt%3B%20m_y%5B3%3A%3AN%20Rows(m_y)%5D%20%7C%0A%09m_y%5B1%3A%3AN%20Rows(m_y)%20-%202%5D%20%26gt%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26amp%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26lt%3B%20m_y%5B3%3A%3AN%20Rows(m_y)%5D%3B%0A%09peak_idx%20%3D%20Loc(peaks)%20%2B%201%3B%0A%09Marker%20Size(3)%3B%0A%09Fill%20Color(%22Red%22)%3B%0A%09Marker(Combine%20States(Color%20State(%22Red%22)%2C%20Marker%20State(15))%2C%20m_x%5Bpeak_idx%5D%2C%20m_y%5Bpeak_idx%5D)%3B%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-container%22%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3E%2F*%22%22%22%20Graph%20Builder%20LineSeg%20%E3%81%8B%E3%82%89%20y%20%E5%80%A4%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%20%E4%BD%9C%E6%88%90%E8%80%85%3A%20jthi%20%E4%BD%9C%E6%88%90%E6%97%A5%3A%202024-07-30%20%E4%BD%9C%E6%88%90%20JMP%20%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%3A%20JMP%20Pro%2018.0.0%20%E8%AA%AC%E6%98%8E%3A%20%E3%81%93%E3%81%AE%E3%82%A2%E3%82%A4%E3%83%87%E3%82%A2%E3%81%AE%E5%85%83%E3%81%A8%E3%81%AA%E3%81%A3%E3%81%9F%E5%85%83%E3%81%AE%E6%8A%95%E7%A8%BF%20(LinesSeg)%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FHow-to-get-exact-cumulative-Prob-at-specified-value-in-CDF-Plot%2Fmp%2F777203%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.jmp.com%2Ft5%2FDiscussions%2FHow-to-get-exact-cumulative-Prob-at-specified-value-in-CDF-Plot%2Fmp%2F777203%3C%2FA%3E%20%22%22%22*%2F%20Names%20Default%20To%20Here(1)%3B%20%2F%2F%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FUnderstanding-cubic-splines%2Fba-p%2F39511%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FUnderstanding-cubic-splines%2Fba-p%2F39511%3C%2FA%3E%20%E3%81%AF%E8%88%88%E5%91%B3%E6%B7%B1%E3%81%84%E8%AA%AD%E3%81%BF%E7%89%A9%E3%81%A7%E3%81%99%20dt%20%3D%20Open(%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22)%3B%20slider_x%20%3D%20200%3B%20nw%20%3D%20New%20Window(%22Test%22%2C%20V%20List%20Box(align(%22center%22)%2C%20V%20List%20Box(%20Text%20Box(%22Adjust%20to%20change%20X%22)%2C%20Slider%20Box(110%2C%20530%2C%20slider_x%2C%20nw%20%26lt%3B%26lt%3B%20update%20window%2C%20%26lt%3B%26lt%3B%20Set%20Width(1000))%3B%20)%2C%20Text%20Box(%22Change%20graph%20builder%20Smoother%20settings%20to%20see%20changes%20to%20see%20different%20fit%22)%2C%20gb%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%20Size(1000%2C%20600)%2C%20Show%20Control%20Panel(1)%2C%20Fit%20To%20Window(%22On%22)%2C%20Variables(X(%3APNP1)%2C%20Y(%3ANPN1))%2C%20Elements(Smoother(X%2C%20Y%2C%20Legend(4)))%20)%3B%20)%3B%20)%3B%20fb%20%3D%20Report(gb)%5BFrameBox(1)%5D%3B%20%2F*%20ls%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LineSeg(1))%3B%20m_x%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20X%20Values%3B%20m_y%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20Y%20Values%3B%20Smooth%20%3D%20ls%20%26lt%3B%26lt%3B%20Get%20Smoothness%3B%20idx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%20%2F%2F%20%7BEstimates%E3%80%81Std_Error%E3%80%81Diagnostics%7D%20%3D%20Linear%20Regression(m_y%5Bidx%3A%3Aidx%2B1%5D%E3%80%81m_x%5Bidx%3A%3Aidx%2B1%5D)%3B%20%2F%2F%20yval%20%3D%20Estimates%5B2%5D%20*%20xval%20%2B%20Estimates%5B1%5D%3B%20idx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%20yval%20%3D%20Interpolate(xval%E3%80%81m_x%E3%80%81m_y)%3B%20Report(gb)%5BAxisBox(1)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(xval)%3B%20Report(gb)%5BAxisBox(2)%5D%20%26lt%3B%26lt%3B%20Add%20Ref%20Line(yval)%3B%20*%2F%20%2F*%20m_x%5B2%3A%3AN%20Rows(m_x)%3A%3A2%5D%20-%20m_x%5B1%3A%3AN%20Rows(m_x)%20-%201%3A%3A2%5D%20m_y%5B2%3A%3AN%20Rows(m_y)%3A%3A2%5D%20-%20m_y%5B1%3A%3AN%20Rows(m_y)%20-%201%3A%3A2%5D%20sl%20%3D%20Spline%20Smooth(m_x%2C%20m_y%2C%20Smooth)%3B%20*%2F%20Report(gb)%5BFrameBox(1)%5D%20%26lt%3B%26lt%3B%20%E3%82%B0%E3%83%A9%E3%83%95%E3%82%A3%E3%83%83%E3%82%AF%E3%82%B9%20%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0(%20ls%20%3D%20fb%20%26lt%3B%26lt%3B%20Find%20Seg(LineSeg(1))%3B%20m_x%20%3D%20ls%20%26lt%3B%26lt%3B%20X%20%E5%80%A4%E3%82%92%E5%8F%96%E5%BE%97%3B%20m_y%20%3D%20ls%20%26lt%3B%26lt%3B%20Y%20%E5%80%A4%E3%82%92%E5%8F%96%E5%BE%97%3B%20Marker(Marker%20State(3)%2C%20m_x%2C%20m_y)%3B%20%E3%83%9A%E3%83%B3%20%E3%82%B5%E3%82%A4%E3%82%BA(1)%3B%20Line(m_x%2C%20m_y)%3B%20yval%20%3D%20Interpolate(slider_x%2C%20m_x%2C%20m_y)%3B%20%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%20%E3%82%B5%E3%82%A4%E3%82%BA(5)%3B%20Marker(Marker%20State(12)%2C%20%7Bslider_x%2C%20yval%7D)%3B%20V%20Line(slider_x)%3B%20H%20Line(yval)%3B%20Text(Right%20Justified%2C%20Eval%20List(%7Bslider_x%2C%20yval%20%2B%201%7D)%2C%20Eval%20Insert(%22(%5ERound(slider_x%2C%203)%5E%2C%20%5ERound(yval%2C%203)%5E)%22))%3B%20Peaks%20%3D%20m_y%5B1%3A%3AN%20Rows(m_y)%20-%202%5D%20%26lt%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26amp%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26gt%3B%20m_y%5B3%3A%3AN%20Rows(m_y)%5D%20%7C%20m_y%5B1%3A%3AN%20Rows(m_y)%20-%202%5D%20%26gt%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26amp%3B%20m_y%5B2%3A%3AN%20Rows(m_y)%20-%201%5D%20%26lt%3B%20m_y%5B3%3A%3AN%20Rows(m_y)%5D%3Bpeak_idx%20%3D%20Loc(peaks)%20%2B%201%3B%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E3%82%B5%E3%82%A4%E3%82%BA(3)%3B%E5%A1%97%E3%82%8A%E3%81%A4%E3%81%B6%E3%81%97%E8%89%B2(%22%E8%B5%A4%22)%3B%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC(%E7%B5%90%E5%90%88%E7%8A%B6%E6%85%8B(%E8%89%B2%E7%8A%B6%E6%85%8B(%22%E8%B5%A4%22)%2C%20%E3%83%9E%E3%83%BC%E3%82%AB%E3%83%BC%E7%8A%B6%E6%85%8B(15))%2C%20m_x%5Bpeak_idx%5D%2C%20m_y%5Bpeak_idx%5D)%3B%20)%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%3C%2FDIV%3E%0A%3CP%3E%20%3C%2FP%3E%0A%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
ChernoffTurtle7
Level III

How to get exact cumulative Prob at specified value in CDF Plot?

For attached example, how to get the exact cumulative Prob at specified value(500) in CDF Plot?

Thanks!

ChernoffTurtle7_0-1722227853858.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to get exact cumulative Prob at specified value in CDF Plot?

One option is to use Crosshair toolbar tool

jthi_0-1722229523647.png

 

-Jarmo

View solution in original post

4 REPLIES 4
jthi
Super User

Re: How to get exact cumulative Prob at specified value in CDF Plot?

One option is to use Crosshair toolbar tool

jthi_0-1722229523647.png

 

-Jarmo
jthi
Super User

Re: How to get exact cumulative Prob at specified value in CDF Plot?

You can also script it and get an approximate value

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

dist = dt << Distribution(Column(:NPN1), CDF Plot(1));
fb = Report(dist)["CDF Plot",FrameBox(1)];

ls = fb << Find Seg(LinesSeg(1));

m = ls << get lines;

xval = 115;

idx = Loc Min(m[0, 1] - xval < 0) - 1;
val = m[idx, 2];

show(val);

// Report(dist)["CDF Plot",AxisBox(1)] << Add Ref Line(val);
// Report(dist)["CDF Plot",AxisBox(2)] << Add Ref Line(xval);

You might want to refine the logic how the specific value is calculated from the m matrix

-Jarmo
hogi
Level XII

Re: How to get exact cumulative Prob at specified value in CDF Plot?

wow, that's powerful!

jthi
Super User

Re: How to get exact cumulative Prob at specified value in CDF Plot?

This goes much off the topic but I tried to do something similar for Graph Builder which uses LineSeg instead of LinesSeg. Due to the smoothing it gets much more difficult and it is time for me to give up (at least for now). Attached is the script and I left some of my "working notes" as commented out code and the code isn't optimized at all.

jthi_1-1722354318500.png

 

View more...
/*""" Attempt to get y-value from Graph Builder LineSeg

Author: jthi
Creation Date: 2024-07-30
Creation JMP Version: JMP Pro 18.0.0

Description: 
	Original post which gave me this idea (LinesSeg)
	https://community.jmp.com/t5/Discussions/How-to-get-exact-cumulative-Prob-at-specified-value-in-CDF-Plot/m-p/777203
	
"""*/

Names Default To Here(1);
// https://community.jmp.com/t5/JMPer-Cable/Understanding-cubic-splines/ba-p/39511 can be interesting read

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

slider_x = 200;

nw = New Window("Test",
	V List Box(align("center"),
		V List Box(
			Text Box("Adjust to change X"),
			Slider Box(110, 530, slider_x, nw << update window, << Set Width(1000));
		),
		Text Box("Change graph builder smoother settings to see changes to see different fits"),
		gb = dt << Graph Builder(
			Size(1000, 600),
			Show Control Panel(1),
			Fit To Window("On"),
			Variables(X(:PNP1), Y(:NPN1)),
			Elements(Smoother(X, Y, Legend(4)))
		);
	);
);

fb = Report(gb)[FrameBox(1)];

/*
ls = fb << Find Seg(LineSeg(1));
m_x = ls << Get X Values;
m_y = ls << Get Y Values;
smooth = ls << Get Smoothness;

idx = Loc Sorted(m_x, Matrix(xval))[1];
// {Estimates, Std_Error, Diagnostics} = Linear Regression(m_y[idx::idx+1], m_x[idx::idx+1]);
// yval = Estimates[2] * xval + Estimates[1];
idx = Loc Sorted(m_x, Matrix(xval))[1];
yval = Interpolate(xval, m_x, m_y);
Report(gb)[AxisBox(1)] << Add Ref Line(xval);
Report(gb)[AxisBox(2)] << Add Ref Line(yval);
*/


/*
m_x[2::N Rows(m_x)::2] - m_x[1::N Rows(m_x) - 1::2]
m_y[2::N Rows(m_y)::2] - m_y[1::N Rows(m_y) - 1::2]
sl = Spline Smooth(m_x, m_y, smooth);
*/


Report(gb)[FrameBox(1)] << Add Graphics Script(
	ls = fb << Find Seg(LineSeg(1));
	m_x = ls << Get X Values;
	m_y = ls << Get Y Values;
	Marker(Marker State(3), m_x, m_y);
	Pen Size(1);
	Line(m_x, m_y);
	
	yval = Interpolate(slider_x, m_x, m_y);
	
	Marker Size(5);
	Marker(Marker State(12), {slider_x, yval});
	V Line(slider_x);
	H Line(yval);
	
	Text(Right Justified, Eval List({slider_x, yval + 1}), Eval Insert("(^Round(slider_x, 3)^, ^Round(yval, 3)^)"));
	
	peaks = m_y[1::N Rows(m_y) - 2] < m_y[2::N Rows(m_y) - 1] & m_y[2::N Rows(m_y) - 1] > m_y[3::N Rows(m_y)] |
	m_y[1::N Rows(m_y) - 2] > m_y[2::N Rows(m_y) - 1] & m_y[2::N Rows(m_y) - 1] < m_y[3::N Rows(m_y)];
	peak_idx = Loc(peaks) + 1;
	Marker Size(3);
	Fill Color("Red");
	Marker(Combine States(Color State("Red"), Marker State(15)), m_x[peak_idx], m_y[peak_idx]);
);

 

 

-Jarmo