• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 21 pages
Other

MATHEMATICS Assignment – 3

Document preview thumbnail
Preview 3 out of 21 pages

MATHEMATICS Assignment – 3

Content preview

MATHEMATICS Assignment – 3
1. Recitation Problems

1.1. Chapter 8

1.1.1. Given K equally sized clusters, the probability that a randomly chosen initial centroid
will come from any given cluster is 1/K, but the probability that each cluster will have
exactly one initial centroid is much lower. (It should be clear that having one initial
centroid in each cluster is a good starting situation for K-means.) In general, if there are K
clusters and each cluster has n points, then the probability, p, of selecting in a sample of
size K one initial centroid from each cluster is given by Equation 8.20. (This assumes
sampling with replacement.) From this formula we can calculate, for example, that the
chance of having one initial centroid from each of four clusters is 4!/44 = 0.0938




(a) PIot the probability of obtaining one point from each cluster in a sample of size K for values of
K between 2 and 100.

Please find the values computed for all values of K = 2 to 100 in the aGached sheet [Tab :
Problem 8.4(a)] with the Probability calculated and ploGed.



Assignment - 3.xlsx




Probability of having one point from each cluster in sample of size K is essentially 0 by the
time K >= 8

, Probabilit
0.60 y
0.50


0.40


Probability 0.30 Probability


0.20


0.10


0.00
0 20 40 60 80 100 120
K




(b) For K clusters, K = 10,100, and 1000, find the probability that a sample of size 2K( contains
at least one point from each cluster. You can use either mathematical methods or statistical
simulation to determine the answer.

Given,
K – clusters
Sample size = 2K

Probability that a point doesn’t come from a particular cluster = 1 – 1/K
Probability that all points don’t come from a particular cluster = (1 – 1/K)2K

Probability that atleast one of the 2K point comes from a particular cluster = 1 - (1 – 1/K)2K
Probability that a sample of 2K points contains one point from each cluster = (1 - (1 – 1/K)2K)K


Using the above formula for K = 10 we get:
Probability = (1-(1/10)20)10 = 0.27355

Using the above formula for K = 100 we get:
Probability = (1-(1/100)200)100 = 5.659 e-07

Using the above formula for K = 1000 we get:
Probability = (1-(1/1000)2000)1000 = 8.236 e-64

1.1.2. Suppose that for a data set

, • there are m points and K clusters,
• half the points and clusters are in "more dense" regions,
• half the points and clusters are in "less dense" regions, and
• the two regions are well-separated from each other.

For the given data set, which of the following should occur in order to minimize the
squared error when finding If clusters:

(a) Centroids should be equally distributed between more dense and less dense regions.
(b) More centroids should be allocated to the less dense region.
(c) More centroids should be allocated to the denser region.


Note: Do not get distracted by special cases or bring in factors other than density.
However, if you feel the true answer is different from any given above, justify
your response.

The correct answer is option (b), because if we have more centroids allocated to the
less dense regions then the distance between a centroid of a cluster and any data point in
the cluster will be relatively less as compared to having less centroids in less dense region
increasing sum of the squared error (SSE) for clusters in less dense regions. (Analogous to
post-processing technique of splitting clusters with large SSE)

In the higher density region all data points are cohesively located (densely located)
to each other, naturally resulting in a smaller sum of squared error (SSE) even with less
number of centroids being allocated. (Analogous to post-processing technique of merging
clusters which result in smallest increase in SSE).

1.1.3. Total SSE is the sum of the SSE for each separate attribute.

(a) What does it mean if the SSE for one variable is low for all clusters?

If the SSE of one variable/aGribute is low for all clusters, then the variable is essentially a
constant and is of liGle use in dividing the data into groups. Such variables do not help the
purpose of Clustering i.e. division of data into mostly disjoint(exclusive) groups or clusters.

(b) Low for just one cluster?

If the SSE of one variable/aGribute is low for just one cluster, then this aGribute helps define the
cluster. Such variables help the purpose of Clustering i.e. division of data into mostly
disjoint(exclusive) groups or clusters.




(c) High for all clusters?

Document information

Uploaded on
October 31, 2026
Number of pages
21
Written in
2026/2027
Type
Other
Person
Unknown
$15.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
STUVIAMAESTRO254
2.6
(40)
Sold
171
Followers
98
Items
9795
Last sold
1 day ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions