SlideShare a Scribd company logo
1 of 5
Download to read offline
Determining the rate of event in the exponential equation
N. Kejalakshmy
	
Determining	the	rate	of	event	in	the	exponential	equation		
	
Abstract:		This	article	examines	the	differentiation	of	exponential	function.		The	differentiation	yields	the	rate	of	the	equation.		The	method	of	
differentiation	can	be	applied	to	determine	the	unknown	constants	of	an	exponential	equation.			
1. Introduction:	
Let’s	assume	output	data	y	is	dependent	on	the	variable	x	and	has	the	following	form,	
𝑦 = 𝐴	 𝑒&'
	
[1]	
In	the	above	equation	A	and	𝜆	are	constants.		𝜆	can	also	be	called	rate	of	the	event.		‘A’	can	
be	named	as	initial	population.		This	is	because	when	x=0,	y	will	be	equal	to	A.			The	above	
equation	can	be	solved	by	taking	the	logarithmic	on	both	sides	as	follows,	
log 𝑦 = log 𝐴 + 	 𝜆𝑥	
[2]	
As	in	the	above	equation,	log(y)	is	linearly	dependent	on	x,	traditionally	Eq.	[1]	is	solved	by	
applying	simple	linear	regression	analysis	on	Eq.	[2].		
In	practice,	y	may	depend	on	more	than	one	rate	of	event.		Typical	scenarios:	
o switching	on	and	switching	off	a	LED	based	sensor.		
o Fluorescence	from	a	mixture	of	dyes.		
o Price	of	a	commodity	influenced	by	different	factors.	
Generally,	to	define	these	events	Eq.[1]	is	not	sufficient.		We	will	not	go	into	the	detail	of	
the	equation.		However,	we	will	consider	for	our	analysis	the	following	equation,	
𝑦 = 𝐵 + 𝐴1	 𝑒&0	'
	
[3]	
Where	 B	 is	 a	 constant	 (eg.	 B=Back	 ground	 noise).	 	 This	 article	 focusses	 on	 the	
differentiation	of	the	exponential	and	hence	extracting	the	parameter,	rate	of	event,	𝜆.		The	
rate	indicates	how	rapidly	the	curve	rise	or	fall.		Further	it	gives	indication	on	the	change	
of	pattern.		
2. Methodology:
Determining the rate of event in the exponential equation
N. Kejalakshmy
	
Applying	differentiation	on	Eq.	[1]	yields,	
𝑑𝑦
𝑑𝑥
= 𝜆 𝐴	 𝑒 𝜆𝑥
		
𝑑𝑦
𝑑𝑥
= 𝜆𝑦	
[4]	
Eq.	[4]	is	a	straight	line	equation	with	slope	equal	to	𝜆.		
3. Algorithm	used	to	solve	the	rate	𝝀		
To	evaluate	the	lambda	values,	the	following	approach	has	been	taken	in	the		shown	R	
script:	
• Read	input	data	x	and	y.	
• The	length	of	array	of	x	and	y	is	estimated.	
• Define	new	arrays	required	for	the	calculations.	
• For	each	point	calculate	the	differentiation	using	
o
∆45607∆45
∆'5607∆'5
	
• For	each	point	calculate	the	parameter	spotlambda	which	is	the	instantaneous	rate	
of	equation.	
• Calculate	the	midpoint	of	x	and	y.			
• Make	a	table	with	new	x,	y,	
∆45607∆45
∆'5607∆'5
	,	spotlambda	values.	
• Fit	a	straight	line	for	
∆45607∆45
∆'5607∆'5
		versus	y	and	calculate	the	slope	which	is	the	over	all	
rate	of	equation.	
3.1 R	script	
Given	below	is	R	based	script	to	solve	the	𝜆	value.	
expform1<-function(x,y) {	
# Equation of the form y=B*exp(lambda*x)	
#where x and y are variables. B and lambda are constant
#Solving for lambda
	
n<-length(x)	
delx<-rep(0,n-1)	
dely<-rep(0,n-1)	
delybydelx<-rep(0,n-1)	
spotlambda<-rep(0,n-1) # instantaneous lambda value.	
#spotlamda value can be used during the run time.
Determining the rate of event in the exponential equation
N. Kejalakshmy
	
ymid<-rep(0,n-1)	
xmid<-rep(0,n-1)	
	
for (i in 1:n-1)	
{	
delx[i]<-x[i+1]-x[i]	
dely[i]<-y[i+1]-y[i]	
#Calculating the differentiation. Divided difference have been used.
(though other formulae also can be applied) 	
delybydelx[i]<-dely[i]/delx[i]	
#Below we are finding a mid position between [i+1]th data AND [i]th data	
xmid[i]<-(x[i+1]+x[i])/2	
ymid[i]<-y[i]+((xmid[i]-x[i])*delybydelx[i])								
# In the above new array of y has been calculated using divided
difference.
#Calculation of spotlambda: 	
spotlambda[i]<-delybydelx[i]/y[i]	
}	
#make it as the table for the fitting 	
a<-as.table(cbind(xmid,ymid,delybydelx,spotlambda))	
#**********************	
# Fitting for lambda	
#**********************	
# The above table has newly interpolated y values and dy/dx values.	
# below is : Fitting straight line for the equation dy/dx Versus y	
# Note down the line pass through the origin	
fitted<-lm(a[,3]~a[,2]-1)	
print(summary(fitted))	
lambda1<-summary(fitted)$coefficients[1, 1]	
print('The value of the lambda is estimated as follow')	
print(c('lambda=',lambda1))	
print('end of analysis')	
return(a)	
}	
3.2 Concept	of	Instantaneous	rate	
In	the	above	approach	spotlamda	is	a	ratio	calculated	as	each	point	as	follow,	
𝜆89:; =
𝑑𝑦
𝑑𝑥
𝑦
	
[4]	
This	quantity	can	be	used	to	continuously	monitor	the	instantaneous	rate	value.		Hence	any	
drastic	change	in	‘𝜆89:;’,	instantaneous	rate	value,	indicates	a	change	in	the	event.
Determining the rate of event in the exponential equation
N. Kejalakshmy
	
3.3 Fitting	a	straight	line	to	obtain	rate	of	event	
Differentiation	at	each	point	has	been	calculated	for	successive	points.		The	array	‘ymid’	
represents	value	that	are	interpolated	between	successive	point.		A	linear	interpolation	has	
simply	implemented	(assuming	the	successive	points	are	closer).			A	liner	regression	fitting	
of	
<4
<'
	versus	‘y’	yields	the	𝜆	value.			
In	the	R	script	the	parameter	‘fitted’	is	a	linear	regression	fit	of	
<4
<'
	against	y.		‘lambda1’	is	
the	slope	of	fit	and	hence	corresponds	to	required	lambda	value.		The	script	returns	a	table	
of	interpolated	x	(‘xmid’),		interpolated	y	values		y	(‘ymid’),			
<4
<'
	and	spotlamda.	
3.4 An	example	and	the	output	of	the	R	function	
Let us create data x1 and y1 as follow:
>lambda <- 0.06
>x1 =seq(11,20,by=1)
>y1= (1*exp(lambda * x1))
As the focus of the article is about the approach, error term has not added at this moment. Executing the
following call function yields an output. The created object ‘a’ is an output table for analysis.
>a<-expform1(x1,y1)
Call:
lm(formula = a[, 3] ~ a[, 2] - 1)
Residuals:
Min 1Q Median 3Q Max
-7.728e-16 -1.650e-16 4.300e-17 2.510e-16 5.069e-16
Coefficients:
Estimate Std. Error t value Pr(>|t|)
a[, 2] 5.998e-02 4.980e-17 1.204e+15 <2e-16 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 3.88e-16 on 8 degrees of freedom
Multiple R-squared: 1,Adjusted R-squared: 1
F-statistic: 1.451e+30 on 1 and 8 DF, p-value: < 2.2e-16
[1] "The value of the lambda is estimated as follow"
[1] "lambda=" "0.0599820064776403"
[1] "end of analysis"
>
> a
xmid ymid delybydelx spotlambda
A 11.50000000 1.99461277 0.11964088 0.06183655
B 12.50000000 2.11795274 0.12703905 0.06183655
Determining the rate of event in the exponential equation
N. Kejalakshmy
	
C 13.50000000 2.24891962 0.13489471 0.06183655
D 14.50000000 2.38798504 0.14323613 0.06183655
E 15.50000000 2.53564979 0.15209336 0.06183655
F 16.50000000 2.69244562 0.16149829 0.06183655
G 17.50000000 2.85893716 0.17148479 0.06183655
H 18.50000000 3.03572396 0.18208881 0.06183655
I 19.50000000 3.22344264 0.19334856 0.06183655
4. Conclusion	
This	method	is	less	accurate	than	the	logarithmic	method	as	it	involves	calculation	of	
first	order	difference	
<4
<'
.				However,	this	method	becomes	powerful	tool	when	an	output	
data	is	continuously	monitored	or	when	the	measurement	interval	is	small.		Instantaneous	
rate	is	useful	for	predicting	life	of	an	event	or	any	change	in	the	event.		It	is	possible	that	
value	of	instantaneous	rate	can	be	affected	by	error.		In	that	case	fitting	
<4
<'
	versus	y	over	a	
small	range	of	data	gives	a	better	prediction	of	the	instantaneous	rate.			
The	 method	 of	 differentiation	 of	 exponential	 equation	 can	 be	 applied	 for	 iterative	
methods	where	an	initial	value	will	be	provided.			This	method	can	easily	be	extended	to	
solve	the	value	of	B	in	Eq.[3]	and	also	for	the	equation	of	the	form	as		𝑦 = 𝐵 𝐴	 𝑒='
+ 𝐴	 𝑒&'
.

More Related Content

What's hot

Eigen values and eigen vectors
Eigen values and eigen vectorsEigen values and eigen vectors
Eigen values and eigen vectorstirath prajapati
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionMartinHogg9
 
Regression analysis
Regression analysisRegression analysis
Regression analysisbijuhari
 
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?Smarten Augmented Analytics
 
Eigenvalues and Eigenvectors
Eigenvalues and EigenvectorsEigenvalues and Eigenvectors
Eigenvalues and EigenvectorsVinod Srivastava
 
Math Geophysics-system of linear algebraic equations
Math Geophysics-system of linear algebraic equationsMath Geophysics-system of linear algebraic equations
Math Geophysics-system of linear algebraic equationsAmin khalil
 
Math major 14 differential calculus pw
Math major 14 differential calculus pwMath major 14 differential calculus pw
Math major 14 differential calculus pwReymart Bargamento
 
Algebra graphs and functions 4 4 4-5
Algebra graphs and functions 4 4 4-5Algebra graphs and functions 4 4 4-5
Algebra graphs and functions 4 4 4-5ola_school
 
Lesson 6 coefficient of determination
Lesson 6   coefficient of determinationLesson 6   coefficient of determination
Lesson 6 coefficient of determinationMehediHasan1023
 
Lesson 8: Determinants III
Lesson 8: Determinants IIILesson 8: Determinants III
Lesson 8: Determinants IIIMatthew Leingang
 
17 large scale machine learning
17 large scale machine learning17 large scale machine learning
17 large scale machine learningTanmayVijay1
 
REDES NEURONALES Performance Optimization
REDES NEURONALES Performance OptimizationREDES NEURONALES Performance Optimization
REDES NEURONALES Performance OptimizationESCOM
 
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationChristopher Gratton
 
Differential calculus
Differential calculusDifferential calculus
Differential calculusShubham .
 
Linerazation of systems
Linerazation of systemsLinerazation of systems
Linerazation of systemsChandan Taluja
 

What's hot (20)

Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Eigen values and eigen vectors
Eigen values and eigen vectorsEigen values and eigen vectors
Eigen values and eigen vectors
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?
 
Av 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background MaterialAv 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background Material
 
Eigenvalues and Eigenvectors
Eigenvalues and EigenvectorsEigenvalues and Eigenvectors
Eigenvalues and Eigenvectors
 
Math Geophysics-system of linear algebraic equations
Math Geophysics-system of linear algebraic equationsMath Geophysics-system of linear algebraic equations
Math Geophysics-system of linear algebraic equations
 
Math major 14 differential calculus pw
Math major 14 differential calculus pwMath major 14 differential calculus pw
Math major 14 differential calculus pw
 
Algebra graphs and functions 4 4 4-5
Algebra graphs and functions 4 4 4-5Algebra graphs and functions 4 4 4-5
Algebra graphs and functions 4 4 4-5
 
Lesson 6 coefficient of determination
Lesson 6   coefficient of determinationLesson 6   coefficient of determination
Lesson 6 coefficient of determination
 
Lesson 8: Determinants III
Lesson 8: Determinants IIILesson 8: Determinants III
Lesson 8: Determinants III
 
17 large scale machine learning
17 large scale machine learning17 large scale machine learning
17 large scale machine learning
 
REDES NEURONALES Performance Optimization
REDES NEURONALES Performance OptimizationREDES NEURONALES Performance Optimization
REDES NEURONALES Performance Optimization
 
Eigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to DiagonalisationEigenvectors & Eigenvalues: The Road to Diagonalisation
Eigenvectors & Eigenvalues: The Road to Diagonalisation
 
Differential calculus
Differential calculusDifferential calculus
Differential calculus
 
Seasonal ARIMA
Seasonal ARIMASeasonal ARIMA
Seasonal ARIMA
 
Calculus I basic concepts
Calculus I basic conceptsCalculus I basic concepts
Calculus I basic concepts
 
Business Logistics Assignment Help
Business Logistics Assignment HelpBusiness Logistics Assignment Help
Business Logistics Assignment Help
 
Linerazation of systems
Linerazation of systemsLinerazation of systems
Linerazation of systems
 

Viewers also liked

Data Science with R for Java Developers
Data Science with R for Java DevelopersData Science with R for Java Developers
Data Science with R for Java DevelopersNLJUG
 
ارائه موسسه کتاب پردازان مشهد - محمد انصاری زاده
 ارائه موسسه کتاب پردازان مشهد - محمد انصاری زاده ارائه موسسه کتاب پردازان مشهد - محمد انصاری زاده
ارائه موسسه کتاب پردازان مشهد - محمد انصاری زادهجشنواره سلمان
 
Attachment one for brighter day rubenzer
Attachment one   for brighter day  rubenzerAttachment one   for brighter day  rubenzer
Attachment one for brighter day rubenzerDr. Ron Rubenzer
 
Proyecto Participativo IE. N° 0589 GPV - Yumbatos - Caynarachi - Lamas - San ...
Proyecto Participativo IE. N° 0589 GPV - Yumbatos - Caynarachi - Lamas - San ...Proyecto Participativo IE. N° 0589 GPV - Yumbatos - Caynarachi - Lamas - San ...
Proyecto Participativo IE. N° 0589 GPV - Yumbatos - Caynarachi - Lamas - San ...Julio Walter Chávez Oyarce
 
For heidi 3 9-2017 dr. rubenzer power point for happier days choose to be po...
For heidi 3 9-2017 dr.  rubenzer power point for happier days choose to be po...For heidi 3 9-2017 dr.  rubenzer power point for happier days choose to be po...
For heidi 3 9-2017 dr. rubenzer power point for happier days choose to be po...Dr. Ron Rubenzer
 
Mobile-First Indexing: Re-thinking Position Zero
Mobile-First Indexing: Re-thinking Position ZeroMobile-First Indexing: Re-thinking Position Zero
Mobile-First Indexing: Re-thinking Position ZeroMobileMoxie
 
Speak Up! Build an Alexa Skill for a Cause
 Speak Up! Build an Alexa Skill for a Cause Speak Up! Build an Alexa Skill for a Cause
Speak Up! Build an Alexa Skill for a CauseNikki Clark
 
Política em paulo freire
Política em paulo freirePolítica em paulo freire
Política em paulo freireArcilene Chaves
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksSlideShare
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShareSlideShare
 

Viewers also liked (18)

Main shopping path pattern clustering method
Main shopping path pattern clustering methodMain shopping path pattern clustering method
Main shopping path pattern clustering method
 
Data Science with R for Java Developers
Data Science with R for Java DevelopersData Science with R for Java Developers
Data Science with R for Java Developers
 
ارائه موسسه کتاب پردازان مشهد - محمد انصاری زاده
 ارائه موسسه کتاب پردازان مشهد - محمد انصاری زاده ارائه موسسه کتاب پردازان مشهد - محمد انصاری زاده
ارائه موسسه کتاب پردازان مشهد - محمد انصاری زاده
 
Attachment one for brighter day rubenzer
Attachment one   for brighter day  rubenzerAttachment one   for brighter day  rubenzer
Attachment one for brighter day rubenzer
 
Proyecto Participativo IE. N° 0589 GPV - Yumbatos - Caynarachi - Lamas - San ...
Proyecto Participativo IE. N° 0589 GPV - Yumbatos - Caynarachi - Lamas - San ...Proyecto Participativo IE. N° 0589 GPV - Yumbatos - Caynarachi - Lamas - San ...
Proyecto Participativo IE. N° 0589 GPV - Yumbatos - Caynarachi - Lamas - San ...
 
Evidencias
EvidenciasEvidencias
Evidencias
 
PDI en mi aula de Infantil
PDI en mi aula de InfantilPDI en mi aula de Infantil
PDI en mi aula de Infantil
 
Lac culture
Lac cultureLac culture
Lac culture
 
Θ.Ε.3.1 Πολίτης
Θ.Ε.3.1 ΠολίτηςΘ.Ε.3.1 Πολίτης
Θ.Ε.3.1 Πολίτης
 
Java script - funções
Java script - funçõesJava script - funções
Java script - funções
 
For heidi 3 9-2017 dr. rubenzer power point for happier days choose to be po...
For heidi 3 9-2017 dr.  rubenzer power point for happier days choose to be po...For heidi 3 9-2017 dr.  rubenzer power point for happier days choose to be po...
For heidi 3 9-2017 dr. rubenzer power point for happier days choose to be po...
 
Mobile-First Indexing: Re-thinking Position Zero
Mobile-First Indexing: Re-thinking Position ZeroMobile-First Indexing: Re-thinking Position Zero
Mobile-First Indexing: Re-thinking Position Zero
 
Ppt comunicacion
Ppt comunicacionPpt comunicacion
Ppt comunicacion
 
Speak Up! Build an Alexa Skill for a Cause
 Speak Up! Build an Alexa Skill for a Cause Speak Up! Build an Alexa Skill for a Cause
Speak Up! Build an Alexa Skill for a Cause
 
Política em paulo freire
Política em paulo freirePolítica em paulo freire
Política em paulo freire
 
Θ.Ε.3.4 Διάλογος
Θ.Ε.3.4 ΔιάλογοςΘ.Ε.3.4 Διάλογος
Θ.Ε.3.4 Διάλογος
 
How to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & TricksHow to Make Awesome SlideShares: Tips & Tricks
How to Make Awesome SlideShares: Tips & Tricks
 
Getting Started With SlideShare
Getting Started With SlideShareGetting Started With SlideShare
Getting Started With SlideShare
 

Similar to Determining Exponential Rate of Events Using Differentiation

Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationBrian Erandio
 
Simple lin regress_inference
Simple lin regress_inferenceSimple lin regress_inference
Simple lin regress_inferenceKemal İnciroğlu
 
Regression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with exampleRegression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with exampleshivshankarshiva98
 
Linear Regression
Linear Regression Linear Regression
Linear Regression Rupak Roy
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...ANIRBANMAJUMDAR18
 
REGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxREGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxcajativ595
 
CHAPTER TENObjectiveA brief introduction of the basic concept
CHAPTER TENObjectiveA brief introduction of the basic conceptCHAPTER TENObjectiveA brief introduction of the basic concept
CHAPTER TENObjectiveA brief introduction of the basic conceptTawnaDelatorrejs
 
Estimation theory 1
Estimation theory 1Estimation theory 1
Estimation theory 1Gopi Saiteja
 
REGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREREGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREShriramKargaonkar
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsDerek Kane
 
MC0082 –Theory of Computer Science
MC0082 –Theory of Computer ScienceMC0082 –Theory of Computer Science
MC0082 –Theory of Computer ScienceAravind NC
 

Similar to Determining Exponential Rate of Events Using Differentiation (20)

Regression
RegressionRegression
Regression
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
 
Simple lin regress_inference
Simple lin regress_inferenceSimple lin regress_inference
Simple lin regress_inference
 
Regression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with exampleRegression.ppt basic introduction of regression with example
Regression.ppt basic introduction of regression with example
 
Linear Regression
Linear Regression Linear Regression
Linear Regression
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...
 
regression.pptx
regression.pptxregression.pptx
regression.pptx
 
Regression
RegressionRegression
Regression
 
working with python
working with pythonworking with python
working with python
 
REGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxREGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptx
 
CHAPTER TENObjectiveA brief introduction of the basic concept
CHAPTER TENObjectiveA brief introduction of the basic conceptCHAPTER TENObjectiveA brief introduction of the basic concept
CHAPTER TENObjectiveA brief introduction of the basic concept
 
Estimation theory 1
Estimation theory 1Estimation theory 1
Estimation theory 1
 
Regression
RegressionRegression
Regression
 
REGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREREGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HERE
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
 
MC0082 –Theory of Computer Science
MC0082 –Theory of Computer ScienceMC0082 –Theory of Computer Science
MC0082 –Theory of Computer Science
 
Simple Linear Regression.pptx
Simple Linear Regression.pptxSimple Linear Regression.pptx
Simple Linear Regression.pptx
 
Unit 03 - Consolidated.pptx
Unit 03 - Consolidated.pptxUnit 03 - Consolidated.pptx
Unit 03 - Consolidated.pptx
 
Simple egression.pptx
Simple egression.pptxSimple egression.pptx
Simple egression.pptx
 
ch02.pdf
ch02.pdfch02.pdf
ch02.pdf
 

Recently uploaded

dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 

Recently uploaded (20)

dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 

Determining Exponential Rate of Events Using Differentiation

  • 1. Determining the rate of event in the exponential equation N. Kejalakshmy Determining the rate of event in the exponential equation Abstract: This article examines the differentiation of exponential function. The differentiation yields the rate of the equation. The method of differentiation can be applied to determine the unknown constants of an exponential equation. 1. Introduction: Let’s assume output data y is dependent on the variable x and has the following form, 𝑦 = 𝐴 𝑒&' [1] In the above equation A and 𝜆 are constants. 𝜆 can also be called rate of the event. ‘A’ can be named as initial population. This is because when x=0, y will be equal to A. The above equation can be solved by taking the logarithmic on both sides as follows, log 𝑦 = log 𝐴 + 𝜆𝑥 [2] As in the above equation, log(y) is linearly dependent on x, traditionally Eq. [1] is solved by applying simple linear regression analysis on Eq. [2]. In practice, y may depend on more than one rate of event. Typical scenarios: o switching on and switching off a LED based sensor. o Fluorescence from a mixture of dyes. o Price of a commodity influenced by different factors. Generally, to define these events Eq.[1] is not sufficient. We will not go into the detail of the equation. However, we will consider for our analysis the following equation, 𝑦 = 𝐵 + 𝐴1 𝑒&0 ' [3] Where B is a constant (eg. B=Back ground noise). This article focusses on the differentiation of the exponential and hence extracting the parameter, rate of event, 𝜆. The rate indicates how rapidly the curve rise or fall. Further it gives indication on the change of pattern. 2. Methodology:
  • 2. Determining the rate of event in the exponential equation N. Kejalakshmy Applying differentiation on Eq. [1] yields, 𝑑𝑦 𝑑𝑥 = 𝜆 𝐴 𝑒 𝜆𝑥 𝑑𝑦 𝑑𝑥 = 𝜆𝑦 [4] Eq. [4] is a straight line equation with slope equal to 𝜆. 3. Algorithm used to solve the rate 𝝀 To evaluate the lambda values, the following approach has been taken in the shown R script: • Read input data x and y. • The length of array of x and y is estimated. • Define new arrays required for the calculations. • For each point calculate the differentiation using o ∆45607∆45 ∆'5607∆'5 • For each point calculate the parameter spotlambda which is the instantaneous rate of equation. • Calculate the midpoint of x and y. • Make a table with new x, y, ∆45607∆45 ∆'5607∆'5 , spotlambda values. • Fit a straight line for ∆45607∆45 ∆'5607∆'5 versus y and calculate the slope which is the over all rate of equation. 3.1 R script Given below is R based script to solve the 𝜆 value. expform1<-function(x,y) { # Equation of the form y=B*exp(lambda*x) #where x and y are variables. B and lambda are constant #Solving for lambda n<-length(x) delx<-rep(0,n-1) dely<-rep(0,n-1) delybydelx<-rep(0,n-1) spotlambda<-rep(0,n-1) # instantaneous lambda value. #spotlamda value can be used during the run time.
  • 3. Determining the rate of event in the exponential equation N. Kejalakshmy ymid<-rep(0,n-1) xmid<-rep(0,n-1) for (i in 1:n-1) { delx[i]<-x[i+1]-x[i] dely[i]<-y[i+1]-y[i] #Calculating the differentiation. Divided difference have been used. (though other formulae also can be applied) delybydelx[i]<-dely[i]/delx[i] #Below we are finding a mid position between [i+1]th data AND [i]th data xmid[i]<-(x[i+1]+x[i])/2 ymid[i]<-y[i]+((xmid[i]-x[i])*delybydelx[i]) # In the above new array of y has been calculated using divided difference. #Calculation of spotlambda: spotlambda[i]<-delybydelx[i]/y[i] } #make it as the table for the fitting a<-as.table(cbind(xmid,ymid,delybydelx,spotlambda)) #********************** # Fitting for lambda #********************** # The above table has newly interpolated y values and dy/dx values. # below is : Fitting straight line for the equation dy/dx Versus y # Note down the line pass through the origin fitted<-lm(a[,3]~a[,2]-1) print(summary(fitted)) lambda1<-summary(fitted)$coefficients[1, 1] print('The value of the lambda is estimated as follow') print(c('lambda=',lambda1)) print('end of analysis') return(a) } 3.2 Concept of Instantaneous rate In the above approach spotlamda is a ratio calculated as each point as follow, 𝜆89:; = 𝑑𝑦 𝑑𝑥 𝑦 [4] This quantity can be used to continuously monitor the instantaneous rate value. Hence any drastic change in ‘𝜆89:;’, instantaneous rate value, indicates a change in the event.
  • 4. Determining the rate of event in the exponential equation N. Kejalakshmy 3.3 Fitting a straight line to obtain rate of event Differentiation at each point has been calculated for successive points. The array ‘ymid’ represents value that are interpolated between successive point. A linear interpolation has simply implemented (assuming the successive points are closer). A liner regression fitting of <4 <' versus ‘y’ yields the 𝜆 value. In the R script the parameter ‘fitted’ is a linear regression fit of <4 <' against y. ‘lambda1’ is the slope of fit and hence corresponds to required lambda value. The script returns a table of interpolated x (‘xmid’), interpolated y values y (‘ymid’), <4 <' and spotlamda. 3.4 An example and the output of the R function Let us create data x1 and y1 as follow: >lambda <- 0.06 >x1 =seq(11,20,by=1) >y1= (1*exp(lambda * x1)) As the focus of the article is about the approach, error term has not added at this moment. Executing the following call function yields an output. The created object ‘a’ is an output table for analysis. >a<-expform1(x1,y1) Call: lm(formula = a[, 3] ~ a[, 2] - 1) Residuals: Min 1Q Median 3Q Max -7.728e-16 -1.650e-16 4.300e-17 2.510e-16 5.069e-16 Coefficients: Estimate Std. Error t value Pr(>|t|) a[, 2] 5.998e-02 4.980e-17 1.204e+15 <2e-16 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 3.88e-16 on 8 degrees of freedom Multiple R-squared: 1,Adjusted R-squared: 1 F-statistic: 1.451e+30 on 1 and 8 DF, p-value: < 2.2e-16 [1] "The value of the lambda is estimated as follow" [1] "lambda=" "0.0599820064776403" [1] "end of analysis" > > a xmid ymid delybydelx spotlambda A 11.50000000 1.99461277 0.11964088 0.06183655 B 12.50000000 2.11795274 0.12703905 0.06183655
  • 5. Determining the rate of event in the exponential equation N. Kejalakshmy C 13.50000000 2.24891962 0.13489471 0.06183655 D 14.50000000 2.38798504 0.14323613 0.06183655 E 15.50000000 2.53564979 0.15209336 0.06183655 F 16.50000000 2.69244562 0.16149829 0.06183655 G 17.50000000 2.85893716 0.17148479 0.06183655 H 18.50000000 3.03572396 0.18208881 0.06183655 I 19.50000000 3.22344264 0.19334856 0.06183655 4. Conclusion This method is less accurate than the logarithmic method as it involves calculation of first order difference <4 <' . However, this method becomes powerful tool when an output data is continuously monitored or when the measurement interval is small. Instantaneous rate is useful for predicting life of an event or any change in the event. It is possible that value of instantaneous rate can be affected by error. In that case fitting <4 <' versus y over a small range of data gives a better prediction of the instantaneous rate. The method of differentiation of exponential equation can be applied for iterative methods where an initial value will be provided. This method can easily be extended to solve the value of B in Eq.[3] and also for the equation of the form as 𝑦 = 𝐵 𝐴 𝑒=' + 𝐴 𝑒&' .