#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri May 18 19:03:45 2018

@author: sadievrenseker
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

veriler = pd.read_csv('Ads_CTR_Optimisation.csv')

import random

N = 10000
d = 10 
toplam = 0
secilenler = []
for n in range(0,N):
    ad = random.randrange(d)
    secilenler.append(ad)
    odul = veriler.values[n,ad] # verilerdeki n. satır = 1 ise odul 1
    toplam = toplam + odul
    
    
plt.hist(secilenler)
plt.show()











a5603868eb4ffbb0418fc35f5fb96d3be446e8d9
<mask token>

<mask token>
for n in range(0, N):
    ad = random.randrange(d)
    secilenler.append(ad)
    odul = veriler.values[n, ad]
    toplam = toplam + odul
plt.hist(secilenler)
plt.show()

<mask token>
veriler = pd.read_csv('Ads_CTR_Optimisation.csv')
<mask token>
N = 10000
d = 10
toplam = 0
secilenler = []
for n in range(0, N):
    ad = random.randrange(d)
    secilenler.append(ad)
    odul = veriler.values[n, ad]
    toplam = toplam + odul
plt.hist(secilenler)
plt.show()

<mask token>
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
veriler = pd.read_csv('Ads_CTR_Optimisation.csv')
import random
N = 10000
d = 10
toplam = 0
secilenler = []
for n in range(0, N):
    ad = random.randrange(d)
    secilenler.append(ad)
    odul = veriler.values[n, ad]
    toplam = toplam + odul
plt.hist(secilenler)
plt.show()

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri May 18 19:03:45 2018

@author: sadievrenseker
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

veriler = pd.read_csv('Ads_CTR_Optimisation.csv')

import random

N = 10000
d = 10 
toplam = 0
secilenler = []
for n in range(0,N):
    ad = random.randrange(d)
    secilenler.append(ad)
    odul = veriler.values[n,ad] # verilerdeki n. satır = 1 ise odul 1
    toplam = toplam + odul
    
    
plt.hist(secilenler)
plt.show()










