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%3E%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%20CDF%20%E5%9B%BE%E4%B8%AD%E6%8C%87%E5%AE%9A%E5%80%BC%E7%9A%84%E7%B2%BE%E7%A1%AE%E7%B4%AF%E7%A7%AF%E6%A6%82%E7%8E%87%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777147%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E9%99%84%E4%BB%B6%E4%B8%AD%E7%9A%84%E4%BE%8B%E5%AD%90%EF%BC%8C%E5%A6%82%E4%BD%95%E5%9C%A8%20CDF%20%E5%9B%BE%E4%B8%AD%E8%8E%B7%E5%BE%97%E6%8C%87%E5%AE%9A%E5%80%BC%EF%BC%88500%EF%BC%89%E7%9A%84%E7%B2%BE%E7%A1%AE%E7%B4%AF%E7%A7%AF%E6%A6%82%E7%8E%87%EF%BC%9F%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%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%E7%A1%80%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90%E4%B8%8E%E5%BB%BA%E6%A8%A1%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%20CDF%20%E5%9B%BE%E4%B8%AD%E8%8E%B7%E5%BE%97%E6%8C%87%E5%AE%9A%E5%80%BC%E7%9A%84%E7%B2%BE%E7%A1%AE%E7%B4%AF%E7%A7%AF%E6%A6%82%E7%8E%87%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%B8%80%E7%A7%8D%E9%80%89%E6%8B%A9%E6%98%AF%E4%BD%BF%E7%94%A8%E5%8D%81%E5%AD%97%E7%BA%BF%E5%B7%A5%E5%85%B7%E6%A0%8F%E5%B7%A5%E5%85%B7%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%20CDF%20%E5%9B%BE%E4%B8%AD%E8%8E%B7%E5%BE%97%E6%8C%87%E5%AE%9A%E5%80%BC%E7%9A%84%E7%B2%BE%E7%A1%AE%E7%B4%AF%E7%A7%AF%E6%A6%82%E7%8E%87%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777203%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E8%BF%98%E5%8F%AF%E4%BB%A5%E7%BC%96%E5%86%99%E8%84%9A%E6%9C%AC%E5%B9%B6%E8%8E%B7%E5%8F%96%E8%BF%91%E4%BC%BC%E5%80%BC%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%3E%E4%BD%A0%E5%8F%AF%E8%83%BD%E6%83%B3%E8%A6%81%E6%94%B9%E8%BF%9B%E5%A6%82%E4%BD%95%E4%BB%8E%20m%20%E7%9F%A9%E9%98%B5%E8%AE%A1%E7%AE%97%E7%89%B9%E5%AE%9A%E5%80%BC%E7%9A%84%E9%80%BB%E8%BE%91%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-777208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%20CDF%20%E5%9B%BE%E4%B8%AD%E8%8E%B7%E5%BE%97%E6%8C%87%E5%AE%9A%E5%80%BC%E7%9A%84%E7%B2%BE%E7%A1%AE%E7%B4%AF%E7%A7%AF%E6%A6%82%E7%8E%87%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777208%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%93%87%EF%BC%8C%E5%A5%BD%E5%BC%BA%E5%A4%A7%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%20CDF%20%E5%9B%BE%E4%B8%AD%E8%8E%B7%E5%BE%97%E6%8C%87%E5%AE%9A%E5%80%BC%E7%9A%84%E7%B2%BE%E7%A1%AE%E7%B4%AF%E7%A7%AF%E6%A6%82%E7%8E%87%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777449%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E8%BF%99%E7%A6%BB%E9%A2%98%E5%A4%AA%E8%BF%9C%E4%BA%86%EF%BC%8C%E4%BD%86%E6%88%91%E5%B0%9D%E8%AF%95%E5%AF%B9%20Graph%20Builder%20%E5%81%9A%E7%B1%BB%E4%BC%BC%E7%9A%84%E4%BA%8B%E6%83%85%EF%BC%8C%E4%BD%BF%E7%94%A8%20LineSeg%20%E8%80%8C%E4%B8%8D%E6%98%AF%20LinesSeg%E3%80%82%E7%94%B1%E4%BA%8E%E5%B9%B3%E6%BB%91%EF%BC%8C%E5%AE%83%E5%8F%98%E5%BE%97%E6%9B%B4%E5%8A%A0%E5%9B%B0%E9%9A%BE%EF%BC%8C%E6%98%AF%E6%97%B6%E5%80%99%E6%94%BE%E5%BC%83%E4%BA%86%EF%BC%88%E8%87%B3%E5%B0%91%E7%8E%B0%E5%9C%A8%EF%BC%89%E3%80%82%E9%99%84%E4%BB%B6%E6%98%AF%E8%84%9A%E6%9C%AC%EF%BC%8C%E6%88%91%E7%95%99%E4%B8%8B%E4%BA%86%E4%B8%80%E4%BA%9B%E2%80%9C%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0%E2%80%9D%E4%BD%9C%E4%B8%BA%E6%B3%A8%E9%87%8A%E6%8E%89%E7%9A%84%E4%BB%A3%E7%A0%81%EF%BC%8C%E4%BB%A3%E7%A0%81%E6%A0%B9%E6%9C%AC%E6%B2%A1%E6%9C%89%E4%BC%98%E5%8C%96%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%E6%9F%A5%E7%9C%8B%E6%9B%B4%E5%A4%9A...%3C%2FA%3E%3CNOSCRIPT%3E%EF%BC%88%E7%AA%81%E5%87%BA%E6%98%BE%E7%A4%BA%E4%BB%A5%E9%98%85%E8%AF%BB%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%20%E5%B0%9D%E8%AF%95%E4%BB%8E%20Graph%20Builder%20LineSeg%20%E8%8E%B7%E5%8F%96%20y%20%E5%80%BC%E4%BD%9C%E8%80%85%EF%BC%9Ajthi%20%E5%88%9B%E5%BB%BA%E6%97%A5%E6%9C%9F%EF%BC%9A2024-07-30%20%E5%88%9B%E5%BB%BA%20JMP%20%E7%89%88%E6%9C%AC%EF%BC%9AJMP%20Pro%2018.0.0%20%E8%AF%B4%E6%98%8E%EF%BC%9A%E7%BB%99%E6%88%91%E8%BF%99%E4%B8%AA%E6%83%B3%E6%B3%95%E7%9A%84%E5%8E%9F%E5%A7%8B%E5%B8%96%E5%AD%90%EF%BC%88LinesSeg%EF%BC%89%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%E9%98%85%E8%AF%BB%E8%B5%B7%E6%9D%A5%E5%BE%88%E6%9C%89%E8%B6%A3%20dt%20%3D%20Open(%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22)%3B%20slider_x%20%3D%20200%3B%20nw%20%3D%20%E6%96%B0%E7%AA%97%E5%8F%A3%EF%BC%88%E2%80%9C%E6%B5%8B%E8%AF%95%E2%80%9D%EF%BC%8CV%20%E5%88%97%E8%A1%A8%E6%A1%86%EF%BC%88align%EF%BC%88%E2%80%9Ccenter%E2%80%9D%EF%BC%89%EF%BC%8CV%20%E5%88%97%E8%A1%A8%E6%A1%86%EF%BC%88%E6%96%87%E6%9C%AC%E6%A1%86%EF%BC%88%E2%80%9C%E8%B0%83%E6%95%B4%E4%BB%A5%E6%9B%B4%E6%94%B9%20X%E2%80%9D%EF%BC%89%EF%BC%8C%E6%BB%91%E5%9D%97%E6%A1%86%EF%BC%88110%EF%BC%8C530%EF%BC%8Cslider_x%EF%BC%8Cnw%20%26lt%3B%26lt%3B%20%E6%9B%B4%E6%96%B0%E7%AA%97%E5%8F%A3%EF%BC%8C%26lt%3B%26lt%3B%20%E8%AE%BE%E7%BD%AE%E5%AE%BD%E5%BA%A6%EF%BC%881000%EF%BC%89%EF%BC%89%EF%BC%9B%EF%BC%89%EF%BC%8C%E6%96%87%E6%9C%AC%E6%A1%86%EF%BC%88%E2%80%9C%E6%9B%B4%E6%94%B9%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%E5%B9%B3%E6%BB%91%E5%99%A8%E8%AE%BE%E7%BD%AE%E4%BB%A5%E6%9F%A5%E7%9C%8B%E5%8F%98%E5%8C%96%E4%BB%A5%E6%9F%A5%E7%9C%8B%E4%B8%8D%E5%90%8C%E7%9A%84%E6%8B%9F%E5%90%88%E2%80%9D%EF%BC%89%EF%BC%8Cgb%20%3D%20dt%20%26lt%3B%26lt%3B%20%E5%9B%BE%E5%BD%A2%E7%94%9F%E6%88%90%E5%99%A8%EF%BC%88%E5%A4%A7%E5%B0%8F%EF%BC%881000%2C%20600%EF%BC%89%EF%BC%8C%E6%98%BE%E7%A4%BA%E6%8E%A7%E5%88%B6%E9%9D%A2%E6%9D%BF%EF%BC%881%EF%BC%89%EF%BC%8C%E9%80%82%E5%90%88%E7%AA%97%E5%8F%A3%EF%BC%88%E2%80%9C%E5%BC%80%E2%80%9D%EF%BC%89%EF%BC%8C%E5%8F%98%E9%87%8F%EF%BC%88X%EF%BC%88%EF%BC%9APNP1%EF%BC%89%EF%BC%8CY%EF%BC%88%EF%BC%9ANPN1%EF%BC%89%EF%BC%89%EF%BC%8C%E5%85%83%E7%B4%A0%EF%BC%88%E5%B9%B3%E6%BB%91%E5%99%A8%EF%BC%88X%EF%BC%8CY%EF%BC%8C%E5%9B%BE%E4%BE%8B%EF%BC%884%EF%BC%89%EF%BC%89%EF%BC%89%EF%BC%89%EF%BC%9B%EF%BC%89%EF%BC%9B%EF%BC%89%EF%BC%9B%EF%BC%89%EF%BC%9Bfb%20%3D%20%E6%8A%A5%E5%91%8A%EF%BC%88gb%EF%BC%89%5BFrameBox%EF%BC%881%EF%BC%89%5D%EF%BC%9B%2F*%20ls%20%3D%20fb%20%26lt%3B%26lt%3B%20%E6%9F%A5%E6%89%BE%20Seg%EF%BC%88LineSeg%EF%BC%881%EF%BC%89%EF%BC%89%EF%BC%9Bm_x%20%3D%20ls%20%26lt%3B%26lt%3B%20%E8%8E%B7%E5%8F%96%20X%20%E5%80%BC%EF%BC%9Bm_y%20%3D%20ls%20%26lt%3B%26lt%3B%20%E8%8E%B7%E5%8F%96%20Y%20%E5%80%BC%EF%BC%9B%20smooth%20%3D%20ls%20%26lt%3B%26lt%3B%20%E8%8E%B7%E5%8F%96%E5%B9%B3%E6%BB%91%E5%BA%A6%EF%BC%9Bidx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%20%2F%2F%20%7B%E4%BC%B0%E8%AE%A1%E5%80%BC%E3%80%81Std_Error%E3%80%81%E8%AF%8A%E6%96%AD%7D%20%3D%20%E7%BA%BF%E6%80%A7%E5%9B%9E%E5%BD%92(m_y%5Bidx%3A%3Aidx%2B1%5D%2C%20m_x%5Bidx%3A%3Aidx%2B1%5D)%3B%20%2F%2F%20yval%20%3D%20%E4%BC%B0%E8%AE%A1%E5%80%BC%5B2%5D%20*%20xval%20%2B%20%E4%BC%B0%E8%AE%A1%E5%80%BC%5B1%5D%3B%20idx%20%3D%20Loc%20Sorted(m_x%2C%20Matrix(xval))%5B1%5D%3B%20yval%20%3D%20Interpolate(xval%2C%20m_x%2C%20m_y)%3B%20Report(gb)%5BAxisBox(1)%5D%20%26lt%3B%26lt%3B%20%E6%B7%BB%E5%8A%A0%E5%8F%82%E8%80%83%E7%BA%BF(xval)%3B%20Report(gb)%5BAxisBox(2)%5D%20%26lt%3B%26lt%3B%20%E6%B7%BB%E5%8A%A0%E5%8F%82%E8%80%83%E7%BA%BF(yval)%3B%20*%2F%20%2F*%20m_x%5B2%3A%3AN%20%E8%A1%8C%EF%BC%88m_x)%3A%3A2%5D%20-%20m_x%5B1%3A%3AN%20%E8%A1%8C%EF%BC%88m_x%EF%BC%89%20-%201%3A%3A2%5D%20m_y%5B2%3A%3AN%20%E8%A1%8C%EF%BC%88m_y)%3A%3A2%5D%20-%20m_y%5B1%3A%3AN%20%E8%A1%8C%EF%BC%88m_y%EF%BC%89%20-%201%3A%3A2%5D%20sl%20%3D%20%E6%A0%B7%E6%9D%A1%E5%B9%B3%E6%BB%91%EF%BC%88m_x%EF%BC%8C%20m_y%EF%BC%8C%E5%B9%B3%E6%BB%91%EF%BC%89%EF%BC%9B%20*%2F%20Report(gb)%5BFrameBox(1)%5D%20%26lt%3B%26lt%3B%20%E6%B7%BB%E5%8A%A0%E5%9B%BE%E5%BD%A2%E8%84%9A%E6%9C%AC%20(%20ls%20%3D%20fb%20%26lt%3B%26lt%3B%20%E6%9F%A5%E6%89%BE%20Seg(LineSeg(1))%3B%20m_x%20%3D%20ls%20%26lt%3B%26lt%3B%20%E8%8E%B7%E5%8F%96%20X%20%E5%80%BC%3B%20m_y%20%3D%20ls%20%26lt%3B%26lt%3B%20%E8%8E%B7%E5%8F%96%20Y%20%E5%80%BC%3B%20%E6%A0%87%E8%AE%B0%20(%E6%A0%87%E8%AE%B0%E7%8A%B6%E6%80%81%20(3)%2C%20m_x%2C%20m_y)%3B%20%E7%AC%94%E5%A4%A7%E5%B0%8F%20(1)%3B%20%E7%BA%BF%20(m_x%2C%20m_y)%3B%20yval%20%3D%20%E6%8F%92%E5%80%BC%20(slider_x%2C%20m_x%2C%20m_y)%3B%20%E6%A0%87%E8%AE%B0%E5%A4%A7%E5%B0%8F%20(5)%3B%20%E6%A0%87%E8%AE%B0%20(%E6%A0%87%E8%AE%B0%E7%8A%B6%E6%80%81%20(12)%2C%20%7Bslider_x%2C%20yval%7D)%3B%20V%20%E7%BA%BF%20(slider_x)%3B%20H%20%E7%BA%BF%20(yval)%3B%20%E6%96%87%E6%9C%AC%20(%E5%8F%B3%E5%AF%B9%E9%BD%90%2C%20Eval%20%E5%88%97%E8%A1%A8%20(%7Bslider_x%2C%20yval%20%2B%201%7D)%2C%20Eval%20%E6%8F%92%E5%85%A5%20(%22(%5ERound(slider_x%2C%203)%5E%2C%20%5ERound(yval%2C%203)%5E)%22))%3B%20peaks%20%3D%20m_y%5B1%3A%3AN%20%E8%A1%8C%20(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%3B%20peak_idx%20%3D%20Loc(peaks)%20%2B%201%3B%20%E6%A0%87%E8%AE%B0%E5%A4%A7%E5%B0%8F(3)%3B%20%E5%A1%AB%E5%85%85%E9%A2%9C%E8%89%B2(%22%E7%BA%A2%E8%89%B2%22)%3B%20%E6%A0%87%E8%AE%B0(%E7%BB%84%E5%90%88%E7%8A%B6%E6%80%81(%E9%A2%9C%E8%89%B2%E7%8A%B6%E6%80%81(%22%E7%BA%A2%E8%89%B2%22)%2C%20%E6%A0%87%E8%AE%B0%E7%8A%B6%E6%80%81(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