MH4522 Spatial Data Science Assignment Questions | NTU

Published: 04 Apr, 2025
Category Assignment Subject Computer Science
University Nanyang Technological University Module Title MH4522 Spatial Data Science

Assignment Brief

The classical kernel estimator1 of the probability density function ϕ(x) of a random variable X is defined by

bϕh(x) := 1⁄nh ∑i=1n φ(x − xi⁄h),
where xi, i = 1, …, n, are n independent samples of X. Here, h > 0 is a positive parameter called the bandwidth, and φ is a bounded probability density function, such that

limx→+∞ x|φ(x)| = 0.
N=1; h=0.1; z =seq(0,1,0.01); kernel=function(z){dnorm(z,0,h/4)};
x=runif(N); kdensity=function(z){sum(as.numeric(lapply(z-x,kernel))/length(x)}
plot(0, xlab = "", ylab = "", type = "l", xlim = c(0,1), col = 0,
ylim=c(0,max(as.numeric(lapply(z,kdensity))),xaxt='n',yaxt='n')
axis(1, at=c(), xlab = "", lwd=2,labels=c(), pos=0,lwd.ticks=2)
axis(2, lwd=2, at = c(1,axTicks(4)), lwd.ticks=2); points(x, rep(0,N), pch=3, lwd = 3, col = "blue")
lines(density(x,width=h),col="purple",lwd=3); lines(z,dunif(z),col="black",lwd=3);
lines(z,as.numeric(lapply(z,kdensity)),col="red",lwd=2,type='l')

This assignment aims to implement a kernel estimation for the intensity of a Poisson point process η on ℝd, d ≥ 1. We assume that the intensity measure µ of η has a C2b density ρ : ℝd → ℝ+ for the Lebesgue measure on (ℝd, B(ℝd)), i.e. µ(dx) = ρ(x)dx, and

IE[η(B)] = µ(B) = ∫B ρ(x)dx, B ∈ B(ℝd).
We also let

∥x∥ = √x12 + ··· + xd2, (x1, …, xd) ∈ ℝd,
denote the Euclidean norm in ℝd, and we denote by φh the Gaussian kernel

φh(u) := 1⁄(2πh2)d/2 e−u2/(2h2), u ∈ ℝ,
with variance h > 0. The following questions are interdependent and should be treated in sequence.

1) Show that for all x ∈ ℝd we have

limh→0 ∫ℝd φh(∥x − y∥)ρ(y)dy1 ··· dyd = ρ(x).
Hint: You may use Taylor’s formula with integral remainder term
ρ(y) = ρ(x) + ∑k=1d (yk − xk)∂ρ⁄∂xk(x) + ∑k,l=1d (yk − xk)(yl − xl) ∫01 (1 − t)∂2ρ⁄∂xk∂xl(x + t(y − x))dt,
x, y ∈ ℝd.

2) Show that the estimator

ρ̂h,0(x) := ∑y∈η φh(∥x − y∥)
of the density ρ(x) is asymptotically unbiased, i.e. we have

limh→0 IE[ρ̂h,0(x)] = ρ(x), x ∈ ℝd.
Hint: Apply Proposition 4.6-a) and the result of Question (1).

3) Show that the asymptotic variance of the estimator ρ̂h,0 satisfies

Var[ρ̂h,0(x)] ≃h→0 ρ(x)⁄(2h)dπd/2, x ∈ ℝd,
i.e.

limh→0 hd Var[ρ̂h,0(x)] = ρ(x)⁄2dπd/2, x ∈ ℝd.
Hint: Apply Proposition 4.6-b) and the result of Question (1).

4) Given a domain A ⊂ ℝd such that 0 < µ(A) < ∞ and f ∈ L1(A, µ), compute the expectation

IE [1{η(A)≥1} 1⁄η(A) ∫A f(x)η(dx)].
Hint: Apply Proposition 4.4 and proceed similarly to the proof of Proposition 4.6-a).

5) Given a domain A ⊂ ℝd such that 0 < µ(A) < ∞ and f ∈ L1(A, µ) ∩ L2(A, µ), compute the variance

Var [1{η(A)≥1} 1⁄η(A) ∫A f(y)η(dy)],
using the quantity

c(A) := IE [ 1⁄η(A) 1{η(A)≥1} ].
Hint: Apply Proposition 4.4 and proceed similarly to the proof of Proposition 4.6-b).

Get the Solution of this Assessment. Hire Experts to solve this assignment Before your Deadline

Order Non Plagiarized Assignment

6) Show that for any domain A ⊂ ℝd such that 0 < µ(A) < ∞, we have

c(A) ≤ 2⁄µ(A).
Hint: Write c(A) as a series, and upper bound it term by term.

7) For any h > 0, let Ah ⊂ ℝd denote a domain of finite Lebesgue measure in ℝd, and consider the estimator ρ̂h,1 of the probability density ρ(x)/µ(Ah) defined by

ρ̂h,1(x) := 1{η(Ah)≥1} 1⁄η(Ah) ∑y∈η φh(∥x − y∥).
Show that ρ̂h,1(x) is asymptotically unbiased in the sense that

IE[ρ̂h,1(x)] − ρ(x)⁄µ(Ah) = o(µ(Ah)−1)
as h → 0, i.e.

limh→0 |µ(Ah)IE[ρ̂h,1(x) − ρ(x)⁄µ(Ah)]| = 0, x ∈ ℝd,
provided that µ(Ah) → ∞ as h → 0.

Hint: Apply the results of Question (1) and Question (4).

8) Show that the variance of ρ̂h,1(x) satisfies

limh→0 Var[ρ̂h,1(x)] = 0
provided that µ(Ah)−1 = o(hd).

Hint: Apply the result of Question (5) and use the result of Question (1) as in Question (3), together with the result of Question (6).

9) Show that for any domain A ⊂ ℝd such that 0 < ℓ(A) < ∞ we have

IE[∑y∈η∩A 1⁄ρ(y)] = ℓ(A).

10) Based on a dataset of your choice on a domain A, find the value of h > 0 that minimizes the quantity

IE[(∑y∈η∩A 1⁄ρ̂h,0(y) − ℓ(A))2]
and compare the estimations of the density ρ(x) obtained from ρ̂h,0 and ρ̂h,1 (graphs are welcome).

Examples of datasets include:

Simulated datasets;
The spatstat package; see https://cran.r-project.org/web/packages/spatstat/vignettes/datasets.pdf;
For the scikit-learn package in Python, see https://scikit-learn.org/stable/datasets/real_world.html and this example.
See also:

P. Moraga. Geospatial Health Data – Modeling and Visualization with R-INLA and Shiny. Chapman & Hall/CRC Biostatistics Series. CRC Press, 2020.
P. Moraga. Spatial Statistics for Data Science – Theory and Practice with R. Chapman & Hall/CRC Data Science Series. CRC Press, 2024.

Need for Plagiarism free Answers for your college/ university Assignments.

Order Non Plagiarized Assignment

Are you a student in If you are thinking, Do My Assignment For Me? Then, look no further! If you need assignment writing help or computer science assignment help, you have reached the right place. We provide all assignment services as per your academic requirement, which are specially designed for students. Our experts cover all the important key areas of assignments as per your requirement. We also provide free assignment examples with original content written by PhD expert writers. Contact us today and increase your academic grades!

If you want to see the related solution of this brief then click here:-Data Science

MKT3014 Assignment: Service Marketing Management Question

MKT3014 Assessment Task: As you are a marketing consultant. analyse the marketing tactics adopted by your choice of company from the service industry. and propose ways to enhance customer experience and increase revenue.

BTEC Level 3 National Foundation Diploma in Business: Unit 1: Exploring Business Assessment 2 Brief

BTEC Level 3 Unit 1: Exploring Business Assessment 2: Task 1 You have been asked to write a report on a large business that trades in the EU. You will need to look at the environment in which the business operates, and to gather enough information to be able to consider

7LAW2062-0105 Corporate Governance CWK Assignment Question

7LAW2062-0105 Corporate Governance Assignment Brief: Elmwood Innovations PLC is a publicly traded company listed on the London Stock Exchange. It was founded by Alan Ridley, an entrepreneur, billionaire, and a major shareholder in the company.

EG322-6-FY Human Resource Management Job Interview Reflection

You are to write a reflective report that analyses your skills as an interviewer (you can use first person where needed and must refer to research and theory to support your arguments).

7ECON001W Data Analysis Sem 2 Assignment Brief 2025 | University of Westminster

7ECON001W : The SET is computer-based but more geared to testing the student has a solid understanding of econometric methods and can independently apply them in empirical analysis.

COMP1105 Web Technologies Assignment Questions

This assessment should be attempted individually and independently. Individual assignment work can facilitate your learning, improve thinking skills, practical skills, and prepare you to work independently while collaborating in groups across borders spread across the globe in your future careers.

BTEC Level 3 National Foundation Diploma in Information Technology: Unit 7  Mobile Apps development Assignment 2 Brief

BTEC Unit 7: Mobile Apps development Task 1: Create a comprehensive design for the mobile app whichis suitable for multiple devices and considers alternative aspects of the design.

HRM Innovation and Change Assignment Questions | SUSS

The debate between the War for Talent and Wealth of Talent has taken on new significance in the AI and machine learning era, where industries are rapidly evolving and workforce needs are shifting.

FLM101 Introduction to Film Studies Assignment Questions | SUSS

Ostensible failure to adhere to the standards of the Chicago Style (such as improper formatting of the title of a film or an article/chapter or a book, inaccurate citation of the references, incorrect use of footnotes, and incomplete bibliography) will result in a deduction of up to 10 points from the final grade of your paper.

LCCB4005 The Global Business Environment L4 Assessment 1 Brief

LCCB4005 The Global Business Environment Task Description: Consider the automobile industry, select a brand and critically evaluate the challenges of their internal and external business environments.

Online Assignment Help in UK