<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rasindu nawod</title>
    <description>The latest articles on DEV Community by Rasindu nawod (@roky2k05).</description>
    <link>https://dev.to/roky2k05</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4006207%2Fe5adf460-71be-4a1a-a319-aa5a65a7707c.png</url>
      <title>DEV Community: Rasindu nawod</title>
      <link>https://dev.to/roky2k05</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roky2k05"/>
    <language>en</language>
    <item>
      <title>Studying New Language</title>
      <dc:creator>Rasindu nawod</dc:creator>
      <pubDate>Mon, 30 Nov 2026 04:45:22 +0000</pubDate>
      <link>https://dev.to/roky2k05/studying-new-language-5585</link>
      <guid>https://dev.to/roky2k05/studying-new-language-5585</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp5hxn1uaqyzh5p76zl0v.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp5hxn1uaqyzh5p76zl0v.PNG" alt=" " width="799" height="435"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;A &amp;lt;- 20

A

w = 45
e = 67.5
s= ""
r = TRUE

class(w)
class(e)
class(s)
class(r)


#Vectors
# One-Dimensional{% embed  %} Arrays
vec_num1 = c(1:5) 
vec_num2 = c(20,10,30,25,40) 
vec_num3 = c(1:9) 

vec_num4 = c(2,2,2)
vec_num5 = c(2,4,6)

vec_num1
vec_num2
vec_num3

#Vector Arithmetic
vec_num1+vec_num2
vec_num1-vec_num2
vec_num1*vec_num2
vec_num1/vec_num2
vec_num5^vec_num4

#Matrix
# 2 Dimension Arrays
z = c(1:6)
u = c(4,5,6,7,8,1)
mat_A = matrix(data=z, nrow = 3, ncol= 2, byrow = "False")

mat_A
mat_B = matrix(data=u, nrow = 3, ncol= 2, byrow = "True")

mat_B 

#addition
add_AB = mat_A+mat_B
add_AB

#substraction
sub_AB = mat_A-mat_B
sub_AB

#Division
dev_AB = mat_A/mat_B
dev_AB

#Multiplication
mul_AB = mat_A*mat_B
mul_AB

#Data Frames
a = c(10,20,30,40)
b = c(1:4)
c = c('M','I','S','O')

df_MY = data.frame(a,b,c)
names(df_MY) = c('ID','Values','Names')
df_MY

#PIE Chart
x =c(25,45,52,90)
y = c("A","B","C","D")

pie(x,y)

#advance Pie
pie(x,y, main = "Title of the pie chart", col = rainbow(4))

#percentage cal
r = round(x/sum(x)*100)
r

new_label = paste(r,"%")
new_label

pie(x,new_label, main = "Title of the pie chart", col = rainbow(4))


#Bar Charts
bar = c(25,34,76,90)

barplot(bar)

barplot(bar, main="Title of the bar chart")

barplot(bar, main="Title of the bar chart",col = "#16CE84")

barplot(bar, main="Title of the bar chart",col = "#16CE84", 
        border = "#CE169E", names.arg = c("A","B","C","D"), 
        xlab = " Name of the bar chart", ylab = "Y axix name of the bar chart " )

barplot(bar, main="Title of the bar chart",col = "#16CE84", 
        border = "#CE169E", names.arg = c("A","B","C","D"), 
        xlab = " Name of the bar chart", ylab = "Y axix name of the bar chart ", 
        horiz = TRUE )


#Read Dataset
getwd()

Student_data = read.csv('stu.csv', header = TRUE, sep=",")
Student_data

#Central Tendency
#Measures of location
#1) Mean (add all values and divide by how many values there are)
#ex 6,7,8
#Mean = (6+7+8)/3 = 7
mean(Student_data$Marks)

#2) Median (put numbers in order and pick the middle one)
median(Student_data$Marks)

#3) Mode(Most repeated value)
#Find the mode
mode_function &amp;lt;- function(x){
  ux &amp;lt;- unique(x)
  ux[which.max(tabulate(match(x,ux)))]
}

mode_function(Student_data$Marks)

#Measures of Dispersion(Range , Variance,Standard Deviation,
#IQR,Box plots)
#means how spread out the data is (Measure data variability)
getwd()

Student_data = read.csv('stu.csv', header = TRUE, sep=",")
Student_data

#Calculate Range
range_marks &amp;lt;- max(Student_data$Marks) - min(Student_data$Marks)
range_marks

#Calculate IQR Interquartile Range
iqr_marks &amp;lt;- IQR(Student_data$Marks)
iqr_marks

#Variance and Standard Deviation
var_marks &amp;lt;- var(Student_data$Marks)
var_marks

sd_marks &amp;lt;- sd(Student_data$Marks)
sd_marks

#Box plot
boxplot(Student_data$Marks, main="Boxplot od Student Marks", 
        ylab = "Marks",
        col = "orange",
        border= "brown",
        notch =TRUE)

# Add mean line
abline(h = mean(Student_data$Marks), col = "red", lwd = 2, lty = 2)

# Add text label for mean
text(x = 1.3, y = mean(Student_data$Marks),
     labels = paste("Mean =", round(mean(Student_data$Marks), 2)),
     col = "red")

#Get The dataset path
getwd()


Student_data = read.csv('stu.csv', header = TRUE, sep=",")
Student_data

#ANOVA TEST
result &amp;lt;- aov(Marks ~ Gender, data = Student_data)
summary(result)
#             Df  Sum Sq Mean Sq F value  Pr(&amp;gt;F)
#Gender       1    144    144.1    0.429   0.514
#Residuals   98  32936   336.1  
#if Pr(&amp;gt;F) &amp;lt; 0.05 ==&amp;gt; Statically Significant
#the average marks between Males and Females are Significantly different.

#if Pr(&amp;gt;5) &amp;gt;= 0.05 ==&amp;gt; Not Statically Significant
#There is no strong evidence to say marks are different based on gender

#Frequency Distribution and Interval and midpoint
#1 create class intervals
breaks &amp;lt;- seq(0, 100, by = 10) #creates ex :- 0-10,10-20

#2 cut marks into Intervals
Student_data$Interval &amp;lt;- cut(Student_data$Marks, breaks = breaks, right = FALSE)

#3 Frequency table
freq_table &amp;lt;- table(Student_data$Interval)

freq_table

#Midpoint
midpoints &amp;lt;- (head(breaks, -1) + tail(breaks, -1)) /2
midpoints


#Create Histogram

barplot(freq_table,
        main = "Histogram of Marks",
        xlab = "Marks Range",
        ylab = "Number of Students",
        col = "lightblue",
        border= "black")

#Frequency Polygon (Midpoint &amp;amp; Lines)
#Midpoints
midpoints &amp;lt;- (head(breaks, -1) + tail(breaks, -1))/2

#convert frequency table to numaric vectors
freq_values &amp;lt;- as.numeric(freq_table)

#plot frequency polygen
plot(midpoints, freq_values, type = "o",
     main = "Frequency Polygon",
     xlab = "Midpoint of Marks Range",
     ylab = "Number of Students",
     col = "blue",
     pch = 16)

#Bell Curve
#1 Load data
getwd()

Student_data = read.csv('stu.csv', header = TRUE, sep=",")
Student_data

#2 Calculate mean and Standard deviation
#mean

mean_marks &amp;lt;- mean(Student_data$Marks)
mean_marks

#SD

sd_marks &amp;lt;- sd(Student_data$Marks)
sd_marks

# 3) create a sequence of X values
x_values &amp;lt;- seq(min(Student_data$Marks), max(Student_data$Marks), length=10)

#calculate the normal distribution Y values using dnorm()
y_values &amp;lt;- dnorm(x_values , mean =mean_marks, sd=sd_marks )


#4) plot
plot(x_values, y_values, type = "l", col = "blue", lwd = 2,
     main = "Bell curve of student marks",
     xlab = "Marks", ylab = "Density")

#with Package 
install.packages("ggplot2")
library(ggplot2)

# Mean  Standard Deviation 
mean_marks &amp;lt;- mean(Student_data$Marks)
sd_marks &amp;lt;- sd(Student_data$Marks)

# Bell curve  plot 
ggplot(Student_data, aes(x=Marks)) +
  geom_histogram(aes(y=..density..), bins=15, fill="skyblue", 
                 color="black", alpha=0.6) +
  stat_function(fun = dnorm, args = list(mean = mean_marks, sd = sd_marks), 
                color="red", size=1.2) +
  labs(title = "Bell Curve of Student Marks", x = "Marks", y = "Density")


#hypothesis testing
#Perform a statistical hypothesis test to determine whether there 
#is a significant difference in the average marks obtained by 
#male and female students.
#Provide both numerical and graphical outputs.
#Clearly state the null and alternative hypotheses.
#Discuss the practical significance of your findings for 
#academic decision-making (e.g., gender-based performance support programs).
Student_data = read.csv('stu.csv', header = TRUE, sep=",")
Student_data

# View Gender breakdown
table(Student_data$Gender)

# Check means
aggregate(Marks ~ Gender, data = Student_data, mean)
# Visual comparison
boxplot(Marks ~ Gender, data = Student_data, col=c("lightblue", "lightgreen"),
        main="Comparison of Marks by Gender",
        xlab="Gender", ylab="Marks")

# Perform two-sample t-test (independent samples)
t_test &amp;lt;- t.test(Marks ~ Gender, data = Student_data, var.equal = FALSE)

# Output
print(t_test)

# Interpretation
if (t_test$p.value &amp;lt; 0.05) {
  cat("Reject H₀: There is a statistically significant 
      difference in average marks between male and female students.\n")
} else {
  cat("Do not reject H₀: No significant difference 
      in marks between male and female students.\n") 
}



install.packages("modeest")
library(modeest)


#Covariance, Pearson correlation, and Spearman correlation all measure the relationship between two variables, but differ in what they measure and how they interpret the data. Covariance indicates the direction of a linear relationship and is on an unlimited scale. Pearson correlation measures the strength and direction of a linear relationship, with values between -1 and +1. Spearman correlation measures the strength and direction of a monotonic relationship by analyzing the ranks of the data, also with values between -1 and +1. 
#Covariance
#What it is: A measure of the joint variability of two random variables, showing their tendency to move together. 
#What it tells you: It indicates the direction of a relationship. A positive covariance means the variables tend to move in the same direction, while a negative covariance means they move in opposite directions. 
#Scale: Unlimited, ranging from -∞ to +∞. 
#Pearson Correlation Coefficient 
#What it is: A statistical measure that assesses the strength and direction of a linear relationship between two variables.
#What it tells you: It quantifies how well two variables are linearly related.
#Scale: Ranges from -1 to +1.
#+1: Perfect positive linear relationship.
#-1: Perfect negative linear relationship.
#0: No linear relationship.
#Spearman Correlation Coefficient 
#What it tells you: It assesses how well the relationship between two variables can be described using a monotonic function (i.e., a function that is either entirely non-increasing or entirely non-decreasing). It is calculated on the ranks of the data, making it less sensitive to outliers than Pearson correlation.
#Scale: Ranges from -1 to +1.

#Normality testing
#1)Shapiro wilk testing
shapiro.test(Student_data$Marks)

#Shapiro wilk testing
#p&amp;gt; 0.05 =&amp;gt; Data is normally distributed
#p&amp;lt; 0.05 =&amp;gt; Data is not Normally distributed

#2) Histogram for Normality Check
hist(Student_data$Marks,
     main = "Histogram of Mraks",
     xlab = "Marks",
     col = "lightblue",
     border = "black")

#Histogram bell sheped =&amp;gt; Likely normal

#3)QQ plot for normality check
qqnorm(Student_data$Marks,
       main = "Q-Q plot of Marks")
qqline(Student_data$Marks,
       col="red",
       lwd = 2)
#Pointes on the straight line = likely normal


#SUMMARY statistics for Age and Marks
summary(Student_data[,c("Age","Marks")])

#Linear Regression &amp;amp; Correlation Analysis
getwd()

Student_data = read.csv('stu.csv', header = TRUE, sep=",")
Student_data

#Correlation Analysis
#-1 to +1
cor(Student_data$Age,Student_data$Marks)

#Covariance Correlation
#measures how two variables change together
#if both increase -&amp;gt; positive Covariance
#if one increases while other decreases -&amp;gt; negative Covariance
#Near 0 No linear pattern
cov(Student_data$Age, Student_data$Marks)

# Calculate statistics
cov_value &amp;lt;- cov(Student_data$Age, Student_data$Marks)
pearson_value &amp;lt;- cor(Student_data$Age, Student_data$Marks, method = "pearson")
spearman_value &amp;lt;- cor(Student_data$Age, Student_data$Marks, method = "spearman")

# Create scatter plot with regression line
plot(Student_data$Age, Student_data$Marks,
     main = "Age vs Marks with Correlation &amp;amp; Covariance",
     xlab = "Age",
     ylab = "Marks",
     pch = 19,
     col = "darkblue")

# Add regression line
model &amp;lt;- lm(Marks ~ Age, data = Student_data)
abline(model, col = "red", lwd = 2)

# Add text box with values
legend_text &amp;lt;- paste("Covariance:", round(cov_value, 2),
                     "\nPearson:", round(pearson_value, 2),
                     "\nSpearman:", round(spearman_value, 2))

# Add text to plot
legend("bottomright", legend = legend_text, bty = "n", cex = 0.9,
       text.col = "black")

#Linear Regression
model &amp;lt;- lm(Marks ~ Age, data=Student_data)
summary(model)

#Graph
plot(Student_data$Age, Student_data$Marks,
     main="Age vs Marks (Regression Line)",
     xlab = "Age", ylab = "Marks")
abline(model, col="blue", lwd =2)

par(mar = c(4, 4, 2, 1))  # bottom, left, top, right
plot(Student_data$Age, Student_data$Marks,
     main = "Age vs Marks (Regression Line)",
     xlab = "Age", ylab = "Marks")
abline(model, col = "blue", lwd = 2)


#Time series Analysis &amp;amp; Forecasting
# Assume Marks are collected monthly
marks_ts &amp;lt;- ts(Student_data$Marks[1:24], frequency = 12, start = c(2023,1))

# Plot Time Series
plot(marks_ts, main = "Monthly Student Marks", ylab = "Marks")

# Decompose time series
decomposed &amp;lt;- decompose(marks_ts)
plot(decomposed)

# Forecasting
install.packages("forecast")
library(forecast)
model_ets &amp;lt;- ets(marks_ts)
forecast_data &amp;lt;- forecast(model_ets, h = 6)
plot(forecast_data)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>rstudio</category>
      <category>business</category>
      <category>studies</category>
      <category>r</category>
    </item>
    <item>
      <title>👋 Hello DEV! | Graphic Designer Stepping into Frontend Development</title>
      <dc:creator>Rasindu nawod</dc:creator>
      <pubDate>Sun, 28 Jun 2026 08:08:57 +0000</pubDate>
      <link>https://dev.to/roky2k05/hello-dev-graphic-designer-stepping-into-frontend-development-256o</link>
      <guid>https://dev.to/roky2k05/hello-dev-graphic-designer-stepping-into-frontend-development-256o</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx6piwl4x84m8tz6mvt8z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx6piwl4x84m8tz6mvt8z.png" alt=" " width="800" height="240"&gt;&lt;/a&gt;&lt;br&gt;
Hey everyone! 🚀&lt;/p&gt;

&lt;p&gt;I'm super excited to finally join the DEV Community today!&lt;/p&gt;

&lt;p&gt;I have been working as a Graphic Designer for a while now, crafting brand identities, posters, and UI layouts using tools like Figma, Photoshop, and Illustrator. However, my passion for bringing those visual designs to life led me straight into the world of Frontend Web Development.&lt;/p&gt;

&lt;p&gt;Right now, I am focusing heavily on mastering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;React.js ⚛️&lt;/li&gt;
&lt;li&gt;Tailwind CSS 🎨&lt;/li&gt;
&lt;li&gt;GSAP (for those buttery-smooth web animations) ⚡&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Why I joined DEV:&lt;br&gt;
I joined this amazing community to read insightful articles, stay updated with modern web trends, and eventually share my own journey of bridging the gap between creative design and clean code.&lt;/p&gt;

&lt;p&gt;Let's Connect!&lt;br&gt;
I would love to connect with fellow frontend developers, UI/UX designers, and anyone passionate about web animation.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What is one piece of advice you would give to a designer learning React?&lt;/li&gt;
&lt;li&gt;Drop a comment below and say hi! 👇&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cheers to new beginnings! 🥂&lt;/p&gt;

</description>
      <category>welcome</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
