%% УфпйчеЯб РесйгсбцйкЮт УфбфйуфйкЮт
% *ЦбЯдщн КхсйбкЯдзт* 
%
% ФмЮмб ГещгсбцЯбт РбнерйуфзмЯпх БйгбЯпх

%% Preliminaries

% Clear variables from workspace
clear
% Import (load) data on road accidents from different roads
load roadaccidents.mat

%% List of variables in workspace: size, disp
% List variables in workspace
who
% List variables in workspace with more detailed information
whos
% КЬие бсчеЯп ресйЭчей ухнфефбгмЭнет узмеЯщн ьрпх Эчей бнбцесиеЯ кЬрпйп
% фспчбЯп бфэчзмб кбфЬ фз дйЬскейб фщн 30 фелехфбЯщн ефюн

% Size of matrix xr1
size(xr1)
% Number of rows (number of events) = 200
% Number of columns (attributes) = 1
% Alternative answer:
[nEvents,nVars] = size(xr1); % The semi-colon supresses output
disp([nEvents nVars]);  % Display results; [a b] groups a & b into a vector

%% Basic plotting
plot(xr1,'*'); 
xlabel('Accident location id: 1, 2, 3,...,200');
ylabel('Coordinates of accident locations');

%% Better plotting
v1 = ones(size(xr1));
plot(xr1,v1,'*');
xlabel('x-coordinates of accident locations');
set(gca,'yticklabel',' ');
title('Spatial distribution of road accidents');

%% Measures of central tendency

%% Mean

%% Median

%% Mode

%% Measures of spread

%% Variance

%% Std deviation

%% Inter-quartile range

%% Box-plots

%% Histograms

%% Frequency histogram

%% Relative frequency histogram

%% Density histogram


%% Standardization
