cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-418865%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E3%80%8CFitYby%20Xanalysis%E3%80%8D%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%82%8B%E3%82%B9%E3%83%97%E3%83%A9%E3%82%A4%E3%83%B3%E3%83%95%E3%82%A3%E3%83%83%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E3%81%AE%E3%83%A9%E3%83%A0%E3%83%80%E5%80%A4%E3%81%8C%E3%80%8CGraphBuilder%E3%80%8D%E3%81%A8%E7%95%B0%E3%81%AA%E3%82%8B%E3%81%AE%E3%81%AF%E3%81%AA%E3%81%9C%E3%81%A7%E3%81%99%E3%81%8B%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-418865%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81JMP%E9%96%8B%E7%99%BA%E8%80%85%E3%80%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJMP15.2.1%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E4%BB%A5%E4%B8%8B%E3%81%AE%E3%82%88%E3%81%86%E3%81%AB%E3%80%81%E4%B8%80%E5%85%83%E9%85%8D%E7%BD%AE%E5%88%86%E6%95%A3%E5%88%86%E6%9E%90%EF%BC%88Fit%20Y%20by%20X%EF%BC%89%E3%83%97%E3%83%A9%E3%83%83%E3%83%88%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A0%E3%81%A8%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%9F%E5%A0%B4%E5%90%88%E3%81%AEJMP%E3%81%A7%E3%81%AE%E6%BB%91%E3%82%89%E3%81%8B%E3%81%AA%E3%83%95%E3%82%A3%E3%83%83%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E7%B5%90%E6%9E%9C%EF%BC%88%E5%90%8C%E3%81%98%E3%83%87%E3%83%BC%E3%82%BF%E3%82%BB%E3%83%83%E3%83%88%EF%BC%89%E3%81%AF%E3%80%81%E5%90%8C%E3%81%98%E3%83%A9%E3%83%A0%E3%83%80%3D%20100%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%AB%E3%82%88%E3%82%8A%E3%80%81%E6%9B%B2%E7%B7%9A%E3%81%AE%E6%BB%91%E3%82%89%E3%81%8B%E3%81%95%E3%81%8C%E3%81%BE%E3%81%A3%E3%81%9F%E3%81%8F%E7%95%B0%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%20%EF%BC%88%EF%BC%88%3CSTRONG%3E%E3%83%95%E3%82%A3%E3%83%83%E3%83%88%E3%81%AF%E5%90%8C%E3%81%98%E3%81%A7%E3%81%99%3C%2FSTRONG%3E%3CSTRONG%3E%E3%83%A9%E3%83%A0%E3%83%80%3C%2FSTRONG%3E%3CSTRONG%3E%E5%80%A4%E3%81%AF%E7%B4%8420%E5%80%8D%E7%95%B0%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%3C%2FSTRONG%3E%EF%BC%89%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E3%81%9D%E3%81%AE%E3%82%88%E3%81%86%E3%81%AA%E9%81%95%E3%81%84%E3%81%AE%E7%90%86%E7%94%B1%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%81%8B%EF%BC%9F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Jing_0-1631842068117.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Jing_0-1631842068117.png%22%20style%3D%22width%3A%20293px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F35879iD28470F7870595C3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Jing_0-1631842068117.png%22%20alt%3D%22Jing_0-1631842068117.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-418865%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E3%82%B0%E3%83%A9%E3%83%95%E3%82%A3%E3%83%83%E3%82%AF%E3%82%B9%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-419066%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%EF%BC%9A%E3%80%8CFitY%20by%20Xanalysis%E3%80%8D%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%95%E3%82%8C%E3%82%8B%E3%82%B9%E3%83%97%E3%83%A9%E3%82%A4%E3%83%B3%E3%83%95%E3%82%A3%E3%83%83%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0%E3%81%AE%E3%83%A9%E3%83%A0%E3%83%80%E5%80%A4%E3%81%8C%E3%80%8CGraphBuilder%E3%80%8D%E3%81%A8%E7%95%B0%E3%81%AA%E3%82%8B%E3%81%AE%E3%81%AF%E3%81%AA%E3%81%9C%E3%81%A7%E3%81%99%E3%81%8B%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-419066%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%82%84%E3%81%82%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F13676%22%20target%3D%22_blank%22%3E%40%E3%82%B8%E3%83%B3%3C%2FA%3E%E3%80%81%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%81%AF%E3%80%81%E6%A8%99%E6%BA%96%E5%8C%96%E3%81%95%E3%82%8C%E3%81%9FX%E5%A4%89%E6%95%B0%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E4%BA%8C%E5%A4%89%E9%87%8F%E3%81%A7%E5%90%8C%E3%81%98%E7%B7%9A%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%80%81%5B%E8%B5%A4%E3%81%84%E4%B8%89%E8%A7%92%E5%BD%A2%5D%26gt%3B%20%5B%E3%83%95%E3%83%AC%E3%82%AD%E3%82%B7%E3%83%96%E3%83%AB%5D%26gt%3B%20%5B%E3%82%B9%E3%83%97%E3%83%A9%E3%82%A4%E3%83%B3%E3%81%AB%E5%90%88%E3%82%8F%E3%81%9B%E3%82%8B%5D%E3%81%A7%5B%E3%81%9D%E3%81%AE%E4%BB%96...%5D%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%97%E3%80%810.05%E3%81%AE%E3%83%A9%E3%83%A0%E3%83%80%EF%BC%88%E3%82%B0%E3%83%A9%E3%83%95%E3%83%93%E3%83%AB%E3%83%80%E3%83%BC%E3%81%AE%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%EF%BC%89%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%80%81%5BX%E3%81%AE%E6%A8%99%E6%BA%96%E5%8C%96%5D%E3%82%92%E3%82%AA%E3%83%B3%E3%81%AB%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ih_0-1631906006128.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ih_0-1631906006128.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F35911i24274CD1EE7DCF11%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ih_0-1631906006128.png%22%20alt%3D%22ih_0-1631906006128.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%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%3CDIV%20class%3D%22lia-spoiler-content%22%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%2FCar%20Physical%20Data.jmp%22)%3B%0A%0ANew%20Window(%22Compare%22%2C%0A%20H%20List%20Box(%0A%20%20Bivariate(%0A%20%20%20Y(%20%3AWeight%20)%2C%0A%20%20%20X(%20%3ADisplacement%20)%2C%0A%20%20%20Fit%20Spline(%200.05%2C%20Standardized%2C%20%7BLine%20Color(%20%7B61%2C%20174%2C%2070%7D%20)%7D%20)%2C%0A%20%20%20Where(%20%3ACountry%20%3D%3D%20%22Japan%22%20)%0A%20%20)%2C%0A%20%20Graph%20Builder(%0A%20%20%20Size(%20400%2C%20320%20)%2C%0A%20%20%20Show%20Control%20Panel(%200%20)%2C%0A%20%20%20Variables(%20X(%20%3ADisplacement%20)%2C%20Y(%20%3AWeight%20)%2C%20Overlay(%20%3ACountry%20)%20)%2C%0A%20%20%20Elements(%0A%20%20%20%20Points(%20X%2C%20Y%2C%20Legend(%2014%20)%20)%2C%0A%20%20%20%20Smoother(%20X%2C%20Y%2C%20Legend(%2015%20)%2C%20Lambda(%200.05%20)%20)%0A%20%20%20)%2C%0A%20%20%20Local%20Data%20Filter(%0A%20%20%20%20Close%20Outline(%201%20)%2C%0A%20%20%20%20Add%20Filter(%20columns(%20%3ACountry%20)%2C%20Where(%20%3ACountry%20%3D%3D%20%22Japan%22%20)%20)%0A%20%20%20)%0A%20%20)%0A%20)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3E%E5%90%8D%E5%89%8D%E3%81%AE%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%81%AFhere%EF%BC%881%EF%BC%89%E3%81%A7%E3%81%99%E3%80%82%20dt%20%3D%20Open%EF%BC%88%20%22%24%20Sample_data%20%2F%20Car%20Physical%20Data.jmp%22%EF%BC%89%3B%20New%20Window%EF%BC%88%20%22Compare%22%E3%80%81H%20List%20Box%EF%BC%88Bivariate%EF%BC%88Y%EF%BC%88%EF%BC%9AWeight%EF%BC%89%E3%80%81X%EF%BC%88%EF%BC%9ADisplacement%EF%BC%89%E3%80%81Fit%20Spline%EF%BC%880.05%E3%80%81Standardized%E3%80%81%7BLine%20Color%EF%BC%88%7B61%E3%80%81174%E3%80%8170%7D%EF%BC%89%7D%EF%BC%89%E3%80%81Where%EF%BC%88%EF%BC%9A%20Country%20%3D%3D%20%22Japan%22%EF%BC%89%EF%BC%89%E3%80%81Graph%20Builder%EF%BC%88Size%EF%BC%88400%E3%80%81320%EF%BC%89%E3%80%81Show%20Control%20Panel%EF%BC%880%EF%BC%89%E3%80%81Variables%EF%BC%88X%EF%BC%88%EF%BC%9ADisplacement%EF%BC%89%E3%80%81Y%EF%BC%88%EF%BC%9AWeight%EF%BC%89%E3%80%81Overlay%EF%BC%88%EF%BC%9ACountry%EF%BC%89%EF%BC%89%E3%80%81Elements%EF%BC%88Points%20%EF%BC%88X%E3%80%81Y%E3%80%81Legend%EF%BC%8814%EF%BC%89%EF%BC%89%E3%80%81Smoother%EF%BC%88X%E3%80%81Y%E3%80%81Legend%EF%BC%8815%EF%BC%89%E3%80%81Lambda%EF%BC%880.05%EF%BC%89%EF%BC%89%EF%BC%89%E3%80%81Local%20Data%20Filter%EF%BC%88Close%20Outline%EF%BC%881%EF%BC%89%E3%80%81Add%20Filter%EF%BC%88columns%EF%BC%88%EF%BC%9ACountry%EF%BC%89%E3%80%81Where%EF%BC%88%20%EF%BC%9ACountry%20%3D%3D%20%22Japan%22%EF%BC%89%EF%BC%89%EF%BC%89%EF%BC%89%EF%BC%89%EF%BC%89%EF%BC%89%3B%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Jing
Level I

Why the lambda value of Spline fitting used in "Fit Y by X analysis" is different from the "Graph Builder"?

Hello, JMP developers,

 

I'm using JMP15.2.1 version.

 

As below smooth fitting results(same datasets) in JMP when using the One Way Analysis (Fit Y by X)  platform vs. Graph Builder, by setting the same lambda=100, the smoothness of the curve is totally different. (Fits are the same even if the lambda values differ by approximately 20x)

 

Is there a reason for such difference? 

 

Jing_0-1631842068117.png

 

4 REPLIES 4
ih
Super User (Alumni) ih
Super User (Alumni)

Re: Why the lambda value of Spline fitting used in "Fit Y by X analysis" is different from the "Graph Builder"?

Hi @Jing,

 

The graph builder uses standardized X variables.  To get the same line in Bivariate, choose 'Other...' under the Red Triangle > Flexible > Fit Spline, use a lamda of 0.05 (default in graph builder) and check 'Standardize X'.

 

ih_0-1631906006128.png

 

View more...
Names default to here(1);

dt = Open("$Sample_data/Car Physical Data.jmp");

New Window("Compare",
	H List Box(
		Bivariate(
			Y( :Weight ),
			X( :Displacement ),
			Fit Spline( 0.05, Standardized, {Line Color( {61, 174, 70} )} ),
			Where( :Country == "Japan" )
		),
		Graph Builder(
			Size( 400, 320 ),
			Show Control Panel( 0 ),
			Variables( X( :Displacement ), Y( :Weight ), Overlay( :Country ) ),
			Elements(
				Points( X, Y, Legend( 14 ) ),
				Smoother( X, Y, Legend( 15 ), Lambda( 0.05 ) )
			),
			Local Data Filter(
				Close Outline( 1 ),
				Add Filter( columns( :Country ), Where( :Country == "Japan" ) )
			)
		)
	)
);

 

Re: Why the lambda value of Spline fitting used in "Fit Y by X analysis" is different from the "Graph Builder"?

What does Standardize X mean? How is it useful?

ErraticAttack
Level VI

Re: Why the lambda value of Spline fitting used in "Fit Y by X analysis" is different from the "Graph Builder"?

Standardized X means that you normalize your X distribution:

 

x = [[[ ARRAY OF X VALUES ]]]

x = (x - Mean( x )) / Std Dev( x );

After this, you'll create your cubic smoothing spline polynomials, then when creating your splines (which will be placed into this new scaled-x space), you simply unscale your spline's x-values.

Jordan
Binyamin
Level II

Re: Why the lambda value of Spline fitting used in "Fit Y by X analysis" is different from the "Graph Builder"?

I have a bit more data that I used and I get a very different spline fit using the graph builder and bivariate spline fit.
The graphs have the same scales, and there seems to be a horizontal shift in the splines.

The graph builder is on top while the bottom is from the bivariate fit.

 

Binyamin_0-1748518978126.png

Binyamin_3-1748519202924.png

 

Binyamin_1-1748518993920.png

Binyamin_2-1748519164488.png

 

TIA for any input

 

Recommended Articles