The document contains solutions to 6 questions on interpolation and curve fitting.
Question 1 estimates life expectancies in 1977, 1983 and 1988 for two countries using polynomial interpolation and cubic spline interpolation.
Question 2 finds an interpolating function that fits given data points by solving a linear system.
Question 3 compares errors between polynomial, cubic spline and pchip cubic interpolation on a dataset and analyzes properties of cubic spline and pchip interpolants.
Question 4 plots a cubic spline interpolant and its derivatives, showing it satisfies properties of being cubic on subintervals with continuous derivatives.
Question 5 uses linear least squares to fit a linear model to some data.
Question 6 fits quadratic, exponential and power
PKA has 2 catalytic subunits (Tpk) which are encoded by 3 genes: tpk1,tpk2 and tpk3. On binding cAMP, PKA is able to phosphorylate some proteins. However, in mutants like ours, it can be assumed that some of that proteins may not be phosphorylated.
PKA serves as a central regulator of the metabolic and transcriptional status of the yeast cell.
Dr Jeff Borden, Director of the Center for Online Learning,
Vice President of Instruction & Academic Strategy, Pearson eCollege, Denver
Presentation at 'Online and open access learning in HE: MOOCs, new pedagogies and business models' conference (5 February 2013, Senate House, London).
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
1. AMTH250 Assignment 4
Due date: 27th August 2012
Solutions
August 10, 2012
Question 1
The following data are related to the life expectation of citizens of two countries:
1975 1980 1985 1990
Tanab 72.8 74.2 75.2 76.4
Sarac 70.2 70.2 70.3 71.2
1. Use the interpolating polynomial of degree three to estimate the life ex-
pectation in 1977, 1983, and 1988.
2. Repeat the computations using now the cubic spline interpolation.
3. Compare the above two results.
octave:1> year=[1975 1980 1985 1990];
octave:2> tanab=[72.8 74.2 75.2 76.4];
octave:3> sarac=[70.2 70.2 70.3 71.2];
octave:4> ctanab=polyfit(year, tanab,3);
octave:5> csarac=polyfit(year, sarac,3);
octave:6> esttanab=polyval(ctanab, [1977 1983 1988])
esttanab =
73.446 74.810 75.858
octave:7> estsarac=polyval(csarac, [1977 1983 1988])
estsarac =
70.233 70.203 70.699
The estimated values in 1977, 1983 and 1988 are
73.446 74.810 75.858 for Tanab, and
70.233 70.203 70.699 for Sarac.
1
2. Question 2
This is an interpolation problem. It solved by constructing the basis matrix and
solving a linear system.
octave:> x = [-2 -1 0 1 2]’;
octave:> y = [125.948 7.673 -4 -14.493 -103.429]’;
octave:> aa = [exp(-2*x) exp(-x) ones(5,1) exp(x) exp(2*x)];
octave:> coeffs = aay
coeffs =
3.0000
-4.9998
-1.0004
1.0003
-2.0000
Thus the interpolating function is
y ≈ 3e−2x − 5e−x − 1 + ex − 2e2x .
Question 3
First we compute the interpolating functions:
octave:> x = [0 0.01 0.04 0.09 0.16 0.25]’;
octave:> y = [0 0.1 0.2 0.3 0.4 0.5]’;
octave:> p = polyfit(x, y, 5);
octave:> cs = interp1(x, y, ’spline’, ’pp’);
octave:> pc = interp1(x, y, ’pchip’, ’pp’);
Plotting the errors, i.e. the difference between the interpolating function
√
and x we see that the pchip cubic is the most accurate over most domain.
Restricting attention to the interval [0, 0.01] shows that they are all about
equally inaccurate over that range. The reason for this is that the derivative
√
of x is infinite at x = 0 making approximation by a function with a finite
derivative at x = 0 difficult near x = 0.
2
5. From the graphs we see the defining conditions for a cubic spline are satisfied:
1. From the first plot the function interpolates the data.
2. From the second and third plots the function has continuous first and
second derivatives.
3. From the fourth plot the function has constant third derivative on each
subinterval. It follows that the function is a cubic polynomial on each
subinterval.
4. The ‘not-a-knot’ condition shows up in the third derivative is the same on
the first and second subintervals and on the second last and last subinter-
vals.
The defining conditions for a pchip cubic are also satisfied:
1. From the first plot the function interpolates the data.
2. From the second plot the function has continuous first derivative. The
third plot shows that the second derivative is discontinuous.
3. From the fourth plot the function has constant third derivative on each
subinterval. It follows that the function is a cubic polynomial on each
subinterval.
4. In this example the data is monotonic, a property shared by the pchip
cubic. This implies that the derivative of the pchip cubic does not change
sign. The second plot shows that derivative is everywhere positive.
Question 5
Write the equations in matrix form and solve the least squares problem with
the backslash operator.
octave:> A = [1 0 0 0
>0 1 0 0
>0 0 1 0
>0 0 0 1
>1 -1 0 0
>1 0 -1 0
>1 0 0 -1
>0 1 -1 0
>0 1 0 -1
>0 0 1 -1];
octave:> y = [2.95 1.74 -1.45 1.32 1.23 4.45 1.61 3.21 0.45 -2.75]’;
octave:> x = Ay
x =
2.9600
1.7460
-1.4600
1.3140
These values are within ±0.01 of the direct measurements.
5
6. Question 6
Here is a script to compute and plot the fitted functions:
x = 1:10;
y = [27.7 39.3 38.4 57.6 46.3 54.8 108.5 137.6 194.1 281.2];
lx =log(x);
ly =log(y);
p = polyfit(x, y, 2);
ce = polyfit(x, ly, 1);
ae = exp(ce(2));
ke = ce(1);
fe = @(x) ae*exp(ke*x);
cp = polyfit(lx, ly, 1);
ap = exp(cp(2));
kp = cp(1);
fp = @(x) ap*x.^kp;
clf()
xx = linspace(1, 10, 201);
plot(x,y,’or’)
hold on
plot(xx, polyval(p,xx))
plot(xx, fe(xx),’k’)
plot(xx, fp(xx), ’g’)
hold off
300
Quadratic
Exponential Function
Power Function
250
200
150
100
50
0
0 2 4 6 8 10
From this we see that the power function gives a poor fit, but visually there
is little to chose between the quadratic polynomial and the exponential function.
6
7. Part of the reason the power function y = axp gives such a poor fit is that when
p > 0 the graph of the function must pass through the origin.
Plotting the residuals
res1 = y - polyval(p,x);
res2 = y - fe(x);
res3 = y - fp(x);
Shows that the quadratic polynomial has the smallest residuals. This is con-
firmed by the norms
octave:> norm(res1)
ans = 43.364
octave:> norm(res2)
ans = 70.894
octave:> norm(res3)
ans = 151.69
150
Quadratic
Exponential Function
Power Function
100
50
0
-50
0 2 4 6 8 10
Figure 5: Residuals of fitted functions.
A semilog plot of the data indicates that an exponential function function
may give a good description of the data. When working with the semilog data,
the appropriate residuals are the differences log yi − log f (xi )
lres1 = ly - log(polyval(p,x));
lres2 = ly - log(fe(x));
lres3 = ly - log(fp(x));
Using the semilog scale that the exponential function has the smallest resid-
uals. This is confirmed by the norms
7
8. octave:> norm(lres1)
ans = 0.87342
octave:> norm(lres2)
ans = 0.66707
octave:> norm(lres3)
ans = 1.1785
Fitted Functions Semilog Residuals
6 0.8
Quadratic Quadratic
Exponential Function Exponential Function
Power Function Power Function
0.6
5.5
0.4
5
0.2
4.5
0
4
-0.2
3.5
-0.4
3
-0.6
2.5 -0.8
0 2 4 6 8 10 0 2 4 6 8 10
Figure 6: Semilog plot of fitted functions and semilog residuals.
A log-log plot of the data indicates that a power function would not be
expected to give a good fit to the data.
6
5.5
5
4.5
4
3.5
3
0 0.5 1 1.5 2 2.5
Figure 7: Log-log plot of the data
8
9. In summary
1. The power function does not give a good representation of the data.
2. The quadratic polynomial and exponential function give reasonable rep-
resentations of the data.
3. Examining the residuals would indicate that the quadratic gives the best
representation.
4. A semilog plot indicates that an exponential function may give a good
representation of the data. Another reason for preferring the exponential
is that it is monotonic and we may believe from examining the data that
the underlying trend is monotonic. The exponential function is monotonic,
the quadratic polynomial is not.
9