

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Kmσ = K ︸ σ ∗ · · · ∗︷︷ Kσ︸ m^2 times
Based on this identity, we implement kernel smooth- ing numerically. Let σ = 0. 4 and apply iterated ker- nel smoothing. With small window size 5 × 5 , Gaus- sian kernel smoothing with σ = 28 will chop off the tail regions too much and this is one of the motivation for doing iterated kernel smoothing.
w=K(0.4,dx,dy)/sum(sum(K(0.4,dx,dy))) smooth_Y=Y; for i=1: smooth_Y=conv2(smooth_Y, w,’same’); ISE(i)=sum(sum((mu-smooth_Y).ˆ2)); end;
Problem 12. Come up with a similar identity like equation (1) for anisotropic kernel smoothing with bandwidth matrix H.
min σ
μ(x) − Kσ ∗ Y (x)
dx
which is called the integrated squared error (ISE). From our simulation the optimal bandwidth is when σ =
18 · 0 .4 = 1. 70. Unfortunately this gives under smoothing. See J.S. Simonoff’s Smoothing Meth- ods in Statistics (1996) for optimal kernel smoothers. With i.i.d. error assumptions, you may get rid of out- liers easily and run statistical analysis again but in
−1.
−
−0.
0
1
10 20 30 40 50 60 70 80 90 100
10 20 30 40 50 60 70 80 90 (^100) −2.
−
−1.
−
−0.
0
1
2
10 20 30 40 50 60 70 80 90 100
10 20 30 40 50 60 70 80 90 100
−1.
−
−0.
0
1
10 20 30 40 50 60 70 80 90 100
10 20 30 40 50 60 70 80 90 (^100) −0.
−0.
−0.
0
10 20 30 40 50 60 70 80 90 100
10 20 30 40 50 60 70 80 90 100
(^00 50 100 150 200 )
200
400
600
800
1000
1200
Figure 1: Original unknown signal μ and kernel smooth- ing estimations corresponding to σ = 0.8(m = 2), σ = 4(m = 10), σ = 28(m = 70). σ = 28 is obviously the case of over smoothing while σ = 0. 8 is under smoothing. The bottom left image is ISE plotted over the number of iterations.
imaging data we can not just delete outliers since it will destroy the geometry of the image itself. Problem 13.^1 Check if cross-validation (CV) method can produce a reasonable optimal band- width. For example, out of 101 × 101 image data Y , you may decompose images into training image YL = Y( 1 : 2 : 101 , 1 : 2 : 101 ) and validation image YR = Y( 2 : 2 : 101 , 2 : 2 : 101 ) and try to minimize the integrated squared error in the validation image using the model fit of the training image. You may try other partitioning schemes. CV is a standard tech- nique in computer vision and statistics. See Ruppert et al. (2003) Semiparametric Regression. (^1) Project 4. Investigation of CV in 2D image. Most CV results in the statistical literature that assume i.i.d. error will not work here.
nel smoothing for surface data. Download all files http://tezpur.keck.waisman.wisc.edu/∼chung/teaching/ data/MNImesh/
[tri,coord,nbr,normal]=MNIgetmesh (’gray.obj’); load thickness.vv trisurf(tri,coord(1,:),coord(2,:), coord(3,:));
tri gives the list of 3 indices that form a triangle. coord gives the coordinates of vertices nbr gives the list of adjacent neighbors. normal gives unit nor- mal vectors at each vertex. trisurf will display the surface mesh in MATLAB. Some graph theoretic con- cept is useful in describing and implementing kernel smoothing on the mesh. The degree of a vertex is the number of edges that connects to the vertex. Read MNIgetmesh.m for understanding how one gets it.
coord(:,1:4) ans = 49.9831 44.0817 -54.7131 -40. 30.4634 -51.8008 32.6077 -58. 7.4515 19.1203 17.1390 19.
tri(1:5,:) ans = 3 10243 10245 10243 2563 10244 10245 10243 10244 10245 10244 2565 2563 10246 10248
normal(:,1:4) ans = 0.4151 -0.1340 -0.9101 -0. -0.1868 0.7082 0.1541 0. 0.8904 -0.6932 0.3847 0.
nbr(1:3,:) ans = 15473 15474 16484 28770 28772 0 30322 30321 30324 31844 38497 0 10243 10245 11827 19554 20082 0
χ(M ) = V − E + F
Figure 2: The left image is noisy thickness measure on the surface of brain. The right image shows an image process- ing artifact that will cause serious problem in statistical analysis later. For example in the estimation of curvature
where V, E and F are the number of vertices, edges and faces respectively. In our data V = 40962 and F = 81920. For a mesh topologically equivalent to a sphere, χ(M ) = 2. If we count the number of edges E by counting the number of faces it is 3 F but we are counting them twice so 3 F = 2E. So simplifying the relation we have
2 V − F = 4. (2)
Equation (2) gives a way to check the topology of mesh. A particular note of interest is that from the Gauss-Bonnet theorem , the integral of the Gaussian curvature over M is 2 πχ(M ). So when we integrate the Gaussian curvature κG over the brain surface M , we should get ∫
M
κG(x) dx = 4π.
Homework 2. Submit solutions to problems 4-12 by Feb 16 11:00am. You only need to do two thirds of the total problems I pose in the course. For computational prob- lems, please do not just dump me codes. It is your re- sponsibility that you document your codes and proving the correctness of your algorithm.