Q: I am interested being a Major in Statistics but am currently in a different specialisation. How can I apply to transfer to Statistics?

We assume that you are in year 2 or later. You can apply via the online form at: https://ubc.ca1.qualtrics.com/jfe/form/SV_0MQQzD5Bq1wqtyl after you have completed Stat 200 (introductory statistics), Math 200(multivariable calculus), Math 221 (linear algebra) and Math/Stat 302 (introductory probability) with decent grades.
Please read the instructions carefully before submitting your application. Applications will be considered in January and in May each year by the reviewing of overall profiles and grades in relevant Computer Science, Mathematics, and Statistics courses.
The application deadlines are mid-January and mid-May. Entry to the Statistics major is competitive. For any further inquiries such as Major in Mathematical Sciences, please contact an advisor at latemajorentrants at stat dot ubc dot ca.

Q: I am interested being a Major in Statistics, but the Faculty of Science assigned me to a different major. Any recommendations?

If you are in year 2, follow the recommended courses listed in the academic calendar for the Statistics specialisation that you are interested in: for example, Major in Statistics, Combined Major CPSC/Statistics, Combined Major Statistics/Economics.
Take Math 200 (multivariable calculus), Math 221 (linear or matrix algebra) and Math/Stat 302 (introductory probability) as soon as possible. Then read the next item.

Q: I am interested being a Major in Statistics. How can I apply?

If you are applying at the end of year 1 and hope to be a Statistics major with year 2 standing, please follow the procedure at http://www.science.ubc.ca/students/degree/apply. You should list Statistics among your top 3 choices. If you ask for Statistics as a top choice and didn't get this choice, please go to the next item.

Q: Do you have anti-virus software that I can download and use free of charge?

Yes.  UBC ITServices has a software license for the Cisco Advanced Malware Protection (AMP), please refer to UBC "malware-protection" web page for more information:


The software license is applied to:

  • UBC-owned devices: Supported by a Faculty, Department of Research IT Department
  • Personal-owned devices: Used for University Business

We retain a copy of the latest version of UBC cybersecurity software which we can distribute locally to qualified users via our Nextcloud service, also known as owncloud.stat.ubc.ca.  Please contact the department IT staff for support.

Q: How to add guest user on my virtual server?

Add a guest
Guest login name should be easy to identify and no space or special characters. 
ie. John Foo = john.foo
$ sudo useradd john.foo

Add guest password
$ sudo passwd john.foo
  Make a strong passwd for your guest and ask your guest  to call you for passwd.

Add guest to sshfs mounting group
$ sudo usermod -a -G fuse john.foo

Delete guest users account and all of their files
$ sudo userdel john.foo

Q: Does StatNet offer Dropbox alternative? Owncloud?

Server: https://owncloud.stat.ubc.ca/
Login and password are the same as StatNet
Disk quota 20Gb
Users can add their local storage or Dropbox/Goggle Drive  storage to their  Owncloud account

Dropbox: You will need App key and App secret from Dropbox for Owncloud client
to use Dropbox remote storage on its server.
Login Dropbox,
Create "Dropbox API app"
--> Files and Datastores

--> No, My app needs access to files already on Dropbox
--> All file types.


More info

There are 3 ways to access your files
a) Install a Desktop sync-client  How to here
     Sync Client download
           For Mac/Win/Linux
            For Smart Mobile Devices
b) Using a web browser
      Support all major browsers. No plugin required
c) WedDav
       How to here

Complete Owncloud Desktop client Document here.

Q: SSH without a password. Setup SSH Keys on a Linux / Unix System.

On you local Mac/Linux laptop/workstation do:
$ mkdir .ssh
$ ssh-keygen -t rsa -b 4096 -f .ssh/mykeys
It will generate 2 files:  mykeys   and    mykeys.pub inside the .ssh folder.
Use ' ssh-copy-id' command' to copy the keys to our Virtual server.

Notes: Mac OSX does not have' ssh-copy-id' command. 
Download here:  https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh

$ sudo curl https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id
$ sudo chmod +x /usr/local/bin/ssh-copy-id

Now you can copy the newly generated key to Virtual server. (Replace 'stty2u' with your users login name)
$ /usr/local/bin/ssh-copy-id -i .ssh/mykeys stty2u [at] rcloud.stat.ubc.ca

Add your key to your laptop/workstation.
$ssh-add .ssh/mykeys

Test it
$ssh stty2u [at] rcloud.stat.ubc.ca

You should not be asked for password.
Q: How to mount/unmount StatNet home directory using sshfs?

We use "sshfs" to mount your StatNet home directory securely.
For your convenient, we created a sshfs script in "/usr/local/bin/statfiles".
For usage, type 'statfiles' at the command line terminal.

Notes: If you are running batch jobs, you should mount and unmount statfiles manually.
A) To manually Mount:
$statfiles mount
$cd statfiles

B) To manually  unmount
$statfiles unmount

Howto  Use "sshfs" to mount your StatNet home storage automatically
1) Edit .bash_profile and remove these hashes, using vim or emacs.
   $ emacs .bash_profile
        statfiles mount
        cd statfiles
2) To unmount statfiles after logout
Edit .bash_login and remove these hashes
   $ emacs .bash_logout
        cd ~
        /usr/local/bin/statfiles unmount
3)Logout and Login your VM again.
   You need to supply your StatNet passwd twice.  One for your VM and one for your StatNet Home directory to mount.
4) Confirm your StatNet location
   $ pwd
   $ ls
5) Now you can start running your code.
   $ program your_code here.

Do not save anything important on your local VM disk since it has limited snapshot and backup.
Your local VM files is saved for 7 days and every hours.

Q: How do I access my virtual server?

1) Using Ssh

SSHSecureShell https://owncloud.stat.ubc.ca/index.php/s/JDRoPRAeWrUHIZH
or Putty

Open a Terminal and type
ssh stat.ubc.ca -l {your login name without these parentheses}

Save your working data on

If you don't have the data folder ready, Email our IT help group

2) Using screen and Xpra

Q: What is my VM specs and softwares and how do I use it?

I) Virtual server specs:
RHEL6 64 bit OS.
initially has min 4 CPUs, 8Gb of RAM and
40Gb NFS mount of storage with 7 days local disk snapshot only.
You should use StatNet home directory as your main storage for better backup.
At anytime your project needs to have more CPU/Ram, email help at stat with brief
a explanation of why you need more resources.

Host: v{your_login_name}.stat.ubc.ca

Login/Passwd are the same as your StatNet
After you login, your VM will NOT mount your StatNet Home directory.
This is because we want you to understand how sshfs mounting work.
We created a sshfs script in "/usr/local/bin/statfiles"

II) Software installed:
 R statistics
 Xrpa/Screen for running app nohup remotely.
 Opensource development tools